From 84c6f3cb331535b0f08e30e9afaa8f68fb2b20eb Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 10 Oct 2024 09:04:06 -0700 Subject: [PATCH 01/52] ci: Update testing/linting to use official Python 3.13 versions --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05874a0a..ef5727b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ Valid subsections within a version are: Things to be included in the next release go here. +### Added + +- Testing/linting on Python 3.13 + --- ### Added From 6159c9529c1808174988cfe71db4cbb275203147 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 10 Oct 2024 12:07:20 -0700 Subject: [PATCH 02/52] refactor: Converted the SignalGenerator class into a mixin class called TekAFGAWG. Also removed the previously deprecated TekScopeSW alias. --- CHANGELOG.md | 10 +++- src/tm_devices/device_manager.py | 4 +- .../tek_afg_awg_mixin.py} | 14 +++--- src/tm_devices/drivers/__init__.py | 46 ++++++------------- src/tm_devices/drivers/device.py | 1 + .../drivers/device_driver_mapping.py | 28 +++++------ src/tm_devices/drivers/device_type_classes.py | 4 +- .../{signal_generators => }/afgs/__init__.py | 0 .../pi/{signal_generators => }/afgs/afg.py | 4 +- .../pi/{signal_generators => }/afgs/afg31k.py | 2 +- .../pi/{signal_generators => }/afgs/afg3k.py | 2 +- .../pi/{signal_generators => }/afgs/afg3kb.py | 2 +- .../pi/{signal_generators => }/afgs/afg3kc.py | 2 +- .../{signal_generators => }/awgs/__init__.py | 0 .../pi/{signal_generators => }/awgs/awg.py | 4 +- .../{signal_generators => }/awgs/awg5200.py | 2 +- .../pi/{signal_generators => }/awgs/awg5k.py | 2 +- .../pi/{signal_generators => }/awgs/awg5kb.py | 2 +- .../pi/{signal_generators => }/awgs/awg5kc.py | 2 +- .../{signal_generators => }/awgs/awg70ka.py | 2 +- .../{signal_generators => }/awgs/awg70kb.py | 2 +- .../pi/{signal_generators => }/awgs/awg7k.py | 4 +- .../pi/{signal_generators => }/awgs/awg7kb.py | 2 +- .../pi/{signal_generators => }/awgs/awg7kc.py | 2 +- .../drivers/pi/power_supplies/power_supply.py | 6 +-- .../tekscope/{tekscopesw.py => tekscopepc.py} | 10 ---- .../drivers/pi/signal_generators/__init__.py | 1 - .../smu24xx/smu24xx_standard.py | 6 +-- .../source_measure_units/smu60xx/smu6xxx.py | 6 +-- tests/test_afgs.py | 2 +- tests/test_awgs.py | 2 +- tests/test_extension_mixin.py | 14 +++--- tests/test_tm_devices.py | 25 +--------- 33 files changed, 86 insertions(+), 129 deletions(-) rename src/tm_devices/{drivers/pi/signal_generators/signal_generator.py => driver_mixins/tek_afg_awg_mixin.py} (92%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/__init__.py (100%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/afg.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/afg31k.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/afg3k.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/afg3kb.py (95%) rename src/tm_devices/drivers/pi/{signal_generators => }/afgs/afg3kc.py (97%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/__init__.py (100%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg5200.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg5k.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg5kb.py (94%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg5kc.py (94%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg70ka.py (99%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg70kb.py (94%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg7k.py (98%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg7kb.py (94%) rename src/tm_devices/drivers/pi/{signal_generators => }/awgs/awg7kc.py (95%) rename src/tm_devices/drivers/pi/scopes/tekscope/{tekscopesw.py => tekscopepc.py} (87%) delete mode 100644 src/tm_devices/drivers/pi/signal_generators/__init__.py diff --git a/CHANGELOG.md b/CHANGELOG.md index ef5727b4..eb85aa2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,15 @@ Things to be included in the next release go here. ### Added -- Testing/linting on Python 3.13 +- Testing/linting on Python 3.13. + +### Changed + +- Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. + +### Removed + +- Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class --- diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index a995c867..342f2b2f 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -25,6 +25,8 @@ from tm_devices.drivers.device_driver_mapping import ( _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] ) +from tm_devices.drivers.pi.afgs.afg import AFG +from tm_devices.drivers.pi.awgs.awg import AWG from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) @@ -32,8 +34,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.signal_generators.afgs.afg import AFG -from tm_devices.drivers.pi.signal_generators.awgs.awg import AWG from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import ( diff --git a/src/tm_devices/drivers/pi/signal_generators/signal_generator.py b/src/tm_devices/driver_mixins/tek_afg_awg_mixin.py similarity index 92% rename from src/tm_devices/drivers/pi/signal_generators/signal_generator.py rename to src/tm_devices/driver_mixins/tek_afg_awg_mixin.py index ca6f3761..b72b9dcf 100644 --- a/src/tm_devices/drivers/pi/signal_generators/signal_generator.py +++ b/src/tm_devices/driver_mixins/tek_afg_awg_mixin.py @@ -1,11 +1,9 @@ -"""Base Generator device driver module. - -Generators include PI devices such as AFGs and AWGs. -""" +"""A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" from abc import ABC from typing import Tuple, Union +from tm_devices.driver_mixins.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.signal_generator_mixin import SignalGeneratorMixin from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.helpers import print_with_timestamp @@ -14,8 +12,8 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class SignalGenerator(PIDevice, SignalGeneratorMixin, ABC): - """Base Signal Generator device driver.""" +class TekAFGAWG(PIDevice, SignalGeneratorMixin, ExtendableMixin, ABC): + """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" ################################################################################################ # Properties @@ -28,7 +26,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: @cached_property def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" - return self.ieee_cmds.opt() + return self.query("*OPT?") ################################################################################################ # Public Methods @@ -66,7 +64,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool # return the errors if any returned_errors = "" error = "" - while error != '0,"No error"': + while error != no_error: error = str(self.query("SYSTEM:ERROR?")) returned_errors += error if error != no_error: diff --git a/src/tm_devices/drivers/__init__.py b/src/tm_devices/drivers/__init__.py index 4e97f675..46456514 100644 --- a/src/tm_devices/drivers/__init__.py +++ b/src/tm_devices/drivers/__init__.py @@ -1,27 +1,23 @@ """Python drivers for all supported devices.""" -import sys -import warnings -from typing import Any - # NOTE: For documentation purposes, these imports must be sorted manually, not automatically # ruff: isort: skip_file from tm_devices.drivers.device_driver_mapping import DEVICE_DRIVER_MODEL_MAPPING from tm_devices.drivers.device_type_classes import DEVICE_TYPE_CLASSES from tm_devices.helpers.enums import SupportedModels -from tm_devices.drivers.pi.signal_generators.afgs.afg3k import AFG3K -from tm_devices.drivers.pi.signal_generators.afgs.afg3kb import AFG3KB -from tm_devices.drivers.pi.signal_generators.afgs.afg3kc import AFG3KC -from tm_devices.drivers.pi.signal_generators.afgs.afg31k import AFG31K -from tm_devices.drivers.pi.signal_generators.awgs.awg5k import AWG5K -from tm_devices.drivers.pi.signal_generators.awgs.awg5kb import AWG5KB -from tm_devices.drivers.pi.signal_generators.awgs.awg5kc import AWG5KC -from tm_devices.drivers.pi.signal_generators.awgs.awg7k import AWG7K -from tm_devices.drivers.pi.signal_generators.awgs.awg7kb import AWG7KB -from tm_devices.drivers.pi.signal_generators.awgs.awg7kc import AWG7KC -from tm_devices.drivers.pi.signal_generators.awgs.awg70ka import AWG70KA -from tm_devices.drivers.pi.signal_generators.awgs.awg70kb import AWG70KB -from tm_devices.drivers.pi.signal_generators.awgs.awg5200 import AWG5200 +from tm_devices.drivers.pi.afgs.afg3k import AFG3K +from tm_devices.drivers.pi.afgs.afg3kb import AFG3KB +from tm_devices.drivers.pi.afgs.afg3kc import AFG3KC +from tm_devices.drivers.pi.afgs.afg31k import AFG31K +from tm_devices.drivers.pi.awgs.awg5k import AWG5K +from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB +from tm_devices.drivers.pi.awgs.awg5kc import AWG5KC +from tm_devices.drivers.pi.awgs.awg7k import AWG7K +from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB +from tm_devices.drivers.pi.awgs.awg7kc import AWG7KC +from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA +from tm_devices.drivers.pi.awgs.awg70kb import AWG70KB +from tm_devices.drivers.pi.awgs.awg5200 import AWG5200 from tm_devices.drivers.pi.scopes.tekscope.lpd6 import LPD6 from tm_devices.drivers.pi.scopes.tekscope.mso2 import MSO2 from tm_devices.drivers.pi.scopes.tekscope.mso4 import MSO4 @@ -31,7 +27,7 @@ from tm_devices.drivers.pi.scopes.tekscope.mso5lp import MSO5LP from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 from tm_devices.drivers.pi.scopes.tekscope.mso6b import MSO6B -from tm_devices.drivers.pi.scopes.tekscope.tekscopesw import TekScopePC +from tm_devices.drivers.pi.scopes.tekscope.tekscopepc import TekScopePC from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2k import DPO2K from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2kb import DPO2KB from tm_devices.drivers.pi.scopes.tekscope_2k.mso2k import MSO2K @@ -109,20 +105,6 @@ from tm_devices.drivers.pi.systems_switches.ss3706a import SS3706A from tm_devices.drivers.api.rest_api.margin_testers.tmt4 import TMT4 -# TODO: deprecation: remove this function after TekScopeSW is fully removed -if not ("--doctest-modules" in sys.argv and sys.argv[-1] == "src"): # pragma: no cover - - def __getattr__(name: str) -> Any: - if name == "TekScopeSW": - warnings.warn( - f"{name} is deprecated and will be removed in a future version, " - f"please use TekScopePC instead.", - DeprecationWarning, - stacklevel=2, - ) - return TekScopePC - return globals()[name] - __all__ = [ "DEVICE_DRIVER_MODEL_MAPPING", diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 0707ebc4..7fb1de6a 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -504,6 +504,7 @@ def reboot(self, quiet_period: int = 0) -> bool: ) return rebooted + # TODO: move to mixin @final def verify_values( self, diff --git a/src/tm_devices/drivers/device_driver_mapping.py b/src/tm_devices/drivers/device_driver_mapping.py index 8ff3a5fe..e7eb38b9 100644 --- a/src/tm_devices/drivers/device_driver_mapping.py +++ b/src/tm_devices/drivers/device_driver_mapping.py @@ -5,6 +5,19 @@ from tm_devices.drivers.api.rest_api.margin_testers.tmt4 import TMT4 from tm_devices.drivers.device import Device +from tm_devices.drivers.pi.afgs.afg3k import AFG3K +from tm_devices.drivers.pi.afgs.afg3kb import AFG3KB +from tm_devices.drivers.pi.afgs.afg3kc import AFG3KC +from tm_devices.drivers.pi.afgs.afg31k import AFG31K +from tm_devices.drivers.pi.awgs.awg5k import AWG5K +from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB +from tm_devices.drivers.pi.awgs.awg5kc import AWG5KC +from tm_devices.drivers.pi.awgs.awg7k import AWG7K +from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB +from tm_devices.drivers.pi.awgs.awg7kc import AWG7KC +from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA +from tm_devices.drivers.pi.awgs.awg70kb import AWG70KB +from tm_devices.drivers.pi.awgs.awg5200 import AWG5200 from tm_devices.drivers.pi.data_acquisition_systems.daq6510 import DAQ6510 from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7510 import DMM7510 from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7512 import DMM7512 @@ -25,7 +38,7 @@ from tm_devices.drivers.pi.scopes.tekscope.mso5lp import MSO5LP from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 from tm_devices.drivers.pi.scopes.tekscope.mso6b import MSO6B -from tm_devices.drivers.pi.scopes.tekscope.tekscopesw import TekScopePC +from tm_devices.drivers.pi.scopes.tekscope.tekscopepc import TekScopePC from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2k import DPO2K from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2kb import DPO2KB from tm_devices.drivers.pi.scopes.tekscope_2k.mso2k import MSO2K @@ -57,19 +70,6 @@ from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kc import MSO70KC from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kdx import MSO70KDX from tm_devices.drivers.pi.scopes.tso.tsovu import TSOVu -from tm_devices.drivers.pi.signal_generators.afgs.afg3k import AFG3K -from tm_devices.drivers.pi.signal_generators.afgs.afg3kb import AFG3KB -from tm_devices.drivers.pi.signal_generators.afgs.afg3kc import AFG3KC -from tm_devices.drivers.pi.signal_generators.afgs.afg31k import AFG31K -from tm_devices.drivers.pi.signal_generators.awgs.awg5k import AWG5K -from tm_devices.drivers.pi.signal_generators.awgs.awg5kb import AWG5KB -from tm_devices.drivers.pi.signal_generators.awgs.awg5kc import AWG5KC -from tm_devices.drivers.pi.signal_generators.awgs.awg7k import AWG7K -from tm_devices.drivers.pi.signal_generators.awgs.awg7kb import AWG7KB -from tm_devices.drivers.pi.signal_generators.awgs.awg7kc import AWG7KC -from tm_devices.drivers.pi.signal_generators.awgs.awg70ka import AWG70KA -from tm_devices.drivers.pi.signal_generators.awgs.awg70kb import AWG70KB -from tm_devices.drivers.pi.signal_generators.awgs.awg5200 import AWG5200 from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2400 import SMU2400 from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2401 import SMU2401 from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2410 import SMU2410 diff --git a/src/tm_devices/drivers/device_type_classes.py b/src/tm_devices/drivers/device_type_classes.py index 706198f6..42f8d2d8 100644 --- a/src/tm_devices/drivers/device_type_classes.py +++ b/src/tm_devices/drivers/device_type_classes.py @@ -4,14 +4,14 @@ from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester from tm_devices.drivers.device import Device +from tm_devices.drivers.pi.afgs.afg import AFG +from tm_devices.drivers.pi.awgs.awg import AWG from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) from tm_devices.drivers.pi.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.signal_generators.afgs.afg import AFG -from tm_devices.drivers.pi.signal_generators.awgs.awg import AWG from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/__init__.py b/src/tm_devices/drivers/pi/afgs/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/signal_generators/afgs/__init__.py rename to src/tm_devices/drivers/pi/afgs/__init__.py diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/afg.py b/src/tm_devices/drivers/pi/afgs/afg.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/afgs/afg.py rename to src/tm_devices/drivers/pi/afgs/afg.py index 0a9ffbda..c066ba22 100644 --- a/src/tm_devices/drivers/pi/signal_generators/afgs/afg.py +++ b/src/tm_devices/drivers/pi/afgs/afg.py @@ -12,9 +12,9 @@ ParameterBounds, SourceDeviceConstants, ) +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.base_afg_source_channel import BaseAFGSourceChannel -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming @@ -33,7 +33,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): @family_base_class -class AFG(SignalGenerator, ABC): +class AFG(TekAFGAWG, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/afg31k.py b/src/tm_devices/drivers/pi/afgs/afg31k.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/afgs/afg31k.py rename to src/tm_devices/drivers/pi/afgs/afg31k.py index 4e9e8c34..9e33a786 100644 --- a/src/tm_devices/drivers/pi/signal_generators/afgs/afg31k.py +++ b/src/tm_devices/drivers/pi/afgs/afg31k.py @@ -4,7 +4,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.signal_generators.afgs.afg3k import ( +from tm_devices.drivers.pi.afgs.afg3k import ( AFG, AFGSourceDeviceConstants, LoadImpedanceAFG, diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3k.py b/src/tm_devices/drivers/pi/afgs/afg3k.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/afgs/afg3k.py rename to src/tm_devices/drivers/pi/afgs/afg3k.py index 103cd119..ba7c9e98 100644 --- a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3k.py +++ b/src/tm_devices/drivers/pi/afgs/afg3k.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KMixin -from tm_devices.drivers.pi.signal_generators.afgs.afg import ( +from tm_devices.drivers.pi.afgs.afg import ( AFG, AFGSourceDeviceConstants, LoadImpedanceAFG, diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3kb.py b/src/tm_devices/drivers/pi/afgs/afg3kb.py similarity index 95% rename from src/tm_devices/drivers/pi/signal_generators/afgs/afg3kb.py rename to src/tm_devices/drivers/pi/afgs/afg3kb.py index 6172c517..4209e86a 100644 --- a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3kb.py +++ b/src/tm_devices/drivers/pi/afgs/afg3kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KBMixin -from tm_devices.drivers.pi.signal_generators.afgs.afg3k import AFG3K +from tm_devices.drivers.pi.afgs.afg3k import AFG3K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3kc.py b/src/tm_devices/drivers/pi/afgs/afg3kc.py similarity index 97% rename from src/tm_devices/drivers/pi/signal_generators/afgs/afg3kc.py rename to src/tm_devices/drivers/pi/afgs/afg3kc.py index e0936972..44d4c947 100644 --- a/src/tm_devices/drivers/pi/signal_generators/afgs/afg3kc.py +++ b/src/tm_devices/drivers/pi/afgs/afg3kc.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KCMixin -from tm_devices.drivers.pi.signal_generators.afgs.afg3k import ( +from tm_devices.drivers.pi.afgs.afg3k import ( AFG3K, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/__init__.py b/src/tm_devices/drivers/pi/awgs/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/signal_generators/awgs/__init__.py rename to src/tm_devices/drivers/pi/awgs/__init__.py diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg.py b/src/tm_devices/drivers/pi/awgs/awg.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg.py rename to src/tm_devices/drivers/pi/awgs/awg.py index dff912ef..b0094ec7 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg.py +++ b/src/tm_devices/drivers/pi/awgs/awg.py @@ -11,9 +11,9 @@ ParameterBounds, SourceDeviceConstants, ) +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.base_source_channel import BaseSourceChannel -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming @@ -32,7 +32,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAWG] = SignalGeneratorFunctionsAWG -class AWG(SignalGenerator, ABC): +class AWG(TekAFGAWG, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5200.py b/src/tm_devices/drivers/pi/awgs/awg5200.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg5200.py rename to src/tm_devices/drivers/pi/awgs/awg5200.py index 761aca98..8fd0b249 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5200.py +++ b/src/tm_devices/drivers/pi/awgs/awg5200.py @@ -8,7 +8,7 @@ from tm_devices.commands import AWG5200Mixin from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.signal_generators.awgs.awg import ( +from tm_devices.drivers.pi.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5k.py b/src/tm_devices/drivers/pi/awgs/awg5k.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg5k.py rename to src/tm_devices/drivers/pi/awgs/awg5k.py index 515e718e..1ccb041e 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5k.py +++ b/src/tm_devices/drivers/pi/awgs/awg5k.py @@ -7,7 +7,7 @@ from tm_devices.commands import AWG5KMixin from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.signal_generators.awgs.awg import ( +from tm_devices.drivers.pi.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5kb.py b/src/tm_devices/drivers/pi/awgs/awg5kb.py similarity index 94% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg5kb.py rename to src/tm_devices/drivers/pi/awgs/awg5kb.py index 6ad1050f..6d7b8257 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5kb.py +++ b/src/tm_devices/drivers/pi/awgs/awg5kb.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.signal_generators.awgs.awg5k import AWG5K +from tm_devices.drivers.pi.awgs.awg5k import AWG5K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5kc.py b/src/tm_devices/drivers/pi/awgs/awg5kc.py similarity index 94% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg5kc.py rename to src/tm_devices/drivers/pi/awgs/awg5kc.py index fee75449..94ceb0bc 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg5kc.py +++ b/src/tm_devices/drivers/pi/awgs/awg5kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG5KCMixin -from tm_devices.drivers.pi.signal_generators.awgs.awg5kb import AWG5KB +from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg70ka.py b/src/tm_devices/drivers/pi/awgs/awg70ka.py similarity index 99% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg70ka.py rename to src/tm_devices/drivers/pi/awgs/awg70ka.py index 1e4c1c66..ee1750eb 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg70ka.py +++ b/src/tm_devices/drivers/pi/awgs/awg70ka.py @@ -8,7 +8,7 @@ from tm_devices.commands import AWG70KAMixin from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.signal_generators.awgs.awg import ( +from tm_devices.drivers.pi.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg70kb.py b/src/tm_devices/drivers/pi/awgs/awg70kb.py similarity index 94% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg70kb.py rename to src/tm_devices/drivers/pi/awgs/awg70kb.py index 25a1a850..7607277f 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg70kb.py +++ b/src/tm_devices/drivers/pi/awgs/awg70kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG70KBMixin -from tm_devices.drivers.pi.signal_generators.awgs.awg70ka import AWG70KA +from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7k.py b/src/tm_devices/drivers/pi/awgs/awg7k.py similarity index 98% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg7k.py rename to src/tm_devices/drivers/pi/awgs/awg7k.py index 99b6b3db..24f5a641 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7k.py +++ b/src/tm_devices/drivers/pi/awgs/awg7k.py @@ -7,13 +7,13 @@ from tm_devices.commands import AWG7KMixin from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.signal_generators.awgs.awg import ( +from tm_devices.drivers.pi.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, ParameterBounds, ) -from tm_devices.drivers.pi.signal_generators.awgs.awg5k import ( +from tm_devices.drivers.pi.awgs.awg5k import ( AWG5K, AWG5KSourceChannel, ) diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7kb.py b/src/tm_devices/drivers/pi/awgs/awg7kb.py similarity index 94% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg7kb.py rename to src/tm_devices/drivers/pi/awgs/awg7kb.py index e844cc04..b087e167 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7kb.py +++ b/src/tm_devices/drivers/pi/awgs/awg7kb.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.signal_generators.awgs.awg7k import AWG7K +from tm_devices.drivers.pi.awgs.awg7k import AWG7K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7kc.py b/src/tm_devices/drivers/pi/awgs/awg7kc.py similarity index 95% rename from src/tm_devices/drivers/pi/signal_generators/awgs/awg7kc.py rename to src/tm_devices/drivers/pi/awgs/awg7kc.py index e6d9ca64..81cac383 100644 --- a/src/tm_devices/drivers/pi/signal_generators/awgs/awg7kc.py +++ b/src/tm_devices/drivers/pi/awgs/awg7kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG7KCMixin -from tm_devices.drivers.pi.signal_generators.awgs.awg7kb import AWG7KB +from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/power_supply.py b/src/tm_devices/drivers/pi/power_supplies/power_supply.py index 0205d54e..5fb826be 100644 --- a/src/tm_devices/drivers/pi/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/pi/power_supplies/power_supply.py @@ -6,8 +6,8 @@ from abc import ABC from typing import Tuple, Union +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.helpers import DeviceTypes @@ -32,7 +32,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ - return SignalGenerator.expect_esr(self, esr, error_string) # type: ignore[arg-type] + return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: """Help function for getting the eventlog status. @@ -40,4 +40,4 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ - return SignalGenerator.get_eventlog_status(self) # type: ignore[arg-type] + return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py similarity index 87% rename from src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py rename to src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py index a85ee401..caa43840 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py @@ -1,5 +1,4 @@ """TekScopePC device driver module.""" -# TODO: deprecation: rename file after TekScopeSW is fully removed import pyvisa as visa @@ -50,12 +49,3 @@ def total_channels(self) -> int: def _reboot(self) -> None: """Reboot the device.""" # TODO: overwrite the reboot code here - - -# An alias for TekScopeSW driver -class TekScopeSW(TekScopePC): - """TekScopeSW device driver. - - !!! danger "Deprecated" - This device driver is deprecated, use [`TekScopePC`][tm_devices.drivers.TekScopePC] instead. - """ diff --git a/src/tm_devices/drivers/pi/signal_generators/__init__.py b/src/tm_devices/drivers/pi/signal_generators/__init__.py deleted file mode 100644 index 0dbec054..00000000 --- a/src/tm_devices/drivers/pi/signal_generators/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Signal Generators package init file.""" diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py index 9f2016b2..a7986f6e 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,10 +5,10 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -62,7 +62,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ - return SignalGenerator.expect_esr(self, esr, error_string) # type: ignore[arg-type] + return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: """Help function for getting the eventlog status. @@ -70,7 +70,7 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ - return SignalGenerator.get_eventlog_status(self) # type: ignore[arg-type] + return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] def run_script(self, script_name: str) -> None: # noqa: ARG002 """Not Implemented.""" diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py index 566b70fc..ea8b032b 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py @@ -5,10 +5,10 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -62,7 +62,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ - return SignalGenerator.expect_esr(self, esr, error_string) # type: ignore[arg-type] + return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: """Help function for getting the eventlog status. @@ -70,7 +70,7 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ - return SignalGenerator.get_eventlog_status(self) # type: ignore[arg-type] + return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] def run_script(self, script_name: str) -> None: # noqa: ARG002 """Not Implemented.""" diff --git a/tests/test_afgs.py b/tests/test_afgs.py index ceb2e937..3788176d 100644 --- a/tests/test_afgs.py +++ b/tests/test_afgs.py @@ -10,7 +10,7 @@ from conftest import UNIT_TEST_TIMEOUT from tm_devices import DeviceManager -from tm_devices.drivers.pi.signal_generators.afgs.afg import ( +from tm_devices.drivers.pi.afgs.afg import ( AFGSourceDeviceConstants, ExtendedSourceDeviceConstants, ParameterBounds, diff --git a/tests/test_awgs.py b/tests/test_awgs.py index dfc79844..b1824752 100644 --- a/tests/test_awgs.py +++ b/tests/test_awgs.py @@ -17,7 +17,7 @@ AWG70KB, AWG5200, ) -from tm_devices.drivers.pi.signal_generators.awgs.awg import ( +from tm_devices.drivers.pi.awgs.awg import ( AWGSourceDeviceConstants, ExtendedSourceDeviceConstants, ParameterBounds, diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index 759042d4..7e2ab6f6 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -17,12 +17,12 @@ import pytest from tm_devices import DeviceManager +from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.device import Device +from tm_devices.drivers.pi.afgs.afg import AFG from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.signal_generators.afgs.afg import AFG -from tm_devices.drivers.pi.signal_generators.signal_generator import SignalGenerator from tm_devices.drivers.pi.tsp_device import TSPDevice INITIAL_DEVICE_INPUT = '''import abc @@ -95,7 +95,7 @@ def _remove_added_methods() -> Iterator[None]: (Device, "already_exists"), (Scope, "custom_model_getter_scope"), (Scope, "custom_return"), - (SignalGenerator, "custom_model_getter_ss"), + (TekAFGAWG, "custom_model_getter_sg"), (AFG, "custom_model_getter_afg"), (AFG3K, "custom_model_getter_afg3k"), (AFG3KC, "custom_model_getter_afg3kc"), @@ -220,10 +220,10 @@ def custom_model_getter_scope(device: Scope, value: str) -> str: """Return the model.""" return f"Scope {device.model} {value}" - @SignalGenerator.add_method - def custom_model_getter_sg(device: SignalGenerator, value: str) -> str: + @TekAFGAWG.add_method + def custom_model_getter_sg(device: TekAFGAWG, value: str) -> str: """Return the model.""" - return f"SignalGenerator {device.model} {value}" + return f"TekAFGAWG {device.model} {value}" @AFG.add_method def custom_model_getter_afg(device: AFG, value: str) -> str: @@ -301,7 +301,7 @@ def custom_model_getter_afg3kc(device: AFG3KC, value: str) -> str: # noinspection PyUnresolvedReferences assert afg.custom_model_getter("a", "b", "c", 0.1) == "Device AFG3252C a b c 0.1" # noinspection PyUnresolvedReferences - assert afg.custom_model_getter_sg("hello") == "SignalGenerator AFG3252C hello" + assert afg.custom_model_getter_sg("hello") == "TekAFGAWG AFG3252C hello" # noinspection PyUnresolvedReferences assert afg.custom_model_getter_afg("hello") == "AFG AFG3252C hello" # noinspection PyUnresolvedReferences diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index a7cd5b53..aafe62c4 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -155,8 +155,8 @@ def test_device_method_abstraction() -> None: def test_supported_models_in_device_driver_mapping() -> None: """Verify that all supported models are in the device driver mapping and drivers init file.""" supported_models_list = sorted(x.value for x in tm_devices.SupportedModels) - device_driver_list = sorted( - tm_devices.drivers.device_driver_mapping._DEVICE_DRIVER_MODEL_STR_MAPPING # noqa: SLF001 + device_driver_list: List[str] = sorted( + tm_devices.drivers.device_driver_mapping._DEVICE_DRIVER_MODEL_STR_MAPPING # noqa: SLF001 # pyright: ignore[reportUnknownMemberType,reportUnknownArgumentType,reportAttributeAccessIssue] ) module_list: List[str] = list(tm_devices.drivers.__all__) # Remove a few non-driver items @@ -175,24 +175,3 @@ def test_tm_devices() -> None: Version(tm_devices.__version__) except InvalidVersion as exc: pytest.fail(f"{tm_devices.__version__} is not a valid version:\n{exc}") - - -def test_deprecated_tekscopesw() -> None: - """Verify the TekScopeSW deprecation warning is working.""" - with pytest.warns( - DeprecationWarning, - match="TekScopeSW is deprecated and will be removed in a future version, " - "please use TekScopePC instead.", - ): - # pylint: disable=import-outside-toplevel - # noinspection PyProtectedMember - from tm_devices.drivers import TekScopeSW # pylint: disable=no-name-in-module - assert TekScopeSW is tm_devices.drivers.TekScopePC - - # Check normal drivers - # pylint: disable=import-outside-toplevel - # noinspection PyPep8Naming - from tm_devices.drivers import MSO6 as TempMSO6 # noqa: N811 - from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 - - assert TempMSO6 is MSO6 From e37c44a6d040a84e3f5e89b9c87f7d6e7193f5ce Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 10 Oct 2024 13:34:50 -0700 Subject: [PATCH 03/52] refactor: Remove previously deprecated write_buffers() method --- CHANGELOG.md | 1 + src/tm_devices/drivers/pi/tsp_device.py | 17 ----------------- tests/test_smu.py | 7 ------- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb85aa2c..7fc08c55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ Things to be included in the next release go here. ### Removed - Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class +- Removed previously deprecated `write_buffers()` from the `TSPDevice` class. --- diff --git a/src/tm_devices/drivers/pi/tsp_device.py b/src/tm_devices/drivers/pi/tsp_device.py index 81af7f8f..a08f1e57 100644 --- a/src/tm_devices/drivers/pi/tsp_device.py +++ b/src/tm_devices/drivers/pi/tsp_device.py @@ -2,8 +2,6 @@ from __future__ import annotations -import warnings - from abc import ABC from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union @@ -262,21 +260,6 @@ def set_and_check( # noqa: PLR0913 check = "" return check - def write_buffers(self, filepath: str, *args: str, sep: str = ",") -> None: - """Export one or more of the device's buffers to the given filepath. - - Args: - filepath: A string representing the path of the file to write to. - args: The buffer name(s) to export. - sep: The delimiter used to separate data. Defaults to ",". - """ - # TODO: Deprecation - remove in next major version v3 - warnings.warn( - DeprecationWarning("Use export_buffers(...) instead."), - stacklevel=2, - ) - self.export_buffers(filepath, *args, sep=sep) - ################################################################################################ # Private Methods diff --git a/tests/test_smu.py b/tests/test_smu.py index 4cbb6319..896a7f04 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -232,13 +232,6 @@ def test_smu( # noqa: PLR0915 filepath = f"./temp_test_{sys.version_info.major}{sys.version_info.minor}.csv" - # TODO: remove this deprecation check in v3 - with mock.patch( - "tm_devices.drivers.pi.tsp_device.TSPDevice.export_buffers", mock.MagicMock() - ) as mock_obj, pytest.warns(DeprecationWarning, match=r"Use export_buffers\(\.\.\.\) instead"): - smu.write_buffers(filepath, "smua.nvbuffer1") - assert mock_obj.called - try: smu.export_buffers(filepath, "smua.nvbuffer1") assert os.path.exists(filepath) # noqa: PTH110 From dbadfcf838cfb7c6a532d8bebc05a05f686c103e Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 10 Oct 2024 15:24:24 -0700 Subject: [PATCH 04/52] refactor: Refactor the TekScope inheritance to remove methods from the TekScopePC driver that it shouldn't have. Also, some miscellaneous cleanup of outstanding TODO items. --- CHANGELOG.md | 7 +- pyproject.toml | 8 +- src/tm_devices/components/dm_config_parser.py | 11 +- src/tm_devices/drivers/device.py | 3 +- src/tm_devices/drivers/pi/pi_device.py | 2 +- .../drivers/pi/scopes/tekscope/tekscope.py | 446 +++++++++--------- .../drivers/pi/scopes/tekscope/tekscopepc.py | 14 +- .../source_measure_units/smu26xx/smu26xx.py | 1 - tests/test_config_parser.py | 9 +- tests/test_scopes.py | 6 +- 10 files changed, 275 insertions(+), 232 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc08c55..1f7d7b35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,12 +24,13 @@ Things to be included in the next release go here. ### Changed -- Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. +- BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. ### Removed -- Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class -- Removed previously deprecated `write_buffers()` from the `TSPDevice` class. +- BREAKING CHANGE: Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class +- BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPDevice` class. +- BREAKING CHANGE: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. --- diff --git a/pyproject.toml b/pyproject.toml index 5bcb4140..d5e3541e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,12 @@ requires = ["poetry-core>=1.9.0"] py-gte-39 = "sys_version_info >= (3, 9)" py-lt-39 = "sys_version_info < (3, 9)" +[tool.coverage.paths] +source = [ + ".tox/**/site-packages/tm_devices", + "src/tm_devices" +] + [tool.coverage.report] exclude_lines = [ "if TYPE_CHECKING:", @@ -163,7 +169,6 @@ good-names = ["_"] [tool.pylint.design] max-args = 7 -max-parents = 20 [tool.pylint.main] fail-under = 10.0 @@ -218,6 +223,7 @@ disable = [ "raise-missing-from", # caught by ruff "redefined-builtin", # caught by ruff "suppressed-message", # allowed + "too-many-ancestors", # allowed "too-many-arguments", # caught by ruff "too-many-branches", # caught by ruff "too-many-lines", # not necessary to check for diff --git a/src/tm_devices/components/dm_config_parser.py b/src/tm_devices/components/dm_config_parser.py index 53ec8b2b..7c515c6e 100644 --- a/src/tm_devices/components/dm_config_parser.py +++ b/src/tm_devices/components/dm_config_parser.py @@ -143,7 +143,7 @@ def options(self) -> DMConfigOptions: ################################################################################################ # Public Methods ################################################################################################ - def add_device( # noqa: PLR0913 + def add_device( # noqa: PLR0913 # pylint: disable=too-many-locals self, *, device_type: Union[DeviceTypes, str], @@ -209,7 +209,14 @@ def add_device( # noqa: PLR0913 # Validate the connection is unique for dev_entry in self.__devices.values(): - if new_entry.get_address_expression() == dev_entry.get_address_expression(): + new_entry_potential_hostname = new_entry.address.split(".")[0] + dev_entry_potential_hostname = dev_entry.address.split(".")[0] + if (new_entry.get_address_expression() == dev_entry.get_address_expression()) or ( + new_entry_potential_hostname == dev_entry_potential_hostname + and not ( + new_entry_potential_hostname.isdigit() or dev_entry_potential_hostname.isdigit() + ) + ): message = ( f"Found duplicate addresses in the " f'configuration for "{new_entry.get_address_expression()}":' diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 7fb1de6a..623ceb16 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -435,6 +435,7 @@ def has_errors(self) -> bool: Returns: A boolean indicating if any errors were found in the device. """ + # TODO: nfelt14: update this with new behavior return self._has_errors() @final @@ -504,7 +505,7 @@ def reboot(self, quiet_period: int = 0) -> bool: ) return rebooted - # TODO: move to mixin + # TODO: nfelt14: move to mixin @final def verify_values( self, diff --git a/src/tm_devices/drivers/pi/pi_device.py b/src/tm_devices/drivers/pi/pi_device.py index a87d6649..e23d972f 100644 --- a/src/tm_devices/drivers/pi/pi_device.py +++ b/src/tm_devices/drivers/pi/pi_device.py @@ -110,7 +110,7 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ - # TODO: in v3 - This will be deprecated by the has_errors + # TODO: nfelt14: in v3 - This will be deprecated by the has_errors def turn_channel_off(self, channel_str: str) -> None: """Turn off the specified channel. diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py index cf574269..1a315194 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py @@ -69,11 +69,9 @@ class TekProbeData: probe_id_type: str = "1X" -# pylint: disable=too-many-public-methods -# TODO: Move signal generator mixin to different abstract class, so that TekScopePC -# does not inherit the IAFG. -@family_base_class -class TekScope( +# NOTE: This is no longer considered a family_base_class due to the +# differences between the physical scope hardware devices and the TekScopePC device. +class AbstractTekScope( # pylint: disable=too-many-public-methods Scope, BusMixin, HistogramMixin, @@ -82,7 +80,6 @@ class TekScope( MeasurementsMixin, ReferenceMixin, SearchMixin, - SignalGeneratorMixin, PlotMixin, PowerMixin, USBDrivesMixin, @@ -128,6 +125,7 @@ def __init__( def channel(self) -> "MappingProxyType[str, TekScopeChannel]": """Mapping of channel names to any detectable properties, attributes, and settings.""" # TODO: overwrite in MSO2 driver, would remove need for try-except + # https://github.com/tektronix/tm_devices/issues/324 channel_map: Dict[str, TekScopeChannel] = {} with self.temporary_verbose(False) and self.temporary_visa_timeout( @@ -175,11 +173,6 @@ def channel(self) -> "MappingProxyType[str, TekScopeChannel]": self.set_and_check(":VERBose", old_pi_verbosity) return MappingProxyType(channel_map) - @cached_property - def internal_afg(self) -> "InternalAFGChannel": - """The scope's internal AFG.""" - return InternalAFGChannel(self) - @property def commands( self, @@ -215,11 +208,6 @@ def num_dig_bits_in_ch(self) -> int: # TODO: should be part of self.channel return self._num_dig_bits_in_ch - @property - def source_device_constants(self) -> TekScopeSourceDeviceConstants: - """Return the device constants.""" - return self._DEVICE_CONSTANTS - @cached_property def total_channels(self) -> int: """Return the total number of channels (all types).""" @@ -386,207 +374,6 @@ def curve_query( # noqa: PLR0912,C901 return wfm_data # return list of frames - def generate_function( # noqa: PLR0913 # pyright: ignore[reportIncompatibleMethodOverride] - self, - frequency: float, - function: SignalGeneratorFunctionsIAFG, - amplitude: float, - offset: float, - channel: str = "all", - output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, - termination: Literal["FIFTY", "HIGHZ"] = "FIFTY", - duty_cycle: float = 50.0, - polarity: Literal["NORMAL", "INVERTED"] = "NORMAL", - symmetry: float = 50.0, - ) -> None: - """Generate a predefined waveform given the following parameters. - - Args: - frequency: The frequency of the waveform to generate. - function: The function to generate. - amplitude: The amplitude of the signal to generate. - offset: The offset of the signal to generate. - channel: Unused in this class. - output_signal_path: Unused in this class. - termination: The impedance to set the channel to. - duty_cycle: The duty cycle to set the signal to. - polarity: Unused in this class. - symmetry: The symmetry to set the signal to, only applicable to certain functions. - """ - del polarity, channel, output_signal_path # these aren't used - self._validate_generated_function(function) - # Turn off the Internal AFG - self.internal_afg.set_state(0) - self.internal_afg.set_function_properties( - frequency=frequency, - function=function, - amplitude=amplitude, - offset=offset, - burst_count=0, - termination=termination, - duty_cycle=duty_cycle, - symmetry=symmetry, - ) - # Turn on the Internal AFG - self.internal_afg.set_state(1) - # Don't check for errors as any measurement with low amplitude will generate an error - - def setup_burst( # noqa: PLR0913 # pyright: ignore[reportIncompatibleMethodOverride] - self, - frequency: float, - function: SignalGeneratorFunctionsIAFG, - amplitude: float, - offset: float, - burst_count: int, - channel: str = "all", - output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, - termination: Literal["FIFTY", "HIGHZ"] = "FIFTY", - duty_cycle: float = 50.0, - polarity: Literal["NORMAL", "INVERTED"] = "NORMAL", - symmetry: float = 50.0, - ) -> None: - """Set up the Internal AFG for sending a burst of waveforms given the following parameters. - - Args: - frequency: The frequency of the waveform to generate. - function: The function to generate. - amplitude: The amplitude of the signal to generate. - offset: The offset of the signal to generate. - burst_count: The number of wavelengths to be generated. - channel: Unused in this class. - output_signal_path: Unused in this class. - termination: The impedance to set the channel to. - duty_cycle: The duty cycle to set the signal to. - polarity: Unused in this class. - symmetry: The symmetry to set the signal to, only applicable to certain functions. - """ - del polarity, channel, output_signal_path # these aren't used - self._validate_generated_function(function) - self.internal_afg.set_function_properties( - frequency=frequency, - function=function, - amplitude=amplitude, - offset=offset, - burst_count=burst_count, - termination=termination, - duty_cycle=duty_cycle, - symmetry=symmetry, - ) - - def generate_burst(self) -> None: - """Generate a burst of waveforms by forcing trigger.""" - self.internal_afg.trigger_burst() - # Don't check for errors as any measurement with low amplitude will generate an error - - # pylint: disable=too-many-locals - def get_waveform_constraints( # pyright: ignore[reportIncompatibleMethodOverride] - self, - function: Optional[SignalGeneratorFunctionsIAFG] = None, - waveform_length: Optional[int] = None, - frequency: Optional[float] = None, - output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, - load_impedance: LoadImpedanceAFG = LoadImpedanceAFG.HIGHZ, - ) -> ExtendedSourceDeviceConstants: - """Get the constraints that restrict the waveform to certain parameter ranges. - - Args: - function: The function that needs to be generated. - waveform_length: Unused in this class. - frequency: The frequency of the waveform that needs to be generated. - output_signal_path: Unused in this class. - load_impedance: The suggested impedance on the source. - - Returns: - A Named Tuple containing a set of parameters and their restricted bounds. - """ - del output_signal_path, waveform_length - - if not function: - msg = "IAFGs must have a function defined." - raise ValueError(msg) - - base_frequency_low = 100.0e-3 - base_frequency_high = 50.0e6 * self._get_driver_specific_multipliers() - - load_impedance_multiplier = 1.0 if load_impedance == LoadImpedanceAFG.HIGHZ else 0.5 - - base_amplitude_low = 20.0e-3 - base_amplitude_high = 5.0 - - square_duty_cycle_range = ParameterBounds(lower=10.0, upper=90.0) - pulse_width_range = None - # handle logic to constrain limits of duty cycle and pulse width range due to frequency - if frequency is not None: - max_duty = 90.0 - min_duty = 10.0 - max_square_pulse_freq = base_frequency_high / 2 - # limit to valid range for calcs, otherwise values are outside valid ranges - calc_freq = max((base_amplitude_high, min((max_square_pulse_freq, frequency)))) - # above 10MHz (or 20MHz), then SQUARE duty cycle and PULSE width ranges get coerced - if frequency > (duty_cycle_coercion_start_freq := base_frequency_high / 5): - # 15 percent change over the difference between max frequency and start of coercion - coercion_slope = 15.0 / (max_square_pulse_freq - duty_cycle_coercion_start_freq) - max_duty = 90.0 - (coercion_slope * (calc_freq - duty_cycle_coercion_start_freq)) - min_duty = 10.0 + (coercion_slope * (calc_freq - duty_cycle_coercion_start_freq)) - # one decimal place of accuracy as percentage, - # and uses floor/ceil on the max/min to stay in valid zone - square_duty_cycle_range = ParameterBounds( - lower=math.ceil(min_duty * 10) / 10, upper=math.floor(max_duty * 10) / 10 - ) - # TODO: There is an edge case where the IAFG period doesn't exactly equal 1/frequency - # this can cause the pulse width max and min to be outside valid range by tiny bit, - # workaround is to query actual period time and set frequency=1/ - # limited to 0.1ns resolution regardless of frequency - # also uses floor/ceil to stay in valid zone - pulse_width_range = ParameterBounds( - lower=math.ceil(min_duty / 100 * 1e10 / calc_freq) / 1e10, - upper=math.floor(max_duty / 100 * 1e10 / calc_freq) / 1e10, - ) - amplitude_multiplier = 1 - - if function in {SignalGeneratorFunctionsIAFG.SIN}: - frequency_multiplier = 1 - elif function in { - SignalGeneratorFunctionsIAFG.SQUARE, - SignalGeneratorFunctionsIAFG.PULSE, - SignalGeneratorFunctionsIAFG.ARBITRARY, - }: - frequency_multiplier = 0.5 - elif function in {SignalGeneratorFunctionsIAFG.SINC}: - frequency_multiplier = 0.04 - amplitude_multiplier = 0.6 - elif function in { - SignalGeneratorFunctionsIAFG.RAMP, - SignalGeneratorFunctionsIAFG.CARDIAC, - }: - frequency_multiplier = 0.01 - else: - frequency_multiplier = 0.1 - amplitude_multiplier = 0.5 if function != SignalGeneratorFunctionsIAFG.LORENTZ else 0.48 - - frequency_range = ParameterBounds( - lower=base_frequency_low, upper=base_frequency_high * frequency_multiplier - ) - amplitude_range = ParameterBounds( - lower=base_amplitude_low * load_impedance_multiplier, - upper=base_amplitude_high * amplitude_multiplier * load_impedance_multiplier, - ) - offset_range = ParameterBounds( - lower=-2.5 * load_impedance_multiplier, upper=2.5 * load_impedance_multiplier - ) - # RAMP symmetry range never changes with frequency - ramp_symmetry_range = ParameterBounds(lower=0.0, upper=100.0) - sample_rate_range = ParameterBounds(lower=250.0e6, upper=250.0e6) - return ExtendedSourceDeviceConstants( - amplitude_range=amplitude_range, - frequency_range=frequency_range, - offset_range=offset_range, - sample_rate_range=sample_rate_range, - square_duty_cycle_range=square_duty_cycle_range, - pulse_width_range=pulse_width_range, - ramp_symmetry_range=ramp_symmetry_range, - ) - def recall_reference(self, reference_path: str, ref_number: Union[int, str]) -> None: """Recall a reference waveform file. @@ -883,6 +670,231 @@ def _set_channel_display_state( self.set_and_check(f":DISPLAY:WAVEVIEW:{channel_str}:STATE", int(state)) +@family_base_class +class TekScope(SignalGeneratorMixin, AbstractTekScope): + """A physical TekScope device. + + Physical TekScope devices all come with an Internal AFG. + """ + + ################################################################################################ + # Properties + ################################################################################################ + @property + def source_device_constants(self) -> TekScopeSourceDeviceConstants: + """Return the device constants.""" + return self._DEVICE_CONSTANTS + + @cached_property + def internal_afg(self) -> "InternalAFGChannel": + """The scope's internal AFG.""" + return InternalAFGChannel(self) + + ################################################################################################ + # Public Methods + ################################################################################################ + def generate_function( # noqa: PLR0913 # pyright: ignore[reportIncompatibleMethodOverride] + self, + frequency: float, + function: SignalGeneratorFunctionsIAFG, + amplitude: float, + offset: float, + channel: str = "all", + output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, + termination: Literal["FIFTY", "HIGHZ"] = "FIFTY", + duty_cycle: float = 50.0, + polarity: Literal["NORMAL", "INVERTED"] = "NORMAL", + symmetry: float = 50.0, + ) -> None: + """Generate a predefined waveform given the following parameters. + + Args: + frequency: The frequency of the waveform to generate. + function: The function to generate. + amplitude: The amplitude of the signal to generate. + offset: The offset of the signal to generate. + channel: Unused in this class. + output_signal_path: Unused in this class. + termination: The impedance to set the channel to. + duty_cycle: The duty cycle to set the signal to. + polarity: Unused in this class. + symmetry: The symmetry to set the signal to, only applicable to certain functions. + """ + del polarity, channel, output_signal_path # these aren't used + self._validate_generated_function(function) + # Turn off the Internal AFG + self.internal_afg.set_state(0) + self.internal_afg.set_function_properties( + frequency=frequency, + function=function, + amplitude=amplitude, + offset=offset, + burst_count=0, + termination=termination, + duty_cycle=duty_cycle, + symmetry=symmetry, + ) + # Turn on the Internal AFG + self.internal_afg.set_state(1) + # Don't check for errors as any measurement with low amplitude will generate an error + + def setup_burst( # noqa: PLR0913 # pyright: ignore[reportIncompatibleMethodOverride] + self, + frequency: float, + function: SignalGeneratorFunctionsIAFG, + amplitude: float, + offset: float, + burst_count: int, + channel: str = "all", + output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, + termination: Literal["FIFTY", "HIGHZ"] = "FIFTY", + duty_cycle: float = 50.0, + polarity: Literal["NORMAL", "INVERTED"] = "NORMAL", + symmetry: float = 50.0, + ) -> None: + """Set up the Internal AFG for sending a burst of waveforms given the following parameters. + + Args: + frequency: The frequency of the waveform to generate. + function: The function to generate. + amplitude: The amplitude of the signal to generate. + offset: The offset of the signal to generate. + burst_count: The number of wavelengths to be generated. + channel: Unused in this class. + output_signal_path: Unused in this class. + termination: The impedance to set the channel to. + duty_cycle: The duty cycle to set the signal to. + polarity: Unused in this class. + symmetry: The symmetry to set the signal to, only applicable to certain functions. + """ + del polarity, channel, output_signal_path # these aren't used + self._validate_generated_function(function) + self.internal_afg.set_function_properties( + frequency=frequency, + function=function, + amplitude=amplitude, + offset=offset, + burst_count=burst_count, + termination=termination, + duty_cycle=duty_cycle, + symmetry=symmetry, + ) + + def generate_burst(self) -> None: + """Generate a burst of waveforms by forcing trigger.""" + self.internal_afg.trigger_burst() + # Don't check for errors as any measurement with low amplitude will generate an error + + # pylint: disable=too-many-locals + def get_waveform_constraints( # pyright: ignore[reportIncompatibleMethodOverride] + self, + function: Optional[SignalGeneratorFunctionsIAFG] = None, + waveform_length: Optional[int] = None, + frequency: Optional[float] = None, + output_signal_path: Optional[SignalGeneratorOutputPathsBase] = None, + load_impedance: LoadImpedanceAFG = LoadImpedanceAFG.HIGHZ, + ) -> ExtendedSourceDeviceConstants: + """Get the constraints that restrict the waveform to certain parameter ranges. + + Args: + function: The function that needs to be generated. + waveform_length: Unused in this class. + frequency: The frequency of the waveform that needs to be generated. + output_signal_path: Unused in this class. + load_impedance: The suggested impedance on the source. + + Returns: + A Named Tuple containing a set of parameters and their restricted bounds. + """ + del output_signal_path, waveform_length + + if not function: + msg = "IAFGs must have a function defined." + raise ValueError(msg) + + base_frequency_low = 100.0e-3 + base_frequency_high = 50.0e6 * self._get_driver_specific_multipliers() + + load_impedance_multiplier = 1.0 if load_impedance == LoadImpedanceAFG.HIGHZ else 0.5 + + base_amplitude_low = 20.0e-3 + base_amplitude_high = 5.0 + + square_duty_cycle_range = ParameterBounds(lower=10.0, upper=90.0) + pulse_width_range = None + # handle logic to constrain limits of duty cycle and pulse width range due to frequency + if frequency is not None: + max_duty = 90.0 + min_duty = 10.0 + max_square_pulse_freq = base_frequency_high / 2 + # limit to valid range for calcs, otherwise values are outside valid ranges + calc_freq = max((base_amplitude_high, min((max_square_pulse_freq, frequency)))) + # above 10MHz (or 20MHz), then SQUARE duty cycle and PULSE width ranges get coerced + if frequency > (duty_cycle_coercion_start_freq := base_frequency_high / 5): + # 15 percent change over the difference between max frequency and start of coercion + coercion_slope = 15.0 / (max_square_pulse_freq - duty_cycle_coercion_start_freq) + max_duty = 90.0 - (coercion_slope * (calc_freq - duty_cycle_coercion_start_freq)) + min_duty = 10.0 + (coercion_slope * (calc_freq - duty_cycle_coercion_start_freq)) + # one decimal place of accuracy as percentage, + # and uses floor/ceil on the max/min to stay in valid zone + square_duty_cycle_range = ParameterBounds( + lower=math.ceil(min_duty * 10) / 10, upper=math.floor(max_duty * 10) / 10 + ) + # NOTE: There is an edge case where the IAFG period doesn't exactly equal 1/frequency + # this can cause the pulse width max and min to be outside valid range by tiny bit, + # workaround is to query actual period time and set frequency=1/ + # limited to 0.1ns resolution regardless of frequency + # also uses floor/ceil to stay in valid zone + pulse_width_range = ParameterBounds( + lower=math.ceil(min_duty / 100 * 1e10 / calc_freq) / 1e10, + upper=math.floor(max_duty / 100 * 1e10 / calc_freq) / 1e10, + ) + amplitude_multiplier = 1 + + if function in {SignalGeneratorFunctionsIAFG.SIN}: + frequency_multiplier = 1 + elif function in { + SignalGeneratorFunctionsIAFG.SQUARE, + SignalGeneratorFunctionsIAFG.PULSE, + SignalGeneratorFunctionsIAFG.ARBITRARY, + }: + frequency_multiplier = 0.5 + elif function in {SignalGeneratorFunctionsIAFG.SINC}: + frequency_multiplier = 0.04 + amplitude_multiplier = 0.6 + elif function in { + SignalGeneratorFunctionsIAFG.RAMP, + SignalGeneratorFunctionsIAFG.CARDIAC, + }: + frequency_multiplier = 0.01 + else: + frequency_multiplier = 0.1 + amplitude_multiplier = 0.5 if function != SignalGeneratorFunctionsIAFG.LORENTZ else 0.48 + + frequency_range = ParameterBounds( + lower=base_frequency_low, upper=base_frequency_high * frequency_multiplier + ) + amplitude_range = ParameterBounds( + lower=base_amplitude_low * load_impedance_multiplier, + upper=base_amplitude_high * amplitude_multiplier * load_impedance_multiplier, + ) + offset_range = ParameterBounds( + lower=-2.5 * load_impedance_multiplier, upper=2.5 * load_impedance_multiplier + ) + # RAMP symmetry range never changes with frequency + ramp_symmetry_range = ParameterBounds(lower=0.0, upper=100.0) + sample_rate_range = ParameterBounds(lower=250.0e6, upper=250.0e6) + return ExtendedSourceDeviceConstants( + amplitude_range=amplitude_range, + frequency_range=frequency_range, + offset_range=offset_range, + sample_rate_range=sample_rate_range, + square_duty_cycle_range=square_duty_cycle_range, + pulse_width_range=pulse_width_range, + ramp_symmetry_range=ramp_symmetry_range, + ) + + @dataclass class TekScopeChannel: """Scope channel information.""" diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py index caa43840..5b163111 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py @@ -1,16 +1,20 @@ """TekScopePC device driver module.""" +import warnings + import pyvisa as visa from tm_devices.commands import TekScopePCMixin -from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope +from tm_devices.drivers.device import family_base_class +from tm_devices.drivers.pi.scopes.tekscope.tekscope import AbstractTekScope from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class TekScopePC(TekScopePCMixin, TekScope): # pyright: ignore[reportIncompatibleMethodOverride] +@family_base_class +class TekScopePC(TekScopePCMixin, AbstractTekScope): # pyright: ignore[reportIncompatibleMethodOverride] """TekScopePC device driver.""" ################################################################################################ @@ -48,4 +52,8 @@ def total_channels(self) -> int: ################################################################################################ def _reboot(self) -> None: """Reboot the device.""" - # TODO: overwrite the reboot code here + warnings.warn( + f"Rebooting is not supported for the {self.__class__.__name__} driver, " + f"{self._name_and_alias} will not be rebooted.", + stacklevel=3, + ) diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py index 49a28861..4cc72fcf 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py @@ -83,7 +83,6 @@ def get_eventlog_status(self) -> Tuple[bool, str]: allev_result_str = '0,"No events to report - queue empty"' # instrument returns exponential numbers so converting to float before int - # TODO: switch to auto-generated command once SMU2601B-PULSE is ready if not (err_count := int(float(self.query("print(errorqueue.count)")))): result_allev = True else: diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 82a643b8..15f70357 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -267,7 +267,6 @@ def test_file_config_non_default_path( ), f"\nDevice dictionaries don't match:\n{expected_devices}\n{config_2.devices}" -# TODO: test with duplicated device address, one with domain name, one without @pytest.mark.parametrize( ("os_environ", "expected_exception"), [ @@ -289,6 +288,14 @@ def test_file_config_non_default_path( }, ValueError, ), + # test with duplicate device addresses, one with domain name, one without + ( + { + "TM_DEVICES": "device_type=SCOPE,address=MSO54-123456,alias=foo1" + "~~~device_type=SCOPE,address=MSO54-123456.unit.test.domain,alias=foo2" + }, + ValueError, + ), # test with invalid entry ( {"TM_DEVICES": "device_type=SCOPE,address#MSO54-123456,connection_type==TCPIP"}, diff --git a/tests/test_scopes.py b/tests/test_scopes.py index dec294d3..d3af43b3 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -17,10 +17,10 @@ from tm_devices import DeviceManager, register_additional_usbtmc_mapping from tm_devices.drivers import MSO2, MSO2KB, MSO5, MSO5B, MSO6, MSO70KDX, TekScopePC from tm_devices.drivers.pi.scopes.tekscope.tekscope import ( + AbstractTekScope, ExtendedSourceDeviceConstants, ParameterBounds, TekProbeData, - TekScope, TekScopeChannel, ) from tm_devices.helpers.constants_and_dataclasses import TEKTRONIX_USBTMC_VENDOR_ID @@ -46,7 +46,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 scope: MSO5 = device_manager.add_scope("MSO56-SERIAL1", alias="mso56", connection_type="USB") # cheeky super() call for coverage of USB connection type on Device's hostname implementation - assert super(TekScope, scope).hostname == "" + assert super(AbstractTekScope, scope).hostname == "" # clear cached property so that the scope instance will use the proper implementation # noinspection PyPropertyAccess del scope.hostname @@ -486,6 +486,8 @@ def test_tekscopepc(device_manager: DeviceManager) -> None: assert scope.usb_drives == ("E:",) assert scope.ip_address == "" assert scope.total_channels == 8 + with pytest.warns(UserWarning, match="Rebooting is not supported for the TekScopePC driver."): + scope.reboot() def test_tekscope2k(device_manager: DeviceManager, tmp_path: pathlib.Path) -> None: From 3cb5734fa5a6c5428a777704a88141361f042a11 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 10:04:13 -0700 Subject: [PATCH 05/52] refactor: Moved the REST API class into a mixin. Also moved other mixins around into subfolders to organize the mixins by type. --- src/tm_devices/device_manager.py | 4 ++-- src/tm_devices/driver_mixins/__init__.py | 6 ------ .../abstract_device_functionality/__init__.py | 1 + .../analysis_object_mixins.py | 0 .../licensed_mixin.py | 0 .../signal_generator_mixin.py | 2 +- .../usb_drives_mixin.py | 0 src/tm_devices/driver_mixins/device_control/__init__.py | 1 + .../device_control}/rest_api_device.py | 4 ++-- .../driver_mixins/shared_implementations/__init__.py | 1 + .../class_extension_mixin.py | 0 .../{ => shared_implementations}/tek_afg_awg_mixin.py | 6 ++++-- src/tm_devices/drivers/__init__.py | 2 +- src/tm_devices/drivers/api/__init__.py | 1 - src/tm_devices/drivers/api/api_device.py | 9 --------- src/tm_devices/drivers/api/rest_api/__init__.py | 1 - src/tm_devices/drivers/device.py | 2 +- src/tm_devices/drivers/device_driver_mapping.py | 2 +- src/tm_devices/drivers/device_type_classes.py | 2 +- .../{api/rest_api => }/margin_testers/__init__.py | 0 .../{api/rest_api => }/margin_testers/margin_tester.py | 2 +- .../drivers/{api/rest_api => }/margin_testers/tmt4.py | 2 +- src/tm_devices/drivers/pi/afgs/afg.py | 4 ++-- src/tm_devices/drivers/pi/awgs/awg.py | 6 +++--- src/tm_devices/drivers/pi/power_supplies/power_supply.py | 2 +- src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py | 8 ++++---- .../pi/source_measure_units/smu24xx/smu24xx_standard.py | 2 +- .../drivers/pi/source_measure_units/smu60xx/smu6xxx.py | 2 +- tests/mock_server.py | 2 +- tests/test_extension_mixin.py | 2 +- tests/test_margin_testers.py | 2 +- tests/test_rest_api_device.py | 5 ++++- 32 files changed, 37 insertions(+), 46 deletions(-) create mode 100644 src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py rename src/tm_devices/driver_mixins/{ => abstract_device_functionality}/analysis_object_mixins.py (100%) rename src/tm_devices/driver_mixins/{ => abstract_device_functionality}/licensed_mixin.py (100%) rename src/tm_devices/driver_mixins/{ => abstract_device_functionality}/signal_generator_mixin.py (98%) rename src/tm_devices/driver_mixins/{ => abstract_device_functionality}/usb_drives_mixin.py (100%) create mode 100644 src/tm_devices/driver_mixins/device_control/__init__.py rename src/tm_devices/{drivers/api/rest_api => driver_mixins/device_control}/rest_api_device.py (99%) create mode 100644 src/tm_devices/driver_mixins/shared_implementations/__init__.py rename src/tm_devices/driver_mixins/{ => shared_implementations}/class_extension_mixin.py (100%) rename src/tm_devices/driver_mixins/{ => shared_implementations}/tek_afg_awg_mixin.py (95%) delete mode 100644 src/tm_devices/drivers/api/__init__.py delete mode 100644 src/tm_devices/drivers/api/api_device.py delete mode 100644 src/tm_devices/drivers/api/rest_api/__init__.py rename src/tm_devices/drivers/{api/rest_api => }/margin_testers/__init__.py (100%) rename src/tm_devices/drivers/{api/rest_api => }/margin_testers/margin_tester.py (98%) rename src/tm_devices/drivers/{api/rest_api => }/margin_testers/tmt4.py (98%) diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index 342f2b2f..5bddc417 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -17,14 +17,14 @@ from typing_extensions import TypeVar from tm_devices.components import DMConfigParser -from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester -from tm_devices.drivers.api.rest_api.rest_api_device import RESTAPIDevice +from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice from tm_devices.drivers.device import Device # noinspection PyProtectedMember from tm_devices.drivers.device_driver_mapping import ( _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] ) +from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.drivers.pi.afgs.afg import AFG from tm_devices.drivers.pi.awgs.awg import AWG from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( diff --git a/src/tm_devices/driver_mixins/__init__.py b/src/tm_devices/driver_mixins/__init__.py index d90c1a13..4eb97310 100644 --- a/src/tm_devices/driver_mixins/__init__.py +++ b/src/tm_devices/driver_mixins/__init__.py @@ -1,7 +1 @@ """Mixin classes for use in the device drivers.""" - -from tm_devices.driver_mixins.signal_generator_mixin import SignalGeneratorMixin - -__all__ = [ - "SignalGeneratorMixin", -] diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py b/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py new file mode 100644 index 00000000..e079c441 --- /dev/null +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py @@ -0,0 +1 @@ +"""Mixins that define abstract methods for functionality that device drivers must implement.""" diff --git a/src/tm_devices/driver_mixins/analysis_object_mixins.py b/src/tm_devices/driver_mixins/abstract_device_functionality/analysis_object_mixins.py similarity index 100% rename from src/tm_devices/driver_mixins/analysis_object_mixins.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/analysis_object_mixins.py diff --git a/src/tm_devices/driver_mixins/licensed_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py similarity index 100% rename from src/tm_devices/driver_mixins/licensed_mixin.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py diff --git a/src/tm_devices/driver_mixins/signal_generator_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py similarity index 98% rename from src/tm_devices/driver_mixins/signal_generator_mixin.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py index a45ee9c9..42fc3dd3 100644 --- a/src/tm_devices/driver_mixins/signal_generator_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Literal, NamedTuple, Optional, Type, TypeVar -from tm_devices.driver_mixins.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers.enums import ( LoadImpedanceAFG, SignalGeneratorFunctionBase, diff --git a/src/tm_devices/driver_mixins/usb_drives_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py similarity index 100% rename from src/tm_devices/driver_mixins/usb_drives_mixin.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py diff --git a/src/tm_devices/driver_mixins/device_control/__init__.py b/src/tm_devices/driver_mixins/device_control/__init__.py new file mode 100644 index 00000000..583f2c41 --- /dev/null +++ b/src/tm_devices/driver_mixins/device_control/__init__.py @@ -0,0 +1 @@ +"""Mixins that contain implementations of methods of device control (SCPI, TSP, REST, etc.).""" diff --git a/src/tm_devices/drivers/api/rest_api/rest_api_device.py b/src/tm_devices/driver_mixins/device_control/rest_api_device.py similarity index 99% rename from src/tm_devices/drivers/api/rest_api/rest_api_device.py rename to src/tm_devices/driver_mixins/device_control/rest_api_device.py index 92df2f11..651948bc 100644 --- a/src/tm_devices/drivers/api/rest_api/rest_api_device.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_device.py @@ -9,11 +9,11 @@ import requests -from tm_devices.drivers.api.api_device import APIDevice +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceConfigEntry, print_with_timestamp, SupportedRequestTypes -class RESTAPIDevice(APIDevice, ABC): +class RESTAPIDevice(Device, ABC): """Base REST Application Programming Interface (API) device driver.""" API_VERSIONS: Mapping[int, str] = MappingProxyType({}) diff --git a/src/tm_devices/driver_mixins/shared_implementations/__init__.py b/src/tm_devices/driver_mixins/shared_implementations/__init__.py new file mode 100644 index 00000000..414a63bd --- /dev/null +++ b/src/tm_devices/driver_mixins/shared_implementations/__init__.py @@ -0,0 +1 @@ +"""Mixins that contain shared implementations of code used across multiple device families.""" diff --git a/src/tm_devices/driver_mixins/class_extension_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py similarity index 100% rename from src/tm_devices/driver_mixins/class_extension_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py diff --git a/src/tm_devices/driver_mixins/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py similarity index 95% rename from src/tm_devices/driver_mixins/tek_afg_awg_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index b72b9dcf..4088b5ce 100644 --- a/src/tm_devices/driver_mixins/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -3,8 +3,10 @@ from abc import ABC from typing import Tuple, Union -from tm_devices.driver_mixins.class_extension_mixin import ExtendableMixin -from tm_devices.driver_mixins.signal_generator_mixin import SignalGeneratorMixin +from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( + SignalGeneratorMixin, +) +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.helpers import print_with_timestamp diff --git a/src/tm_devices/drivers/__init__.py b/src/tm_devices/drivers/__init__.py index 46456514..0740a865 100644 --- a/src/tm_devices/drivers/__init__.py +++ b/src/tm_devices/drivers/__init__.py @@ -103,7 +103,7 @@ from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6514 import SMU6514 from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6517b import SMU6517B from tm_devices.drivers.pi.systems_switches.ss3706a import SS3706A -from tm_devices.drivers.api.rest_api.margin_testers.tmt4 import TMT4 +from tm_devices.drivers.margin_testers.tmt4 import TMT4 __all__ = [ diff --git a/src/tm_devices/drivers/api/__init__.py b/src/tm_devices/drivers/api/__init__.py deleted file mode 100644 index 476b7a65..00000000 --- a/src/tm_devices/drivers/api/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Application Programming Interface (API) drivers.""" diff --git a/src/tm_devices/drivers/api/api_device.py b/src/tm_devices/drivers/api/api_device.py deleted file mode 100644 index 65ca692b..00000000 --- a/src/tm_devices/drivers/api/api_device.py +++ /dev/null @@ -1,9 +0,0 @@ -"""Base Application Programming Interface (API) device driver module.""" - -from abc import ABC - -from tm_devices.drivers.device import Device - - -class APIDevice(Device, ABC): - """Base Application Programming Interface (API) device driver.""" diff --git a/src/tm_devices/drivers/api/rest_api/__init__.py b/src/tm_devices/drivers/api/rest_api/__init__.py deleted file mode 100644 index d681bbf7..00000000 --- a/src/tm_devices/drivers/api/rest_api/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""REST API device drivers.""" diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 623ceb16..9cf3a28d 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -18,7 +18,7 @@ from packaging.version import Version -from tm_devices.driver_mixins.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import ( check_network_connection, check_port_connection, diff --git a/src/tm_devices/drivers/device_driver_mapping.py b/src/tm_devices/drivers/device_driver_mapping.py index e7eb38b9..67311319 100644 --- a/src/tm_devices/drivers/device_driver_mapping.py +++ b/src/tm_devices/drivers/device_driver_mapping.py @@ -3,8 +3,8 @@ from types import MappingProxyType from typing import Mapping, Type -from tm_devices.drivers.api.rest_api.margin_testers.tmt4 import TMT4 from tm_devices.drivers.device import Device +from tm_devices.drivers.margin_testers.tmt4 import TMT4 from tm_devices.drivers.pi.afgs.afg3k import AFG3K from tm_devices.drivers.pi.afgs.afg3kb import AFG3KB from tm_devices.drivers.pi.afgs.afg3kc import AFG3KC diff --git a/src/tm_devices/drivers/device_type_classes.py b/src/tm_devices/drivers/device_type_classes.py index 42f8d2d8..0767ba78 100644 --- a/src/tm_devices/drivers/device_type_classes.py +++ b/src/tm_devices/drivers/device_type_classes.py @@ -2,8 +2,8 @@ from typing import Final, Tuple, Type -from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester from tm_devices.drivers.device import Device +from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.drivers.pi.afgs.afg import AFG from tm_devices.drivers.pi.awgs.awg import AWG from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( diff --git a/src/tm_devices/drivers/api/rest_api/margin_testers/__init__.py b/src/tm_devices/drivers/margin_testers/__init__.py similarity index 100% rename from src/tm_devices/drivers/api/rest_api/margin_testers/__init__.py rename to src/tm_devices/drivers/margin_testers/__init__.py diff --git a/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py similarity index 98% rename from src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py rename to src/tm_devices/drivers/margin_testers/margin_tester.py index 846bc8d1..b157cc63 100644 --- a/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -9,7 +9,7 @@ from packaging.version import Version from requests.structures import CaseInsensitiveDict -from tm_devices.drivers.api.rest_api.rest_api_device import RESTAPIDevice +from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry, DeviceTypes diff --git a/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py b/src/tm_devices/drivers/margin_testers/tmt4.py similarity index 98% rename from src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py rename to src/tm_devices/drivers/margin_testers/tmt4.py index e30deb4d..38d778de 100644 --- a/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py +++ b/src/tm_devices/drivers/margin_testers/tmt4.py @@ -7,7 +7,7 @@ from packaging.version import Version -from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester +from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/afgs/afg.py b/src/tm_devices/drivers/pi/afgs/afg.py index c066ba22..de17bdb5 100644 --- a/src/tm_devices/drivers/pi/afgs/afg.py +++ b/src/tm_devices/drivers/pi/afgs/afg.py @@ -7,12 +7,12 @@ from types import MappingProxyType from typing import Dict, Literal, Optional, Tuple, Type, Union -from tm_devices.driver_mixins.signal_generator_mixin import ( +from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.base_afg_source_channel import BaseAFGSourceChannel from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG diff --git a/src/tm_devices/drivers/pi/awgs/awg.py b/src/tm_devices/drivers/pi/awgs/awg.py index b0094ec7..8d873eb6 100644 --- a/src/tm_devices/drivers/pi/awgs/awg.py +++ b/src/tm_devices/drivers/pi/awgs/awg.py @@ -5,13 +5,13 @@ from types import MappingProxyType from typing import ClassVar, Dict, List, Literal, Optional, Tuple, Type -from tm_devices.driver_mixins.class_extension_mixin import ExtendableMixin -from tm_devices.driver_mixins.signal_generator_mixin import ( +from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.base_source_channel import BaseSourceChannel from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG diff --git a/src/tm_devices/drivers/pi/power_supplies/power_supply.py b/src/tm_devices/drivers/pi/power_supplies/power_supply.py index 5fb826be..db4184bf 100644 --- a/src/tm_devices/drivers/pi/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/pi/power_supplies/power_supply.py @@ -6,7 +6,7 @@ from abc import ABC from typing import Tuple, Union -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.helpers import DeviceTypes diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py index 1a315194..795c6a90 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py @@ -22,7 +22,7 @@ MSO6BCommands, MSO6Commands, ) -from tm_devices.driver_mixins.analysis_object_mixins import ( +from tm_devices.driver_mixins.abstract_device_functionality.analysis_object_mixins import ( BusMixin, HistogramMixin, MathMixin, @@ -32,14 +32,14 @@ ReferenceMixin, SearchMixin, ) -from tm_devices.driver_mixins.licensed_mixin import LicensedMixin -from tm_devices.driver_mixins.signal_generator_mixin import ( +from tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin import LicensedMixin +from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, ParameterBounds, SignalGeneratorMixin, SourceDeviceConstants, ) -from tm_devices.driver_mixins.usb_drives_mixin import USBDrivesMixin +from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.base_afg_source_channel import BaseAFGSourceChannel from tm_devices.drivers.pi.scopes.scope import Scope diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py index a7986f6e..8739bef8 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands from tm_devices.drivers.pi.pi_device import PIDevice diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py index ea8b032b..721bca1c 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands from tm_devices.drivers.pi.pi_device import PIDevice diff --git a/tests/mock_server.py b/tests/mock_server.py index 7c8b4a33..17aab527 100644 --- a/tests/mock_server.py +++ b/tests/mock_server.py @@ -7,7 +7,7 @@ from flask import request from http_server_mock import HttpServerMock # pyright: ignore[reportMissingTypeStubs] -from tm_devices.drivers.api.rest_api.rest_api_device import SupportedRequestTypes +from tm_devices.helpers import SupportedRequestTypes ################################################################################################ # Mock Data diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index 7e2ab6f6..63a81d80 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -17,7 +17,7 @@ import pytest from tm_devices import DeviceManager -from tm_devices.driver_mixins.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.device import Device from tm_devices.drivers.pi.afgs.afg import AFG diff --git a/tests/test_margin_testers.py b/tests/test_margin_testers.py index 463ea083..81781392 100644 --- a/tests/test_margin_testers.py +++ b/tests/test_margin_testers.py @@ -10,7 +10,7 @@ from mock_server import MOCK_ABOUT_INFO, PORT from tm_devices import DeviceManager -from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester +from tm_devices.drivers.margin_testers.margin_tester import MarginTester AUTH_TOKEN_FILE_PATH = f"{Path(__file__).parent}/samples/token.auth_token_file_path" # nosec diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index f10433d8..34a3a270 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -10,7 +10,10 @@ from packaging.version import Version from mock_server import INDEX_RESPONSE, PORT -from tm_devices.drivers.api.rest_api.rest_api_device import RESTAPIDevice, SupportedRequestTypes +from tm_devices.driver_mixins.device_control.rest_api_device import ( + RESTAPIDevice, + SupportedRequestTypes, +) from tm_devices.drivers.device import family_base_class # noinspection PyPep8Naming From 9f0194fbf921d8a2ddb8510fb8fe8ba7bf251d5a Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 11:31:11 -0700 Subject: [PATCH 06/52] refactor: Moved the Device, PIDevice, and TSPDevice class into device_control mixins. Also moved shared code into mixin folders and moved all device type subpackages up to the top level of the drivers subpackage. --- CHANGELOG.md | 9 +- docs/contributing/add_new_driver.md | 8 +- .../custom_device_driver_support.py | 4 +- src/tm_devices/commands/afg3k_commands.py | 2 +- src/tm_devices/commands/afg3kb_commands.py | 2 +- src/tm_devices/commands/afg3kc_commands.py | 2 +- src/tm_devices/commands/awg5200_commands.py | 2 +- src/tm_devices/commands/awg5k_commands.py | 2 +- src/tm_devices/commands/awg5kc_commands.py | 2 +- src/tm_devices/commands/awg70ka_commands.py | 2 +- src/tm_devices/commands/awg70kb_commands.py | 2 +- src/tm_devices/commands/awg7k_commands.py | 2 +- src/tm_devices/commands/awg7kc_commands.py | 2 +- src/tm_devices/commands/daq6510_commands.py | 2 +- src/tm_devices/commands/dmm6500_commands.py | 2 +- src/tm_devices/commands/dmm7510_commands.py | 2 +- src/tm_devices/commands/dpo2k_commands.py | 2 +- src/tm_devices/commands/dpo2kb_commands.py | 2 +- src/tm_devices/commands/dpo4k_commands.py | 2 +- src/tm_devices/commands/dpo4kb_commands.py | 2 +- src/tm_devices/commands/dpo5k_commands.py | 2 +- src/tm_devices/commands/dpo5kb_commands.py | 2 +- src/tm_devices/commands/dpo70kc_commands.py | 2 +- src/tm_devices/commands/dpo70kd_commands.py | 2 +- src/tm_devices/commands/dpo70kdx_commands.py | 2 +- src/tm_devices/commands/dpo70ksx_commands.py | 2 +- src/tm_devices/commands/dpo7k_commands.py | 2 +- src/tm_devices/commands/dpo7kc_commands.py | 2 +- src/tm_devices/commands/dsa70kc_commands.py | 2 +- src/tm_devices/commands/dsa70kd_commands.py | 2 +- .../commands/gen_163n04_mdo/search.py | 2 +- .../commands/gen_16x4xq_mdo/search.py | 2 +- .../commands/gen_1jzp7o_mdodpo/trigger.py | 2 +- .../commands/gen_1kdqwg_mdo/search.py | 2 +- .../commands/gen_1kdqwg_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_1kjd62_mdo/rf.py | 2 +- .../commands/gen_1kozfv_dpo/search.py | 2 +- .../commands/gen_1l4fot_mdomso/cursor.py | 2 +- .../commands/gen_1la1ym_msomdodpo/trigger.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/message.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/setup_1.py | 2 +- .../commands/gen_1lh2st_msodpo/search.py | 2 +- .../gen_1ltpwt_mdomsodpo/actonevent.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/afg.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/alias.py | 2 +- .../gen_1ltpwt_mdomsodpo/application.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/autoset.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxin.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxout.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/bus.py | 2 +- .../gen_1ltpwt_mdomsodpo/calibrate.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ch.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/d.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/data.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/diag.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/dvm.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/email.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ethernet.py | 2 +- .../gen_1ltpwt_mdomsodpo/filesystem.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/fpanel.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/gpibusb.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/hardcopy.py | 2 +- .../gen_1ltpwt_mdomsodpo/histogram.py | 2 +- .../gen_1ltpwt_mdomsodpo/horizontal.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/mark.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/marker.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/math1.py | 2 +- .../gen_1ltpwt_mdomsodpo/pictbridge.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/power.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/reboot.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ref.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/save.py | 2 +- .../gen_1ltpwt_mdomsodpo/socketserver.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/time.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/vidpic.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/wfminpre.py | 2 +- .../gen_1ltpwt_mdomsodpo/wfmoutpre.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/zoom.py | 2 +- .../commands/gen_1lwj1r_msomdodpo/rosc.py | 2 +- .../commands/gen_1lxxm9_msomdodpo/cursor.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/acquire.py | 2 +- .../gen_1mlt9u_mdomsodpo/configuration.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/deskew.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/display.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/mask.py | 2 +- .../gen_1mlt9u_mdomsodpo/measurement.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/recall.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/select.py | 2 +- .../commands/gen_1mq0z9_msodpo/rf.py | 2 +- .../gen_1nmc1o_msodpomdo/clearmenu.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/errlog.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/language.py | 2 +- .../gen_1nmc1o_msodpomdo/status_and_error.py | 2 +- .../gen_1nmc1o_msodpomdo/usbdevice.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/usbtmc.py | 2 +- .../commands/gen_1zn03_mso/acquire.py | 2 +- .../commands/gen_1zn03_mso/actonevent.py | 2 +- .../commands/gen_1zn03_mso/auxout.py | 2 +- .../commands/gen_1zn03_mso/battery.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/bus.py | 2 +- .../commands/gen_1zn03_mso/callouts.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/data.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/dch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/diag.py | 2 +- .../commands/gen_1zn03_mso/display.py | 2 +- .../commands/gen_1zn03_mso/fpanel.py | 2 +- .../commands/gen_1zn03_mso/horizontal.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/mask.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/math.py | 2 +- .../commands/gen_1zn03_mso/measurement.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/pg.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/plot.py | 2 +- .../commands/gen_1zn03_mso/power.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ref.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/save.py | 2 +- .../commands/gen_1zn03_mso/saveon.py | 2 +- .../commands/gen_1zn03_mso/saveonevent.py | 2 +- .../commands/gen_1zn03_mso/search.py | 2 +- .../commands/gen_1zn03_mso/select.py | 2 +- .../commands/gen_1zn03_mso/touchscreen.py | 2 +- .../commands/gen_1zn03_mso/trigger.py | 2 +- .../commands/gen_22daqs_afg/afgcontrol.py | 2 +- .../commands/gen_22daqs_afg/data.py | 2 +- .../commands/gen_22daqs_afg/diagnostic.py | 2 +- .../commands/gen_22daqs_afg/display.py | 2 +- .../commands/gen_22daqs_afg/hcopy.py | 2 +- .../commands/gen_22daqs_afg/memory.py | 2 +- .../commands/gen_22daqs_afg/mmemory.py | 2 +- .../commands/gen_22daqs_afg/output.py | 2 +- .../commands/gen_22daqs_afg/output1.py | 2 +- .../commands/gen_22daqs_afg/output2.py | 2 +- .../commands/gen_22daqs_afg/source.py | 2 +- .../commands/gen_22daqs_afg/source1.py | 2 +- .../commands/gen_22daqs_afg/source2.py | 2 +- .../commands/gen_22daqs_afg/source3.py | 2 +- .../commands/gen_22daqs_afg/source4.py | 2 +- .../commands/gen_22daqs_afg/status.py | 2 +- .../commands/gen_22daqs_afg/system.py | 2 +- .../commands/gen_22daqs_afg/trigger.py | 2 +- .../commands/gen_2i1z2s_awg/abort.py | 2 +- .../commands/gen_2i1z2s_awg/auxoutput.py | 2 +- .../commands/gen_2i1z2s_awg/awgcontrol.py | 2 +- .../commands/gen_2i1z2s_awg/bwaveform.py | 2 +- .../commands/gen_2i1z2s_awg/clock.py | 2 +- .../commands/gen_2i1z2s_awg/cplayback.py | 2 +- .../commands/gen_2i1z2s_awg/diagnostic.py | 2 +- .../commands/gen_2i1z2s_awg/fgen.py | 2 +- .../commands/gen_2i1z2s_awg/instrument.py | 2 +- .../commands/gen_2i1z2s_awg/mmemory.py | 2 +- .../commands/gen_2i1z2s_awg/output.py | 2 +- .../commands/gen_2i1z2s_awg/source.py | 2 +- .../commands/gen_2i1z2s_awg/synchronize.py | 2 +- .../commands/gen_2i1z2s_awg/system.py | 2 +- .../commands/gen_2i1z2s_awg/trigger.py | 2 +- .../commands/gen_2i1z2s_awg/wlist.py | 2 +- .../commands/gen_32dszm_awg/awgcontrol.py | 2 +- .../commands/gen_32dszm_awg/diagnostic.py | 2 +- .../commands/gen_32dszm_awg/display.py | 2 +- .../commands/gen_32dszm_awg/event.py | 2 +- .../commands/gen_32dszm_awg/instrument.py | 2 +- .../commands/gen_32dszm_awg/mmemory.py | 2 +- .../commands/gen_32dszm_awg/output.py | 2 +- .../commands/gen_32dszm_awg/sequence.py | 2 +- .../commands/gen_32dszm_awg/slist.py | 2 +- .../commands/gen_32dszm_awg/source.py | 2 +- .../commands/gen_32dszm_awg/status.py | 2 +- .../commands/gen_32dszm_awg/system.py | 2 +- .../commands/gen_32dszm_awg/trigger.py | 2 +- .../commands/gen_32dszm_awg/wlist.py | 2 +- .../commands/gen_33ijgq_afgawg/abort.py | 2 +- .../commands/gen_33ijgq_afgawg/calibration.py | 2 +- .../commands/gen_3n9auv_awg/active.py | 2 +- .../commands/gen_3n9auv_awg/calibration.py | 2 +- .../commands/gen_3n9auv_awg/connectivity.py | 2 +- .../commands/gen_3n9auv_awg/display.py | 2 +- .../commands/gen_3n9auv_awg/output.py | 2 +- .../commands/gen_3n9auv_awg/slist.py | 2 +- .../commands/gen_3n9auv_awg/status.py | 2 +- .../commands/gen_3n9auv_awg/wplugin.py | 2 +- .../commands/gen_3rs8qy_awg/auxoutput.py | 2 +- .../commands/gen_3rs8qy_awg/awgcontrol.py | 2 +- .../commands/gen_3rs8qy_awg/bwaveform.py | 2 +- .../commands/gen_3rs8qy_awg/clock.py | 2 +- .../commands/gen_3rs8qy_awg/cplayback.py | 2 +- .../commands/gen_3rs8qy_awg/diagnostic.py | 2 +- .../commands/gen_3rs8qy_awg/fgen.py | 2 +- .../commands/gen_3rs8qy_awg/instrument.py | 2 +- .../commands/gen_3rs8qy_awg/mmemory.py | 2 +- .../commands/gen_3rs8qy_awg/output.py | 2 +- .../commands/gen_3rs8qy_awg/source.py | 2 +- .../commands/gen_3rs8qy_awg/synchronize.py | 2 +- .../commands/gen_3rs8qy_awg/system.py | 2 +- .../commands/gen_3rs8qy_awg/trigger.py | 2 +- .../commands/gen_3rs8qy_awg/wlist.py | 2 +- .../commands/gen_3skc3w_dpo/trigger.py | 2 +- .../commands/gen_3tjgb2_dpo/trigger.py | 2 +- .../commands/gen_4jiykk_dpo/channelmapping.py | 2 +- .../commands/gen_4jiykk_dpo/counter.py | 2 +- .../commands/gen_4jiykk_dpo/errordetector.py | 2 +- .../commands/gen_4jiykk_dpo/idnmultiscope.py | 2 +- .../commands/gen_4jiykk_dpo/linktraining.py | 2 +- .../commands/gen_4jiykk_dpo/rosc.py | 2 +- .../commands/gen_4jiykk_dpo/trigger.py | 2 +- .../commands/gen_53md2e_dpomso/fpanel.py | 2 +- .../commands/gen_561g9r_mso/trigger.py | 2 +- .../commands/gen_5ri0nj_dpomso/bus.py | 2 +- .../commands/gen_5vmwut_dpodsamso/trigger.py | 2 +- .../gen_5xwdsk_dpodsamso/errordetector.py | 2 +- .../commands/gen_5y90wx_dpodsamso/dpojet.py | 2 +- .../commands/gen_5yyb4r_mso/trigger.py | 2 +- .../commands/gen_60xy3r_smu/buffer.py | 2 +- .../commands/gen_60xy3r_smu/script.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/smu.py | 2 +- .../commands/gen_60xy3r_smu/upgrade.py | 2 +- .../commands/gen_6ocqvh_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6srh1x_smu/smu.py | 2 +- .../commands/gen_6srh1x_smu/upgrade.py | 2 +- .../commands/gen_6vynmi_smu/acal.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/smu.py | 2 +- .../commands/gen_6vynmi_smu/trigger.py | 2 +- .../commands/gen_6vynmi_smu/upgrade.py | 2 +- .../commands/gen_6w7311_smu/trigger.py | 2 +- .../commands/gen_6xiuc2_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6xiuc2_smu/smu.py | 2 +- .../commands/gen_6xiuc2_smu/upgrade.py | 2 +- .../commands/gen_7kqm9p_smu/buffervar.py | 2 +- .../commands/gen_7kqm9p_smu/display.py | 2 +- .../commands/gen_7kqm9p_smu/tsplink.py | 2 +- .../commands/gen_7kqm9p_smu/tspnet.py | 2 +- .../commands/gen_7ryhce_smu/status.py | 2 +- .../commands/gen_7s2p1p_smu/beeper.py | 2 +- .../commands/gen_7s2p1p_smu/buffervar.py | 2 +- .../commands/gen_7s2p1p_smu/dataqueue.py | 2 +- .../commands/gen_7s2p1p_smu/digio.py | 2 +- .../commands/gen_7s2p1p_smu/display.py | 2 +- .../commands/gen_7s2p1p_smu/errorqueue.py | 2 +- .../commands/gen_7s2p1p_smu/eventlog.py | 2 +- .../commands/gen_7s2p1p_smu/format.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/lan.py | 2 +- .../commands/gen_7s2p1p_smu/localnode.py | 2 +- .../commands/gen_7s2p1p_smu/serial.py | 2 +- .../commands/gen_7s2p1p_smu/smux.py | 2 +- .../commands/gen_7s2p1p_smu/status.py | 2 +- .../commands/gen_7s2p1p_smu/trigger.py | 2 +- .../commands/gen_7s2p1p_smu/tsplink.py | 2 +- .../commands/gen_7s2p1p_smu/tspnet.py | 2 +- .../commands/gen_7s43m8_smu/status.py | 2 +- .../commands/gen_7s6wr5_smu/status.py | 2 +- .../commands/gen_8ojdkz_smu/display.py | 2 +- .../commands/gen_8ojdkz_smu/node.py | 2 +- .../commands/gen_8ojdkz_smu/smux.py | 2 +- .../commands/gen_8ojdkz_smu/status.py | 2 +- .../commands/gen_8wm55i_smu/smux.py | 2 +- .../commands/gen_9kezla_smu/smux.py | 2 +- .../commands/gen_9mzp2j_smu/digio.py | 2 +- .../commands/gen_9mzp2j_smu/display.py | 2 +- .../commands/gen_9mzp2j_smu/tsplink.py | 2 +- .../commands/gen_9ncc6e_smu/display.py | 2 +- .../commands/gen_9nnkq7_smu/status.py | 2 +- .../commands/gen_9slyux_smu/status.py | 2 +- .../commands/gen_ahkybr_smu/beeper.py | 2 +- .../commands/gen_ahkybr_smu/buffervar.py | 2 +- .../commands/gen_ahkybr_smu/eventlog.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/lan.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/os.py | 2 +- .../commands/gen_ahkybr_smu/script.py | 2 +- .../commands/gen_ahkybr_smu/scriptvar.py | 2 +- .../commands/gen_ahkybr_smu/setup_1.py | 2 +- .../commands/gen_ahkybr_smu/tspnet.py | 2 +- .../commands/gen_aih9e2_smu/trigger.py | 2 +- .../commands/gen_ak4990_smu/smux.py | 2 +- .../commands/gen_am6pcr_smu/smux.py | 2 +- .../commands/gen_am6pcr_smu/status.py | 2 +- .../commands/gen_amm5lc_smu/digio.py | 2 +- .../commands/gen_amm5lc_smu/tsplink.py | 2 +- .../commands/gen_aostep_smu/serial.py | 2 +- .../commands/gen_aqr1t1_smu/localnode.py | 2 +- .../commands/gen_as1ejq_smu/localnode.py | 2 +- .../commands/gen_as1ejq_smu/smux.py | 2 +- .../commands/gen_as1ejq_smu/status.py | 2 +- .../commands/gen_at7jl1_smu/display.py | 2 +- .../commands/gen_au597k_smu/digio.py | 2 +- .../commands/gen_au597k_smu/format.py | 2 +- .../commands/gen_au597k_smu/tsplink.py | 2 +- .../commands/gen_auyr50_smu/format.py | 2 +- .../commands/gen_auyr50_smu/localnode.py | 2 +- .../commands/gen_auyr50_smu/node.py | 2 +- .../commands/gen_avh0iw_smu/display.py | 2 +- .../commands/gen_avh0iw_smu/trigger.py | 2 +- .../commands/gen_awhjao_smu/status.py | 2 +- .../commands/gen_by991s_smudaq/digio.py | 2 +- .../commands/gen_by991s_smudaq/status.py | 2 +- .../gen_c3g61_tekscopepc/actonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/bus.py | 2 +- .../commands/gen_c3g61_tekscopepc/callouts.py | 2 +- .../commands/gen_c3g61_tekscopepc/ch.py | 2 +- .../commands/gen_c3g61_tekscopepc/display.py | 2 +- .../commands/gen_c3g61_tekscopepc/filesys.py | 2 +- .../gen_c3g61_tekscopepc/histogram.py | 2 +- .../gen_c3g61_tekscopepc/horizontal.py | 2 +- .../commands/gen_c3g61_tekscopepc/mask.py | 2 +- .../commands/gen_c3g61_tekscopepc/math.py | 2 +- .../commands/gen_c3g61_tekscopepc/measu.py | 2 +- .../gen_c3g61_tekscopepc/measurement.py | 2 +- .../commands/gen_c3g61_tekscopepc/plot.py | 2 +- .../commands/gen_c3g61_tekscopepc/power.py | 2 +- .../commands/gen_c3g61_tekscopepc/ref.py | 2 +- .../commands/gen_c3g61_tekscopepc/remote.py | 2 +- .../commands/gen_c3g61_tekscopepc/s.py | 2 +- .../commands/gen_c3g61_tekscopepc/save.py | 2 +- .../gen_c3g61_tekscopepc/saveonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/search.py | 2 +- .../gen_c3g61_tekscopepc/searchtable.py | 2 +- .../commands/gen_c3g61_tekscopepc/sv.py | 2 +- .../commands/gen_c3g61_tekscopepc/trigger.py | 2 +- .../commands/gen_c69az_msotekscopepc/lic.py | 2 +- .../gen_c69az_msotekscopepc/license.py | 2 +- .../commands/gen_canxny_daq/buffer.py | 2 +- .../commands/gen_canxny_daq/buffervar.py | 2 +- .../commands/gen_canxny_daq/channel.py | 2 +- .../commands/gen_canxny_daq/display.py | 2 +- src/tm_devices/commands/gen_canxny_daq/dmm.py | 2 +- .../commands/gen_canxny_daq/scan.py | 2 +- .../commands/gen_canxny_daq/slot.py | 2 +- .../commands/gen_canxny_daq/trigger.py | 2 +- .../commands/gen_canxny_daq/tsplink.py | 2 +- .../commands/gen_canxny_daq/upgrade.py | 2 +- .../commands/gen_d6b496_dmm/acal.py | 2 +- .../commands/gen_d6b496_dmm/buffer.py | 2 +- .../commands/gen_d6b496_dmm/buffervar.py | 2 +- .../commands/gen_d6b496_dmm/display.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/dmm.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/fan.py | 2 +- .../commands/gen_d6b496_dmm/localnode.py | 2 +- .../commands/gen_d6b496_dmm/trigger.py | 2 +- .../commands/gen_d83qe0_dmm/buffer.py | 2 +- .../commands/gen_d83qe0_dmm/buffervar.py | 2 +- .../commands/gen_d83qe0_dmm/channel.py | 2 +- .../commands/gen_d83qe0_dmm/display.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/dmm.py | 2 +- .../commands/gen_d83qe0_dmm/scan.py | 2 +- .../commands/gen_d83qe0_dmm/slot.py | 2 +- .../commands/gen_d83qe0_dmm/trigger.py | 2 +- .../gen_dawv9y_smudaqdmm/localnode.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/beeper.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/eventlog.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/file.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/format.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/lan.py | 2 +- .../gen_dbdq3i_smudaqdmm/scriptvar.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/timer.py | 2 +- .../commands/gen_dbqd7k_dmm/digio.py | 2 +- .../commands/gen_dbqd7k_dmm/node.py | 2 +- .../commands/gen_dbqd7k_dmm/status.py | 2 +- .../commands/gen_dbqd7k_dmm/tsplink.py | 2 +- .../commands/gen_dbqd7k_dmm/tspnet.py | 2 +- .../commands/gen_dbqd7k_dmm/upgrade.py | 2 +- .../commands/gen_dcpheg_daqdmm/smu.py | 2 +- .../commands/gen_dd4xnb_smudaqdmm/script.py | 2 +- .../commands/gen_e3e9uu_lpdmso/acquire.py | 2 +- .../commands/gen_e3e9uu_lpdmso/actonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/application.py | 2 +- .../commands/gen_e3e9uu_lpdmso/auxout.py | 2 +- .../commands/gen_e3e9uu_lpdmso/bus.py | 2 +- .../commands/gen_e3e9uu_lpdmso/callouts.py | 2 +- .../commands/gen_e3e9uu_lpdmso/ch.py | 2 +- .../commands/gen_e3e9uu_lpdmso/diag.py | 2 +- .../commands/gen_e3e9uu_lpdmso/diggrp.py | 2 +- .../commands/gen_e3e9uu_lpdmso/display.py | 2 +- .../commands/gen_e3e9uu_lpdmso/dvm.py | 2 +- .../commands/gen_e3e9uu_lpdmso/fpanel.py | 2 +- .../commands/gen_e3e9uu_lpdmso/histogram.py | 2 +- .../commands/gen_e3e9uu_lpdmso/horizontal.py | 2 +- .../commands/gen_e3e9uu_lpdmso/license.py | 2 +- .../commands/gen_e3e9uu_lpdmso/mask.py | 2 +- .../commands/gen_e3e9uu_lpdmso/math.py | 2 +- .../commands/gen_e3e9uu_lpdmso/measurement.py | 2 +- .../commands/gen_e3e9uu_lpdmso/pilogger.py | 2 +- .../commands/gen_e3e9uu_lpdmso/plot.py | 2 +- .../commands/gen_e3e9uu_lpdmso/power.py | 2 +- .../commands/gen_e3e9uu_lpdmso/ref.py | 2 +- .../commands/gen_e3e9uu_lpdmso/rosc.py | 2 +- .../commands/gen_e3e9uu_lpdmso/save.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveon.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/search.py | 2 +- .../commands/gen_e3e9uu_lpdmso/searchtable.py | 2 +- .../commands/gen_e3e9uu_lpdmso/select.py | 2 +- .../commands/gen_e3e9uu_lpdmso/sv.py | 2 +- .../commands/gen_e3e9uu_lpdmso/touchscreen.py | 2 +- .../commands/gen_e3e9uu_lpdmso/trigger.py | 2 +- .../commands/gen_e3e9uu_lpdmso/tstamptable.py | 2 +- .../commands/gen_e3h2zs_lpdmso/afg.py | 2 +- .../commands/gen_e3h2zs_lpdmso/autoset.py | 2 +- .../commands/gen_e3h2zs_lpdmso/calibrate.py | 2 +- .../commands/gen_e3h2zs_lpdmso/connected.py | 2 +- .../commands/gen_e3h2zs_lpdmso/ethernet.py | 2 +- .../commands/gen_e3h2zs_lpdmso/usbdevice.py | 2 +- .../commands/gen_e3pief_ss/beeper.py | 2 +- .../commands/gen_e3pief_ss/buffervar.py | 2 +- .../commands/gen_e3pief_ss/channel.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/comm.py | 2 +- .../commands/gen_e3pief_ss/digio.py | 2 +- .../commands/gen_e3pief_ss/display.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/dmm.py | 2 +- .../commands/gen_e3pief_ss/eventlog.py | 2 +- .../commands/gen_e3pief_ss/format.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/lan.py | 2 +- .../commands/gen_e3pief_ss/localnode.py | 2 +- .../commands/gen_e3pief_ss/memory.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/os.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/ptp.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/scan.py | 2 +- .../commands/gen_e3pief_ss/schedule.py | 2 +- .../commands/gen_e3pief_ss/script.py | 2 +- .../commands/gen_e3pief_ss/scriptvar.py | 2 +- .../commands/gen_e3pief_ss/setup_1.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/slot.py | 2 +- .../commands/gen_e3pief_ss/status.py | 2 +- .../commands/gen_e3pief_ss/trigger.py | 2 +- .../commands/gen_e3pief_ss/tsplink.py | 2 +- .../commands/gen_e3pief_ss/upgrade.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/data.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/eyemask.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/matharbflt.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/peakstable.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/ref.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/visual.py | 2 +- .../autosavepitimeout.py | 2 +- .../autosaveuitimeout.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/bustable.py | 2 +- .../configuration.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/curve.py | 2 +- .../curvestream.py | 2 +- .../customtable.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/date.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/filesystem.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/mainwindow.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/meastable.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/recall.py | 2 +- .../socketserver.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/time.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/undo.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/vertical.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py | 2 +- .../commands/gen_e4de2d_lpdmsomdo/clear.py | 2 +- .../totaluptime.py | 2 +- .../pause.py | 2 +- .../commands/gen_e7aqno_smudaqss/node.py | 2 +- .../gen_eat5s3_smudaqdmmss/dataqueue.py | 2 +- .../commands/gen_eat5s3_smudaqdmmss/fs.py | 2 +- .../gen_eat5s3_smudaqdmmss/userstring.py | 2 +- .../commands/gen_ed9nkc_daqss/tspnet.py | 2 +- .../commands/gen_efap3f_smuss/bit.py | 2 +- .../commands/gen_efap3f_smuss/errorqueue.py | 2 +- .../commands/gen_efap3f_smuss/io.py | 2 +- .../commands/gen_efap3f_smuss/timer.py | 2 +- .../commands/gen_eg5ll2_smudaqdmmss/gpib.py | 2 +- .../commands/gen_ffz2xs_dpodsamso/bus.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/curve.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/date.py | 2 +- .../gen_fhrp27_msodpomdodsa/mathvar.py | 2 +- .../save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/acquire.py | 2 +- .../commands/gen_fk3z56_dpodsamso/allocate.py | 2 +- .../gen_fk3z56_dpodsamso/application.py | 2 +- .../commands/gen_fk3z56_dpodsamso/autoset.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxin.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxout.py | 2 +- .../commands/gen_fk3z56_dpodsamso/bell.py | 2 +- .../gen_fk3z56_dpodsamso/calibrate.py | 2 +- .../commands/gen_fk3z56_dpodsamso/ch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/clear.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cmdbatch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cq.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cursor.py | 2 +- .../gen_fk3z56_dpodsamso/curvenext.py | 2 +- .../gen_fk3z56_dpodsamso/curvestream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/custom.py | 2 +- .../commands/gen_fk3z56_dpodsamso/d.py | 2 +- .../commands/gen_fk3z56_dpodsamso/data.py | 2 +- .../commands/gen_fk3z56_dpodsamso/delete.py | 2 +- .../commands/gen_fk3z56_dpodsamso/diag.py | 2 +- .../commands/gen_fk3z56_dpodsamso/display.py | 2 +- .../commands/gen_fk3z56_dpodsamso/email.py | 2 +- .../commands/gen_fk3z56_dpodsamso/export.py | 2 +- .../commands/gen_fk3z56_dpodsamso/fastacq.py | 2 +- .../gen_fk3z56_dpodsamso/filesystem.py | 2 +- .../commands/gen_fk3z56_dpodsamso/gpibusb.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hardcopy.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hdr.py | 2 +- .../gen_fk3z56_dpodsamso/histogram.py | 2 +- .../gen_fk3z56_dpodsamso/horizontal.py | 2 +- .../commands/gen_fk3z56_dpodsamso/limit.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mark.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mask.py | 2 +- .../commands/gen_fk3z56_dpodsamso/math.py | 2 +- .../gen_fk3z56_dpodsamso/matharbflt.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mch.py | 2 +- .../gen_fk3z56_dpodsamso/measurement.py | 2 +- .../gen_fk3z56_dpodsamso/multiscope.py | 2 +- .../gen_fk3z56_dpodsamso/opcextended.py | 2 +- .../commands/gen_fk3z56_dpodsamso/pcenable.py | 2 +- .../commands/gen_fk3z56_dpodsamso/recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/ref.py | 2 +- .../commands/gen_fk3z56_dpodsamso/save.py | 2 +- .../gen_fk3z56_dpodsamso/save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/saveon.py | 2 +- .../commands/gen_fk3z56_dpodsamso/search.py | 2 +- .../commands/gen_fk3z56_dpodsamso/select.py | 2 +- .../commands/gen_fk3z56_dpodsamso/setup_1.py | 2 +- .../commands/gen_fk3z56_dpodsamso/system.py | 2 +- .../commands/gen_fk3z56_dpodsamso/teklink.py | 2 +- .../commands/gen_fk3z56_dpodsamso/test.py | 2 +- .../commands/gen_fk3z56_dpodsamso/trig.py | 2 +- .../commands/gen_fk3z56_dpodsamso/usbtmc.py | 2 +- .../commands/gen_fk3z56_dpodsamso/visual.py | 2 +- .../gen_fk3z56_dpodsamso/wavfrmstream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfminpre.py | 2 +- .../gen_fk3z56_dpodsamso/wfmoutpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfmpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/zoom.py | 2 +- .../commands/gen_fkjfe8_msodpodsa/time.py | 2 +- .../gen_fn2qbf_msodpo/errordetector.py | 2 +- .../commands/gen_fn2qbf_msodpo/trigger.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/counter.py | 2 +- .../gen_fpx9s1_dpodsamso/linktraining.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/rosc.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../status_and_error.py | 2 +- .../calibration.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../alias.py | 2 +- .../status_and_error.py | 2 +- .../miscellaneous.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/newpass.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/password.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/teksecure.py | 2 +- .../allev.py | 2 +- .../busy.py | 2 +- .../dese.py | 2 +- .../event.py | 2 +- .../evmsg.py | 2 +- .../evqty.py | 2 +- .../factory.py | 2 +- .../header.py | 2 +- .../id.py | 2 +- .../miscellaneous.py | 2 +- .../rem.py | 2 +- .../set.py | 2 +- .../status_and_error.py | 2 +- .../verbose.py | 2 +- .../wavfrm.py | 2 +- .../gen_fzn174_lpdmsodpomdodsa/lock.py | 2 +- .../gen_fzn174_lpdmsodpomdodsa/unlock.py | 2 +- .../commands/gen_u301s_msodpo/acquire.py | 2 +- .../commands/gen_u301s_msodpo/alias.py | 2 +- .../commands/gen_u301s_msodpo/autoset.py | 2 +- .../commands/gen_u301s_msodpo/auxin.py | 2 +- .../commands/gen_u301s_msodpo/bus.py | 2 +- .../commands/gen_u301s_msodpo/calibrate.py | 2 +- .../commands/gen_u301s_msodpo/ch.py | 2 +- .../commands/gen_u301s_msodpo/cursor.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/d.py | 2 +- .../commands/gen_u301s_msodpo/data.py | 2 +- .../commands/gen_u301s_msodpo/diag.py | 2 +- .../commands/gen_u301s_msodpo/display.py | 2 +- .../commands/gen_u301s_msodpo/ethernet.py | 2 +- .../commands/gen_u301s_msodpo/filesystem.py | 2 +- .../commands/gen_u301s_msodpo/filtervu.py | 2 +- .../commands/gen_u301s_msodpo/fpanel.py | 2 +- .../commands/gen_u301s_msodpo/gpibusb.py | 2 +- .../commands/gen_u301s_msodpo/hardcopy.py | 2 +- .../commands/gen_u301s_msodpo/horizontal.py | 2 +- .../commands/gen_u301s_msodpo/mark.py | 2 +- .../commands/gen_u301s_msodpo/math1.py | 2 +- .../commands/gen_u301s_msodpo/measurement.py | 2 +- .../commands/gen_u301s_msodpo/pictbridge.py | 2 +- .../commands/gen_u301s_msodpo/recall.py | 2 +- .../commands/gen_u301s_msodpo/ref.py | 2 +- .../commands/gen_u301s_msodpo/save.py | 2 +- .../commands/gen_u301s_msodpo/search.py | 2 +- .../commands/gen_u301s_msodpo/select.py | 2 +- .../commands/gen_u301s_msodpo/trigger.py | 2 +- .../commands/gen_u301s_msodpo/wfminpre.py | 2 +- .../commands/gen_u301s_msodpo/wfmoutpre.py | 2 +- .../commands/gen_u301s_msodpo/zoom.py | 2 +- .../commands/gen_ujuvb_mdo/acquire.py | 2 +- .../commands/gen_ujuvb_mdo/configuration.py | 2 +- .../commands/gen_ujuvb_mdo/cursor.py | 2 +- .../commands/gen_ujuvb_mdo/deskew.py | 2 +- .../commands/gen_ujuvb_mdo/display.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/lock.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/mask.py | 2 +- .../commands/gen_ujuvb_mdo/measurement.py | 2 +- .../commands/gen_ujuvb_mdo/message.py | 2 +- .../commands/gen_ujuvb_mdo/recall.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rf.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rrb.py | 2 +- .../commands/gen_ujuvb_mdo/search.py | 2 +- .../commands/gen_ujuvb_mdo/select.py | 2 +- .../commands/gen_ujuvb_mdo/setup1.py | 2 +- .../commands/gen_ujuvb_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_usaa3_mdo/rf.py | 2 +- .../commands/gen_usaa3_mdo/search.py | 2 +- .../commands/gen_usaa3_mdo/trigger.py | 2 +- .../commands/helpers/generic_commands.py | 2 +- .../commands/helpers/scpi_commands.py | 2 +- .../commands/helpers/tsp_commands.py | 2 +- src/tm_devices/commands/lpd6_commands.py | 2 +- src/tm_devices/commands/mdo3_commands.py | 2 +- src/tm_devices/commands/mdo3k_commands.py | 2 +- src/tm_devices/commands/mdo4k_commands.py | 2 +- src/tm_devices/commands/mdo4kb_commands.py | 2 +- src/tm_devices/commands/mdo4kc_commands.py | 2 +- src/tm_devices/commands/mso2_commands.py | 2 +- src/tm_devices/commands/mso2k_commands.py | 2 +- src/tm_devices/commands/mso2kb_commands.py | 2 +- src/tm_devices/commands/mso4_commands.py | 2 +- src/tm_devices/commands/mso4b_commands.py | 2 +- src/tm_devices/commands/mso4k_commands.py | 2 +- src/tm_devices/commands/mso4kb_commands.py | 2 +- src/tm_devices/commands/mso5_commands.py | 2 +- src/tm_devices/commands/mso5b_commands.py | 2 +- src/tm_devices/commands/mso5k_commands.py | 2 +- src/tm_devices/commands/mso5kb_commands.py | 2 +- src/tm_devices/commands/mso5lp_commands.py | 2 +- src/tm_devices/commands/mso6_commands.py | 2 +- src/tm_devices/commands/mso6b_commands.py | 2 +- src/tm_devices/commands/mso70kc_commands.py | 2 +- src/tm_devices/commands/mso70kdx_commands.py | 2 +- src/tm_devices/commands/smu2450_commands.py | 2 +- src/tm_devices/commands/smu2460_commands.py | 2 +- src/tm_devices/commands/smu2461_commands.py | 2 +- src/tm_devices/commands/smu2470_commands.py | 2 +- src/tm_devices/commands/smu2601b_commands.py | 2 +- .../commands/smu2601b_pulse_commands.py | 2 +- src/tm_devices/commands/smu2602b_commands.py | 2 +- src/tm_devices/commands/smu2604b_commands.py | 2 +- src/tm_devices/commands/smu2606b_commands.py | 2 +- src/tm_devices/commands/smu2611b_commands.py | 2 +- src/tm_devices/commands/smu2612b_commands.py | 2 +- src/tm_devices/commands/smu2614b_commands.py | 2 +- src/tm_devices/commands/smu2634b_commands.py | 2 +- src/tm_devices/commands/smu2635b_commands.py | 2 +- src/tm_devices/commands/smu2636b_commands.py | 2 +- src/tm_devices/commands/smu2651a_commands.py | 2 +- src/tm_devices/commands/smu2657a_commands.py | 2 +- src/tm_devices/commands/ss3706a_commands.py | 2 +- .../commands/tekscopepc_commands.py | 2 +- src/tm_devices/device_manager.py | 24 +-- .../base_afg_source_channel.py | 6 +- .../base_source_channel.py | 2 +- .../device_control}/device.py | 0 .../device_control}/pi_device.py | 4 +- .../device_control/rest_api_device.py | 2 +- .../device_control}/tsp_device.py | 4 +- .../ieee488_2_commands.py | 2 +- .../tek_afg_awg_mixin.py | 2 +- src/tm_devices/drivers/__init__.py | 196 ++++++++--------- .../drivers/{pi => }/afgs/__init__.py | 0 src/tm_devices/drivers/{pi => }/afgs/afg.py | 6 +- .../drivers/{pi => }/afgs/afg31k.py | 2 +- src/tm_devices/drivers/{pi => }/afgs/afg3k.py | 2 +- .../drivers/{pi => }/afgs/afg3kb.py | 2 +- .../drivers/{pi => }/afgs/afg3kc.py | 2 +- .../drivers/{pi => }/awgs/__init__.py | 0 src/tm_devices/drivers/{pi => }/awgs/awg.py | 6 +- .../drivers/{pi => }/awgs/awg5200.py | 4 +- src/tm_devices/drivers/{pi => }/awgs/awg5k.py | 4 +- .../drivers/{pi => }/awgs/awg5kb.py | 2 +- .../drivers/{pi => }/awgs/awg5kc.py | 2 +- .../drivers/{pi => }/awgs/awg70ka.py | 4 +- .../drivers/{pi => }/awgs/awg70kb.py | 2 +- src/tm_devices/drivers/{pi => }/awgs/awg7k.py | 6 +- .../drivers/{pi => }/awgs/awg7kb.py | 2 +- .../drivers/{pi => }/awgs/awg7kc.py | 2 +- .../data_acquisition_systems/__init__.py | 0 .../data_acquisition_systems/daq6510.py | 6 +- .../data_acquisition_system.py | 4 +- .../drivers/device_driver_mapping.py | 198 +++++++++--------- src/tm_devices/drivers/device_type_classes.py | 21 +- .../{pi => }/digital_multimeters/__init__.py | 0 .../digital_multimeters/digital_multimeter.py | 2 +- .../{pi => }/digital_multimeters/dmm6500.py | 8 +- .../digital_multimeters/dmm75xx/__init__.py | 0 .../digital_multimeters/dmm75xx/dmm7510.py | 2 +- .../digital_multimeters/dmm75xx/dmm7512.py | 2 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 8 +- .../drivers/margin_testers/margin_tester.py | 2 +- src/tm_devices/drivers/pi/__init__.py | 1 - .../{pi => }/power_supplies/__init__.py | 0 .../{pi => }/power_supplies/power_supply.py | 2 +- .../psu22xx}/__init__.py | 0 .../psu22xx}/psu2200.py | 4 +- .../psu22xx}/psu2220.py | 2 +- .../psu22xx}/psu2230.py | 2 +- .../psu22xx}/psu2231.py | 2 +- .../psu22xx}/psu2231a.py | 2 +- .../psu22xx}/psu2280.py | 2 +- .../psu22xx}/psu2281.py | 2 +- .../drivers/{pi => }/scopes/__init__.py | 0 .../drivers/{pi => }/scopes/scope.py | 2 +- .../{pi => }/scopes/tekscope/__init__.py | 0 .../drivers/{pi => }/scopes/tekscope/lpd6.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso2.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso4.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso4b.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso5.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso5b.py | 2 +- .../{pi => }/scopes/tekscope/mso5lp.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso6.py | 2 +- .../drivers/{pi => }/scopes/tekscope/mso6b.py | 2 +- .../{pi => }/scopes/tekscope/tekscope.py | 8 +- .../{pi => }/scopes/tekscope/tekscopepc.py | 4 +- .../{pi => }/scopes/tekscope_2k/__init__.py | 0 .../{pi => }/scopes/tekscope_2k/dpo2k.py | 2 +- .../{pi => }/scopes/tekscope_2k/dpo2kb.py | 2 +- .../{pi => }/scopes/tekscope_2k/mso2k.py | 2 +- .../{pi => }/scopes/tekscope_2k/mso2kb.py | 2 +- .../scopes/tekscope_2k/tekscope_2k.py | 4 +- .../scopes/tekscope_3k_4k/__init__.py | 0 .../{pi => }/scopes/tekscope_3k_4k/dpo4k.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/dpo4kb.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mdo3.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mdo3k.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mdo4k.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mdo4kb.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mdo4kc.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mso4k.py | 2 +- .../{pi => }/scopes/tekscope_3k_4k/mso4kb.py | 2 +- .../scopes/tekscope_3k_4k/tekscope_3k_4k.py | 4 +- .../scopes/tekscope_5k_7k_70k/__init__.py | 0 .../scopes/tekscope_5k_7k_70k/dpo5k.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo5kb.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70k.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70kc.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70kd.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70kdx.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70ksx.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo7k.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo7kc.py | 2 +- .../scopes/tekscope_5k_7k_70k/dsa70k.py | 2 +- .../scopes/tekscope_5k_7k_70k/dsa70kc.py | 2 +- .../scopes/tekscope_5k_7k_70k/dsa70kd.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso5k.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso5kb.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso70k.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso70kc.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso70kdx.py | 2 +- .../tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 4 +- .../drivers/{pi => }/scopes/tso/__init__.py | 0 .../drivers/{pi => }/scopes/tso/tsovu.py | 4 +- .../{pi => }/source_measure_units/__init__.py | 0 .../source_measure_units/smu24xx/__init__.py | 0 .../source_measure_units/smu24xx/smu2400.py | 2 +- .../source_measure_units/smu24xx/smu2401.py | 2 +- .../source_measure_units/smu24xx/smu2410.py | 2 +- .../source_measure_units/smu24xx/smu2450.py | 2 +- .../source_measure_units/smu24xx/smu2460.py | 2 +- .../source_measure_units/smu24xx/smu2461.py | 2 +- .../source_measure_units/smu24xx/smu2470.py | 2 +- .../smu24xx/smu24xx_interactive.py | 8 +- .../smu24xx/smu24xx_standard.py | 8 +- .../source_measure_units/smu26xx/__init__.py | 0 .../source_measure_units/smu26xx/smu2601a.py | 2 +- .../source_measure_units/smu26xx/smu2601b.py | 2 +- .../smu26xx/smu2601b_pulse.py | 2 +- .../source_measure_units/smu26xx/smu2602a.py | 2 +- .../source_measure_units/smu26xx/smu2602b.py | 2 +- .../source_measure_units/smu26xx/smu2604a.py | 2 +- .../source_measure_units/smu26xx/smu2604b.py | 2 +- .../source_measure_units/smu26xx/smu2606b.py | 2 +- .../source_measure_units/smu26xx/smu2611a.py | 2 +- .../source_measure_units/smu26xx/smu2611b.py | 2 +- .../source_measure_units/smu26xx/smu2612a.py | 2 +- .../source_measure_units/smu26xx/smu2612b.py | 2 +- .../source_measure_units/smu26xx/smu2614a.py | 2 +- .../source_measure_units/smu26xx/smu2614b.py | 2 +- .../source_measure_units/smu26xx/smu2634a.py | 2 +- .../source_measure_units/smu26xx/smu2634b.py | 2 +- .../source_measure_units/smu26xx/smu2635a.py | 2 +- .../source_measure_units/smu26xx/smu2635b.py | 2 +- .../source_measure_units/smu26xx/smu2636a.py | 2 +- .../source_measure_units/smu26xx/smu2636b.py | 2 +- .../source_measure_units/smu26xx/smu2651a.py | 2 +- .../source_measure_units/smu26xx/smu2657a.py | 2 +- .../source_measure_units/smu26xx/smu265xa.py | 2 +- .../source_measure_units/smu26xx/smu26xx.py | 4 +- .../source_measure_units/smu26xx/smu26xxa.py | 2 +- .../source_measure_units/smu26xx/smu26xxb.py | 2 +- .../source_measure_units/smu60xx/__init__.py | 0 .../source_measure_units/smu60xx/smu6430.py | 2 +- .../source_measure_units/smu60xx/smu6514.py | 2 +- .../source_measure_units/smu60xx/smu6517b.py | 2 +- .../source_measure_units/smu60xx/smu6xxx.py | 8 +- .../source_measure_unit.py | 2 +- .../{pi => }/systems_switches/__init__.py | 0 .../{pi => }/systems_switches/ss3706a.py | 4 +- .../systems_switches/systems_switch.py | 2 +- .../device_control}/device.pyi | 0 .../device_control}/pi_device.pyi | 0 .../device_control}/tsp_device.pyi | 0 tests/test_afgs.py | 2 +- tests/test_awgs.py | 2 +- tests/test_extension_mixin.py | 16 +- tests/test_rest_api_device.py | 2 +- tests/test_scopes.py | 4 +- tests/test_smu.py | 2 +- tests/test_tm_devices.py | 2 +- tests/test_unsupported_device_type.py | 2 +- 814 files changed, 1076 insertions(+), 1053 deletions(-) rename src/tm_devices/{drivers/pi => driver_mixins/abstract_device_functionality}/base_afg_source_channel.py (94%) rename src/tm_devices/{drivers/pi => driver_mixins/abstract_device_functionality}/base_source_channel.py (96%) rename src/tm_devices/{drivers => driver_mixins/device_control}/device.py (100%) rename src/tm_devices/{drivers/pi => driver_mixins/device_control}/pi_device.py (99%) rename src/tm_devices/{drivers/pi => driver_mixins/device_control}/tsp_device.py (98%) rename src/tm_devices/{drivers/pi => driver_mixins/shared_implementations}/ieee488_2_commands.py (99%) rename src/tm_devices/drivers/{pi => }/afgs/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/afgs/afg.py (98%) rename src/tm_devices/drivers/{pi => }/afgs/afg31k.py (99%) rename src/tm_devices/drivers/{pi => }/afgs/afg3k.py (99%) rename src/tm_devices/drivers/{pi => }/afgs/afg3kb.py (96%) rename src/tm_devices/drivers/{pi => }/afgs/afg3kc.py (98%) rename src/tm_devices/drivers/{pi => }/awgs/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/awgs/awg.py (99%) rename src/tm_devices/drivers/{pi => }/awgs/awg5200.py (99%) rename src/tm_devices/drivers/{pi => }/awgs/awg5k.py (98%) rename src/tm_devices/drivers/{pi => }/awgs/awg5kb.py (95%) rename src/tm_devices/drivers/{pi => }/awgs/awg5kc.py (95%) rename src/tm_devices/drivers/{pi => }/awgs/awg70ka.py (99%) rename src/tm_devices/drivers/{pi => }/awgs/awg70kb.py (95%) rename src/tm_devices/drivers/{pi => }/awgs/awg7k.py (97%) rename src/tm_devices/drivers/{pi => }/awgs/awg7kb.py (95%) rename src/tm_devices/drivers/{pi => }/awgs/awg7kc.py (96%) rename src/tm_devices/drivers/{pi => }/data_acquisition_systems/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/data_acquisition_systems/daq6510.py (94%) rename src/tm_devices/drivers/{pi => }/data_acquisition_systems/data_acquisition_system.py (77%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/digital_multimeter.py (92%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/dmm6500.py (91%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/dmm75xx/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/dmm75xx/dmm7510.py (95%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/dmm75xx/dmm7512.py (95%) rename src/tm_devices/drivers/{pi => }/digital_multimeters/dmm75xx/dmm75xx.py (91%) delete mode 100644 src/tm_devices/drivers/pi/__init__.py rename src/tm_devices/drivers/{pi => }/power_supplies/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/power_supplies/power_supply.py (95%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/__init__.py (100%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2200.py (93%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2220.py (94%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2230.py (94%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2231.py (94%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2231a.py (94%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2280.py (94%) rename src/tm_devices/drivers/{pi/power_supplies/psu2200 => power_supplies/psu22xx}/psu2281.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/scope.py (98%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/lpd6.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso2.py (97%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso4.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso4b.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso5.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso5b.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso5lp.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso6.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/mso6b.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/tekscope.py (99%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope/tekscopepc.py (93%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/dpo2k.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/dpo2kb.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/mso2k.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/mso2kb.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_2k/tekscope_2k.py (97%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/dpo4k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/dpo4kb.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mdo3.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mdo3k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mdo4k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mdo4kb.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mdo4kc.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mso4k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/mso4kb.py (96%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_3k_4k/tekscope_3k_4k.py (92%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo5k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo5kb.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo70k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo70kc.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo70kd.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo70kdx.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo70ksx.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo7k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dpo7kc.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dsa70k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dsa70kc.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/dsa70kd.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/mso5k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/mso5kb.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/mso70k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/mso70kc.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/mso70kdx.py (94%) rename src/tm_devices/drivers/{pi => }/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py (95%) rename src/tm_devices/drivers/{pi => }/scopes/tso/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/scopes/tso/tsovu.py (91%) rename src/tm_devices/drivers/{pi => }/source_measure_units/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2400.py (92%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2401.py (92%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2410.py (92%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2450.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2460.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2461.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu2470.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu24xx_interactive.py (91%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu24xx/smu24xx_standard.py (94%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2601a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2601b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2601b_pulse.py (94%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2602a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2602b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2604a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2604b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2606b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2611a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2611b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2612a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2612b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2614a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2614b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2634a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2634b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2635a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2635b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2636a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2636b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2651a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu2657a.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu265xa.py (88%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu26xx.py (95%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu26xxa.py (63%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu26xx/smu26xxb.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu60xx/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu60xx/smu6430.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu60xx/smu6514.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu60xx/smu6517b.py (93%) rename src/tm_devices/drivers/{pi => }/source_measure_units/smu60xx/smu6xxx.py (94%) rename src/tm_devices/drivers/{pi => }/source_measure_units/source_measure_unit.py (87%) rename src/tm_devices/drivers/{pi => }/systems_switches/__init__.py (100%) rename src/tm_devices/drivers/{pi => }/systems_switches/ss3706a.py (95%) rename src/tm_devices/drivers/{pi => }/systems_switches/systems_switch.py (86%) rename tests/samples/golden_stubs/{drivers => driver_mixins/device_control}/device.pyi (100%) rename tests/samples/golden_stubs/{drivers/pi => driver_mixins/device_control}/pi_device.pyi (100%) rename tests/samples/golden_stubs/{drivers/pi => driver_mixins/device_control}/tsp_device.pyi (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f7d7b35..55b41e15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,14 @@ Things to be included in the next release go here. ### Changed +NOTE: Despite all the officially breaking changes, the actual drivers were only affected in +very minor ways. The primary impact to the drivers was simply the removal of previously +deprecated functionality. + - BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. +- BREAKING CHANGE: Moved the `Device`, `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. +- BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. +- BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. ### Removed @@ -148,7 +155,7 @@ Things to be included in the next release go here. - feat: Added SourceXpress API support and AWG defects fix ([#260](https://github.com/tektronix/tm_devices/pull/260)) - gh-actions(deps): bump hynek/build-and-inspect-python-package ([#258](https://github.com/tektronix/tm_devices/pull/258)) -- python-deps(deps-dev): bump the python-dependencies group with 2 updates ([#257](https://github.com/tektronix/tm_devices/pull/257)) +- python-deps(deps-dev): bump the python-dependenc ies group with 2 updates ([#257](https://github.com/tektronix/tm_devices/pull/257)) - Update jinja templates ([#254](https://github.com/tektronix/tm_devices/pull/254)) ### Added diff --git a/docs/contributing/add_new_driver.md b/docs/contributing/add_new_driver.md index c9db5478..06330b14 100644 --- a/docs/contributing/add_new_driver.md +++ b/docs/contributing/add_new_driver.md @@ -71,8 +71,8 @@ defines abstract functions that all device drivers must implement. ### drivers/pi/power_supplies/new_series_psu/fancy_power_supply.py """Fancy PSU Base device driver for the new series/family of fancy power supplies.""" from abc import ABC -from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.drivers.device import family_base_class +from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit +from tm_devices.driver_mixins.device_control.device import family_base_class @family_base_class # Mark the base class for the new family of devices @@ -85,7 +85,7 @@ class BaseFancyPSU(PowerSupplyUnit, ABC): ```python ### drivers/pi/power_supplies/new_series_psu/fancy_psu_123.py """BaseFancyPSU device driver.""" -from tm_devices.drivers.pi.power_supplies.new_series_psu.fancy_power_supply import ( +from tm_devices.drivers.power_supplies.new_series_psu.fancy_power_supply import ( BaseFancyPSU, ) @@ -112,7 +112,7 @@ series: ```python """NewPSU device driver.""" -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 class NewPSU(PSU2200): diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 4812bb00..4a78d03c 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -3,9 +3,9 @@ from typing import Tuple, Union from tm_devices import DeviceManager, register_additional_usbtmc_mapping +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.drivers import MSO5 -from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/commands/afg3k_commands.py b/src/tm_devices/commands/afg3k_commands.py index 26246de5..e19182a8 100644 --- a/src/tm_devices/commands/afg3k_commands.py +++ b/src/tm_devices/commands/afg3k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/afg3kb_commands.py b/src/tm_devices/commands/afg3kb_commands.py index f34afe68..9da090f8 100644 --- a/src/tm_devices/commands/afg3kb_commands.py +++ b/src/tm_devices/commands/afg3kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/afg3kc_commands.py b/src/tm_devices/commands/afg3kc_commands.py index b6169de8..965ce0bc 100644 --- a/src/tm_devices/commands/afg3kc_commands.py +++ b/src/tm_devices/commands/afg3kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/awg5200_commands.py b/src/tm_devices/commands/awg5200_commands.py index c6428a8d..058d240f 100644 --- a/src/tm_devices/commands/awg5200_commands.py +++ b/src/tm_devices/commands/awg5200_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_2i1z2s_awg.abort import Abort from .gen_2i1z2s_awg.auxoutput import AuxoutputItem diff --git a/src/tm_devices/commands/awg5k_commands.py b/src/tm_devices/commands/awg5k_commands.py index e8e26166..5d7467d1 100644 --- a/src/tm_devices/commands/awg5k_commands.py +++ b/src/tm_devices/commands/awg5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg5kc_commands.py b/src/tm_devices/commands/awg5kc_commands.py index 48403d78..073a6c9c 100644 --- a/src/tm_devices/commands/awg5kc_commands.py +++ b/src/tm_devices/commands/awg5kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg70ka_commands.py b/src/tm_devices/commands/awg70ka_commands.py index df7acd23..fdc11f98 100644 --- a/src/tm_devices/commands/awg70ka_commands.py +++ b/src/tm_devices/commands/awg70ka_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration diff --git a/src/tm_devices/commands/awg70kb_commands.py b/src/tm_devices/commands/awg70kb_commands.py index 9ebe1e8b..4a7061e3 100644 --- a/src/tm_devices/commands/awg70kb_commands.py +++ b/src/tm_devices/commands/awg70kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration diff --git a/src/tm_devices/commands/awg7k_commands.py b/src/tm_devices/commands/awg7k_commands.py index 8e4d4b42..1e1728a3 100644 --- a/src/tm_devices/commands/awg7k_commands.py +++ b/src/tm_devices/commands/awg7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg7kc_commands.py b/src/tm_devices/commands/awg7kc_commands.py index c90226ce..26aaf83f 100644 --- a/src/tm_devices/commands/awg7kc_commands.py +++ b/src/tm_devices/commands/awg7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/daq6510_commands.py b/src/tm_devices/commands/daq6510_commands.py index c393b0a3..3274f60f 100644 --- a/src/tm_devices/commands/daq6510_commands.py +++ b/src/tm_devices/commands/daq6510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_by991s_smudaq.digio import Digio from .gen_by991s_smudaq.status import Status diff --git a/src/tm_devices/commands/dmm6500_commands.py b/src/tm_devices/commands/dmm6500_commands.py index cac50b60..9eb78592 100644 --- a/src/tm_devices/commands/dmm6500_commands.py +++ b/src/tm_devices/commands/dmm6500_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_d83qe0_dmm.buffer import Buffer from .gen_d83qe0_dmm.buffervar import Buffervar diff --git a/src/tm_devices/commands/dmm7510_commands.py b/src/tm_devices/commands/dmm7510_commands.py index 42fc85d3..c52ce35f 100644 --- a/src/tm_devices/commands/dmm7510_commands.py +++ b/src/tm_devices/commands/dmm7510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_d6b496_dmm.acal import Acal from .gen_d6b496_dmm.buffer import Buffer diff --git a/src/tm_devices/commands/dpo2k_commands.py b/src/tm_devices/commands/dpo2k_commands.py index ce66446c..f2f4c065 100644 --- a/src/tm_devices/commands/dpo2k_commands.py +++ b/src/tm_devices/commands/dpo2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/dpo2kb_commands.py b/src/tm_devices/commands/dpo2kb_commands.py index e01be060..95fc82ca 100644 --- a/src/tm_devices/commands/dpo2kb_commands.py +++ b/src/tm_devices/commands/dpo2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/dpo4k_commands.py b/src/tm_devices/commands/dpo4k_commands.py index 8fa240da..24393459 100644 --- a/src/tm_devices/commands/dpo4k_commands.py +++ b/src/tm_devices/commands/dpo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kozfv_dpo.search import Search diff --git a/src/tm_devices/commands/dpo4kb_commands.py b/src/tm_devices/commands/dpo4kb_commands.py index b6c6c44c..a8852e79 100644 --- a/src/tm_devices/commands/dpo4kb_commands.py +++ b/src/tm_devices/commands/dpo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/dpo5k_commands.py b/src/tm_devices/commands/dpo5k_commands.py index 17899330..4f52b92e 100644 --- a/src/tm_devices/commands/dpo5k_commands.py +++ b/src/tm_devices/commands/dpo5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/dpo5kb_commands.py b/src/tm_devices/commands/dpo5kb_commands.py index 5e68bc90..504a342b 100644 --- a/src/tm_devices/commands/dpo5kb_commands.py +++ b/src/tm_devices/commands/dpo5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_3tjgb2_dpo.trigger import Trigger from .gen_5ri0nj_dpomso.bus import Bus diff --git a/src/tm_devices/commands/dpo70kc_commands.py b/src/tm_devices/commands/dpo70kc_commands.py index eafc3110..05cab705 100644 --- a/src/tm_devices/commands/dpo70kc_commands.py +++ b/src/tm_devices/commands/dpo70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70kd_commands.py b/src/tm_devices/commands/dpo70kd_commands.py index e76909fc..aba6f885 100644 --- a/src/tm_devices/commands/dpo70kd_commands.py +++ b/src/tm_devices/commands/dpo70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70kdx_commands.py b/src/tm_devices/commands/dpo70kdx_commands.py index 3d93df95..e302aa7d 100644 --- a/src/tm_devices/commands/dpo70kdx_commands.py +++ b/src/tm_devices/commands/dpo70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70ksx_commands.py b/src/tm_devices/commands/dpo70ksx_commands.py index e0064f3e..133a5bf7 100644 --- a/src/tm_devices/commands/dpo70ksx_commands.py +++ b/src/tm_devices/commands/dpo70ksx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_4jiykk_dpo.channelmapping import Channelmapping from .gen_4jiykk_dpo.counter import Counter diff --git a/src/tm_devices/commands/dpo7k_commands.py b/src/tm_devices/commands/dpo7k_commands.py index c8973f5d..0f9c282c 100644 --- a/src/tm_devices/commands/dpo7k_commands.py +++ b/src/tm_devices/commands/dpo7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/dpo7kc_commands.py b/src/tm_devices/commands/dpo7kc_commands.py index 3b98be55..5d4ec8ed 100644 --- a/src/tm_devices/commands/dpo7kc_commands.py +++ b/src/tm_devices/commands/dpo7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_3skc3w_dpo.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dsa70kc_commands.py b/src/tm_devices/commands/dsa70kc_commands.py index e052a325..3971eed5 100644 --- a/src/tm_devices/commands/dsa70kc_commands.py +++ b/src/tm_devices/commands/dsa70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dsa70kd_commands.py b/src/tm_devices/commands/dsa70kd_commands.py index 17126fcc..2ffe057d 100644 --- a/src/tm_devices/commands/dsa70kd_commands.py +++ b/src/tm_devices/commands/dsa70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/gen_163n04_mdo/search.py b/src/tm_devices/commands/gen_163n04_mdo/search.py index 174c1213..fee130b1 100644 --- a/src/tm_devices/commands/gen_163n04_mdo/search.py +++ b/src/tm_devices/commands/gen_163n04_mdo/search.py @@ -458,7 +458,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_16x4xq_mdo/search.py b/src/tm_devices/commands/gen_16x4xq_mdo/search.py index b2cdeb65..5956dc9b 100644 --- a/src/tm_devices/commands/gen_16x4xq_mdo/search.py +++ b/src/tm_devices/commands/gen_16x4xq_mdo/search.py @@ -420,7 +420,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py index 794ef609..33652b09 100644 --- a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py @@ -462,7 +462,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py index 82e6c2bf..59245d83 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py @@ -464,7 +464,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py index 49fc02ca..c5dd1684 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py @@ -508,7 +508,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py index 693e19c3..627a84a9 100644 --- a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py +++ b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py @@ -144,7 +144,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kozfv_dpo/search.py b/src/tm_devices/commands/gen_1kozfv_dpo/search.py index f970c9f1..3aa0057d 100644 --- a/src/tm_devices/commands/gen_1kozfv_dpo/search.py +++ b/src/tm_devices/commands/gen_1kozfv_dpo/search.py @@ -399,7 +399,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py index 12312fa0..7d80db6c 100644 --- a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py +++ b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py index d9993e2e..741f5a34 100644 --- a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py @@ -502,7 +502,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py index 8143d90e..97dc76db 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py index 78a342ad..d187098d 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SetupItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py index bdf6ed0d..f53cca38 100644 --- a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py +++ b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py @@ -437,7 +437,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py index 33fce6ab..87602218 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py @@ -41,7 +41,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ActoneventRepeatcount(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py index 7cdef95a..e0c83f78 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py index e4a66a68..616eae20 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py index 76318d84..e827024e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ApplicationType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py index 743fc918..9e2a99e8 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py index 754fe339..415f7e7f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py index 23847555..f1ad4523 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py index d1c03a77..1bf65979 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py @@ -238,7 +238,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusUpperthresholdRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py index 7af648d7..efd0d492 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py index cbdd552e..c88760f3 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py @@ -70,7 +70,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py index 65d2d750..2986b8ce 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py index 2cf11aa0..c9350b40 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py index 9aa0db0c..06ef9ea2 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py index b59678bb..11043423 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DvmSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py index d7401acf..d1a1e932 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EmailSetupSmtpserver(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py index 5072d252..471510c7 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py index 9c8898fe..7706086a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py index 9b403884..5d43669e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py index adecd3ce..15d42401 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py index 59ab9719..f9d4c149 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py index a0b20333..0ce10477 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HistogramStart(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py index d5c3d726..913a28cf 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py index 73e83d47..c9636e78 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MarkUserlist(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py index 0ecc0f09..d601919b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MarkerType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py index 43490d01..167a2068 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py index 5142be55..726644d0 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PictbridgePrintqual(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py index ec1548fd..2cde614d 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PowerVoltagesource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py index 3805c3d1..efa7ff50 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Reboot(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py index 14d62f7c..62fbab51 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py index 9a2fb107..d90bc12d 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py index f522b3ad..4fd759cb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py index a697e95f..af57b09e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py index 489bfd70..8b63c114 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class VidpicStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py index 3f819c51..1dd38045 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py index 441e94b5..fdb38578 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py index b78ca317..5b2c3888 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ZoomZoom1Trigpos(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py index 13e2e1d6..e8cadbb7 100644 --- a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py +++ b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py index 6b8537ff..7f8628bb 100644 --- a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py +++ b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py index e461dd05..2c351ac2 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py index 37f11cfa..0accd999 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py @@ -62,7 +62,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py index 7feb9e53..d9382298 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py index 2183b263..874a0026 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py index e999ec18..1f0e825c 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py index e49bcb2b..5b2b588a 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py index e1f0ca7d..a527666b 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py index 3e96480c..122ec982 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectRfPhase(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py index b76fd9dd..4019bc0c 100644 --- a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py +++ b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py @@ -130,7 +130,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py index 6b7b6d77..43058182 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Clearmenu(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py index eac5f060..992e38fb 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ErrlogNumentries(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py index de2836f8..61280a24 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Language(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py index 3b8c7ae4..2b6b64ee 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py index 40e427fd..29f4871e 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py index 72f6dfb0..418e21ce 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/acquire.py b/src/tm_devices/commands/gen_1zn03_mso/acquire.py index 13094680..57f4e413 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/acquire.py +++ b/src/tm_devices/commands/gen_1zn03_mso/acquire.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py index fa936378..fff6b9e6 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/auxout.py b/src/tm_devices/commands/gen_1zn03_mso/auxout.py index 037152f9..4e0cb395 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/auxout.py +++ b/src/tm_devices/commands/gen_1zn03_mso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/battery.py b/src/tm_devices/commands/gen_1zn03_mso/battery.py index 81126070..14dc74f1 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/battery.py +++ b/src/tm_devices/commands/gen_1zn03_mso/battery.py @@ -23,7 +23,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BatterySlotItemTimetofull(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/bus.py b/src/tm_devices/commands/gen_1zn03_mso/bus.py index 17912bc3..09fdd073 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/bus.py +++ b/src/tm_devices/commands/gen_1zn03_mso/bus.py @@ -188,7 +188,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/callouts.py b/src/tm_devices/commands/gen_1zn03_mso/callouts.py index 86c58d7b..faba8d24 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/callouts.py +++ b/src/tm_devices/commands/gen_1zn03_mso/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalloutsDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ch.py b/src/tm_devices/commands/gen_1zn03_mso/ch.py index f5891ded..8f8485e2 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ch.py @@ -67,7 +67,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelVtermBias(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/data.py b/src/tm_devices/commands/gen_1zn03_mso/data.py index b1fb9095..ca3b46c1 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/data.py +++ b/src/tm_devices/commands/gen_1zn03_mso/data.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/dch.py b/src/tm_devices/commands/gen_1zn03_mso/dch.py index d4cf3472..2363708a 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/dch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/dch.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DchItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/diag.py b/src/tm_devices/commands/gen_1zn03_mso/diag.py index 4761e57d..650d7efe 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/diag.py +++ b/src/tm_devices/commands/gen_1zn03_mso/diag.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/display.py b/src/tm_devices/commands/gen_1zn03_mso/display.py index 5d663fbb..40accda7 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/display.py +++ b/src/tm_devices/commands/gen_1zn03_mso/display.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py index 9f6043d6..067f8d48 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py +++ b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py index 80825be6..dd1b28ef 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py +++ b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/mask.py b/src/tm_devices/commands/gen_1zn03_mso/mask.py index 0d8df54c..0c095f84 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/mask.py +++ b/src/tm_devices/commands/gen_1zn03_mso/mask.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/math.py b/src/tm_devices/commands/gen_1zn03_mso/math.py index 34ed071c..4d5ad21e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/math.py +++ b/src/tm_devices/commands/gen_1zn03_mso/math.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/measurement.py b/src/tm_devices/commands/gen_1zn03_mso/measurement.py index 08d078f2..45dab9ed 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/measurement.py +++ b/src/tm_devices/commands/gen_1zn03_mso/measurement.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementStatisticsCyclemode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/pg.py b/src/tm_devices/commands/gen_1zn03_mso/pg.py index 9ca13831..7544c13a 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/pg.py +++ b/src/tm_devices/commands/gen_1zn03_mso/pg.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PgPatterndefinition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/plot.py b/src/tm_devices/commands/gen_1zn03_mso/plot.py index 83f8424b..4f480c29 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/plot.py +++ b/src/tm_devices/commands/gen_1zn03_mso/plot.py @@ -28,7 +28,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/power.py b/src/tm_devices/commands/gen_1zn03_mso/power.py index e0f41dfb..ba5c9962 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/power.py +++ b/src/tm_devices/commands/gen_1zn03_mso/power.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PowerPowerItemResultsCurrentacqMinimum(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ref.py b/src/tm_devices/commands/gen_1zn03_mso/ref.py index 42886d98..55fa4944 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ref.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ref.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/save.py b/src/tm_devices/commands/gen_1zn03_mso/save.py index 7ee9aa51..a82273df 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/save.py +++ b/src/tm_devices/commands/gen_1zn03_mso/save.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveon.py b/src/tm_devices/commands/gen_1zn03_mso/saveon.py index 8172ca9f..f948f5bb 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveon.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py index df63c243..4435499a 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/search.py b/src/tm_devices/commands/gen_1zn03_mso/search.py index 718ef7a3..f9aec986 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/search.py +++ b/src/tm_devices/commands/gen_1zn03_mso/search.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSelected(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/select.py b/src/tm_devices/commands/gen_1zn03_mso/select.py index 2a691080..e8a685e5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/select.py +++ b/src/tm_devices/commands/gen_1zn03_mso/select.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectDchItemDall(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py index c5b7e018..6ad1e474 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py +++ b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/trigger.py b/src/tm_devices/commands/gen_1zn03_mso/trigger.py index 32e4bdda..c9a30266 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/trigger.py +++ b/src/tm_devices/commands/gen_1zn03_mso/trigger.py @@ -208,7 +208,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py index ce24694d..a31ba95d 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py +++ b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AfgcontrolCscopy(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/data.py b/src/tm_devices/commands/gen_22daqs_afg/data.py index 3d66e499..28bd61e5 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/data.py +++ b/src/tm_devices/commands/gen_22daqs_afg/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataPoints(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py index e2a1b4ec..4122e64e 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py +++ b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagnosticAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/display.py b/src/tm_devices/commands/gen_22daqs_afg/display.py index cf0f5a28..db3d6c14 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/display.py +++ b/src/tm_devices/commands/gen_22daqs_afg/display.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWindowTextData(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py index 393c484f..ddef0abf 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py +++ b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HcopySdumpImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/memory.py b/src/tm_devices/commands/gen_22daqs_afg/memory.py index b0020d45..3c421e0d 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/memory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/memory.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MemoryStateValid(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py index e5efab1c..5661d9b4 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MmemoryStoreTrace(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output.py b/src/tm_devices/commands/gen_22daqs_afg/output.py index 30eb86be..a0044cac 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class OutputTriggerMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output1.py b/src/tm_devices/commands/gen_22daqs_afg/output1.py index 367390e5..3f7b7190 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output1.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Output1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output2.py b/src/tm_devices/commands/gen_22daqs_afg/output2.py index a2d12431..8a7590a1 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output2.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Output2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source.py b/src/tm_devices/commands/gen_22daqs_afg/source.py index 09f82a22..83107a9f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SourceRoscillatorSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source1.py b/src/tm_devices/commands/gen_22daqs_afg/source1.py index 6ae65e05..c628ee85 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source1.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Source1VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source2.py b/src/tm_devices/commands/gen_22daqs_afg/source2.py index 1b353aa1..e385b770 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source2.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Source2VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source3.py b/src/tm_devices/commands/gen_22daqs_afg/source3.py index eb872d84..cca4de71 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source3.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source3.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Source3PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source4.py b/src/tm_devices/commands/gen_22daqs_afg/source4.py index 6c8e1488..0205f7f5 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source4.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source4.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Source4PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/status.py b/src/tm_devices/commands/gen_22daqs_afg/status.py index fdff46fa..50358056 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/status.py +++ b/src/tm_devices/commands/gen_22daqs_afg/status.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/system.py b/src/tm_devices/commands/gen_22daqs_afg/system.py index 14418099..4480deae 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/system.py +++ b/src/tm_devices/commands/gen_22daqs_afg/system.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/trigger.py b/src/tm_devices/commands/gen_22daqs_afg/trigger.py index cd45041c..be38f794 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/trigger.py +++ b/src/tm_devices/commands/gen_22daqs_afg/trigger.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerSequenceTimer(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py index 6600ecf3..272e1fd3 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Abort(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py index 30a3dd77..aaa505c4 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py index f02660bd..9c5925c9 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py index 1ef26889..37fc9da5 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BwaveformSrate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py index 989fd030..963e0280 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py index 845e84f5..4ddb0a4e 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py index a717c69a..ee77bb50 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py index ce3a3aa3..72df24a8 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py index ca5836d1..671f6090 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py index 0002ca2d..9ce462e2 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/output.py b/src/tm_devices/commands/gen_2i1z2s_awg/output.py index e0bbd193..fca5e9a2 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/output.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/output.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/source.py b/src/tm_devices/commands/gen_2i1z2s_awg/source.py index 5430c467..36169506 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/source.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/source.py @@ -78,7 +78,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py index 6dc4584d..e41857e8 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SynchronizeType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/system.py b/src/tm_devices/commands/gen_2i1z2s_awg/system.py index 7be6a541..7e573fea 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/system.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/system.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py index 1444da60..a3e0eba1 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py index bad09a20..15b88329 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py @@ -144,7 +144,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py index df37c4ff..ffdf1d3a 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py @@ -70,7 +70,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py index 4316c214..96bc043c 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/display.py b/src/tm_devices/commands/gen_32dszm_awg/display.py index 619c8609..6c4ba89a 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/display.py +++ b/src/tm_devices/commands/gen_32dszm_awg/display.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWindow2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/event.py b/src/tm_devices/commands/gen_32dszm_awg/event.py index 82c09ecf..e9adbc05 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/event.py +++ b/src/tm_devices/commands/gen_32dszm_awg/event.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EventPolarity(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/instrument.py b/src/tm_devices/commands/gen_32dszm_awg/instrument.py index 66429595..60b3d27b 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/instrument.py +++ b/src/tm_devices/commands/gen_32dszm_awg/instrument.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class InstrumentCoupleSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py index 38231504..41716f7e 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py +++ b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MmemoryMsis(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/output.py b/src/tm_devices/commands/gen_32dszm_awg/output.py index 8e257146..78873589 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/output.py +++ b/src/tm_devices/commands/gen_32dszm_awg/output.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class OutputItemState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/sequence.py b/src/tm_devices/commands/gen_32dszm_awg/sequence.py index 4be15e22..d0515510 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/sequence.py +++ b/src/tm_devices/commands/gen_32dszm_awg/sequence.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SequenceLength(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/slist.py b/src/tm_devices/commands/gen_32dszm_awg/slist.py index 37528903..fb424c1f 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/slist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/slist.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SlistSubsequenceTstamp(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/source.py b/src/tm_devices/commands/gen_32dszm_awg/source.py index 4c2d04bc..e11f6922 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/source.py +++ b/src/tm_devices/commands/gen_32dszm_awg/source.py @@ -83,7 +83,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/status.py b/src/tm_devices/commands/gen_32dszm_awg/status.py index 7e5a4820..e516064b 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/status.py +++ b/src/tm_devices/commands/gen_32dszm_awg/status.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/system.py b/src/tm_devices/commands/gen_32dszm_awg/system.py index 4ed0aba9..ba4ed890 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/system.py +++ b/src/tm_devices/commands/gen_32dszm_awg/system.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/trigger.py b/src/tm_devices/commands/gen_32dszm_awg/trigger.py index 60820496..7b59b9e5 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/trigger.py +++ b/src/tm_devices/commands/gen_32dszm_awg/trigger.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerSequenceWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/wlist.py b/src/tm_devices/commands/gen_32dszm_awg/wlist.py index 644ea0f4..ea325421 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/wlist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/wlist.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py index d3795b24..2e6ff11e 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Abort(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py index 08fe472f..3294a7b2 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibrationAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/active.py b/src/tm_devices/commands/gen_3n9auv_awg/active.py index fbe02e34..7c5e762f 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/active.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/active.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ActiveMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py index 6260eb1f..68a6f1fd 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibrationStopState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py index ce2f4539..a6d3d60e 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ConnectivityStatus(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/display.py b/src/tm_devices/commands/gen_3n9auv_awg/display.py index 91895406..e2df83ef 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/display.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/display.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayPlotState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/output.py b/src/tm_devices/commands/gen_3n9auv_awg/output.py index b38843d4..b904394f 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/output.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class OutputOff(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/slist.py b/src/tm_devices/commands/gen_3n9auv_awg/slist.py index 8b4cad1f..c63b5055 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/slist.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/slist.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SlistSize(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/status.py b/src/tm_devices/commands/gen_3n9auv_awg/status.py index 42a7ddd2..8ced5e7b 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/status.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/status.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class StatusQuestionablePtransition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py index a9fb09f7..508653a6 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WpluginPlugins(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py index f431291a..bce31ea7 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py index 7274542f..49a8c435 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AwgcontrolTimerStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py index 9ee5c806..d4f5ddbc 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BwaveformSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py index f22ea668..f3921cf1 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py index bbd877fb..e3537f55 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py index 56b6218c..c194e3f4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py index dd6afb6f..0c7bf86c 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py index 9d90437b..b4293f06 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py index b2441af3..86cbae0e 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/output.py b/src/tm_devices/commands/gen_3rs8qy_awg/output.py index 316fccf7..46425579 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/output.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/output.py @@ -46,7 +46,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/source.py b/src/tm_devices/commands/gen_3rs8qy_awg/source.py index ff43250e..62608c61 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/source.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/source.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py index 41de115a..d0e1fd83 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SynchronizeType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/system.py b/src/tm_devices/commands/gen_3rs8qy_awg/system.py index 0819ea54..0aa4290b 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/system.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/system.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py index 5a6df680..04a6fdfa 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py index 2d2925e8..54436776 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py index 4551f32d..edc4d769 100644 --- a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py @@ -1042,7 +1042,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py index a9a84f96..e6bcb125 100644 --- a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py @@ -1052,7 +1052,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py index 0fd617a5..e9319f83 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Channelmapping(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py index bfaa4a78..226bfd6f 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py @@ -50,7 +50,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CounterView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py index 530ca8ac..fc847ee7 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py @@ -177,7 +177,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py index 0adc6cca..cb181db9 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class IdnmultiscopeDigitalBit(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py index ca1bcccb..26d0dd16 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LinktrainingTriggeron(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py index 02c90585..5895bfe2 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py index 5c5422a3..86bcb05d 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py index 8fde5f5a..b8d04fab 100644 --- a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py +++ b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FpanelPress(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_561g9r_mso/trigger.py b/src/tm_devices/commands/gen_561g9r_mso/trigger.py index f89044b1..fe1f68ea 100644 --- a/src/tm_devices/commands/gen_561g9r_mso/trigger.py +++ b/src/tm_devices/commands/gen_561g9r_mso/trigger.py @@ -1056,7 +1056,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py index 831c3741..48244547 100644 --- a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py +++ b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py @@ -214,7 +214,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py index 5333b04f..7e5df760 100644 --- a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py +++ b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py index bc0661b0..b3360b31 100644 --- a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py +++ b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py @@ -209,7 +209,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py index d8914b74..220e46eb 100644 --- a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py +++ b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py @@ -717,7 +717,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DpojetVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py index d02f6744..649ab77c 100644 --- a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py +++ b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py @@ -1008,7 +1008,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py index 4cbca1a7..425e08c1 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/script.py b/src/tm_devices/commands/gen_60xy3r_smu/script.py index b7cd9138..e000d59d 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/script.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/smu.py b/src/tm_devices/commands/gen_60xy3r_smu/smu.py index 9eaf5da5..a1c4cdd2 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/smu.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py index fae3140f..1d15e36c 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py index 9b8efdcb..4d9cc778 100644 --- a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py +++ b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/smu.py b/src/tm_devices/commands/gen_6srh1x_smu/smu.py index d2ba7616..96156291 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/smu.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py index 89173864..15846155 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/acal.py b/src/tm_devices/commands/gen_6vynmi_smu/acal.py index 791072a2..21a2f945 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/acal.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/acal.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class AcalLastrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/smu.py b/src/tm_devices/commands/gen_6vynmi_smu/smu.py index 2404459d..6ee2e28d 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/smu.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/smu.py @@ -145,7 +145,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py index 18e6c692..aef20601 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py index 9eacf9a8..ee7ee77d 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6w7311_smu/trigger.py b/src/tm_devices/commands/gen_6w7311_smu/trigger.py index c6d3aa46..37b909b3 100644 --- a/src/tm_devices/commands/gen_6w7311_smu/trigger.py +++ b/src/tm_devices/commands/gen_6w7311_smu/trigger.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py index 1d0fce12..4c1a3603 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py index 0db7ebb3..908f4024 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py @@ -106,7 +106,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py index 02394f43..76c9ef5b 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py index 362730dc..a6f171ca 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py @@ -43,7 +43,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/display.py b/src/tm_devices/commands/gen_7kqm9p_smu/display.py index da490f48..3079b75e 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/display.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py index 0cbc063b..4d4d91f8 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py index 5fc1db80..acc1156d 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7ryhce_smu/status.py b/src/tm_devices/commands/gen_7ryhce_smu/status.py index 53c74dc9..c3e03aad 100644 --- a/src/tm_devices/commands/gen_7ryhce_smu/status.py +++ b/src/tm_devices/commands/gen_7ryhce_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py index 133e19f3..44e3cf43 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py index 8fa326b3..bf37fcff 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Buffervar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py index 28275809..487ca0be 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py index 203a0276..be763070 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/display.py b/src/tm_devices/commands/gen_7s2p1p_smu/display.py index 68670d55..acc571e6 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/display.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/display.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py index ff99061d..60dd5930 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py index fe7bf53e..150a6a3a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/format.py b/src/tm_devices/commands/gen_7s2p1p_smu/format.py index eb82a64f..e20e4fc0 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/format.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/format.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py index 521c8d30..61ffab64 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py index 272b76d6..87fa4f5d 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py index b1f3dc5b..fb65e6e5 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py index b44294cb..13c023df 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py @@ -128,7 +128,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/status.py b/src/tm_devices/commands/gen_7s2p1p_smu/status.py index ed254c99..8f33f8b6 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/status.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/status.py @@ -121,7 +121,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py index 0bd1e137..dc111b68 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py index 333abcd4..93aa7198 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py @@ -20,7 +20,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py index 3e1b310e..e46cc2f8 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s43m8_smu/status.py b/src/tm_devices/commands/gen_7s43m8_smu/status.py index 78dfeae6..729a1212 100644 --- a/src/tm_devices/commands/gen_7s43m8_smu/status.py +++ b/src/tm_devices/commands/gen_7s43m8_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s6wr5_smu/status.py b/src/tm_devices/commands/gen_7s6wr5_smu/status.py index 43d57fb3..c915e6f5 100644 --- a/src/tm_devices/commands/gen_7s6wr5_smu/status.py +++ b/src/tm_devices/commands/gen_7s6wr5_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/display.py b/src/tm_devices/commands/gen_8ojdkz_smu/display.py index ab95e397..5fa7ef91 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/display.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/node.py b/src/tm_devices/commands/gen_8ojdkz_smu/node.py index b2afc7a1..335444a1 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/node.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py index 12ae09ad..dba2bb0b 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py @@ -117,7 +117,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/status.py b/src/tm_devices/commands/gen_8ojdkz_smu/status.py index 3022432f..73af6254 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/status.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8wm55i_smu/smux.py b/src/tm_devices/commands/gen_8wm55i_smu/smux.py index 435e571e..3fb098ab 100644 --- a/src/tm_devices/commands/gen_8wm55i_smu/smux.py +++ b/src/tm_devices/commands/gen_8wm55i_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9kezla_smu/smux.py b/src/tm_devices/commands/gen_9kezla_smu/smux.py index b5835c7b..bd92b1b9 100644 --- a/src/tm_devices/commands/gen_9kezla_smu/smux.py +++ b/src/tm_devices/commands/gen_9kezla_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py index a6f6206d..77c24481 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/display.py b/src/tm_devices/commands/gen_9mzp2j_smu/display.py index 2bd20154..067f4581 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/display.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py index e2fe132a..ce020640 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9ncc6e_smu/display.py b/src/tm_devices/commands/gen_9ncc6e_smu/display.py index 8cb52f7e..22dd79cd 100644 --- a/src/tm_devices/commands/gen_9ncc6e_smu/display.py +++ b/src/tm_devices/commands/gen_9ncc6e_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9nnkq7_smu/status.py b/src/tm_devices/commands/gen_9nnkq7_smu/status.py index 9ff66ed7..7a8c45b3 100644 --- a/src/tm_devices/commands/gen_9nnkq7_smu/status.py +++ b/src/tm_devices/commands/gen_9nnkq7_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9slyux_smu/status.py b/src/tm_devices/commands/gen_9slyux_smu/status.py index 168cc26c..24b81e8c 100644 --- a/src/tm_devices/commands/gen_9slyux_smu/status.py +++ b/src/tm_devices/commands/gen_9slyux_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py index 905f56f5..dfee9ba8 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py index dd40009e..6fb91bae 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py @@ -41,7 +41,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py index 948a99eb..f46165bd 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/lan.py b/src/tm_devices/commands/gen_ahkybr_smu/lan.py index 0a114eb6..2a9ee3b5 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/lan.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/lan.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/os.py b/src/tm_devices/commands/gen_ahkybr_smu/os.py index 23b7da9e..800eaefb 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/os.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/os.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/script.py b/src/tm_devices/commands/gen_ahkybr_smu/script.py index e7c46c81..1f32a26c 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/script.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/script.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py index bc88ee30..bfeb9c3a 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py index 5d11e9cf..f4375c2f 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py index cf25a849..bfef495b 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py index ba0d1344..1ee07cd7 100644 --- a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py +++ b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ak4990_smu/smux.py b/src/tm_devices/commands/gen_ak4990_smu/smux.py index 93be15a7..efb7157f 100644 --- a/src/tm_devices/commands/gen_ak4990_smu/smux.py +++ b/src/tm_devices/commands/gen_ak4990_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/smux.py b/src/tm_devices/commands/gen_am6pcr_smu/smux.py index 16035058..f4986bcd 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/smux.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/status.py b/src/tm_devices/commands/gen_am6pcr_smu/status.py index 241d1217..1c3c96d1 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/status.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/status.py @@ -230,7 +230,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/digio.py b/src/tm_devices/commands/gen_amm5lc_smu/digio.py index 9364f2f9..76c1df29 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/digio.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py index 923659cd..47f0ba2c 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aostep_smu/serial.py b/src/tm_devices/commands/gen_aostep_smu/serial.py index bccae7b4..c3033c63 100644 --- a/src/tm_devices/commands/gen_aostep_smu/serial.py +++ b/src/tm_devices/commands/gen_aostep_smu/serial.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py index 24ad42fb..703d431b 100644 --- a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py +++ b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py index 43725ea8..b1e215a0 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/smux.py b/src/tm_devices/commands/gen_as1ejq_smu/smux.py index 64527d00..afda8eea 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/smux.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/status.py b/src/tm_devices/commands/gen_as1ejq_smu/status.py index 01b82dff..256494cc 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/status.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/status.py @@ -235,7 +235,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_at7jl1_smu/display.py b/src/tm_devices/commands/gen_at7jl1_smu/display.py index a48dea00..e56e6842 100644 --- a/src/tm_devices/commands/gen_at7jl1_smu/display.py +++ b/src/tm_devices/commands/gen_at7jl1_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/digio.py b/src/tm_devices/commands/gen_au597k_smu/digio.py index badf5bd8..1db87c01 100644 --- a/src/tm_devices/commands/gen_au597k_smu/digio.py +++ b/src/tm_devices/commands/gen_au597k_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/format.py b/src/tm_devices/commands/gen_au597k_smu/format.py index 226ee2fe..6a854cea 100644 --- a/src/tm_devices/commands/gen_au597k_smu/format.py +++ b/src/tm_devices/commands/gen_au597k_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/tsplink.py b/src/tm_devices/commands/gen_au597k_smu/tsplink.py index 90fecfc1..8d7a0465 100644 --- a/src/tm_devices/commands/gen_au597k_smu/tsplink.py +++ b/src/tm_devices/commands/gen_au597k_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/format.py b/src/tm_devices/commands/gen_auyr50_smu/format.py index 6647ac7f..9c8efe7b 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/format.py +++ b/src/tm_devices/commands/gen_auyr50_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/localnode.py b/src/tm_devices/commands/gen_auyr50_smu/localnode.py index db16f80b..51285959 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/localnode.py +++ b/src/tm_devices/commands/gen_auyr50_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/node.py b/src/tm_devices/commands/gen_auyr50_smu/node.py index f694ef93..0e8d86e6 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/node.py +++ b/src/tm_devices/commands/gen_auyr50_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/display.py b/src/tm_devices/commands/gen_avh0iw_smu/display.py index 4d297768..6f03b3bd 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/display.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py index f60366eb..159295cd 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_awhjao_smu/status.py b/src/tm_devices/commands/gen_awhjao_smu/status.py index cba713c2..402637fa 100644 --- a/src/tm_devices/commands/gen_awhjao_smu/status.py +++ b/src/tm_devices/commands/gen_awhjao_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/digio.py b/src/tm_devices/commands/gen_by991s_smudaq/digio.py index 4dbbf5ca..e0aaae73 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/digio.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/status.py b/src/tm_devices/commands/gen_by991s_smudaq/status.py index 41645f08..243ffc6d 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/status.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py index 2329da67..6340f0b2 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ActoneventType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py index 9361e1d2..68916342 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py @@ -623,7 +623,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py index 500cb61a..05418596 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py index 302704e4..a7f79055 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py @@ -107,7 +107,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py index 9f657daf..c2631887 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py @@ -409,7 +409,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py index 4943644e..ae858745 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FilesysCollectlogfiles(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py index 35972345..1d86786a 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py index d97d8cb4..8d918ab2 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py index e782b8de..feec2af3 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py index 384521e5..67024bdd 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py @@ -162,7 +162,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py index a0c1a066..5b58b6c5 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasuMeas1SubgroupResultsCurrentacqStddev(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py index d22d295b..fe73c42b 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py @@ -755,7 +755,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py index 07eb184e..8699961d 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py index 3c59c095..def16d80 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py @@ -629,7 +629,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PowerPowerItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py index 67be9bea..a543981b 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py index eab1d3f0..61826f04 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py @@ -96,7 +96,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RemoteUsbdescriptors(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py index ecbd84cb..8dcce7ce 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SItemChannelScale(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py index f4ac9fc3..d0cae747 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py index bf33b9a2..efebad95 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py index cccb1fdb..4975a874 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py @@ -1232,7 +1232,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py index 99c894f9..0f0926c7 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Searchtable(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py index d8364e29..d240496e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py @@ -93,7 +93,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SvSpectrogramCursorB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py index 6691811c..8cedbefb 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py @@ -37,7 +37,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerBType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py index 149252b1..52ea46f1 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LicUninstall(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py index ca16b434..c4e262a3 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffer.py b/src/tm_devices/commands/gen_canxny_daq/buffer.py index 9f70c098..1364537f 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffer.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffer.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffervar.py b/src/tm_devices/commands/gen_canxny_daq/buffervar.py index bed6ec29..18c27ace 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffervar.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_canxny_daq/channel.py b/src/tm_devices/commands/gen_canxny_daq/channel.py index 9f63cb47..ffa054d7 100644 --- a/src/tm_devices/commands/gen_canxny_daq/channel.py +++ b/src/tm_devices/commands/gen_canxny_daq/channel.py @@ -47,7 +47,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/display.py b/src/tm_devices/commands/gen_canxny_daq/display.py index 99fac76e..f263aef0 100644 --- a/src/tm_devices/commands/gen_canxny_daq/display.py +++ b/src/tm_devices/commands/gen_canxny_daq/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/dmm.py b/src/tm_devices/commands/gen_canxny_daq/dmm.py index ec7b6632..37e0b72e 100644 --- a/src/tm_devices/commands/gen_canxny_daq/dmm.py +++ b/src/tm_devices/commands/gen_canxny_daq/dmm.py @@ -131,7 +131,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/scan.py b/src/tm_devices/commands/gen_canxny_daq/scan.py index 36cca957..a2e256b7 100644 --- a/src/tm_devices/commands/gen_canxny_daq/scan.py +++ b/src/tm_devices/commands/gen_canxny_daq/scan.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/slot.py b/src/tm_devices/commands/gen_canxny_daq/slot.py index df8628f8..d1e561ef 100644 --- a/src/tm_devices/commands/gen_canxny_daq/slot.py +++ b/src/tm_devices/commands/gen_canxny_daq/slot.py @@ -38,7 +38,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/trigger.py b/src/tm_devices/commands/gen_canxny_daq/trigger.py index af4abeb7..70b0efdb 100644 --- a/src/tm_devices/commands/gen_canxny_daq/trigger.py +++ b/src/tm_devices/commands/gen_canxny_daq/trigger.py @@ -118,7 +118,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/tsplink.py b/src/tm_devices/commands/gen_canxny_daq/tsplink.py index d087c3d4..4104bddb 100644 --- a/src/tm_devices/commands/gen_canxny_daq/tsplink.py +++ b/src/tm_devices/commands/gen_canxny_daq/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/upgrade.py b/src/tm_devices/commands/gen_canxny_daq/upgrade.py index 5df1d556..04bc053e 100644 --- a/src/tm_devices/commands/gen_canxny_daq/upgrade.py +++ b/src/tm_devices/commands/gen_canxny_daq/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/acal.py b/src/tm_devices/commands/gen_d6b496_dmm/acal.py index d03cf02c..9246c144 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/acal.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/acal.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class AcalNextrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py index 55800d20..f4f2d0bf 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py index 40264cfb..de8cb5c2 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py @@ -39,7 +39,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes diff --git a/src/tm_devices/commands/gen_d6b496_dmm/display.py b/src/tm_devices/commands/gen_d6b496_dmm/display.py index 519e38d5..dc0b1047 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/display.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py index 1ff5f8f6..7a92ccbf 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py @@ -108,7 +108,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DmmTriggerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/fan.py b/src/tm_devices/commands/gen_d6b496_dmm/fan.py index d6281ac7..ad1cbc3c 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/fan.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/fan.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Fan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py index 944642dc..a517da6d 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py index 8740ac03..a4f7747b 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py @@ -114,7 +114,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py index 480101c3..7a14baf6 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py index 92a6b57b..bc710b67 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py index a4e94a43..5a51f9b0 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/display.py b/src/tm_devices/commands/gen_d83qe0_dmm/display.py index 81ef8067..f8c1f090 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/display.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py index d32c5ad3..b476f8af 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py @@ -92,7 +92,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py index 876eb30a..0cec8184 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py index 69829226..4c4fc7bb 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py index c0b1a59f..35d56293 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py index 92d02b74..a9255bcc 100644 --- a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py +++ b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py index b261356e..04b04da4 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py index 060c714a..dce24042 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py index ca9970f2..e8b4793d 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class File(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py index 3143e1cb..96843316 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py index e60706da..d36be4ca 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Lan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py index c901fbed..a41bac1d 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py index cdcc55bf..94396e22 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Timer(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py index 9b2dbd24..03684052 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py index c07b5adb..6efe1281 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py index dfe3f7e8..a3ad628c 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py index fd82f01f..d012ed65 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py index 46950cbc..db81c925 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py index ff632757..6075e473 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py index ee8766f8..47342314 100644 --- a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py +++ b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py index 1befaa39..5aecad53 100644 --- a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py +++ b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py index b05fbddf..81d993d2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py index 9f786aad..ce818262 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py index 95e026a9..f8672deb 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ApplicationActivate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py index 1e1e9885..4a933129 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py index eb0a027c..06fc1889 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py @@ -653,7 +653,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py index 32c03a78..517a0498 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py index 9b3a47ca..7ecb3196 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py @@ -137,7 +137,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py index ec37a908..0dd95f4d 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py index 8749bddc..d91ba2a1 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiggrpItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py index 13327bce..46aa9363 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py @@ -400,7 +400,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py index 75e28e92..bb170700 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DvmTriggerFrequencyCounter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py index ba36f220..c38810d0 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py index 4561b71b..25839278 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py index 521801e7..55a7665d 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py @@ -92,7 +92,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py index 7e3fa1af..587ce0df 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py index 379f8060..6d0a2fdc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py index 8b91305d..5e2131d3 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py @@ -163,7 +163,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py index 3849be82..8161b9dc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py @@ -845,7 +845,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py index 9e54cc25..e61d930a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PiloggerState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py index 9abc5651..2625158a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py @@ -87,7 +87,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py index d5d66df6..312ab87a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py @@ -521,7 +521,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PowerPowerItemWrapState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py index c99673a1..21326e95 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefRefItemSource(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py index 5d609f6d..c45a8992 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py index 9996d0ba..aea73bd5 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py index b60fa77d..b2d48b59 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py index 3b512530..caa7c2a0 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py index aac8b909..85b9af59 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py @@ -1231,7 +1231,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py index 1b588940..da674616 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchtableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py index 6ee32fb9..34ef555f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py index c2923297..1dc3077e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py @@ -100,7 +100,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SvWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py index 94422c0e..efe31f38 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py index d783cb11..c02ccc86 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py @@ -974,7 +974,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py index 54960862..4b61ebd9 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TstamptableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py index 3f3fd85a..3278112b 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py @@ -53,7 +53,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py index 9eef3241..92616c59 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AutosetVerticalOptimize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py index 3d2b3123..5a597bd5 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibratePwrupstatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py index c127e9b6..75d833c8 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ConnectedUsageTrackStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py index e0510938..c5e9a0a6 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py index 45d66657..3841605c 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3pief_ss/beeper.py b/src/tm_devices/commands/gen_e3pief_ss/beeper.py index 0fc2e554..0a6516fc 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/beeper.py +++ b/src/tm_devices/commands/gen_e3pief_ss/beeper.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py index 37b7a913..3ca58ee1 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/channel.py b/src/tm_devices/commands/gen_e3pief_ss/channel.py index dc209d32..9f723372 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/channel.py +++ b/src/tm_devices/commands/gen_e3pief_ss/channel.py @@ -77,7 +77,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ChannelTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/comm.py b/src/tm_devices/commands/gen_e3pief_ss/comm.py index 26df358c..b72be6c2 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/comm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/comm.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class CommLanWeb(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/digio.py b/src/tm_devices/commands/gen_e3pief_ss/digio.py index f7162aec..c30270fc 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/digio.py +++ b/src/tm_devices/commands/gen_e3pief_ss/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/display.py b/src/tm_devices/commands/gen_e3pief_ss/display.py index d159f17d..9327da6d 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/display.py +++ b/src/tm_devices/commands/gen_e3pief_ss/display.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/dmm.py b/src/tm_devices/commands/gen_e3pief_ss/dmm.py index da24d004..f49089d7 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/dmm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/dmm.py @@ -94,7 +94,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class DmmRel(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py index 0be3161f..bd69a303 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py +++ b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/format.py b/src/tm_devices/commands/gen_e3pief_ss/format.py index 1351fa9a..86221d5f 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/format.py +++ b/src/tm_devices/commands/gen_e3pief_ss/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/lan.py b/src/tm_devices/commands/gen_e3pief_ss/lan.py index 65362f57..f9d62b6e 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/lan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/lan.py @@ -63,7 +63,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/localnode.py b/src/tm_devices/commands/gen_e3pief_ss/localnode.py index 110c203a..91704176 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/localnode.py +++ b/src/tm_devices/commands/gen_e3pief_ss/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/memory.py b/src/tm_devices/commands/gen_e3pief_ss/memory.py index 2bdad050..08a2cbe8 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/memory.py +++ b/src/tm_devices/commands/gen_e3pief_ss/memory.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Memory(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/os.py b/src/tm_devices/commands/gen_e3pief_ss/os.py index d03abe56..ba9c00bc 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/os.py +++ b/src/tm_devices/commands/gen_e3pief_ss/os.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/ptp.py b/src/tm_devices/commands/gen_e3pief_ss/ptp.py index 5211651f..bdf863a8 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/ptp.py +++ b/src/tm_devices/commands/gen_e3pief_ss/ptp.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class PtpDs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scan.py b/src/tm_devices/commands/gen_e3pief_ss/scan.py index 92f01999..3404699b 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scan.py @@ -49,7 +49,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ScanTriggerSequence(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/schedule.py b/src/tm_devices/commands/gen_e3pief_ss/schedule.py index 584fb4a0..8393ec96 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/schedule.py +++ b/src/tm_devices/commands/gen_e3pief_ss/schedule.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class ScheduleAlarmItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/script.py b/src/tm_devices/commands/gen_e3pief_ss/script.py index 4afe9aab..466bf623 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/script.py +++ b/src/tm_devices/commands/gen_e3pief_ss/script.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py index d4af4e10..cc38824a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py index 0c66185e..41701fd7 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py +++ b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/slot.py b/src/tm_devices/commands/gen_e3pief_ss/slot.py index b8d020c9..95167c53 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/slot.py +++ b/src/tm_devices/commands/gen_e3pief_ss/slot.py @@ -37,7 +37,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class SlotItemThermal(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/status.py b/src/tm_devices/commands/gen_e3pief_ss/status.py index c1742f0d..abe82970 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/status.py +++ b/src/tm_devices/commands/gen_e3pief_ss/status.py @@ -75,7 +75,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/trigger.py b/src/tm_devices/commands/gen_e3pief_ss/trigger.py index e6dcb95d..30ef77b7 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/trigger.py +++ b/src/tm_devices/commands/gen_e3pief_ss/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py index 0bb69c5c..42e72963 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py +++ b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py index 71e9f527..9a817af3 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py +++ b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py index cdeb1298..fee52227 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py index 72bd66f0..84752bf2 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EyemaskMaskItemTestStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py index 47da0f48..38a452df 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MatharbfltItemFilepath(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py index 37b9e78d..6271d04c 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PeakstableTableItemFresolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py index b2eb2ef3..3983d7a5 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py @@ -59,7 +59,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefItemDallLabelYpos(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py index 7d5d95b5..bd6b2ddb 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py @@ -58,7 +58,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class VisualShowequation(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py index e955db92..599fc986 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Autosavepitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py index 6b577f95..dbc70684 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Autosaveuitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py index 53a8e1ff..5bd5629e 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BustableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py index df2d1389..10f525fd 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ConfigurationAnalogBandwidth(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py index b3bafbf2..73913e37 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Curve(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py index 33504bb6..8d8ce823 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Curvestream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py index eac97db7..2809a245 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CustomtableList(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py index 3368d1d1..5ed411b5 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Date(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py index f15c8025..1beeb1d3 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py index a02a53e5..eb2abed7 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MainwindowRrbdisplaystate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py index d97c6dbb..ba0a8020 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeastableDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py index 1d5cab11..78c7ae87 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py index 07612cdc..6f186e83 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py index 2376ca76..398c6c22 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TimeZoneUtcdelta(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py index 2219343d..3d6b57db 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Undo(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py index 2abe5448..bede72bf 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class VerticalDeskewToSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py index b8fc85bd..da242a0a 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py index 009b90df..d6046a74 100644 --- a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py +++ b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Clear(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py index 1fb9bf45..6280c695 100644 --- a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py +++ b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Totaluptime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py index 63974945..acb8dbfa 100644 --- a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py +++ b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Pause(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py index f5898233..e900c173 100644 --- a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py +++ b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py index f0f40a5f..e1b7f20b 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Dataqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py index 0c142c25..134804c0 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Fs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py index c8bff9b1..a4346de0 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Userstring(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py index 383f737c..577c8b4a 100644 --- a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py +++ b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/bit.py b/src/tm_devices/commands/gen_efap3f_smuss/bit.py index b4d33e63..e963b74d 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/bit.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/bit.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Bit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py index 1d9671d0..0e6f74e1 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/io.py b/src/tm_devices/commands/gen_efap3f_smuss/io.py index ff7a04a6..7f0cd02f 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/io.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/io.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Io(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/timer.py b/src/tm_devices/commands/gen_efap3f_smuss/timer.py index 23794e0b..90be7d25 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/timer.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/timer.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class TimerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py index b170e00e..1521a3ba 100644 --- a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py +++ b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice class Gpib(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py index e1b06226..d34c108d 100644 --- a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py +++ b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py @@ -212,7 +212,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py index 04cad9fb..dfa5ec17 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Curve(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py index faa8a76e..d52dcab7 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Date(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py index a3a8e4a6..b9908f4b 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MathvarVarItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py index 5081b6d3..bcec3e87 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Sav(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py index 3491c3c3..f7d9e276 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireSyncsamples(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py index 35cf7522..1d7a2a57 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AllocateWaveformRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py index f60f0a75..6ddf91c8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ApplicationScopeappWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py index 484506e8..2b68c5ef 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AutosetPercent(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py index f8446591..e388c3d4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py @@ -63,7 +63,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxinVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py index 4a2af02e..c9f15f16 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py index acd9f065..804c9df6 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Bell(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py index 57238721..761a6557 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibrateResultsSpc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py index 5eae07a9..3bcf87b7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py @@ -113,7 +113,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py index 5a5ea207..99e04c99 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Clear(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py index 514ab644..b9b5efe8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Cmdbatch(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py index fd4d8121..4fe4d2f7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CqItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py index 8270f06a..6d924493 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py @@ -84,7 +84,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CursorXyYdelta(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py index 792d69cc..e2d3ecf9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Curvenext(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py index 2922d106..bd42606e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Curvestream(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py index e1a9b97b..b79a2a70 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CustomSelectGateItem(ValidatedDynamicNumberCmd, SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py index 7a62223b..f1902c1f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py index b2219f2f..5960692a 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataSyncsources(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py index bcfa6b5c..c5f47662 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DeleteWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py index f4656076..976c01b5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py index 8bf57ce8..053a1dfb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py @@ -120,7 +120,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py index c42a3304..23c5bb59 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py @@ -54,7 +54,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EmailWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py index a17e913d..0be13d7c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ExportView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py index ddf3ac65..b994ade1 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FastacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py index 36846218..1581d868 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py index 8e1682b7..3b38a7c8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py index 5fa5083d..f3859f68 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HardcopyView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py index 104545e8..a40bedb9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Hdr(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py index 5ee2e497..02339745 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HistogramState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py index d5003a4e..38029d48 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py @@ -146,7 +146,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalTimestampRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py index 654df522..ee6634d7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LimitTemplateToleranceVertical(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py index fcf01269..a5f0cd1f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py index ace8a8b2..0f703aff 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py @@ -185,7 +185,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py index 2f516cd9..54ec2468 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MathItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py index a2dd7bb8..92faf6fc 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MatharbfltItemReadfile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py index 84e5341a..9ae8136b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MchItemMinamplitude(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py index 7a6eca19..bc8134ad 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py @@ -139,7 +139,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py index 30fae1f5..93ef910a 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MultiscopeStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py index ca68ebba..557a7f8d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Opcextended(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py index 2db98c97..bd2a0fc1 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Pcenable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py index 70a06027..15bf8b38 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py index 45d57cf9..35e9a77a 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py index c829b787..433a7a87 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformForcesamefilesize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py index eb7eeae7..bbca8e1a 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Sds(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py index bf1ec627..1b892196 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveonWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py index c4b77602..8a8d7b9f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py @@ -726,7 +726,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchStop(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py index db727401..7d31ee7c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py index 0d2c85b2..d85ad858 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SetupName(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py index b5a25d2a..e8bc9681 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SystemSetup(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py index ccd92a53..9c95e247 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TeklinkRefclk(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py index 0470a0ec..f6512d5c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TestStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py index 9e71f501..498e2dd7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TrigAPlockStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py index 76324d77..a5f29fbf 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py index a4b547fe..c16b5cbd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py @@ -60,7 +60,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class VisualFileSave(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py index 03af0028..95f6ddb9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Wavfrmstream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py index d17efae4..54c1b766 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py index ba907fd6..09121797 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py index 3579e168..96fb3cde 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfmpreNrFr(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py index adc3a2c8..1f945e5c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py index 2eb6a0d8..93fd5f84 100644 --- a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py +++ b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py index cfcbf771..e808548d 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py @@ -175,7 +175,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py index 41f04733..7e62dfee 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py @@ -994,7 +994,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py index b3a195a9..2fb033d1 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CounterResultsValue(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py index cbc4e3fa..ecac8556 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LinktrainingSetup(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py index 69ff7356..bc1108b0 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py index 06c1c786..b2ce69eb 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Tst(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py index 0260f2ac..3146f978 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Wai(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py index 12b13ca4..13de7951 100644 --- a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Opt(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py index 64ebb1d4..aa3cc9fa 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Cal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py index 2d08ebef..ec78e6f1 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Trg(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py index 0e98ef82..3f768c83 100644 --- a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Sre(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py index 33448d26..e813f710 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py index aee8720f..71148f97 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py index cf8a4e31..1bbdedb3 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Ddt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py index 8fef2e04..54675852 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Newpass(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py index 0bbde6c0..083f4ea8 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Password(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py index 3514f30a..16653cee 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Teksecure(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py index d118945e..1c0ab595 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Allev(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py index 2731c532..770dee7d 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Busy(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py index 00967374..4d8b974a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Dese(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py index 769d4f25..8e4e7f53 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Event(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py index c8a3fced..289451cc 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Evmsg(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py index a0e7dfa3..d48a212f 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Evqty(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py index aba5456b..269599f0 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Factory(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py index 0bd83d4b..72547a0a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Header(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py index 7ae9c6d1..c797008f 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Id(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py index feca1dcb..3f3f4ec6 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Lrn(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py index 31367900..12c0e63a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Rem(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py index 5ca9cee2..6bdb3939 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Set(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py index ef52288c..238c5b79 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Pud(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py index ed569ce0..fda57afb 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Verbose(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py index 766a9af8..9695f53a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Wavfrm(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py index c8b0f824..bc07229c 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Lock(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py index a13556d0..aa6faa0f 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Unlock(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py index 6eca3bf0..f34ca956 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/alias.py b/src/tm_devices/commands/gen_u301s_msodpo/alias.py index 2f047d0e..b56812b1 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/alias.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/alias.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py index 1e184885..f6e5b967 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py index b2f97886..e3de1f94 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/bus.py b/src/tm_devices/commands/gen_u301s_msodpo/bus.py index 090751fd..e96c00d6 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/bus.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/bus.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BusUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py index 5f9b9694..be133bb8 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ch.py b/src/tm_devices/commands/gen_u301s_msodpo/ch.py index f6c233a6..e9cab735 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ch.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ch.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedChannel if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py index 6ec9eb36..84a5226e 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py @@ -65,7 +65,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/d.py b/src/tm_devices/commands/gen_u301s_msodpo/d.py index fa715f16..526eeba8 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/d.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/data.py b/src/tm_devices/commands/gen_u301s_msodpo/data.py index fd1dfad5..61151721 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/data.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/diag.py b/src/tm_devices/commands/gen_u301s_msodpo/diag.py index 0d64060d..69fc42da 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/diag.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/diag.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/display.py b/src/tm_devices/commands/gen_u301s_msodpo/display.py index e32c0dfb..5ef9d781 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/display.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/display.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayStyleDotsonly(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py index 5ddb7d06..2f97fd79 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py index 97f76ff3..4291580c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py index 935da846..14c8ba76 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FiltervuFrequencyAvailable(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py index d30edc9c..d36b6064 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py index aad2d8ee..9dbe392e 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py index 58c0b0f3..13c35dbc 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py index 0b379cbc..3be30282 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class HorizontalTriggerPosition(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/mark.py b/src/tm_devices/commands/gen_u301s_msodpo/mark.py index 41993023..cd9954b4 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/mark.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/mark.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/math1.py b/src/tm_devices/commands/gen_u301s_msodpo/math1.py index 1d40bbee..67dfbd82 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/math1.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/math1.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py index 2afd81dc..c486ec2c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py @@ -104,7 +104,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py index 49f78e96..3f5ffc96 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class PictbridgePrintqual(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/recall.py b/src/tm_devices/commands/gen_u301s_msodpo/recall.py index 329d3689..caed1181 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/recall.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ref.py b/src/tm_devices/commands/gen_u301s_msodpo/ref.py index 88a874f7..5f396e55 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ref.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ref.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/save.py b/src/tm_devices/commands/gen_u301s_msodpo/save.py index 431cac57..6e6d6b3e 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/save.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/save.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SaveWaveformSpreadsheetResolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/search.py b/src/tm_devices/commands/gen_u301s_msodpo/search.py index c75d7884..404ba248 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/search.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/search.py @@ -260,7 +260,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_u301s_msodpo/select.py b/src/tm_devices/commands/gen_u301s_msodpo/select.py index 8a6355d7..c434e020 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/select.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/select.py @@ -37,7 +37,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py index 30b5e875..0b9fa4d6 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py @@ -303,7 +303,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py index afd973a7..4937072e 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py index b16bac91..555c1554 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py index d5e8d1dd..280644e3 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py index 37fb9dae..cbd5a689 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py index 304b70a5..a8493afb 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py @@ -61,7 +61,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py index 43ca05da..b3f19c3e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py index 9d70cb43..f9793826 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/display.py b/src/tm_devices/commands/gen_ujuvb_mdo/display.py index 56cb9af0..9cb09979 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/display.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/display.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py index 0efe6bc8..dc3f3052 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class LockTouchscreen(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py index 2b8380d1..1d68727a 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py @@ -115,7 +115,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py index 5b44c1f4..f4a1d05e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/message.py b/src/tm_devices/commands/gen_ujuvb_mdo/message.py index 240a78f0..80896bab 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/message.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/message.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py index 6746ba70..093fe4c2 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py index 0404e781..12b4a9e7 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py @@ -122,7 +122,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py index 519983ed..2b48ecf6 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RrbState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/search.py b/src/tm_devices/commands/gen_ujuvb_mdo/search.py index ddd95a86..88aa0843 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/search.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/search.py @@ -395,7 +395,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/select.py b/src/tm_devices/commands/gen_ujuvb_mdo/select.py index b133be9c..be283c9b 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/select.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/select.py @@ -51,7 +51,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SelectRfNormal(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py index d342a56c..d49849f9 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class Setup1ItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py index 3caa9a34..43df5475 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py @@ -446,7 +446,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/rf.py b/src/tm_devices/commands/gen_usaa3_mdo/rf.py index f291ec6c..65b050b2 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/rf.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/rf.py @@ -132,7 +132,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/search.py b/src/tm_devices/commands/gen_usaa3_mdo/search.py index 5ae85802..ed4c2fd7 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/search.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/search.py @@ -405,7 +405,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py index ac3f8b74..a1cd005c 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py @@ -468,7 +468,7 @@ ) if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/helpers/generic_commands.py b/src/tm_devices/commands/helpers/generic_commands.py index 54ee17f4..ee38f2c2 100644 --- a/src/tm_devices/commands/helpers/generic_commands.py +++ b/src/tm_devices/commands/helpers/generic_commands.py @@ -13,7 +13,7 @@ from typing import Any, Callable, DefaultDict, Optional, Type, TYPE_CHECKING, Union if TYPE_CHECKING: - from tm_devices.drivers.device import Device + from tm_devices.driver_mixins.device_control.device import Device END_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?$") MIDDLE_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?") diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index 882c2807..a5428eb1 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -15,7 +15,7 @@ from .generic_commands import BaseCmd, END_OF_STRING_DIGITS, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice MAX_CHANNELS = 8 MAX_DIGITAL_BITS = 16 diff --git a/src/tm_devices/commands/helpers/tsp_commands.py b/src/tm_devices/commands/helpers/tsp_commands.py index 7783a169..bcb191f4 100644 --- a/src/tm_devices/commands/helpers/tsp_commands.py +++ b/src/tm_devices/commands/helpers/tsp_commands.py @@ -10,7 +10,7 @@ from .generic_commands import BaseCmd if TYPE_CHECKING: - from tm_devices.drivers.pi.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice #################################################################################################### diff --git a/src/tm_devices/commands/lpd6_commands.py b/src/tm_devices/commands/lpd6_commands.py index 005f75e4..c5eba278 100644 --- a/src/tm_devices/commands/lpd6_commands.py +++ b/src/tm_devices/commands/lpd6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mdo3_commands.py b/src/tm_devices/commands/mdo3_commands.py index 9e43c8ce..ca88dbaf 100644 --- a/src/tm_devices/commands/mdo3_commands.py +++ b/src/tm_devices/commands/mdo3_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1ltpwt_mdomsodpo.actonevent import Actonevent from .gen_1ltpwt_mdomsodpo.afg import Afg diff --git a/src/tm_devices/commands/mdo3k_commands.py b/src/tm_devices/commands/mdo3k_commands.py index 0e26ab6a..4a05f2f0 100644 --- a/src/tm_devices/commands/mdo3k_commands.py +++ b/src/tm_devices/commands/mdo3k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mdo4k_commands.py b/src/tm_devices/commands/mdo4k_commands.py index 9dcf0091..0d66fb0b 100644 --- a/src/tm_devices/commands/mdo4k_commands.py +++ b/src/tm_devices/commands/mdo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1kjd62_mdo.rf import Rf from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mdo4kb_commands.py b/src/tm_devices/commands/mdo4kb_commands.py index c1f78165..40942ea8 100644 --- a/src/tm_devices/commands/mdo4kb_commands.py +++ b/src/tm_devices/commands/mdo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kjd62_mdo.rf import Rf diff --git a/src/tm_devices/commands/mdo4kc_commands.py b/src/tm_devices/commands/mdo4kc_commands.py index 153a4c0d..2d16ea20 100644 --- a/src/tm_devices/commands/mdo4kc_commands.py +++ b/src/tm_devices/commands/mdo4kc_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1kdqwg_mdo.search import Search from .gen_1kdqwg_mdo.trigger import Trigger diff --git a/src/tm_devices/commands/mso2_commands.py b/src/tm_devices/commands/mso2_commands.py index f2eded87..6bc0998a 100644 --- a/src/tm_devices/commands/mso2_commands.py +++ b/src/tm_devices/commands/mso2_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1lwj1r_msomdodpo.rosc import Rosc from .gen_1zn03_mso.acquire import Acquire diff --git a/src/tm_devices/commands/mso2k_commands.py b/src/tm_devices/commands/mso2k_commands.py index cd1f02b9..1117cf53 100644 --- a/src/tm_devices/commands/mso2k_commands.py +++ b/src/tm_devices/commands/mso2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/mso2kb_commands.py b/src/tm_devices/commands/mso2kb_commands.py index 2bf6f44d..3e87b637 100644 --- a/src/tm_devices/commands/mso2kb_commands.py +++ b/src/tm_devices/commands/mso2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/mso4_commands.py b/src/tm_devices/commands/mso4_commands.py index ac8d6310..1ece7972 100644 --- a/src/tm_devices/commands/mso4_commands.py +++ b/src/tm_devices/commands/mso4_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso4b_commands.py b/src/tm_devices/commands/mso4b_commands.py index f01d2f91..90a6bcd2 100644 --- a/src/tm_devices/commands/mso4b_commands.py +++ b/src/tm_devices/commands/mso4b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso4k_commands.py b/src/tm_devices/commands/mso4k_commands.py index a9a4f079..43fedb87 100644 --- a/src/tm_devices/commands/mso4k_commands.py +++ b/src/tm_devices/commands/mso4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mso4kb_commands.py b/src/tm_devices/commands/mso4kb_commands.py index 2cdb6357..aa5c0460 100644 --- a/src/tm_devices/commands/mso4kb_commands.py +++ b/src/tm_devices/commands/mso4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mso5_commands.py b/src/tm_devices/commands/mso5_commands.py index 1223a7b7..3e4ab8b3 100644 --- a/src/tm_devices/commands/mso5_commands.py +++ b/src/tm_devices/commands/mso5_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso5b_commands.py b/src/tm_devices/commands/mso5b_commands.py index 445f954e..780330e1 100644 --- a/src/tm_devices/commands/mso5b_commands.py +++ b/src/tm_devices/commands/mso5b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso5k_commands.py b/src/tm_devices/commands/mso5k_commands.py index 264fdb12..00d29b49 100644 --- a/src/tm_devices/commands/mso5k_commands.py +++ b/src/tm_devices/commands/mso5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/mso5kb_commands.py b/src/tm_devices/commands/mso5kb_commands.py index eaf9535d..946fe913 100644 --- a/src/tm_devices/commands/mso5kb_commands.py +++ b/src/tm_devices/commands/mso5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5ri0nj_dpomso.bus import Bus from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/mso5lp_commands.py b/src/tm_devices/commands/mso5lp_commands.py index 64851b2a..b779de12 100644 --- a/src/tm_devices/commands/mso5lp_commands.py +++ b/src/tm_devices/commands/mso5lp_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso6_commands.py b/src/tm_devices/commands/mso6_commands.py index 4c41d39c..cc33c4b7 100644 --- a/src/tm_devices/commands/mso6_commands.py +++ b/src/tm_devices/commands/mso6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso6b_commands.py b/src/tm_devices/commands/mso6b_commands.py index 3d667094..dcb96df5 100644 --- a/src/tm_devices/commands/mso6b_commands.py +++ b/src/tm_devices/commands/mso6b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso70kc_commands.py b/src/tm_devices/commands/mso70kc_commands.py index 98ae0841..3ebf4a31 100644 --- a/src/tm_devices/commands/mso70kc_commands.py +++ b/src/tm_devices/commands/mso70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5ri0nj_dpomso.bus import Bus from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/mso70kdx_commands.py b/src/tm_devices/commands/mso70kdx_commands.py index 1296a8e9..9756e980 100644 --- a/src/tm_devices/commands/mso70kdx_commands.py +++ b/src/tm_devices/commands/mso70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_5xwdsk_dpodsamso.errordetector import Errordetector from .gen_5y90wx_dpodsamso.dpojet import Dpojet diff --git a/src/tm_devices/commands/smu2450_commands.py b/src/tm_devices/commands/smu2450_commands.py index a3f86ed9..84042f73 100644 --- a/src/tm_devices/commands/smu2450_commands.py +++ b/src/tm_devices/commands/smu2450_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_6w7311_smu.trigger import Trigger from .gen_7kqm9p_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2460_commands.py b/src/tm_devices/commands/smu2460_commands.py index 1ac27a05..75c2eb48 100644 --- a/src/tm_devices/commands/smu2460_commands.py +++ b/src/tm_devices/commands/smu2460_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_6ocqvh_smu.buffer import Buffer from .gen_6srh1x_smu.smu import Smu diff --git a/src/tm_devices/commands/smu2461_commands.py b/src/tm_devices/commands/smu2461_commands.py index d54525f2..eefaf536 100644 --- a/src/tm_devices/commands/smu2461_commands.py +++ b/src/tm_devices/commands/smu2461_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_6ocqvh_smu.buffer import Buffer from .gen_6vynmi_smu.acal import Acal diff --git a/src/tm_devices/commands/smu2470_commands.py b/src/tm_devices/commands/smu2470_commands.py index eaf894e8..218b156c 100644 --- a/src/tm_devices/commands/smu2470_commands.py +++ b/src/tm_devices/commands/smu2470_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_6w7311_smu.trigger import Trigger from .gen_6xiuc2_smu.buffer import Buffer diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 32496751..7e33b90f 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_7s6wr5_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2601b_pulse_commands.py b/src/tm_devices/commands/smu2601b_pulse_commands.py index ef021875..efb8ffe7 100644 --- a/src/tm_devices/commands/smu2601b_pulse_commands.py +++ b/src/tm_devices/commands/smu2601b_pulse_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_7s2p1p_smu.beeper import Beeper from .gen_7s2p1p_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index ec83044d..cda10a77 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_7s43m8_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index b8569566..86b96f25 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_7ryhce_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index 9010d007..1d7f3e93 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_8ojdkz_smu.display import Display from .gen_8ojdkz_smu.node import NodeItem diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index 8dcf9cec..4b2643fa 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_9kezla_smu.smux import SmuxItem from .gen_9ncc6e_smu.display import Display diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index 854bcacb..0cec9daf 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_9kezla_smu.smux import SmuxItem from .gen_ahkybr_smu.beeper import Beeper diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index 009b5f3a..457875b7 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_9kezla_smu.smux import SmuxItem from .gen_9mzp2j_smu.digio import Digio diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index 13a76268..a30e894d 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_9mzp2j_smu.digio import Digio from .gen_9mzp2j_smu.display import Display diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index 80586d2d..ded2cb9a 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_9ncc6e_smu.display import Display from .gen_9slyux_smu.status import Status diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index 62d1524c..40c4d525 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index 3b611f65..767ac715 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index 65a3ea5f..82bd258e 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/ss3706a_commands.py b/src/tm_devices/commands/ss3706a_commands.py index 295bf621..4e3b2746 100644 --- a/src/tm_devices/commands/ss3706a_commands.py +++ b/src/tm_devices/commands/ss3706a_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from .gen_e3pief_ss.beeper import Beeper from .gen_e3pief_ss.buffervar import Buffervar diff --git a/src/tm_devices/commands/tekscopepc_commands.py b/src/tm_devices/commands/tekscopepc_commands.py index 73e465ef..74564049 100644 --- a/src/tm_devices/commands/tekscopepc_commands.py +++ b/src/tm_devices/commands/tekscopepc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from .gen_c3g61_tekscopepc.actonevent import Actonevent from .gen_c3g61_tekscopepc.bus import Bus diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index 5bddc417..262f04d2 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -17,25 +17,25 @@ from typing_extensions import TypeVar from tm_devices.components import DMConfigParser +from tm_devices.driver_mixins.device_control.device import Device +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice -from tm_devices.drivers.device import Device +from tm_devices.drivers.afgs.afg import AFG +from tm_devices.drivers.awgs.awg import AWG +from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( + DataAcquisitionSystem, +) # noinspection PyProtectedMember from tm_devices.drivers.device_driver_mapping import ( _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] ) +from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.drivers.margin_testers.margin_tester import MarginTester -from tm_devices.drivers.pi.afgs.afg import AFG -from tm_devices.drivers.pi.awgs.awg import AWG -from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( - DataAcquisitionSystem, -) -from tm_devices.drivers.pi.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit -from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch +from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit +from tm_devices.drivers.scopes.scope import Scope +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import ( AliasDict, check_for_update, diff --git a/src/tm_devices/drivers/pi/base_afg_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py similarity index 94% rename from src/tm_devices/drivers/pi/base_afg_source_channel.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py index 0dfc0bb6..d51a82e7 100644 --- a/src/tm_devices/drivers/pi/base_afg_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py @@ -3,8 +3,10 @@ from abc import abstractmethod from typing import Literal -from tm_devices.drivers.pi.base_source_channel import BaseSourceChannel -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.abstract_device_functionality.base_source_channel import ( + BaseSourceChannel, +) +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.helpers.enums import SignalGeneratorFunctionBase diff --git a/src/tm_devices/drivers/pi/base_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py similarity index 96% rename from src/tm_devices/drivers/pi/base_source_channel.py rename to src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py index 05ac9709..72992b20 100644 --- a/src/tm_devices/drivers/pi/base_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py @@ -3,7 +3,7 @@ from abc import ABC, abstractmethod from typing import Optional -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice class BaseSourceChannel(ABC): diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/driver_mixins/device_control/device.py similarity index 100% rename from src/tm_devices/drivers/device.py rename to src/tm_devices/driver_mixins/device_control/device.py diff --git a/src/tm_devices/drivers/pi/pi_device.py b/src/tm_devices/driver_mixins/device_control/pi_device.py similarity index 99% rename from src/tm_devices/drivers/pi/pi_device.py rename to src/tm_devices/driver_mixins/device_control/pi_device.py index e23d972f..601644f9 100644 --- a/src/tm_devices/drivers/pi/pi_device.py +++ b/src/tm_devices/driver_mixins/device_control/pi_device.py @@ -17,8 +17,8 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.drivers.device import Device -from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands +from tm_devices.driver_mixins.device_control.device import Device +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( check_visa_connection, create_visa_connection, diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_device.py b/src/tm_devices/driver_mixins/device_control/rest_api_device.py index 651948bc..b80b11ef 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_device.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_device.py @@ -9,7 +9,7 @@ import requests -from tm_devices.drivers.device import Device +from tm_devices.driver_mixins.device_control.device import Device from tm_devices.helpers import DeviceConfigEntry, print_with_timestamp, SupportedRequestTypes diff --git a/src/tm_devices/drivers/pi/tsp_device.py b/src/tm_devices/driver_mixins/device_control/tsp_device.py similarity index 98% rename from src/tm_devices/drivers/pi/tsp_device.py rename to src/tm_devices/driver_mixins/device_control/tsp_device.py index a08f1e57..60142f29 100644 --- a/src/tm_devices/drivers/pi/tsp_device.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_device.py @@ -5,8 +5,8 @@ from abc import ABC from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union -from tm_devices.drivers.pi.ieee488_2_commands import TSPIEEE4882Commands -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands from tm_devices.helpers import print_with_timestamp if TYPE_CHECKING: diff --git a/src/tm_devices/drivers/pi/ieee488_2_commands.py b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py similarity index 99% rename from src/tm_devices/drivers/pi/ieee488_2_commands.py rename to src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py index 86d7b0c8..cac24684 100644 --- a/src/tm_devices/drivers/pi/ieee488_2_commands.py +++ b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py @@ -3,7 +3,7 @@ from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: - from tm_devices.drivers.pi.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_device import PIDevice class IEEE4882Commands: diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 4088b5ce..9f2d3b0a 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -6,8 +6,8 @@ from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( SignalGeneratorMixin, ) +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.helpers import print_with_timestamp # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/__init__.py b/src/tm_devices/drivers/__init__.py index 0740a865..8e43017d 100644 --- a/src/tm_devices/drivers/__init__.py +++ b/src/tm_devices/drivers/__init__.py @@ -5,104 +5,104 @@ from tm_devices.drivers.device_driver_mapping import DEVICE_DRIVER_MODEL_MAPPING from tm_devices.drivers.device_type_classes import DEVICE_TYPE_CLASSES from tm_devices.helpers.enums import SupportedModels -from tm_devices.drivers.pi.afgs.afg3k import AFG3K -from tm_devices.drivers.pi.afgs.afg3kb import AFG3KB -from tm_devices.drivers.pi.afgs.afg3kc import AFG3KC -from tm_devices.drivers.pi.afgs.afg31k import AFG31K -from tm_devices.drivers.pi.awgs.awg5k import AWG5K -from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB -from tm_devices.drivers.pi.awgs.awg5kc import AWG5KC -from tm_devices.drivers.pi.awgs.awg7k import AWG7K -from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB -from tm_devices.drivers.pi.awgs.awg7kc import AWG7KC -from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA -from tm_devices.drivers.pi.awgs.awg70kb import AWG70KB -from tm_devices.drivers.pi.awgs.awg5200 import AWG5200 -from tm_devices.drivers.pi.scopes.tekscope.lpd6 import LPD6 -from tm_devices.drivers.pi.scopes.tekscope.mso2 import MSO2 -from tm_devices.drivers.pi.scopes.tekscope.mso4 import MSO4 -from tm_devices.drivers.pi.scopes.tekscope.mso4b import MSO4B -from tm_devices.drivers.pi.scopes.tekscope.mso5 import MSO5 -from tm_devices.drivers.pi.scopes.tekscope.mso5b import MSO5B -from tm_devices.drivers.pi.scopes.tekscope.mso5lp import MSO5LP -from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 -from tm_devices.drivers.pi.scopes.tekscope.mso6b import MSO6B -from tm_devices.drivers.pi.scopes.tekscope.tekscopepc import TekScopePC -from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2k import DPO2K -from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2kb import DPO2KB -from tm_devices.drivers.pi.scopes.tekscope_2k.mso2k import MSO2K -from tm_devices.drivers.pi.scopes.tekscope_2k.mso2kb import MSO2KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.dpo4k import DPO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.dpo4kb import DPO4KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo3 import MDO3 -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo3k import MDO3K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4k import MDO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4kb import MDO4KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4kc import MDO4KC -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mso4k import MSO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mso4kb import MSO4KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo5kb import DPO5KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo7kc import DPO7KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kd import DPO70KD -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kdx import DPO70KDX -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70ksx import DPO70KSX -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70kc import DSA70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70kd import DSA70KD -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso5k import MSO5K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso5kb import MSO5KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70k import MSO70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kc import MSO70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kdx import MSO70KDX -from tm_devices.drivers.pi.scopes.tso.tsovu import TSOVu -from tm_devices.drivers.pi.data_acquisition_systems.daq6510 import DAQ6510 -from tm_devices.drivers.pi.digital_multimeters.dmm6500 import DMM6500 -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7510 import DMM7510 -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7512 import DMM7512 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2220 import PSU2220 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2230 import PSU2230 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2231 import PSU2231 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2231a import PSU2231A -from tm_devices.drivers.pi.power_supplies.psu2200.psu2280 import PSU2280 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2281 import PSU2281 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2400 import SMU2400 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2401 import SMU2401 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2410 import SMU2410 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2450 import SMU2450 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2460 import SMU2460 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2461 import SMU2461 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2470 import SMU2470 -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601a import SMU2601A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601b import SMU2601B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601b_pulse import SMU2601BPulse -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2602a import SMU2602A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2602b import SMU2602B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2604a import SMU2604A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2604b import SMU2604B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2606b import SMU2606B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2611a import SMU2611A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2611b import SMU2611B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2612a import SMU2612A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2612b import SMU2612B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2614a import SMU2614A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2614b import SMU2614B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2634a import SMU2634A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2634b import SMU2634B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2635a import SMU2635A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2635b import SMU2635B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2636a import SMU2636A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2636b import SMU2636B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2651a import SMU2651A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2657a import SMU2657A -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6430 import SMU6430 -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6514 import SMU6514 -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6517b import SMU6517B -from tm_devices.drivers.pi.systems_switches.ss3706a import SS3706A +from tm_devices.drivers.afgs.afg3k import AFG3K +from tm_devices.drivers.afgs.afg3kb import AFG3KB +from tm_devices.drivers.afgs.afg3kc import AFG3KC +from tm_devices.drivers.afgs.afg31k import AFG31K +from tm_devices.drivers.awgs.awg5k import AWG5K +from tm_devices.drivers.awgs.awg5kb import AWG5KB +from tm_devices.drivers.awgs.awg5kc import AWG5KC +from tm_devices.drivers.awgs.awg7k import AWG7K +from tm_devices.drivers.awgs.awg7kb import AWG7KB +from tm_devices.drivers.awgs.awg7kc import AWG7KC +from tm_devices.drivers.awgs.awg70ka import AWG70KA +from tm_devices.drivers.awgs.awg70kb import AWG70KB +from tm_devices.drivers.awgs.awg5200 import AWG5200 +from tm_devices.drivers.scopes.tekscope.lpd6 import LPD6 +from tm_devices.drivers.scopes.tekscope.mso2 import MSO2 +from tm_devices.drivers.scopes.tekscope.mso4 import MSO4 +from tm_devices.drivers.scopes.tekscope.mso4b import MSO4B +from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 +from tm_devices.drivers.scopes.tekscope.mso5b import MSO5B +from tm_devices.drivers.scopes.tekscope.mso5lp import MSO5LP +from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 +from tm_devices.drivers.scopes.tekscope.mso6b import MSO6B +from tm_devices.drivers.scopes.tekscope.tekscopepc import TekScopePC +from tm_devices.drivers.scopes.tekscope_2k.dpo2k import DPO2K +from tm_devices.drivers.scopes.tekscope_2k.dpo2kb import DPO2KB +from tm_devices.drivers.scopes.tekscope_2k.mso2k import MSO2K +from tm_devices.drivers.scopes.tekscope_2k.mso2kb import MSO2KB +from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4k import DPO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4kb import DPO4KB +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo3 import MDO3 +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo3k import MDO3K +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4k import MDO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kb import MDO4KB +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kc import MDO4KC +from tm_devices.drivers.scopes.tekscope_3k_4k.mso4k import MSO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mso4kb import MSO4KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5kb import DPO5KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7kc import DPO7KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kd import DPO70KD +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kdx import DPO70KDX +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70ksx import DPO70KSX +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70kc import DSA70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70kd import DSA70KD +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5k import MSO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5kb import MSO5KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70kc import MSO70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70kdx import MSO70KDX +from tm_devices.drivers.scopes.tso.tsovu import TSOVu +from tm_devices.drivers.data_acquisition_systems.daq6510 import DAQ6510 +from tm_devices.drivers.digital_multimeters.dmm6500 import DMM6500 +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm7510 import DMM7510 +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm7512 import DMM7512 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2220 import PSU2220 +from tm_devices.drivers.power_supplies.psu22xx.psu2230 import PSU2230 +from tm_devices.drivers.power_supplies.psu22xx.psu2231 import PSU2231 +from tm_devices.drivers.power_supplies.psu22xx.psu2231a import PSU2231A +from tm_devices.drivers.power_supplies.psu22xx.psu2280 import PSU2280 +from tm_devices.drivers.power_supplies.psu22xx.psu2281 import PSU2281 +from tm_devices.drivers.source_measure_units.smu24xx.smu2400 import SMU2400 +from tm_devices.drivers.source_measure_units.smu24xx.smu2401 import SMU2401 +from tm_devices.drivers.source_measure_units.smu24xx.smu2410 import SMU2410 +from tm_devices.drivers.source_measure_units.smu24xx.smu2450 import SMU2450 +from tm_devices.drivers.source_measure_units.smu24xx.smu2460 import SMU2460 +from tm_devices.drivers.source_measure_units.smu24xx.smu2461 import SMU2461 +from tm_devices.drivers.source_measure_units.smu24xx.smu2470 import SMU2470 +from tm_devices.drivers.source_measure_units.smu26xx.smu2601a import SMU2601A +from tm_devices.drivers.source_measure_units.smu26xx.smu2601b import SMU2601B +from tm_devices.drivers.source_measure_units.smu26xx.smu2601b_pulse import SMU2601BPulse +from tm_devices.drivers.source_measure_units.smu26xx.smu2602a import SMU2602A +from tm_devices.drivers.source_measure_units.smu26xx.smu2602b import SMU2602B +from tm_devices.drivers.source_measure_units.smu26xx.smu2604a import SMU2604A +from tm_devices.drivers.source_measure_units.smu26xx.smu2604b import SMU2604B +from tm_devices.drivers.source_measure_units.smu26xx.smu2606b import SMU2606B +from tm_devices.drivers.source_measure_units.smu26xx.smu2611a import SMU2611A +from tm_devices.drivers.source_measure_units.smu26xx.smu2611b import SMU2611B +from tm_devices.drivers.source_measure_units.smu26xx.smu2612a import SMU2612A +from tm_devices.drivers.source_measure_units.smu26xx.smu2612b import SMU2612B +from tm_devices.drivers.source_measure_units.smu26xx.smu2614a import SMU2614A +from tm_devices.drivers.source_measure_units.smu26xx.smu2614b import SMU2614B +from tm_devices.drivers.source_measure_units.smu26xx.smu2634a import SMU2634A +from tm_devices.drivers.source_measure_units.smu26xx.smu2634b import SMU2634B +from tm_devices.drivers.source_measure_units.smu26xx.smu2635a import SMU2635A +from tm_devices.drivers.source_measure_units.smu26xx.smu2635b import SMU2635B +from tm_devices.drivers.source_measure_units.smu26xx.smu2636a import SMU2636A +from tm_devices.drivers.source_measure_units.smu26xx.smu2636b import SMU2636B +from tm_devices.drivers.source_measure_units.smu26xx.smu2651a import SMU2651A +from tm_devices.drivers.source_measure_units.smu26xx.smu2657a import SMU2657A +from tm_devices.drivers.source_measure_units.smu60xx.smu6430 import SMU6430 +from tm_devices.drivers.source_measure_units.smu60xx.smu6514 import SMU6514 +from tm_devices.drivers.source_measure_units.smu60xx.smu6517b import SMU6517B +from tm_devices.drivers.systems_switches.ss3706a import SS3706A from tm_devices.drivers.margin_testers.tmt4 import TMT4 diff --git a/src/tm_devices/drivers/pi/afgs/__init__.py b/src/tm_devices/drivers/afgs/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/afgs/__init__.py rename to src/tm_devices/drivers/afgs/__init__.py diff --git a/src/tm_devices/drivers/pi/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py similarity index 98% rename from src/tm_devices/drivers/pi/afgs/afg.py rename to src/tm_devices/drivers/afgs/afg.py index de17bdb5..2451f9bf 100644 --- a/src/tm_devices/drivers/pi/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -7,14 +7,16 @@ from types import MappingProxyType from typing import Dict, Literal, Optional, Tuple, Type, Union +from tm_devices.driver_mixins.abstract_device_functionality.base_afg_source_channel import ( + BaseAFGSourceChannel, +) from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, ParameterBounds, SourceDeviceConstants, ) +from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.base_afg_source_channel import BaseAFGSourceChannel from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/afgs/afg31k.py b/src/tm_devices/drivers/afgs/afg31k.py similarity index 99% rename from src/tm_devices/drivers/pi/afgs/afg31k.py rename to src/tm_devices/drivers/afgs/afg31k.py index 9e33a786..b11d0a3e 100644 --- a/src/tm_devices/drivers/pi/afgs/afg31k.py +++ b/src/tm_devices/drivers/afgs/afg31k.py @@ -4,7 +4,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.afgs.afg3k import ( +from tm_devices.drivers.afgs.afg3k import ( AFG, AFGSourceDeviceConstants, LoadImpedanceAFG, diff --git a/src/tm_devices/drivers/pi/afgs/afg3k.py b/src/tm_devices/drivers/afgs/afg3k.py similarity index 99% rename from src/tm_devices/drivers/pi/afgs/afg3k.py rename to src/tm_devices/drivers/afgs/afg3k.py index ba7c9e98..bef4f1d6 100644 --- a/src/tm_devices/drivers/pi/afgs/afg3k.py +++ b/src/tm_devices/drivers/afgs/afg3k.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KMixin -from tm_devices.drivers.pi.afgs.afg import ( +from tm_devices.drivers.afgs.afg import ( AFG, AFGSourceDeviceConstants, LoadImpedanceAFG, diff --git a/src/tm_devices/drivers/pi/afgs/afg3kb.py b/src/tm_devices/drivers/afgs/afg3kb.py similarity index 96% rename from src/tm_devices/drivers/pi/afgs/afg3kb.py rename to src/tm_devices/drivers/afgs/afg3kb.py index 4209e86a..51a49b78 100644 --- a/src/tm_devices/drivers/pi/afgs/afg3kb.py +++ b/src/tm_devices/drivers/afgs/afg3kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KBMixin -from tm_devices.drivers.pi.afgs.afg3k import AFG3K +from tm_devices.drivers.afgs.afg3k import AFG3K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/afgs/afg3kc.py b/src/tm_devices/drivers/afgs/afg3kc.py similarity index 98% rename from src/tm_devices/drivers/pi/afgs/afg3kc.py rename to src/tm_devices/drivers/afgs/afg3kc.py index 44d4c947..3c69ca2a 100644 --- a/src/tm_devices/drivers/pi/afgs/afg3kc.py +++ b/src/tm_devices/drivers/afgs/afg3kc.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import AFG3KCMixin -from tm_devices.drivers.pi.afgs.afg3k import ( +from tm_devices.drivers.afgs.afg3k import ( AFG3K, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/awgs/__init__.py b/src/tm_devices/drivers/awgs/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/awgs/__init__.py rename to src/tm_devices/drivers/awgs/__init__.py diff --git a/src/tm_devices/drivers/pi/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py similarity index 99% rename from src/tm_devices/drivers/pi/awgs/awg.py rename to src/tm_devices/drivers/awgs/awg.py index 8d873eb6..64058ef1 100644 --- a/src/tm_devices/drivers/pi/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -5,15 +5,17 @@ from types import MappingProxyType from typing import ClassVar, Dict, List, Literal, Optional, Tuple, Type +from tm_devices.driver_mixins.abstract_device_functionality.base_source_channel import ( + BaseSourceChannel, +) from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, ParameterBounds, SourceDeviceConstants, ) +from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.base_source_channel import BaseSourceChannel from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/awgs/awg5200.py b/src/tm_devices/drivers/awgs/awg5200.py similarity index 99% rename from src/tm_devices/drivers/pi/awgs/awg5200.py rename to src/tm_devices/drivers/awgs/awg5200.py index 8fd0b249..c93178c6 100644 --- a/src/tm_devices/drivers/pi/awgs/awg5200.py +++ b/src/tm_devices/drivers/awgs/awg5200.py @@ -7,8 +7,8 @@ import pyvisa as visa from tm_devices.commands import AWG5200Mixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.awgs.awg import ( +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/awgs/awg5k.py b/src/tm_devices/drivers/awgs/awg5k.py similarity index 98% rename from src/tm_devices/drivers/pi/awgs/awg5k.py rename to src/tm_devices/drivers/awgs/awg5k.py index 1ccb041e..d1da1140 100644 --- a/src/tm_devices/drivers/pi/awgs/awg5k.py +++ b/src/tm_devices/drivers/awgs/awg5k.py @@ -6,8 +6,8 @@ import pyvisa as visa from tm_devices.commands import AWG5KMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.awgs.awg import ( +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/awgs/awg5kb.py b/src/tm_devices/drivers/awgs/awg5kb.py similarity index 95% rename from src/tm_devices/drivers/pi/awgs/awg5kb.py rename to src/tm_devices/drivers/awgs/awg5kb.py index 6d7b8257..86188fca 100644 --- a/src/tm_devices/drivers/pi/awgs/awg5kb.py +++ b/src/tm_devices/drivers/awgs/awg5kb.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.awgs.awg5k import AWG5K +from tm_devices.drivers.awgs.awg5k import AWG5K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/awgs/awg5kc.py b/src/tm_devices/drivers/awgs/awg5kc.py similarity index 95% rename from src/tm_devices/drivers/pi/awgs/awg5kc.py rename to src/tm_devices/drivers/awgs/awg5kc.py index 94ceb0bc..f0edf295 100644 --- a/src/tm_devices/drivers/pi/awgs/awg5kc.py +++ b/src/tm_devices/drivers/awgs/awg5kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG5KCMixin -from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB +from tm_devices.drivers.awgs.awg5kb import AWG5KB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/awgs/awg70ka.py b/src/tm_devices/drivers/awgs/awg70ka.py similarity index 99% rename from src/tm_devices/drivers/pi/awgs/awg70ka.py rename to src/tm_devices/drivers/awgs/awg70ka.py index ee1750eb..0b8d0c0a 100644 --- a/src/tm_devices/drivers/pi/awgs/awg70ka.py +++ b/src/tm_devices/drivers/awgs/awg70ka.py @@ -7,8 +7,8 @@ import pyvisa as visa from tm_devices.commands import AWG70KAMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.awgs.awg import ( +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, diff --git a/src/tm_devices/drivers/pi/awgs/awg70kb.py b/src/tm_devices/drivers/awgs/awg70kb.py similarity index 95% rename from src/tm_devices/drivers/pi/awgs/awg70kb.py rename to src/tm_devices/drivers/awgs/awg70kb.py index 7607277f..591d6ece 100644 --- a/src/tm_devices/drivers/pi/awgs/awg70kb.py +++ b/src/tm_devices/drivers/awgs/awg70kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG70KBMixin -from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA +from tm_devices.drivers.awgs.awg70ka import AWG70KA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/awgs/awg7k.py b/src/tm_devices/drivers/awgs/awg7k.py similarity index 97% rename from src/tm_devices/drivers/pi/awgs/awg7k.py rename to src/tm_devices/drivers/awgs/awg7k.py index 24f5a641..01d07173 100644 --- a/src/tm_devices/drivers/pi/awgs/awg7k.py +++ b/src/tm_devices/drivers/awgs/awg7k.py @@ -6,14 +6,14 @@ import pyvisa as visa from tm_devices.commands import AWG7KMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.awgs.awg import ( +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, ParameterBounds, ) -from tm_devices.drivers.pi.awgs.awg5k import ( +from tm_devices.drivers.awgs.awg5k import ( AWG5K, AWG5KSourceChannel, ) diff --git a/src/tm_devices/drivers/pi/awgs/awg7kb.py b/src/tm_devices/drivers/awgs/awg7kb.py similarity index 95% rename from src/tm_devices/drivers/pi/awgs/awg7kb.py rename to src/tm_devices/drivers/awgs/awg7kb.py index b087e167..91b5b665 100644 --- a/src/tm_devices/drivers/pi/awgs/awg7kb.py +++ b/src/tm_devices/drivers/awgs/awg7kb.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.awgs.awg7k import AWG7K +from tm_devices.drivers.awgs.awg7k import AWG7K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/awgs/awg7kc.py b/src/tm_devices/drivers/awgs/awg7kc.py similarity index 96% rename from src/tm_devices/drivers/pi/awgs/awg7kc.py rename to src/tm_devices/drivers/awgs/awg7kc.py index 81cac383..962d1589 100644 --- a/src/tm_devices/drivers/pi/awgs/awg7kc.py +++ b/src/tm_devices/drivers/awgs/awg7kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import AWG7KCMixin -from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB +from tm_devices.drivers.awgs.awg7kb import AWG7KB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/data_acquisition_systems/__init__.py b/src/tm_devices/drivers/data_acquisition_systems/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/data_acquisition_systems/__init__.py rename to src/tm_devices/drivers/data_acquisition_systems/__init__.py diff --git a/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py similarity index 94% rename from src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py rename to src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 48a767b8..4ef3b8bd 100644 --- a/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,10 +5,12 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin -from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( + LegacyTSPIEEE4882Commands, +) +from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) -from tm_devices.drivers.pi.ieee488_2_commands import LegacyTSPIEEE4882Commands from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/data_acquisition_systems/data_acquisition_system.py b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py similarity index 77% rename from src/tm_devices/drivers/pi/data_acquisition_systems/data_acquisition_system.py rename to src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py index bcac60c6..dc767c6b 100644 --- a/src/tm_devices/drivers/pi/data_acquisition_systems/data_acquisition_system.py +++ b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py @@ -2,8 +2,8 @@ from abc import ABC -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes diff --git a/src/tm_devices/drivers/device_driver_mapping.py b/src/tm_devices/drivers/device_driver_mapping.py index 67311319..f216f706 100644 --- a/src/tm_devices/drivers/device_driver_mapping.py +++ b/src/tm_devices/drivers/device_driver_mapping.py @@ -3,106 +3,106 @@ from types import MappingProxyType from typing import Mapping, Type -from tm_devices.drivers.device import Device +from tm_devices.driver_mixins.device_control.device import Device +from tm_devices.drivers.afgs.afg3k import AFG3K +from tm_devices.drivers.afgs.afg3kb import AFG3KB +from tm_devices.drivers.afgs.afg3kc import AFG3KC +from tm_devices.drivers.afgs.afg31k import AFG31K +from tm_devices.drivers.awgs.awg5k import AWG5K +from tm_devices.drivers.awgs.awg5kb import AWG5KB +from tm_devices.drivers.awgs.awg5kc import AWG5KC +from tm_devices.drivers.awgs.awg7k import AWG7K +from tm_devices.drivers.awgs.awg7kb import AWG7KB +from tm_devices.drivers.awgs.awg7kc import AWG7KC +from tm_devices.drivers.awgs.awg70ka import AWG70KA +from tm_devices.drivers.awgs.awg70kb import AWG70KB +from tm_devices.drivers.awgs.awg5200 import AWG5200 +from tm_devices.drivers.data_acquisition_systems.daq6510 import DAQ6510 +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm7510 import DMM7510 +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm7512 import DMM7512 +from tm_devices.drivers.digital_multimeters.dmm6500 import DMM6500 from tm_devices.drivers.margin_testers.tmt4 import TMT4 -from tm_devices.drivers.pi.afgs.afg3k import AFG3K -from tm_devices.drivers.pi.afgs.afg3kb import AFG3KB -from tm_devices.drivers.pi.afgs.afg3kc import AFG3KC -from tm_devices.drivers.pi.afgs.afg31k import AFG31K -from tm_devices.drivers.pi.awgs.awg5k import AWG5K -from tm_devices.drivers.pi.awgs.awg5kb import AWG5KB -from tm_devices.drivers.pi.awgs.awg5kc import AWG5KC -from tm_devices.drivers.pi.awgs.awg7k import AWG7K -from tm_devices.drivers.pi.awgs.awg7kb import AWG7KB -from tm_devices.drivers.pi.awgs.awg7kc import AWG7KC -from tm_devices.drivers.pi.awgs.awg70ka import AWG70KA -from tm_devices.drivers.pi.awgs.awg70kb import AWG70KB -from tm_devices.drivers.pi.awgs.awg5200 import AWG5200 -from tm_devices.drivers.pi.data_acquisition_systems.daq6510 import DAQ6510 -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7510 import DMM7510 -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm7512 import DMM7512 -from tm_devices.drivers.pi.digital_multimeters.dmm6500 import DMM6500 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2220 import PSU2220 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2230 import PSU2230 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2231 import PSU2231 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2231a import PSU2231A -from tm_devices.drivers.pi.power_supplies.psu2200.psu2280 import PSU2280 -from tm_devices.drivers.pi.power_supplies.psu2200.psu2281 import PSU2281 -from tm_devices.drivers.pi.scopes.tekscope.lpd6 import LPD6 -from tm_devices.drivers.pi.scopes.tekscope.mso2 import MSO2 -from tm_devices.drivers.pi.scopes.tekscope.mso4 import MSO4 -from tm_devices.drivers.pi.scopes.tekscope.mso4b import MSO4B -from tm_devices.drivers.pi.scopes.tekscope.mso5 import MSO5 -from tm_devices.drivers.pi.scopes.tekscope.mso5b import MSO5B -from tm_devices.drivers.pi.scopes.tekscope.mso5lp import MSO5LP -from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 -from tm_devices.drivers.pi.scopes.tekscope.mso6b import MSO6B -from tm_devices.drivers.pi.scopes.tekscope.tekscopepc import TekScopePC -from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2k import DPO2K -from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2kb import DPO2KB -from tm_devices.drivers.pi.scopes.tekscope_2k.mso2k import MSO2K -from tm_devices.drivers.pi.scopes.tekscope_2k.mso2kb import MSO2KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.dpo4k import DPO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.dpo4kb import DPO4KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo3 import MDO3 -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo3k import MDO3K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4k import MDO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4kb import MDO4KB -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4kc import MDO4KC -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mso4k import MSO4K -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mso4kb import MSO4KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo5kb import DPO5KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo7kc import DPO7KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kd import DPO70KD -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kdx import DPO70KDX -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70ksx import DPO70KSX -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70kc import DSA70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70kd import DSA70KD -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso5k import MSO5K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso5kb import MSO5KB -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70k import MSO70K -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kc import MSO70KC -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70kdx import MSO70KDX -from tm_devices.drivers.pi.scopes.tso.tsovu import TSOVu -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2400 import SMU2400 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2401 import SMU2401 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2410 import SMU2410 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2450 import SMU2450 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2460 import SMU2460 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2461 import SMU2461 -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu2470 import SMU2470 -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601a import SMU2601A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601b import SMU2601B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601b_pulse import SMU2601BPulse -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2602a import SMU2602A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2602b import SMU2602B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2604a import SMU2604A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2604b import SMU2604B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2606b import SMU2606B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2611a import SMU2611A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2611b import SMU2611B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2612a import SMU2612A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2612b import SMU2612B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2614a import SMU2614A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2614b import SMU2614B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2634a import SMU2634A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2634b import SMU2634B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2635a import SMU2635A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2635b import SMU2635B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2636a import SMU2636A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2636b import SMU2636B -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2651a import SMU2651A -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2657a import SMU2657A -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6430 import SMU6430 -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6514 import SMU6514 -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6517b import SMU6517B -from tm_devices.drivers.pi.systems_switches.ss3706a import SS3706A +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2220 import PSU2220 +from tm_devices.drivers.power_supplies.psu22xx.psu2230 import PSU2230 +from tm_devices.drivers.power_supplies.psu22xx.psu2231 import PSU2231 +from tm_devices.drivers.power_supplies.psu22xx.psu2231a import PSU2231A +from tm_devices.drivers.power_supplies.psu22xx.psu2280 import PSU2280 +from tm_devices.drivers.power_supplies.psu22xx.psu2281 import PSU2281 +from tm_devices.drivers.scopes.tekscope.lpd6 import LPD6 +from tm_devices.drivers.scopes.tekscope.mso2 import MSO2 +from tm_devices.drivers.scopes.tekscope.mso4 import MSO4 +from tm_devices.drivers.scopes.tekscope.mso4b import MSO4B +from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 +from tm_devices.drivers.scopes.tekscope.mso5b import MSO5B +from tm_devices.drivers.scopes.tekscope.mso5lp import MSO5LP +from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 +from tm_devices.drivers.scopes.tekscope.mso6b import MSO6B +from tm_devices.drivers.scopes.tekscope.tekscopepc import TekScopePC +from tm_devices.drivers.scopes.tekscope_2k.dpo2k import DPO2K +from tm_devices.drivers.scopes.tekscope_2k.dpo2kb import DPO2KB +from tm_devices.drivers.scopes.tekscope_2k.mso2k import MSO2K +from tm_devices.drivers.scopes.tekscope_2k.mso2kb import MSO2KB +from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4k import DPO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4kb import DPO4KB +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo3 import MDO3 +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo3k import MDO3K +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4k import MDO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kb import MDO4KB +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kc import MDO4KC +from tm_devices.drivers.scopes.tekscope_3k_4k.mso4k import MSO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mso4kb import MSO4KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5kb import DPO5KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7kc import DPO7KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kd import DPO70KD +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kdx import DPO70KDX +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70ksx import DPO70KSX +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70kc import DSA70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70kd import DSA70KD +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5k import MSO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5kb import MSO5KB +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70kc import MSO70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70kdx import MSO70KDX +from tm_devices.drivers.scopes.tso.tsovu import TSOVu +from tm_devices.drivers.source_measure_units.smu24xx.smu2400 import SMU2400 +from tm_devices.drivers.source_measure_units.smu24xx.smu2401 import SMU2401 +from tm_devices.drivers.source_measure_units.smu24xx.smu2410 import SMU2410 +from tm_devices.drivers.source_measure_units.smu24xx.smu2450 import SMU2450 +from tm_devices.drivers.source_measure_units.smu24xx.smu2460 import SMU2460 +from tm_devices.drivers.source_measure_units.smu24xx.smu2461 import SMU2461 +from tm_devices.drivers.source_measure_units.smu24xx.smu2470 import SMU2470 +from tm_devices.drivers.source_measure_units.smu26xx.smu2601a import SMU2601A +from tm_devices.drivers.source_measure_units.smu26xx.smu2601b import SMU2601B +from tm_devices.drivers.source_measure_units.smu26xx.smu2601b_pulse import SMU2601BPulse +from tm_devices.drivers.source_measure_units.smu26xx.smu2602a import SMU2602A +from tm_devices.drivers.source_measure_units.smu26xx.smu2602b import SMU2602B +from tm_devices.drivers.source_measure_units.smu26xx.smu2604a import SMU2604A +from tm_devices.drivers.source_measure_units.smu26xx.smu2604b import SMU2604B +from tm_devices.drivers.source_measure_units.smu26xx.smu2606b import SMU2606B +from tm_devices.drivers.source_measure_units.smu26xx.smu2611a import SMU2611A +from tm_devices.drivers.source_measure_units.smu26xx.smu2611b import SMU2611B +from tm_devices.drivers.source_measure_units.smu26xx.smu2612a import SMU2612A +from tm_devices.drivers.source_measure_units.smu26xx.smu2612b import SMU2612B +from tm_devices.drivers.source_measure_units.smu26xx.smu2614a import SMU2614A +from tm_devices.drivers.source_measure_units.smu26xx.smu2614b import SMU2614B +from tm_devices.drivers.source_measure_units.smu26xx.smu2634a import SMU2634A +from tm_devices.drivers.source_measure_units.smu26xx.smu2634b import SMU2634B +from tm_devices.drivers.source_measure_units.smu26xx.smu2635a import SMU2635A +from tm_devices.drivers.source_measure_units.smu26xx.smu2635b import SMU2635B +from tm_devices.drivers.source_measure_units.smu26xx.smu2636a import SMU2636A +from tm_devices.drivers.source_measure_units.smu26xx.smu2636b import SMU2636B +from tm_devices.drivers.source_measure_units.smu26xx.smu2651a import SMU2651A +from tm_devices.drivers.source_measure_units.smu26xx.smu2657a import SMU2657A +from tm_devices.drivers.source_measure_units.smu60xx.smu6430 import SMU6430 +from tm_devices.drivers.source_measure_units.smu60xx.smu6514 import SMU6514 +from tm_devices.drivers.source_measure_units.smu60xx.smu6517b import SMU6517B +from tm_devices.drivers.systems_switches.ss3706a import SS3706A from tm_devices.helpers.enums import SupportedModels # IMPORTANT: Any additions to this class which support a USBTMC connection need to be added to the diff --git a/src/tm_devices/drivers/device_type_classes.py b/src/tm_devices/drivers/device_type_classes.py index 0767ba78..f89e847a 100644 --- a/src/tm_devices/drivers/device_type_classes.py +++ b/src/tm_devices/drivers/device_type_classes.py @@ -2,19 +2,20 @@ from typing import Final, Tuple, Type -from tm_devices.drivers.device import Device -from tm_devices.drivers.margin_testers.margin_tester import MarginTester -from tm_devices.drivers.pi.afgs.afg import AFG -from tm_devices.drivers.pi.awgs.awg import AWG -from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( +from tm_devices.driver_mixins.device_control.device import Device +from tm_devices.drivers.afgs.afg import AFG +from tm_devices.drivers.awgs.awg import AWG +from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) -from tm_devices.drivers.pi.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit -from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch +from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter +from tm_devices.drivers.margin_testers.margin_tester import MarginTester +from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit +from tm_devices.drivers.scopes.scope import Scope +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch +# TODO: nfelt14: remove this tuple, I don't see a need for it. DEVICE_TYPE_CLASSES: Final[Tuple[Type[Device], ...]] = ( AFG, AWG, diff --git a/src/tm_devices/drivers/pi/digital_multimeters/__init__.py b/src/tm_devices/drivers/digital_multimeters/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/digital_multimeters/__init__.py rename to src/tm_devices/drivers/digital_multimeters/__init__.py diff --git a/src/tm_devices/drivers/pi/digital_multimeters/digital_multimeter.py b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py similarity index 92% rename from src/tm_devices/drivers/pi/digital_multimeters/digital_multimeter.py rename to src/tm_devices/drivers/digital_multimeters/digital_multimeter.py index 6fee553a..0cdc8062 100644 --- a/src/tm_devices/drivers/pi/digital_multimeters/digital_multimeter.py +++ b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py @@ -2,7 +2,7 @@ from abc import ABC -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes diff --git a/src/tm_devices/drivers/pi/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py similarity index 91% rename from src/tm_devices/drivers/pi/digital_multimeters/dmm6500.py rename to src/tm_devices/drivers/digital_multimeters/dmm6500.py index d6e63820..c4bd91a9 100644 --- a/src/tm_devices/drivers/pi/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,9 +5,11 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.drivers.pi.ieee488_2_commands import LegacyTSPIEEE4882Commands +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( + LegacyTSPIEEE4882Commands, +) +from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/__init__.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/__init__.py rename to src/tm_devices/drivers/digital_multimeters/dmm75xx/__init__.py diff --git a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7510.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py similarity index 95% rename from src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7510.py rename to src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py index 613c89d2..d3a76f81 100644 --- a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7510.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DMM7510Mixin -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm75xx import DMM75xx +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm75xx import DMM75xx from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7512.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py similarity index 95% rename from src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7512.py rename to src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py index f98f6285..77c645bb 100644 --- a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm7512.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.digital_multimeters.dmm75xx.dmm75xx import DMM75xx +from tm_devices.drivers.digital_multimeters.dmm75xx.dmm75xx import DMM75xx from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py similarity index 91% rename from src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm75xx.py rename to src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 6425b261..cf3f90fd 100644 --- a/src/tm_devices/drivers/pi/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,9 +5,11 @@ import pyvisa as visa -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.drivers.pi.ieee488_2_commands import LegacyTSPIEEE4882Commands +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( + LegacyTSPIEEE4882Commands, +) +from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index b157cc63..ec940207 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -9,8 +9,8 @@ from packaging.version import Version from requests.structures import CaseInsensitiveDict +from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice -from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry, DeviceTypes # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/__init__.py b/src/tm_devices/drivers/pi/__init__.py deleted file mode 100644 index a5d295fb..00000000 --- a/src/tm_devices/drivers/pi/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Programmable Interface (PI) drivers.""" diff --git a/src/tm_devices/drivers/pi/power_supplies/__init__.py b/src/tm_devices/drivers/power_supplies/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/power_supplies/__init__.py rename to src/tm_devices/drivers/power_supplies/__init__.py diff --git a/src/tm_devices/drivers/pi/power_supplies/power_supply.py b/src/tm_devices/drivers/power_supplies/power_supply.py similarity index 95% rename from src/tm_devices/drivers/pi/power_supplies/power_supply.py rename to src/tm_devices/drivers/power_supplies/power_supply.py index db4184bf..21d748ed 100644 --- a/src/tm_devices/drivers/pi/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/power_supplies/power_supply.py @@ -6,8 +6,8 @@ from abc import ABC from typing import Tuple, Union +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG -from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.helpers import DeviceTypes diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/__init__.py b/src/tm_devices/drivers/power_supplies/psu22xx/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/__init__.py rename to src/tm_devices/drivers/power_supplies/psu22xx/__init__.py diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py similarity index 93% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 3d51f2f0..70227742 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -4,8 +4,8 @@ from packaging.version import Version -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2220.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2220.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py index 027f34f0..63f7d1d3 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2220.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2230.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2230.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py index b18a0f57..cf9cc1d3 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2230.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py index 24a399d7..64bd372c 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231a.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231a.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py index 40d55e0f..e623ac53 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2231a.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2231 import PSU2231 +from tm_devices.drivers.power_supplies.psu22xx.psu2231 import PSU2231 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2280.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2280.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py index f0deb740..9b8ef206 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2280.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2281.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py similarity index 94% rename from src/tm_devices/drivers/pi/power_supplies/psu2200/psu2281.py rename to src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py index cb1bfaf4..b9fdd80c 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2281.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.power_supplies.psu2200.psu2200 import PSU2200 +from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/__init__.py b/src/tm_devices/drivers/scopes/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/__init__.py rename to src/tm_devices/drivers/scopes/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py similarity index 98% rename from src/tm_devices/drivers/pi/scopes/scope.py rename to src/tm_devices/drivers/scopes/scope.py index e96ac68b..fdb1f920 100644 --- a/src/tm_devices/drivers/pi/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Any, List, Optional, Tuple, Union -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.helpers import DeviceTypes # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/__init__.py b/src/tm_devices/drivers/scopes/tekscope/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/tekscope/__init__.py rename to src/tm_devices/drivers/scopes/tekscope/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/lpd6.py b/src/tm_devices/drivers/scopes/tekscope/lpd6.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope/lpd6.py rename to src/tm_devices/drivers/scopes/tekscope/lpd6.py index 8259a62f..6530cd6a 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/lpd6.py +++ b/src/tm_devices/drivers/scopes/tekscope/lpd6.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import LPD6Mixin -from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 +from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py b/src/tm_devices/drivers/scopes/tekscope/mso2.py similarity index 97% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso2.py rename to src/tm_devices/drivers/scopes/tekscope/mso2.py index c6aeee35..c081e4a9 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso2.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import MSO2Mixin -from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope +from tm_devices.drivers.scopes.tekscope.tekscope import TekScope from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso4.py b/src/tm_devices/drivers/scopes/tekscope/mso4.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso4.py rename to src/tm_devices/drivers/scopes/tekscope/mso4.py index 77946b98..7a5a2ee8 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso4.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO4Mixin -from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope +from tm_devices.drivers.scopes.tekscope.tekscope import TekScope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso4b.py b/src/tm_devices/drivers/scopes/tekscope/mso4b.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso4b.py rename to src/tm_devices/drivers/scopes/tekscope/mso4b.py index 89d7bd5a..27faeb62 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso4b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO4BMixin -from tm_devices.drivers.pi.scopes.tekscope.mso4 import MSO4 +from tm_devices.drivers.scopes.tekscope.mso4 import MSO4 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso5.py b/src/tm_devices/drivers/scopes/tekscope/mso5.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso5.py rename to src/tm_devices/drivers/scopes/tekscope/mso5.py index 8ca8ab3d..f8940af1 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso5.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO5Mixin -from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope +from tm_devices.drivers.scopes.tekscope.tekscope import TekScope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso5b.py b/src/tm_devices/drivers/scopes/tekscope/mso5b.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso5b.py rename to src/tm_devices/drivers/scopes/tekscope/mso5b.py index e26c0d7e..f730d0b6 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso5b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO5BMixin -from tm_devices.drivers.pi.scopes.tekscope.mso5 import MSO5 +from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso5lp.py b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso5lp.py rename to src/tm_devices/drivers/scopes/tekscope/mso5lp.py index c8b5cd53..4ec0a9b8 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso5lp.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO5LPMixin -from tm_devices.drivers.pi.scopes.tekscope.mso5 import MSO5 +from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso6.py b/src/tm_devices/drivers/scopes/tekscope/mso6.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso6.py rename to src/tm_devices/drivers/scopes/tekscope/mso6.py index cca44a57..a75502a6 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso6.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO6Mixin -from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope +from tm_devices.drivers.scopes.tekscope.tekscope import TekScope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso6b.py b/src/tm_devices/drivers/scopes/tekscope/mso6b.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope/mso6b.py rename to src/tm_devices/drivers/scopes/tekscope/mso6b.py index 09857e9a..08f9c507 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso6b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO6BMixin -from tm_devices.drivers.pi.scopes.tekscope.mso6 import MSO6 +from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py similarity index 99% rename from src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py rename to src/tm_devices/drivers/scopes/tekscope/tekscope.py index 795c6a90..680c4175 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -32,6 +32,9 @@ ReferenceMixin, SearchMixin, ) +from tm_devices.driver_mixins.abstract_device_functionality.base_afg_source_channel import ( + BaseAFGSourceChannel, +) from tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin import LicensedMixin from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, @@ -40,9 +43,8 @@ SourceDeviceConstants, ) from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.base_afg_source_channel import BaseAFGSourceChannel -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py similarity index 93% rename from src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py rename to src/tm_devices/drivers/scopes/tekscope/tekscopepc.py index 5b163111..19578299 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopepc.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py @@ -5,8 +5,8 @@ import pyvisa as visa from tm_devices.commands import TekScopePCMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.scopes.tekscope.tekscope import AbstractTekScope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.tekscope.tekscope import AbstractTekScope from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/__init__.py b/src/tm_devices/drivers/scopes/tekscope_2k/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/__init__.py rename to src/tm_devices/drivers/scopes/tekscope_2k/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2k.py rename to src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py index 33493ebb..ad2d6b4f 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO2KMixin -from tm_devices.drivers.pi.scopes.tekscope_2k.tekscope_2k import TekScope2k +from tm_devices.drivers.scopes.tekscope_2k.tekscope_2k import TekScope2k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2kb.py rename to src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py index a2aeb170..1162f618 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/dpo2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO2KBMixin -from tm_devices.drivers.pi.scopes.tekscope_2k.dpo2k import DPO2K +from tm_devices.drivers.scopes.tekscope_2k.dpo2k import DPO2K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2k.py rename to src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py index 5390f23b..9eb87334 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO2KMixin -from tm_devices.drivers.pi.scopes.tekscope_2k.tekscope_2k import TekScope2k +from tm_devices.drivers.scopes.tekscope_2k.tekscope_2k import TekScope2k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2kb.py rename to src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py index 4e6c1183..9fe07b48 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/mso2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO2KBMixin -from tm_devices.drivers.pi.scopes.tekscope_2k.mso2k import MSO2K +from tm_devices.drivers.scopes.tekscope_2k.mso2k import MSO2K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py similarity index 97% rename from src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py rename to src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py index 65c55738..c9a05030 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py @@ -5,8 +5,8 @@ from abc import ABC from typing import Any, List, Optional -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/__init__.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/__init__.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4k.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py index fb5a8f95..c1dd7d28 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO4KMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k +from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4kb.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py index 458458bf..3958a56f 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/dpo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO4KBMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.dpo4k import DPO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4k import DPO4K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py index 27991c0a..c770dab2 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MDO3Mixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k +from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3k.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py index 5f9dfbed..e7873d3f 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MDO3KMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k +from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4k.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py index d48d0f76..09c1c174 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MDO4KMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k +from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kb.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py index f7101c23..0d1532ce 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MDO4KBMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4k import MDO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4k import MDO4K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kc.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kc.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py index dc6bc382..9b7252af 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo4kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MDO4KCMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mdo4kb import MDO4KB +from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kb import MDO4KB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4k.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py index 66bc0770..9b835a59 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO4KMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k +from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py similarity index 96% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4kb.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py index 5fb08c41..1d11de72 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mso4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO4KBMixin -from tm_devices.drivers.pi.scopes.tekscope_3k_4k.mso4k import MSO4K +from tm_devices.drivers.scopes.tekscope_3k_4k.mso4k import MSO4K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py similarity index 92% rename from src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py rename to src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py index 86673a4d..ea3b5f36 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -2,8 +2,8 @@ from abc import ABC -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/__init__.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/__init__.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py index 3a1c7751..a269fbb5 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO5KMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5kb.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py index 9cfb5cdc..8d76b969 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO5KBMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py index 470253bc..2d183e04 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kc.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py index 353d819b..5ba4813c 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO70KCMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kd.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kd.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py index 495f191b..2f7af7d4 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kd.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO70KDMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kdx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kdx.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py index e241af62..2b0ce938 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70kdx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO70KDXMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70ksx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70ksx.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py index fbb76c73..8f170799 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo70ksx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO70KSXMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py index 30704e89..eefcbc6d 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO7KMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7kc.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py index e5c3c2fb..f27b2993 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DPO7KCMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py index 6d695ef9..7a6bb632 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kc.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py index c5b0f42c..26ba04d1 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DSA70KCMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kd.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kd.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py index cce35029..e7e9b256 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dsa70kd.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import DSA70KDMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py index 4a90b54e..94ec108f 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO5KMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5kb.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py index 569fb117..9dcf6368 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO5KBMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso5k import MSO5K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5k import MSO5K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py index 0df3d177..24e8f42c 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kc.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py index 80761cf3..a95344b9 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO70KCMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70k import MSO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kdx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py similarity index 94% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kdx.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py index 0e6e97d9..bf2d2262 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso70kdx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import MSO70KDXMixin -from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.mso70k import MSO70K +from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py similarity index 95% rename from src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py rename to src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index bad76748..373b29eb 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -4,8 +4,8 @@ import pyvisa as visa -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/scopes/tso/__init__.py b/src/tm_devices/drivers/scopes/tso/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/scopes/tso/__init__.py rename to src/tm_devices/drivers/scopes/tso/__init__.py diff --git a/src/tm_devices/drivers/pi/scopes/tso/tsovu.py b/src/tm_devices/drivers/scopes/tso/tsovu.py similarity index 91% rename from src/tm_devices/drivers/pi/scopes/tso/tsovu.py rename to src/tm_devices/drivers/scopes/tso/tsovu.py index 76f78785..bdb749a1 100644 --- a/src/tm_devices/drivers/pi/scopes/tso/tsovu.py +++ b/src/tm_devices/drivers/scopes/tso/tsovu.py @@ -2,8 +2,8 @@ import pyvisa as visa -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/__init__.py b/src/tm_devices/drivers/source_measure_units/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/source_measure_units/__init__.py rename to src/tm_devices/drivers/source_measure_units/__init__.py diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/__init__.py b/src/tm_devices/drivers/source_measure_units/smu24xx/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/__init__.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/__init__.py diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2400.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py similarity index 92% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2400.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py index aa5c4c7c..c79dcdcb 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2400.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2401.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py similarity index 92% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2401.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py index 5dd87d67..0af75b40 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2401.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2410.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py similarity index 92% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2410.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py index 967a5cc0..a7aec242 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2410.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2450.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2450.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py index cba74e88..6eb93c82 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2450.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2450Mixin -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_interactive import ( +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2460.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2460.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py index 2bb9143f..dea6d9f1 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2460.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2460Mixin -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_interactive import ( +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2461.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2461.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py index 228fd86a..61e47f5c 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2461.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2461Mixin -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_interactive import ( +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2470.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2470.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py index ab3d3b48..2d450780 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu2470.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2470Mixin -from tm_devices.drivers.pi.source_measure_units.smu24xx.smu24xx_interactive import ( +from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py similarity index 91% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_interactive.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index e1f5788a..83fa65f7 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,9 +9,11 @@ SMU2461Commands, SMU2470Commands, ) -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.ieee488_2_commands import LegacyTSPIEEE4882Commands -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( + LegacyTSPIEEE4882Commands, +) +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py similarity index 94% rename from src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py rename to src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 8739bef8..426ede59 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,11 +5,11 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands -from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/__init__.py b/src/tm_devices/drivers/source_measure_units/smu26xx/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/__init__.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/__init__.py diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py index 8ca00bfe..88c9accd 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py index bd57580d..acd89840 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2601BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b_pulse.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py similarity index 94% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b_pulse.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py index 751d9fef..6b128efe 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2601b_pulse.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2601BPulseMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu2601b import SMU2601B +from tm_devices.drivers.source_measure_units.smu26xx.smu2601b import SMU2601B from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py index cff79b73..abee7f15 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py index ddc16fb0..282b2a6e 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2602b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2602BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py index cbbfa628..e8beab0a 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py index e4dd00ba..82b0f29a 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2604b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2604BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2606b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2606b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py index c3739ddf..1073e3bb 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2606b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2606BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py index 05b9035d..5b488ad6 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py index 626dac09..445e0ab8 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2611b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2611BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py index 32d3a5ea..5ca02297 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py index 80f6f73f..882e8e8a 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2612b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2612BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py index f4529077..04df6ae8 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py index 8949a17f..9a5b45e7 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2614b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2614BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py index a421690a..5b2634f5 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py index 6e641f3f..c8ecaff4 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2634b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2634BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py index eacd691a..a38dfc2f 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py index ebaeab63..f65e777d 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2635b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2635BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py index 921de1e7..fd589c00 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxa import SMU26xxA +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636b.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py index 39749fa7..3c106170 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2636b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2636BMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xxb import SMU26xxB +from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2651a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2651a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py index 13c88da8..26ae4818 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2651a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2651AMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu265xa import SMU265xA +from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2657a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2657a.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py index e89ca878..0ba112e3 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu2657a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SMU2657AMixin -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu265xa import SMU265xA +from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu265xa.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py similarity index 88% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu265xa.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py index 43f1dd86..6c323d29 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu265xa.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py @@ -4,7 +4,7 @@ from typing import Union from tm_devices.commands import SMU2651ACommands, SMU2657ACommands -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xx import SMU26xx +from tm_devices.drivers.source_measure_units.smu26xx.smu26xx import SMU26xx class SMU265xA(SMU26xx, ABC): diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py similarity index 95% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 4cc72fcf..1dc22504 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,8 +20,8 @@ SMU2651ACommands, SMU2657ACommands, ) -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxa.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxa.py similarity index 63% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxa.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxa.py index d9f1ede2..f6eae617 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxa.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxa.py @@ -2,7 +2,7 @@ from abc import ABC -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xx import SMU26xx +from tm_devices.drivers.source_measure_units.smu26xx.smu26xx import SMU26xx class SMU26xxA(SMU26xx, ABC): diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxb.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxb.py rename to src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py index 455c23ca..9db7ccde 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu26xx/smu26xxb.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py @@ -16,7 +16,7 @@ SMU2635BCommands, SMU2636BCommands, ) -from tm_devices.drivers.pi.source_measure_units.smu26xx.smu26xx import SMU26xx +from tm_devices.drivers.source_measure_units.smu26xx.smu26xx import SMU26xx class SMU26xxB(SMU26xx, ABC): diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/__init__.py b/src/tm_devices/drivers/source_measure_units/smu60xx/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/source_measure_units/smu60xx/__init__.py rename to src/tm_devices/drivers/source_measure_units/smu60xx/__init__.py diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6430.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6430.py rename to src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py index 7358fe93..bed35a8a 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6430.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6xxx import SMU6xxx +from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6514.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6514.py rename to src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py index ae311dfc..c23a58e4 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6514.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6xxx import SMU6xxx +from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6517b.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py similarity index 93% rename from src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6517b.py rename to src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py index ac5fc42d..d315e1bd 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6517b.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.drivers.pi.source_measure_units.smu60xx.smu6xxx import SMU6xxx +from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py similarity index 94% rename from src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py rename to src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 721bca1c..9a1961dd 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -5,11 +5,11 @@ from abc import ABC from typing import Optional, Tuple, TYPE_CHECKING, Union +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.ieee488_2_commands import IEEE4882Commands -from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/pi/source_measure_units/source_measure_unit.py b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py similarity index 87% rename from src/tm_devices/drivers/pi/source_measure_units/source_measure_unit.py rename to src/tm_devices/drivers/source_measure_units/source_measure_unit.py index 2a6b9220..9af909e6 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/source_measure_unit.py +++ b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py @@ -5,7 +5,7 @@ from abc import ABC -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes diff --git a/src/tm_devices/drivers/pi/systems_switches/__init__.py b/src/tm_devices/drivers/systems_switches/__init__.py similarity index 100% rename from src/tm_devices/drivers/pi/systems_switches/__init__.py rename to src/tm_devices/drivers/systems_switches/__init__.py diff --git a/src/tm_devices/drivers/pi/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py similarity index 95% rename from src/tm_devices/drivers/pi/systems_switches/ss3706a.py rename to src/tm_devices/drivers/systems_switches/ss3706a.py index b2008e4e..fcbd9c4b 100644 --- a/src/tm_devices/drivers/pi/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -5,8 +5,8 @@ import pyvisa as visa from tm_devices.commands import SS3706AMixin -from tm_devices.drivers.device import family_base_class -from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/pi/systems_switches/systems_switch.py b/src/tm_devices/drivers/systems_switches/systems_switch.py similarity index 86% rename from src/tm_devices/drivers/pi/systems_switches/systems_switch.py rename to src/tm_devices/drivers/systems_switches/systems_switch.py index 9dfcf9bf..04751044 100644 --- a/src/tm_devices/drivers/pi/systems_switches/systems_switch.py +++ b/src/tm_devices/drivers/systems_switches/systems_switch.py @@ -2,7 +2,7 @@ from abc import ABC -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes diff --git a/tests/samples/golden_stubs/drivers/device.pyi b/tests/samples/golden_stubs/driver_mixins/device_control/device.pyi similarity index 100% rename from tests/samples/golden_stubs/drivers/device.pyi rename to tests/samples/golden_stubs/driver_mixins/device_control/device.pyi diff --git a/tests/samples/golden_stubs/drivers/pi/pi_device.pyi b/tests/samples/golden_stubs/driver_mixins/device_control/pi_device.pyi similarity index 100% rename from tests/samples/golden_stubs/drivers/pi/pi_device.pyi rename to tests/samples/golden_stubs/driver_mixins/device_control/pi_device.pyi diff --git a/tests/samples/golden_stubs/drivers/pi/tsp_device.pyi b/tests/samples/golden_stubs/driver_mixins/device_control/tsp_device.pyi similarity index 100% rename from tests/samples/golden_stubs/drivers/pi/tsp_device.pyi rename to tests/samples/golden_stubs/driver_mixins/device_control/tsp_device.pyi diff --git a/tests/test_afgs.py b/tests/test_afgs.py index 3788176d..b496a08c 100644 --- a/tests/test_afgs.py +++ b/tests/test_afgs.py @@ -10,7 +10,7 @@ from conftest import UNIT_TEST_TIMEOUT from tm_devices import DeviceManager -from tm_devices.drivers.pi.afgs.afg import ( +from tm_devices.drivers.afgs.afg import ( AFGSourceDeviceConstants, ExtendedSourceDeviceConstants, ParameterBounds, diff --git a/tests/test_awgs.py b/tests/test_awgs.py index b1824752..ecc94939 100644 --- a/tests/test_awgs.py +++ b/tests/test_awgs.py @@ -17,7 +17,7 @@ AWG70KB, AWG5200, ) -from tm_devices.drivers.pi.awgs.awg import ( +from tm_devices.drivers.awgs.awg import ( AWGSourceDeviceConstants, ExtendedSourceDeviceConstants, ParameterBounds, diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index 63a81d80..b76b7fd0 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -17,13 +17,13 @@ import pytest from tm_devices import DeviceManager +from tm_devices.driver_mixins.device_control.device import Device +from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers import AFG3K, AFG3KC -from tm_devices.drivers.device import Device -from tm_devices.drivers.pi.afgs.afg import AFG -from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.drivers.pi.tsp_device import TSPDevice +from tm_devices.drivers.afgs.afg import AFG +from tm_devices.drivers.scopes.scope import Scope INITIAL_DEVICE_INPUT = '''import abc from abc import ABC @@ -137,9 +137,9 @@ def gen_count() -> Iterator[int]: local_count = gen_count() golden_stub_dir = Path(__file__).parent / "samples" / "golden_stubs" - stub_device_filepath = Path("drivers/device.pyi") - stub_pi_device_filepath = Path("drivers/pi/pi_device.pyi") - stub_tsp_device_filepath = Path("drivers/pi/tsp_device.pyi") + stub_device_filepath = Path("driver_mixins/device_control/device.pyi") + stub_pi_device_filepath = Path("driver_mixins/device_control/pi_device.pyi") + stub_tsp_device_filepath = Path("driver_mixins/device_control/tsp_device.pyi") generated_stub_dir = ( Path(__file__).parent / "samples/generated_stubs" diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 34a3a270..016be1d7 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -10,11 +10,11 @@ from packaging.version import Version from mock_server import INDEX_RESPONSE, PORT +from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.device_control.rest_api_device import ( RESTAPIDevice, SupportedRequestTypes, ) -from tm_devices.drivers.device import family_base_class # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/tests/test_scopes.py b/tests/test_scopes.py index d3af43b3..c2f9903e 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -16,7 +16,7 @@ from tm_devices import DeviceManager, register_additional_usbtmc_mapping from tm_devices.drivers import MSO2, MSO2KB, MSO5, MSO5B, MSO6, MSO70KDX, TekScopePC -from tm_devices.drivers.pi.scopes.tekscope.tekscope import ( +from tm_devices.drivers.scopes.tekscope.tekscope import ( AbstractTekScope, ExtendedSourceDeviceConstants, ParameterBounds, @@ -229,7 +229,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 assert mso2_scope.usb_drives == ("E:",) assert mso2_scope.ip_address == "" with mock.patch( - "tm_devices.drivers.pi.scopes.tekscope.mso2.MSO2.license_list", + "tm_devices.drivers.scopes.tekscope.mso2.MSO2.license_list", property(mock.MagicMock(return_value=("MSO",))), ): # reset the cache diff --git a/tests/test_smu.py b/tests/test_smu.py index 896a7f04..aea9ca6e 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -140,7 +140,7 @@ def test_smu( # noqa: PLR0915 ) print(smu) expected_stdout = f"""{'=' * 45} SMU {smu.device_number} {'=' * 45} - object at {id(smu)} + object at {id(smu)} address='SMU2601B-HOSTNAME' alias='SMU-DEVICE' all_channel_names_list=('a',) diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index aafe62c4..48e88df8 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -23,7 +23,7 @@ # noinspection PyProtectedMember -from tm_devices.drivers.device import ( +from tm_devices.driver_mixins.device_control.device import ( _FAMILY_BASE_CLASS_PROPERTY_NAME, # pyright: ignore [reportPrivateUsage] Device, ) diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index e22a350d..7d68f0b8 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -7,7 +7,7 @@ import pytest from tm_devices import DeviceManager -from tm_devices.drivers.pi.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_device import PIDevice # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 From 19a6e6322969686b621782e0ac04842b81f1f261 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 12:00:18 -0700 Subject: [PATCH 07/52] refactor: Remove deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. Also removed another constant that wasn't really needed. --- .pre-commit-config.yaml | 5 - CHANGELOG.md | 4 +- docs/contributing/add_new_driver.md | 3 +- pyproject.toml | 1 - src/tm_devices/device_manager.py | 10 +- src/tm_devices/drivers/__init__.py | 4 - ...r_mapping.py => _device_driver_mapping.py} | 230 ++++++++---------- src/tm_devices/drivers/device_type_classes.py | 18 -- tests/test_tm_devices.py | 13 +- 9 files changed, 123 insertions(+), 165 deletions(-) rename src/tm_devices/drivers/{device_driver_mapping.py => _device_driver_mapping.py} (59%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0e2ef4e..fb060468 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,11 +60,6 @@ repos: rev: 8072181c0f2eab9f2dd8db2eb3b9556d7cd0bd74 # frozen: 1.17.0 hooks: - id: yamlfix -# TODO: get this working -# - repo: https://github.com/motet-a/jinjalint -# rev: "0.5" -# hooks: -# - id: jinjalint - repo: https://github.com/thibaudcolas/curlylint rev: 71adf4d34c290684fd9f94a4d21ac55bcfe640f0 # frozen: v0.13.1 hooks: diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b41e15..a1107a01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ Things to be included in the next release go here. NOTE: Despite all the officially breaking changes, the actual drivers were only affected in very minor ways. The primary impact to the drivers was simply the removal of previously -deprecated functionality. +deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. - BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. - BREAKING CHANGE: Moved the `Device`, `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. @@ -38,6 +38,8 @@ deprecated functionality. - BREAKING CHANGE: Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class - BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPDevice` class. - BREAKING CHANGE: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. +- BREAKING CHANGE: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. +- BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant. --- diff --git a/docs/contributing/add_new_driver.md b/docs/contributing/add_new_driver.md index 06330b14..f6fd80a0 100644 --- a/docs/contributing/add_new_driver.md +++ b/docs/contributing/add_new_driver.md @@ -33,8 +33,7 @@ This guide will walk through the steps needed to add a new device driver. `tm_devices/helpers/functions.py` to include a mapping of the new driver name (model series) to a regex string matching the appropriate model strings -5. Update the [`DEVICE_DRIVER_MODEL_MAPPING`][tm_devices.drivers.DEVICE_DRIVER_MODEL_MAPPING] lookup inside - `tm_devices/drivers/device_driver_mapping.py` +5. Update the `_DEVICE_DRIVER_MODEL_STR_MAPPING` lookup inside `tm_devices/drivers/_device_driver_mapping.py` 6. Update the `__all__` variable inside `tm_devices/drivers/__init__.py` to include the new device driver diff --git a/pyproject.toml b/pyproject.toml index d5e3541e..f1c9f21c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -256,7 +256,6 @@ pythonPlatform = "All" pythonVersion = "3.8" reportCallInDefaultInitializer = "error" reportImplicitOverride = "none" # this check is not needed -# TODO: turn on the check for implicit string concatenation reportImplicitStringConcatenation = "none" # this is allowed by this project's formatting standard reportImportCycles = "none" # other analysis tools catch these more effectively reportMissingSuperCall = "none" # this can be ignored since this would break unit tests if handled incorrectly diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index 262f04d2..6bcc5532 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -20,16 +20,16 @@ from tm_devices.driver_mixins.device_control.device import Device from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice + +# noinspection PyProtectedMember +from tm_devices.drivers._device_driver_mapping import ( + _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] +) from tm_devices.drivers.afgs.afg import AFG from tm_devices.drivers.awgs.awg import AWG from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) - -# noinspection PyProtectedMember -from tm_devices.drivers.device_driver_mapping import ( - _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] -) from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit diff --git a/src/tm_devices/drivers/__init__.py b/src/tm_devices/drivers/__init__.py index 8e43017d..8f31730f 100644 --- a/src/tm_devices/drivers/__init__.py +++ b/src/tm_devices/drivers/__init__.py @@ -2,8 +2,6 @@ # NOTE: For documentation purposes, these imports must be sorted manually, not automatically # ruff: isort: skip_file -from tm_devices.drivers.device_driver_mapping import DEVICE_DRIVER_MODEL_MAPPING -from tm_devices.drivers.device_type_classes import DEVICE_TYPE_CLASSES from tm_devices.helpers.enums import SupportedModels from tm_devices.drivers.afgs.afg3k import AFG3K from tm_devices.drivers.afgs.afg3kb import AFG3KB @@ -107,8 +105,6 @@ __all__ = [ - "DEVICE_DRIVER_MODEL_MAPPING", - "DEVICE_TYPE_CLASSES", "SupportedModels", "AFG3K", "AFG3KB", diff --git a/src/tm_devices/drivers/device_driver_mapping.py b/src/tm_devices/drivers/_device_driver_mapping.py similarity index 59% rename from src/tm_devices/drivers/device_driver_mapping.py rename to src/tm_devices/drivers/_device_driver_mapping.py index f216f706..fb344b38 100644 --- a/src/tm_devices/drivers/device_driver_mapping.py +++ b/src/tm_devices/drivers/_device_driver_mapping.py @@ -1,9 +1,8 @@ """The mapping for all device drivers.""" from types import MappingProxyType -from typing import Mapping, Type +from typing import Mapping, Type, TYPE_CHECKING -from tm_devices.driver_mixins.device_control.device import Device from tm_devices.drivers.afgs.afg3k import AFG3K from tm_devices.drivers.afgs.afg3kb import AFG3KB from tm_devices.drivers.afgs.afg3kc import AFG3KC @@ -105,136 +104,121 @@ from tm_devices.drivers.systems_switches.ss3706a import SS3706A from tm_devices.helpers.enums import SupportedModels -# IMPORTANT: Any additions to this class which support a USBTMC connection need to be added to the -# tm_devices.helpers.constants_and_dataclasses.USB_MODEL_ID_LOOKUP constant as well. -DEVICE_DRIVER_MODEL_MAPPING: Mapping[SupportedModels, Type[Device]] = MappingProxyType( +if TYPE_CHECKING: + from tm_devices.driver_mixins.device_control.device import Device + +#################################################################################################### +# Private Attributes +#################################################################################################### +_DEVICE_DRIVER_MODEL_STR_MAPPING: "Mapping[str, Type[Device]]" = MappingProxyType( { # AFGs - SupportedModels.AFG3K: AFG3K, - SupportedModels.AFG3KB: AFG3KB, - SupportedModels.AFG3KC: AFG3KC, - SupportedModels.AFG31K: AFG31K, + SupportedModels.AFG3K.value: AFG3K, + SupportedModels.AFG3KB.value: AFG3KB, + SupportedModels.AFG3KC.value: AFG3KC, + SupportedModels.AFG31K.value: AFG31K, # AWGs - SupportedModels.AWG5200: AWG5200, - SupportedModels.AWG5K: AWG5K, - SupportedModels.AWG5KB: AWG5KB, - SupportedModels.AWG5KC: AWG5KC, - SupportedModels.AWG7K: AWG7K, - SupportedModels.AWG7KB: AWG7KB, - SupportedModels.AWG7KC: AWG7KC, - SupportedModels.AWG70KA: AWG70KA, - SupportedModels.AWG70KB: AWG70KB, + SupportedModels.AWG5200.value: AWG5200, + SupportedModels.AWG5K.value: AWG5K, + SupportedModels.AWG5KB.value: AWG5KB, + SupportedModels.AWG5KC.value: AWG5KC, + SupportedModels.AWG7K.value: AWG7K, + SupportedModels.AWG7KB.value: AWG7KB, + SupportedModels.AWG7KC.value: AWG7KC, + SupportedModels.AWG70KA.value: AWG70KA, + SupportedModels.AWG70KB.value: AWG70KB, # Scopes - SupportedModels.DPO5K: DPO5K, - SupportedModels.DPO5KB: DPO5KB, - SupportedModels.DPO7K: DPO7K, - SupportedModels.DPO7KC: DPO7KC, - SupportedModels.DPO70K: DPO70K, - SupportedModels.DPO70KC: DPO70KC, - SupportedModels.DPO70KD: DPO70KD, - SupportedModels.DPO70KDX: DPO70KDX, - SupportedModels.DPO70KSX: DPO70KSX, - SupportedModels.DSA70K: DSA70K, - SupportedModels.DSA70KC: DSA70KC, - SupportedModels.DSA70KD: DSA70KD, - SupportedModels.LPD6: LPD6, - SupportedModels.MSO2K: MSO2K, - SupportedModels.MSO2KB: MSO2KB, - SupportedModels.DPO2K: DPO2K, - SupportedModels.DPO2KB: DPO2KB, - SupportedModels.MDO3: MDO3, - SupportedModels.MDO3K: MDO3K, - SupportedModels.MDO4K: MDO4K, - SupportedModels.MDO4KB: MDO4KB, - SupportedModels.MDO4KC: MDO4KC, - SupportedModels.MSO4K: MSO4K, - SupportedModels.MSO4KB: MSO4KB, - SupportedModels.DPO4K: DPO4K, - SupportedModels.DPO4KB: DPO4KB, - SupportedModels.MSO2: MSO2, - SupportedModels.MSO4: MSO4, - SupportedModels.MSO4B: MSO4B, - SupportedModels.MSO5: MSO5, - SupportedModels.MSO5B: MSO5B, - SupportedModels.MSO5LP: MSO5LP, - SupportedModels.MSO6: MSO6, - SupportedModels.MSO6B: MSO6B, - SupportedModels.MSO5K: MSO5K, - SupportedModels.MSO5KB: MSO5KB, - SupportedModels.MSO70K: MSO70K, - SupportedModels.MSO70KC: MSO70KC, - SupportedModels.MSO70KDX: MSO70KDX, - SupportedModels.TEKSCOPEPC: TekScopePC, - SupportedModels.TSOVU: TSOVu, + SupportedModels.DPO5K.value: DPO5K, + SupportedModels.DPO5KB.value: DPO5KB, + SupportedModels.DPO7K.value: DPO7K, + SupportedModels.DPO7KC.value: DPO7KC, + SupportedModels.DPO70K.value: DPO70K, + SupportedModels.DPO70KC.value: DPO70KC, + SupportedModels.DPO70KD.value: DPO70KD, + SupportedModels.DPO70KDX.value: DPO70KDX, + SupportedModels.DPO70KSX.value: DPO70KSX, + SupportedModels.DSA70K.value: DSA70K, + SupportedModels.DSA70KC.value: DSA70KC, + SupportedModels.DSA70KD.value: DSA70KD, + SupportedModels.LPD6.value: LPD6, + SupportedModels.MSO2K.value: MSO2K, + SupportedModels.MSO2KB.value: MSO2KB, + SupportedModels.DPO2K.value: DPO2K, + SupportedModels.DPO2KB.value: DPO2KB, + SupportedModels.MDO3.value: MDO3, + SupportedModels.MDO3K.value: MDO3K, + SupportedModels.MDO4K.value: MDO4K, + SupportedModels.MDO4KB.value: MDO4KB, + SupportedModels.MDO4KC.value: MDO4KC, + SupportedModels.MSO4K.value: MSO4K, + SupportedModels.MSO4KB.value: MSO4KB, + SupportedModels.DPO4K.value: DPO4K, + SupportedModels.DPO4KB.value: DPO4KB, + SupportedModels.MSO2.value: MSO2, + SupportedModels.MSO4.value: MSO4, + SupportedModels.MSO4B.value: MSO4B, + SupportedModels.MSO5.value: MSO5, + SupportedModels.MSO5B.value: MSO5B, + SupportedModels.MSO5LP.value: MSO5LP, + SupportedModels.MSO6.value: MSO6, + SupportedModels.MSO6B.value: MSO6B, + SupportedModels.MSO5K.value: MSO5K, + SupportedModels.MSO5KB.value: MSO5KB, + SupportedModels.MSO70K.value: MSO70K, + SupportedModels.MSO70KC.value: MSO70KC, + SupportedModels.MSO70KDX.value: MSO70KDX, + SupportedModels.TEKSCOPEPC.value: TekScopePC, + SupportedModels.TSOVU.value: TSOVu, # Margin Testers - SupportedModels.TMT4: TMT4, + SupportedModels.TMT4.value: TMT4, # Source Measure Units - SupportedModels.SMU2400: SMU2400, - SupportedModels.SMU2401: SMU2401, - SupportedModels.SMU2410: SMU2410, - SupportedModels.SMU2450: SMU2450, - SupportedModels.SMU2460: SMU2460, - SupportedModels.SMU2461: SMU2461, - SupportedModels.SMU2470: SMU2470, - SupportedModels.SMU2601B: SMU2601B, - SupportedModels.SMU2601B_PULSE: SMU2601BPulse, - SupportedModels.SMU2602B: SMU2602B, - SupportedModels.SMU2604B: SMU2604B, - SupportedModels.SMU2606B: SMU2606B, - SupportedModels.SMU2611B: SMU2611B, - SupportedModels.SMU2612B: SMU2612B, - SupportedModels.SMU2614B: SMU2614B, - SupportedModels.SMU2634B: SMU2634B, - SupportedModels.SMU2635B: SMU2635B, - SupportedModels.SMU2636B: SMU2636B, - SupportedModels.SMU2651A: SMU2651A, - SupportedModels.SMU2657A: SMU2657A, - SupportedModels.SMU2601A: SMU2601A, - SupportedModels.SMU2602A: SMU2602A, - SupportedModels.SMU2604A: SMU2604A, - SupportedModels.SMU2611A: SMU2611A, - SupportedModels.SMU2612A: SMU2612A, - SupportedModels.SMU2614A: SMU2614A, - SupportedModels.SMU2634A: SMU2634A, - SupportedModels.SMU2635A: SMU2635A, - SupportedModels.SMU2636A: SMU2636A, - SupportedModels.SMU6430: SMU6430, - SupportedModels.SMU6514: SMU6514, - SupportedModels.SMU6517B: SMU6517B, + SupportedModels.SMU2400.value: SMU2400, + SupportedModels.SMU2401.value: SMU2401, + SupportedModels.SMU2410.value: SMU2410, + SupportedModels.SMU2450.value: SMU2450, + SupportedModels.SMU2460.value: SMU2460, + SupportedModels.SMU2461.value: SMU2461, + SupportedModels.SMU2470.value: SMU2470, + SupportedModels.SMU2601B.value: SMU2601B, + SupportedModels.SMU2601B_PULSE.value: SMU2601BPulse, + SupportedModels.SMU2602B.value: SMU2602B, + SupportedModels.SMU2604B.value: SMU2604B, + SupportedModels.SMU2606B.value: SMU2606B, + SupportedModels.SMU2611B.value: SMU2611B, + SupportedModels.SMU2612B.value: SMU2612B, + SupportedModels.SMU2614B.value: SMU2614B, + SupportedModels.SMU2634B.value: SMU2634B, + SupportedModels.SMU2635B.value: SMU2635B, + SupportedModels.SMU2636B.value: SMU2636B, + SupportedModels.SMU2651A.value: SMU2651A, + SupportedModels.SMU2657A.value: SMU2657A, + SupportedModels.SMU2601A.value: SMU2601A, + SupportedModels.SMU2602A.value: SMU2602A, + SupportedModels.SMU2604A.value: SMU2604A, + SupportedModels.SMU2611A.value: SMU2611A, + SupportedModels.SMU2612A.value: SMU2612A, + SupportedModels.SMU2614A.value: SMU2614A, + SupportedModels.SMU2634A.value: SMU2634A, + SupportedModels.SMU2635A.value: SMU2635A, + SupportedModels.SMU2636A.value: SMU2636A, + SupportedModels.SMU6430.value: SMU6430, + SupportedModels.SMU6514.value: SMU6514, + SupportedModels.SMU6517B.value: SMU6517B, # Power Supplies - SupportedModels.PSU2200: PSU2200, - SupportedModels.PSU2220: PSU2220, - SupportedModels.PSU2230: PSU2230, - SupportedModels.PSU2231: PSU2231, - SupportedModels.PSU2231A: PSU2231A, - SupportedModels.PSU2280: PSU2280, - SupportedModels.PSU2281: PSU2281, + SupportedModels.PSU2200.value: PSU2200, + SupportedModels.PSU2220.value: PSU2220, + SupportedModels.PSU2230.value: PSU2230, + SupportedModels.PSU2231.value: PSU2231, + SupportedModels.PSU2231A.value: PSU2231A, + SupportedModels.PSU2280.value: PSU2280, + SupportedModels.PSU2281.value: PSU2281, # Digital Multimeters - SupportedModels.DMM6500: DMM6500, - SupportedModels.DMM7510: DMM7510, - SupportedModels.DMM7512: DMM7512, + SupportedModels.DMM6500.value: DMM6500, + SupportedModels.DMM7510.value: DMM7510, + SupportedModels.DMM7512.value: DMM7512, # Data Acquisition System - SupportedModels.DAQ6510: DAQ6510, + SupportedModels.DAQ6510.value: DAQ6510, # Systems Switches - SupportedModels.SS3706A: SS3706A, + SupportedModels.SS3706A.value: SS3706A, } ) -"""A mapping of device model series names to their device driver objects. - -Any additions to this class which support a USBTMC connection need to be added to -the [`tm_devices.helpers.constants_and_dataclasses.USB_MODEL_ID_LOOKUP`][] constant as well. - -!!! danger "Deprecated" - This mapping is deprecated since it is only used internally by the - [`DeviceManager`][tm_devices.DeviceManager]. -""" - -#################################################################################################### -# Private Attributes -#################################################################################################### -# TODO: deprecation: Move the contents of DEVICE_DRIVER_MODEL_MAPPING into this attribute, -# remove the old DEVICE_DRIVER_MODEL_MAPPING constant, and make this entire module (file) private -# in the next major release -_DEVICE_DRIVER_MODEL_STR_MAPPING: "Mapping[str, Type[Device]]" = MappingProxyType( - {key.value: value for key, value in DEVICE_DRIVER_MODEL_MAPPING.items()} -) diff --git a/src/tm_devices/drivers/device_type_classes.py b/src/tm_devices/drivers/device_type_classes.py index f89e847a..a3742502 100644 --- a/src/tm_devices/drivers/device_type_classes.py +++ b/src/tm_devices/drivers/device_type_classes.py @@ -1,8 +1,5 @@ """A module with all the main device type classes.""" -from typing import Final, Tuple, Type - -from tm_devices.driver_mixins.device_control.device import Device from tm_devices.drivers.afgs.afg import AFG from tm_devices.drivers.awgs.awg import AWG from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( @@ -15,22 +12,7 @@ from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch -# TODO: nfelt14: remove this tuple, I don't see a need for it. -DEVICE_TYPE_CLASSES: Final[Tuple[Type[Device], ...]] = ( - AFG, - AWG, - DataAcquisitionSystem, - DigitalMultimeter, - PowerSupplyUnit, - SourceMeasureUnit, - Scope, - SystemsSwitch, - MarginTester, -) -"""A tuple containing all the different supported device type classes.""" - __all__ = [ - "DEVICE_TYPE_CLASSES", "AFG", "AWG", "DataAcquisitionSystem", diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index 48e88df8..b8bb1096 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -1,4 +1,4 @@ -"""Temporary test file to get to 100% coverage.""" +"""Test design patterns and requirements of tm_devices.""" import inspect import itertools @@ -19,6 +19,7 @@ import tm_devices import tm_devices.device_manager import tm_devices.drivers +import tm_devices.drivers.device_type_classes import tm_devices.helpers @@ -74,7 +75,7 @@ def is_defined_function(function: Any) -> bool: def test_device_types() -> None: """Verify that the DEVICE_TYPES is kept up to date.""" - abstract_device_list = tm_devices.drivers.DEVICE_TYPE_CLASSES + abstract_device_list = tm_devices.drivers.device_type_classes.__all__ supported_device_types = sorted( [ x @@ -85,7 +86,7 @@ def test_device_types() -> None: if len(abstract_device_list) != len(supported_device_types): msg = ( f"Not all abstract device types are represented in " - f"abstract_device_list={sorted([x.__name__ for x in abstract_device_list])}\n" + f"abstract_device_list={sorted(abstract_device_list)}\n" f"Supported device type abbreviations are {supported_device_types}, " f"please update abstract_device_list in this test with any missing abstract classes." ) @@ -154,14 +155,14 @@ def test_device_method_abstraction() -> None: def test_supported_models_in_device_driver_mapping() -> None: """Verify that all supported models are in the device driver mapping and drivers init file.""" + from tm_devices.drivers import _device_driver_mapping # pylint: disable=import-outside-toplevel + supported_models_list = sorted(x.value for x in tm_devices.SupportedModels) device_driver_list: List[str] = sorted( - tm_devices.drivers.device_driver_mapping._DEVICE_DRIVER_MODEL_STR_MAPPING # noqa: SLF001 # pyright: ignore[reportUnknownMemberType,reportUnknownArgumentType,reportAttributeAccessIssue] + _device_driver_mapping._DEVICE_DRIVER_MODEL_STR_MAPPING # noqa: SLF001 # pyright: ignore[reportPrivateUsage] ) module_list: List[str] = list(tm_devices.drivers.__all__) # Remove a few non-driver items - module_list.remove("DEVICE_DRIVER_MODEL_MAPPING") - module_list.remove("DEVICE_TYPE_CLASSES") module_list.remove("SupportedModels") module_list.sort() From 7f2a399681651b74da50651ade9bbe31030d55be Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 12:34:24 -0700 Subject: [PATCH 08/52] refactor: Updated most device types to no longer inherit from the control mixin, the control mixins are now inherited at the family base class level (in most cases) --- CHANGELOG.md | 1 + .../tek_afg_awg_mixin.py | 1 + src/tm_devices/drivers/afgs/afg.py | 1 + src/tm_devices/drivers/awgs/awg.py | 1 + .../data_acquisition_systems/daq6510.py | 5 +- .../data_acquisition_system.py | 6 +- .../digital_multimeters/digital_multimeter.py | 4 +- .../drivers/digital_multimeters/dmm6500.py | 3 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 3 +- .../drivers/power_supplies/power_supply.py | 5 +- .../drivers/power_supplies/psu22xx/psu2200.py | 3 +- src/tm_devices/drivers/scopes/scope.py | 1 + .../smu24xx/smu24xx_interactive.py | 3 +- .../smu24xx/smu24xx_standard.py | 74 ++----------------- .../source_measure_units/smu26xx/smu26xx.py | 3 +- .../source_measure_units/smu60xx/smu6xxx.py | 74 ++----------------- .../source_measure_unit.py | 4 +- .../drivers/systems_switches/ss3706a.py | 3 +- .../systems_switches/systems_switch.py | 4 +- tests/test_devices_legacy_tsp_ieee_cmds.py | 10 ++- tests/test_smu.py | 22 +----- tests/test_ss.py | 6 +- 22 files changed, 59 insertions(+), 178 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1107a01..7e1dd7e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ deprecated functionality. Almost all changes only impacted the internal workings - BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. - BREAKING CHANGE: Moved the `Device`, `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. + - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. - BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 9f2d3b0a..b6f84a0c 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -14,6 +14,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 +# TODO: nfelt14: remove PIDevice inheritance if possible class TekAFGAWG(PIDevice, SignalGeneratorMixin, ExtendableMixin, ABC): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 2451f9bf..9e705c6f 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -34,6 +34,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAFG] = SignalGeneratorFunctionsAFG +# TODO: nfelt14: remove PIDevice inheritance if possible @family_base_class class AFG(TekAFGAWG, ABC): """Base AFG device driver.""" diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index 64058ef1..1ad2ab49 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -34,6 +34,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAWG] = SignalGeneratorFunctionsAWG +# TODO: nfelt14: remove PIDevice inheritance if possible class AWG(TekAFGAWG, ABC): """Base AWG device driver.""" diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 4ef3b8bd..2f466a55 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,6 +5,8 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin +from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -17,7 +19,8 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem): +@family_base_class +class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem, TSPDevice): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py index dc767c6b..4ce1c8ac 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py +++ b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py @@ -2,13 +2,11 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes -@family_base_class -class DataAcquisitionSystem(TSPDevice, ABC): +# pylint: disable=too-few-public-methods +class DataAcquisitionSystem(ABC): # noqa: B024 """Base Data Acquisition (DAQ) device driver.""" _DEVICE_TYPE = DeviceTypes.DAQ.value diff --git a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py index 0cdc8062..544b2150 100644 --- a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py +++ b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py @@ -2,11 +2,11 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes -class DigitalMultimeter(TSPDevice, ABC): +# pylint: disable=too-few-public-methods +class DigitalMultimeter(ABC): # noqa: B024 """Base Digital Multimeter (DMM) device driver.""" _DEVICE_TYPE = DeviceTypes.DMM.value diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index c4bd91a9..2643d0bf 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -6,6 +6,7 @@ from tm_devices.commands import DMM6500Mixin from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -14,7 +15,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, DigitalMultimeter): +class DMM6500(DMM6500Mixin, DigitalMultimeter, TSPDevice): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index cf3f90fd..9a7faf2d 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -6,6 +6,7 @@ import pyvisa as visa from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -14,7 +15,7 @@ @family_base_class -class DMM75xx(DigitalMultimeter, ABC): +class DMM75xx(DigitalMultimeter, TSPDevice, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/power_supplies/power_supply.py b/src/tm_devices/drivers/power_supplies/power_supply.py index 21d748ed..0788234a 100644 --- a/src/tm_devices/drivers/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/power_supplies/power_supply.py @@ -6,12 +6,11 @@ from abc import ABC from typing import Tuple, Union -from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.helpers import DeviceTypes -class PowerSupplyUnit(PIDevice, ABC): +class PowerSupplyUnit(ABC): # noqa: B024 """Base Power Supply Unit (PSU) device driver.""" _DEVICE_TYPE = DeviceTypes.PSU.value @@ -32,6 +31,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: @@ -40,4 +40,5 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 70227742..4f835cc3 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -5,6 +5,7 @@ from packaging.version import Version from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.pi_device import PIDevice from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version @@ -13,7 +14,7 @@ @family_base_class -class PSU2200(PowerSupplyUnit): +class PSU2200(PowerSupplyUnit, PIDevice): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index fdb1f920..8911ff97 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -12,6 +12,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 +# TODO: nfelt14: remove PIDevice inheritance if possible class Scope(PIDevice, ABC): """Base Scope device driver.""" diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 83fa65f7..c047c4de 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -10,6 +10,7 @@ SMU2470Commands, ) from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -20,7 +21,7 @@ @family_base_class -class SMU24xxInteractive(SourceMeasureUnit, ABC): +class SMU24xxInteractive(SourceMeasureUnit, TSPDevice, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 426ede59..6a4ca2cc 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -3,11 +3,10 @@ from __future__ import annotations from abc import ABC -from typing import Optional, Tuple, TYPE_CHECKING, Union +from typing import Tuple, TYPE_CHECKING, Union from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.device_control.pi_device import PIDevice -from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -15,15 +14,13 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 if TYPE_CHECKING: - import os + from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands @family_base_class -class SMU24xxStandard(SourceMeasureUnit, ABC): +class SMU24xxStandard(SourceMeasureUnit, PIDevice, ABC): """Base SMU24xxStandard device driver.""" - _IEEE_COMMANDS_CLASS = IEEE4882Commands - ################################################################################################ # Magic Methods ################################################################################################ @@ -37,7 +34,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: return tuple(f"OUTPUT{x+1}" for x in range(self.total_channels)) @property - def ieee_cmds(self) -> IEEE4882Commands: # pyright: ignore [reportIncompatibleMethodOverride] + def ieee_cmds(self) -> IEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds @@ -62,6 +59,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: @@ -70,69 +68,9 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] - def run_script(self, script_name: str) -> None: # noqa: ARG002 - """Not Implemented.""" - msg = f"This functionality is not available on the {self.__class__.__name__} instrument." - raise NotImplementedError(msg) - - def set_and_check( # noqa: PLR0913 - self, - command: str, - value: Union[str, float], - tolerance: float = 0, - percentage: bool = False, - remove_quotes: bool = False, - custom_message_prefix: str = "", - *, - expected_value: Optional[Union[str, float]] = None, - opc: bool = False, - ) -> str: - """Send the given command with the given value and then verify the results. - - Args: - command: The command to send. - For example: ``:AFG:FUNCTION`` - value: The value being set by the command. - For example: ``SINE`` - tolerance: The acceptable difference between two floating point values. - percentage: A boolean indicating what kind of tolerance check to perform. - False means absolute tolerance: +/- tolerance. - True means percent tolerance: +/- (tolerance / 100) * value. - remove_quotes: Set this to True to remove all double quotes from the returned value. - custom_message_prefix: A custom message to be prepended to the failure message. - expected_value: An optional, alternative value expected to be returned. - opc: Boolean indicating if ``*OPC?`` should be queried after sending the command. - - Returns: - The output of the query portion of the method. - """ - return PIDevice.set_and_check( - self, - command, - value, - tolerance, - percentage, - remove_quotes, - custom_message_prefix, - expected_value=expected_value, - opc=opc, - ) - - def load_script( - self, - script_name: str, # noqa: ARG002 - *, - script_body: str = "", # noqa: ARG002 - file_path: Union[str, os.PathLike[str], None] = None, # noqa: ARG002 - run_script: bool = False, # noqa: ARG002 - to_nv_memory: bool = False, # noqa: ARG002 - ) -> None: - """Not Implemented.""" - msg = f"This functionality is not available on the {self.__class__.__name__} instrument." - raise NotImplementedError(msg) - ################################################################################################ # Private Methods ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 1dc22504..34e1eda1 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -21,6 +21,7 @@ SMU2657ACommands, ) from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -28,7 +29,7 @@ @family_base_class -class SMU26xx(SourceMeasureUnit, ABC): +class SMU26xx(SourceMeasureUnit, TSPDevice, ABC): """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 9a1961dd..64598fbb 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -3,11 +3,10 @@ from __future__ import annotations from abc import ABC -from typing import Optional, Tuple, TYPE_CHECKING, Union +from typing import Tuple, TYPE_CHECKING, Union from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.device_control.pi_device import PIDevice -from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -15,15 +14,13 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 if TYPE_CHECKING: - import os + from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands @family_base_class -class SMU6xxx(SourceMeasureUnit, ABC): +class SMU6xxx(SourceMeasureUnit, PIDevice, ABC): """Base SMU6xxx device driver.""" - _IEEE_COMMANDS_CLASS = IEEE4882Commands - ################################################################################################ # Magic Methods ################################################################################################ @@ -37,7 +34,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: return tuple(f"SOURCE{x+1}" for x in range(self.total_channels)) @property - def ieee_cmds(self) -> IEEE4882Commands: # pyright: ignore [reportIncompatibleMethodOverride] + def ieee_cmds(self) -> IEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds @@ -62,6 +59,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool Returns: Boolean indicating if the check passed or failed and a string with the results. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] def get_eventlog_status(self) -> Tuple[bool, str]: @@ -70,69 +68,9 @@ def get_eventlog_status(self) -> Tuple[bool, str]: Returns: Boolean indicating no error, String containing concatenated contents of event log. """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] - def run_script(self, script_name: str) -> None: # noqa: ARG002 - """Not Implemented.""" - msg = f"This functionality is not available on the {self.__class__.__name__} instrument." - raise NotImplementedError(msg) - - def set_and_check( # noqa: PLR0913 - self, - command: str, - value: Union[str, float], - tolerance: float = 0, - percentage: bool = False, - remove_quotes: bool = False, - custom_message_prefix: str = "", - *, - expected_value: Optional[Union[str, float]] = None, - opc: bool = False, - ) -> str: - """Send the given command with the given value and then verify the results. - - Args: - command: The command to send. - For example: ``:AFG:FUNCTION`` - value: The value being set by the command. - For example: ``SINE`` - tolerance: The acceptable difference between two floating point values. - percentage: A boolean indicating what kind of tolerance check to perform. - False means absolute tolerance: +/- tolerance. - True means percent tolerance: +/- (tolerance / 100) * value. - remove_quotes: Set this to True to remove all double quotes from the returned value. - custom_message_prefix: A custom message to be prepended to the failure message. - expected_value: An optional, alternative value expected to be returned. - opc: Boolean indicating if ``*OPC?`` should be queried after sending the command. - - Returns: - The output of the query portion of the method. - """ - return PIDevice.set_and_check( - self, - command, - value, - tolerance, - percentage, - remove_quotes, - custom_message_prefix, - expected_value=expected_value, - opc=opc, - ) - - def load_script( - self, - script_name: str, # noqa: ARG002 - *, - script_body: str = "", # noqa: ARG002 - file_path: Union[str, os.PathLike[str], None] = None, # noqa: ARG002 - run_script: bool = False, # noqa: ARG002 - to_nv_memory: bool = False, # noqa: ARG002 - ) -> None: - """Not Implemented.""" - msg = f"This functionality is not available on the {self.__class__.__name__} instrument." - raise NotImplementedError(msg) - ################################################################################################ # Private Methods ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py index 9af909e6..5621476b 100644 --- a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py +++ b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py @@ -5,11 +5,11 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes -class SourceMeasureUnit(TSPDevice, ABC): +# pylint: disable=too-few-public-methods +class SourceMeasureUnit(ABC): # noqa: B024 """Base Source Measure Unit (SMU) device driver.""" _DEVICE_TYPE = DeviceTypes.SMU.value diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index fcbd9c4b..17f3a2a0 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -6,6 +6,7 @@ from tm_devices.commands import SS3706AMixin from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import DeviceConfigEntry @@ -14,7 +15,7 @@ @family_base_class -class SS3706A(SS3706AMixin, SystemsSwitch): +class SS3706A(SS3706AMixin, SystemsSwitch, TSPDevice): """SS3706A device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/systems_switches/systems_switch.py b/src/tm_devices/drivers/systems_switches/systems_switch.py index 04751044..6c061a6a 100644 --- a/src/tm_devices/drivers/systems_switches/systems_switch.py +++ b/src/tm_devices/drivers/systems_switches/systems_switch.py @@ -2,11 +2,11 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice from tm_devices.helpers import DeviceTypes -class SystemsSwitch(TSPDevice, ABC): +# pylint: disable=too-few-public-methods +class SystemsSwitch(ABC): # noqa: B024 """Base Systems Switch (SS) device driver.""" _DEVICE_TYPE = DeviceTypes.SS.value diff --git a/tests/test_devices_legacy_tsp_ieee_cmds.py b/tests/test_devices_legacy_tsp_ieee_cmds.py index fe10a734..b9b7139a 100644 --- a/tests/test_devices_legacy_tsp_ieee_cmds.py +++ b/tests/test_devices_legacy_tsp_ieee_cmds.py @@ -1,5 +1,6 @@ """Test the DMMs.""" +from typing import TYPE_CHECKING from unittest import mock import pytest @@ -7,6 +8,9 @@ from tm_devices import DeviceManager +if TYPE_CHECKING: + from tm_devices.drivers import DAQ6510, DMM6500, DMM7510 + def test_dmm6500(device_manager: DeviceManager) -> None: """Test the DMM drivers. @@ -14,7 +18,7 @@ def test_dmm6500(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - dmm = device_manager.add_dmm("DMM6500-hostname", alias="dmm-device") + dmm: DMM6500 = device_manager.add_dmm("DMM6500-hostname", alias="dmm-device") assert id(device_manager.get_dmm(number_or_alias="dmm-device")) == id(dmm) assert id(device_manager.get_dmm(number_or_alias=dmm.device_number)) == id(dmm) @@ -35,7 +39,7 @@ def test_dmm75xx(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - dmm = device_manager.add_dmm("DMM7510-hostname") + dmm: DMM7510 = device_manager.add_dmm("DMM7510-hostname") with mock.patch("pyvisa.highlevel.VisaLibraryBase.clear", mock.MagicMock(return_value=None)): assert dmm.query_expect_timeout("INVALID?", timeout_ms=1) == "" @@ -54,7 +58,7 @@ def test_daq6510(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - daq = device_manager.add_daq("DAQ6510-hostname", alias="daq-device") + daq: DAQ6510 = device_manager.add_daq("DAQ6510-hostname", alias="daq-device") assert id(device_manager.get_daq(number_or_alias="daq-device")) == id(daq) assert id(device_manager.get_daq(number_or_alias=daq.device_number)) == id(daq) diff --git a/tests/test_smu.py b/tests/test_smu.py index aea9ca6e..017e8d67 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -18,7 +18,7 @@ from tm_devices import DeviceManager if TYPE_CHECKING: - from tm_devices.drivers import SMU2460, SMU2601B + from tm_devices.drivers import SMU2401, SMU2460, SMU2601B, SMU6430 # pylint: disable=too-many-locals @@ -290,17 +290,9 @@ def test_smu2401(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - smu = device_manager.add_smu("SMU2401-HOSTNAME") + smu: SMU2401 = device_manager.add_smu("SMU2401-HOSTNAME") assert smu.get_eventlog_status() == (True, '0,"No error"') assert smu.set_and_check("OUTPUT1:STATE", 1) == "1" - with pytest.raises( - NotImplementedError, match="This functionality is not available on the SMU2401 instrument." - ): - smu.run_script("name") - with pytest.raises( - NotImplementedError, match="This functionality is not available on the SMU2401 instrument." - ): - smu.load_script("name") assert smu.all_channel_names_list == ("OUTPUT1",) @@ -310,15 +302,7 @@ def test_smu6430(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - smu = device_manager.add_smu("SMU6430-HOSTNAME") + smu: SMU6430 = device_manager.add_smu("SMU6430-HOSTNAME") assert smu.get_eventlog_status() == (True, '0,"No error"') assert smu.set_and_check("OUTPUT1:STATE", 1) == "1" - with pytest.raises( - NotImplementedError, match="This functionality is not available on the SMU6430 instrument." - ): - smu.run_script("name") - with pytest.raises( - NotImplementedError, match="This functionality is not available on the SMU6430 instrument." - ): - smu.load_script("name") assert smu.all_channel_names_list == ("SOURCE1",) diff --git a/tests/test_ss.py b/tests/test_ss.py index a3d1e6ca..f398f301 100644 --- a/tests/test_ss.py +++ b/tests/test_ss.py @@ -1,5 +1,6 @@ """Test the SSs.""" +from typing import TYPE_CHECKING from unittest import mock import pytest @@ -7,6 +8,9 @@ from tm_devices import DeviceManager +if TYPE_CHECKING: + from tm_devices.drivers import SS3706A + def test_ss(device_manager: DeviceManager) -> None: """Test the SS3706A driver. @@ -14,7 +18,7 @@ def test_ss(device_manager: DeviceManager) -> None: Args: device_manager: The DeviceManager object. """ - switch = device_manager.add_ss("ss3706a-hostname", alias="ss-device") + switch: SS3706A = device_manager.add_ss("ss3706a-hostname", alias="ss-device") assert id(device_manager.get_ss(number_or_alias="ss-device")) == id(switch) assert id(device_manager.get_ss(number_or_alias=switch.device_number)) == id(switch) assert switch.get_eventlog_status() == (True, '0,"No events to report - queue empty"') From 537df7242ac204ac31bd729bb993fcca931ed20d Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 13:39:36 -0700 Subject: [PATCH 09/52] docs: Updated docs with the new references to the refactored object locations --- docs/advanced/architecture.md | 7 +- docs/advanced/signal_generators.md | 81 +++++++++---------- docs/contributing/add_new_device_type.md | 3 +- .../driver_mixins/device_control/device.py | 3 +- .../tek_afg_awg_mixin.py | 2 +- src/tm_devices/helpers/enums.py | 2 +- 6 files changed, 48 insertions(+), 50 deletions(-) diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index b3359293..cee9a143 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -45,7 +45,8 @@ and methods can be defined in higher-level classes (sometimes called parent classes) and inherited by subclasses (sometimes called child classes), to reduce the lines of code needed to create new device drivers. -Every single device driver within a particular device type is guaranteed to have +Every single device driver within a particular device family +(referred to as the family base class) is guaranteed to have the same class signature (attribute and method names). Often times specific device drivers will need to implement the functionality for specific methods or even overwrite inherited functionality due to the differences that can occur @@ -53,7 +54,7 @@ between different models of the same device type. ### Block Diagram -{{ auto_class_diagram('tm_devices.drivers.device_type_classes', full=True, namespace='tm_devices.drivers') }} +{{ auto_class_diagram('tm_devices.drivers.device_type_classes', full=True) }} --- @@ -63,4 +64,4 @@ This package supports many devices, zoom in to see them all! ### Block Diagram -{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers') }} +{{ auto_class_diagram('tm_devices.drivers', full=True) }} diff --git a/docs/advanced/signal_generators.md b/docs/advanced/signal_generators.md index 635dbc67..5d5a682a 100644 --- a/docs/advanced/signal_generators.md +++ b/docs/advanced/signal_generators.md @@ -33,18 +33,18 @@ classDiagram ``` -The [`SignalGenerator`][tm_devices.drivers.pi.signal_generators.signal_generator.SignalGenerator] class is responsible -for most waveform generators, including the [`AFG`][tm_devices.drivers.pi.signal_generators.afgs.afg.AFG] and -[`AWG`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWG]. -Similarly, [`TekScope`][tm_devices.drivers.pi.scopes.tekscope.tekscope.TekScope] is responsible for the +The [`TekAFGAWG`][tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin] class is responsible +for most waveform generators, including the [`AFG`][tm_devices.drivers.afgs.afg.AFG] and +[`AWG`][tm_devices.drivers.awgs.awg.AWG]. +Similarly, [`TekScope`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope] is responsible for the [AFG](default:AFG) internal to the scopes themselves, commonly referred to as an [IAFG](default:IAFG). All of these classes inherit -[`SignalGeneratorMixin`][tm_devices.driver_mixins.signal_generator_mixin.SignalGeneratorMixin], -which includes a list of methods that share +[`SignalGeneratorMixin`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin], +which includes a list of methods that define common functionality throughout all signal generators. !!! note - [`SignalGeneratorMixin`][tm_devices.driver_mixins.signal_generator_mixin.SignalGeneratorMixin] + [`SignalGeneratorMixin`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin] only contains abstract methods; defining the class by itself and calling methods in it will only raise `NotImplemented` errors. @@ -65,16 +65,15 @@ classDiagram AFG "1..n" *-- AFGSourceChannel ``` -Each [`SignalGenerator`][tm_devices.drivers.pi.signal_generators.signal_generator.SignalGenerator] class( -[`AFG`][tm_devices.drivers.pi.signal_generators.afgs.afg.AFG], -[`AWG`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWG]) and -[`TekScope`][tm_devices.drivers.pi.scopes.tekscope.tekscope.TekScope] -(if the [AFG](default:AFG) license is installed) will contain a dictionary of source channel classes, +Each signal generator class ([`AFG`][tm_devices.drivers.afgs.afg.AFG], +[`AWG`][tm_devices.drivers.awgs.awg.AWG], and +[`TekScope`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope] +if the [AFG](default:AFG) license is installed) will contain a dictionary of source channel classes, which are defined on first access. Each of these source channel classes ( -[`AFGSourceChannel`][tm_devices.drivers.pi.signal_generators.afgs.afg.AFGSourceChannel], -[`AWGSourceChannel`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWGSourceChannel], and -[`InternalAFGChannel`][tm_devices.drivers.pi.scopes.tekscope.tekscope.InternalAFGChannel] +[`AFGSourceChannel`][tm_devices.drivers.afgs.afg.AFGSourceChannel], +[`AWGSourceChannel`][tm_devices.drivers.awgs.awg.AWGSourceChannel], and +[`InternalAFGChannel`][tm_devices.drivers.scopes.tekscope.tekscope.InternalAFGChannel] ) represents an output on the signal generator (or the [IAFG](default:IAFG) in the case of an oscilloscope). @@ -205,14 +204,14 @@ Setting up bursts of an [IAFG](default:IAFG) involves setting it to burst mode a The amplitude and frequency range for the [IAFG](default:IAFG) vary based on the desired function. These ranges are the same for each of the classes listed: -[`MSO2`][tm_devices.drivers.pi.scopes.tekscope.mso2.MSO2] -[`MSO4`][tm_devices.drivers.pi.scopes.tekscope.mso4.MSO4] -[`MSO4B`][tm_devices.drivers.pi.scopes.tekscope.mso4b.MSO4B] -[`MSO5`][tm_devices.drivers.pi.scopes.tekscope.mso5.MSO5] -[`MSO5LP`][tm_devices.drivers.pi.scopes.tekscope.mso5lp.MSO5LP] -[`MSO6`][tm_devices.drivers.pi.scopes.tekscope.mso6.MSO6] -[`MSO6B`][tm_devices.drivers.pi.scopes.tekscope.mso6b.MSO6B] -[`LPD6`][tm_devices.drivers.pi.scopes.tekscope.lpd6.LPD6] +[`MSO2`][tm_devices.drivers.scopes.tekscope.mso2.MSO2] +[`MSO4`][tm_devices.drivers.scopes.tekscope.mso4.MSO4] +[`MSO4B`][tm_devices.drivers.scopes.tekscope.mso4b.MSO4B] +[`MSO5`][tm_devices.drivers.scopes.tekscope.mso5.MSO5] +[`MSO5LP`][tm_devices.drivers.scopes.tekscope.mso5lp.MSO5LP] +[`MSO6`][tm_devices.drivers.scopes.tekscope.mso6.MSO6] +[`MSO6B`][tm_devices.drivers.scopes.tekscope.mso6b.MSO6B] +[`LPD6`][tm_devices.drivers.scopes.tekscope.lpd6.LPD6] Sample rates are 250.0MS/s for `ARBITRARY` waveforms. @@ -232,7 +231,7 @@ _[IAFG](default:IAFG) Constraints_ ##### Constraints -The constraints for the [`MSO5B`][tm_devices.drivers.pi.scopes.tekscope.mso5b.MSO5B] are identical to +The constraints for the [`MSO5B`][tm_devices.drivers.scopes.tekscope.mso5b.MSO5B] are identical to [other tekscope models](#mso2-mso4-mso4b-mso5-mso5lp-mso6-mso6b-lpd6), except the upper frequency bound is doubled. --- @@ -254,7 +253,7 @@ classDiagram except for the order in which the parameters are set. All functions that are shared by each [AFG](default:AFG) exist within the -[`AFG`][tm_devices.drivers.pi.signal_generators.afgs.afg.AFG] class. +[`AFG`][tm_devices.drivers.afgs.afg.AFG] class. Setting up bursts of the [AFG](default:AFG) involves setting the trigger on the device to external, so the burst does not activate on the internal trigger. Following this, the burst state is set to `ON` and mode set to `TRIGGERED`. @@ -274,9 +273,9 @@ on the internal trigger. Following this, the burst state is set to `ON` and mode The AFG3K series instruments are function generating devices that also offer the capacity to generate arbitrary waveforms. They accept communication through [USB](default:USB), [TCPIP](default:TCPIP) and [GPIB](default:GPIB) interfaces. These instruments have their own class representations, corresponding to the -[`AFG3K`][tm_devices.drivers.pi.signal_generators.afgs.afg3k.AFG3K], -[`AFG3KB`][tm_devices.drivers.pi.signal_generators.afgs.afg3kb.AFG3KB], and -[`AFG3KC`][tm_devices.drivers.pi.signal_generators.afgs.afg3kc.AFG3KC]. +[`AFG3K`][tm_devices.drivers.afgs.afg3k.AFG3K], +[`AFG3KB`][tm_devices.drivers.afgs.afg3kb.AFG3KB], and +[`AFG3KC`][tm_devices.drivers.afgs.afg3kc.AFG3KC]. ##### Constraints @@ -321,7 +320,7 @@ _AFG3K Constraints_ The AFG31K series instruments are function generating devices that also offer the capacity to generate arbitrary waveforms. They accept communication through [USB](default:USB), [TCPIP](default:TCPIP), and [GPIB](default:GPIB) interfaces. The AFG31K has its own class representation, corresponding to -[`AFG31K`][tm_devices.drivers.pi.signal_generators.afgs.afg31k.AFG31K]. +[`AFG31K`][tm_devices.drivers.afgs.afg31k.AFG31K]. ##### Constraints @@ -379,7 +378,7 @@ classDiagram ``` All functions that are shared by each [AWG](default:AWG) exist within the -[`AWG`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWG] class. +[`AWG`][tm_devices.drivers.awgs.awg.AWG] class. Function generation on [AWGs](default:AWG) is fundamentally different from [AFGs](default:AFG). The [AWG](default:AWG) is stopped and the source channel being used is turned off. Predefined waveforms provided with the [AWG](default:AWG) @@ -391,11 +390,11 @@ is sent to begin the transmission of the waveform. !!! note If the waveform is `RAMP`, a symmetry of 50 will set the waveform to a `TRIANGLE`. -The [`AWG`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWG] class has some unique methods. +The [`AWG`][tm_devices.drivers.awgs.awg.AWG] class has some unique methods. `generate_waveform()` allows for a waveform name from the waveform list to be provided, instead of a function. The method is also distinctly different from the generate function as it relies on a sample rate being provided to generate the waveform. All functions that are generic to the [AWG](default:AWG) -exist within the [`AWG`][tm_devices.drivers.pi.signal_generators.awgs.awg.AWG] class. +exist within the [`AWG`][tm_devices.drivers.awgs.awg.AWG] class. [AWGs](default:AWG) have access to the following functions, listed within [`SignalGeneratorFunctionsAWG`][tm_devices.helpers.enums.SignalGeneratorFunctionsAWG]: @@ -422,9 +421,9 @@ out otherwise. The AWG5K series instruments have their own class representations, corresponding to the -[`AWG5K`][tm_devices.drivers.pi.signal_generators.awgs.awg5k.AWG5K], -[`AWG5KB`][tm_devices.drivers.pi.signal_generators.awgs.awg5kb.AWG5KB], and -[`AWG5KC`][tm_devices.drivers.pi.signal_generators.awgs.awg5kc.AWG5KC]. +[`AWG5K`][tm_devices.drivers.awgs.awg5k.AWG5K], +[`AWG5KB`][tm_devices.drivers.awgs.awg5kb.AWG5KB], and +[`AWG5KC`][tm_devices.drivers.awgs.awg5kc.AWG5KC]. ###### Constraints @@ -452,9 +451,9 @@ _AWG5K Constraints_ The AWG7K series instruments have their own class representations, corresponding to the -[`AWG7K`][tm_devices.drivers.pi.signal_generators.awgs.awg7k.AWG7K], -[`AWG7KB`][tm_devices.drivers.pi.signal_generators.awgs.awg7kb.AWG7KB], and -[`AWG7KC`][tm_devices.drivers.pi.signal_generators.awgs.awg7kc.AWG7KC]. +[`AWG7K`][tm_devices.drivers.awgs.awg7k.AWG7K], +[`AWG7KB`][tm_devices.drivers.awgs.awg7kb.AWG7KB], and +[`AWG7KC`][tm_devices.drivers.awgs.awg7kc.AWG7KC]. ###### Constraints @@ -496,7 +495,7 @@ They accept communication through [USB](default:USB), [TCPIP](default:TCPIP), an The AWG52000 has its own class representation, corresponding to -[`AWG5200`][tm_devices.drivers.pi.signal_generators.awgs.awg5200.AWG5200]. +[`AWG5200`][tm_devices.drivers.awgs.awg5200.AWG5200]. `set_output_signal_path()` is uniquely defined within the AWG5200 as it has special output signal paths. @@ -564,8 +563,8 @@ These instruments operate on the Windows operating system, and they accept commu [USB](default:USB), [TCPIP](default:TCPIP), and [GPIB](default:GPIB) interfaces. `set_output_signal_path()` is uniquely defined within the -[`AWG70KA`][tm_devices.drivers.pi.signal_generators.awgs.awg70ka.AWG70KA] and -[`AWG70KB`][tm_devices.drivers.pi.signal_generators.awgs.awg70kb.AWG70KB] classes. +[`AWG70KA`][tm_devices.drivers.awgs.awg70ka.AWG70KA] and +[`AWG70KB`][tm_devices.drivers.awgs.awg70kb.AWG70KB] classes. By default, it will first attempt to set the output signal path to [DCA](default:DCA). If this fails (implying an MDC4500-4B is not connected), then a direct signal path will be set. diff --git a/docs/contributing/add_new_device_type.md b/docs/contributing/add_new_device_type.md index 59ac4507..f2305fb9 100644 --- a/docs/contributing/add_new_device_type.md +++ b/docs/contributing/add_new_device_type.md @@ -34,8 +34,7 @@ This guide will walk through the steps needed to add a new device type. 7. Create a new `get_()` method with the appropriate signature inside `device_manager.py` (use other methods as examples) 8. Add a new folder in `tests/sim_devices/` for unit tests -9. Add the new device type class to the [`DEVICE_TYPE_CLASSES`][tm_devices.drivers.DEVICE_TYPE_CLASSES] and `__all__` - variables inside of `tm_devices/drivers/device_type_drivers.py`. +9. Add the new device type class to the `__all__` variable inside of `tm_devices/drivers/device_type_classes.py`. 10. Update the [advanced architecture](../advanced/architecture.md#main-device-types) page to include the new device type diff --git a/src/tm_devices/driver_mixins/device_control/device.py b/src/tm_devices/driver_mixins/device_control/device.py index 9cf3a28d..fdfb9cd1 100644 --- a/src/tm_devices/driver_mixins/device_control/device.py +++ b/src/tm_devices/driver_mixins/device_control/device.py @@ -429,8 +429,7 @@ def has_errors(self) -> bool: !!! warning In v3 this method will return a tuple containing a bool and a list of instances of - device error info dataclasses (this will replace - [`get_eventlog_status()`][tm_devices.drivers.pi.pi_device.PIDevice]). + device error info dataclasses (this will replace `get_eventlog_status()`). Returns: A boolean indicating if any errors were found in the device. diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index b6f84a0c..01c6f358 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -14,7 +14,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: remove PIDevice inheritance if possible +# TODO: nfelt14: remove PIDevice inheritance if possible, maybe even remove this class entirely? class TekAFGAWG(PIDevice, SignalGeneratorMixin, ExtendableMixin, ABC): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" diff --git a/src/tm_devices/helpers/enums.py b/src/tm_devices/helpers/enums.py index 552885d6..58a291b7 100644 --- a/src/tm_devices/helpers/enums.py +++ b/src/tm_devices/helpers/enums.py @@ -199,7 +199,7 @@ class SupportedModels(CustomStrEnum): class SupportedRequestTypes(CustomStrEnum): - """All request types supported by a [`RESTAPIDevice`][tm_devices.drivers.api.rest_api.rest_api_device.RESTAPIDevice].""" # noqa: E501 + """All request types supported by a [`RESTAPIDevice`][tm_devices.driver_mixins.device_control.rest_api_device.RESTAPIDevice].""" # noqa: E501 GET = "GET" POST = "POST" From c6b49f5ee353d4c7bf3913d2ff0d3a35d8cd0a96 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 11 Oct 2024 17:17:53 -0700 Subject: [PATCH 10/52] refactor: Checkpoint commit during the process of converting the PIDevice/TSPDevice/RESTAPIDevice classes into true control mixins (PIControl/TSPControl/RESTAPIControl) --- CHANGELOG.md | 20 +- docs/contributing/add_new_driver.md | 2 +- .../custom_device_driver_support.py | 15 +- src/tm_devices/commands/afg3k_commands.py | 6 +- src/tm_devices/commands/afg3kb_commands.py | 6 +- src/tm_devices/commands/afg3kc_commands.py | 6 +- src/tm_devices/commands/awg5200_commands.py | 6 +- src/tm_devices/commands/awg5k_commands.py | 6 +- src/tm_devices/commands/awg5kc_commands.py | 6 +- src/tm_devices/commands/awg70ka_commands.py | 6 +- src/tm_devices/commands/awg70kb_commands.py | 6 +- src/tm_devices/commands/awg7k_commands.py | 6 +- src/tm_devices/commands/awg7kc_commands.py | 6 +- src/tm_devices/commands/daq6510_commands.py | 28 +- src/tm_devices/commands/dmm6500_commands.py | 28 +- src/tm_devices/commands/dmm7510_commands.py | 28 +- src/tm_devices/commands/dpo2k_commands.py | 6 +- src/tm_devices/commands/dpo2kb_commands.py | 6 +- src/tm_devices/commands/dpo4k_commands.py | 6 +- src/tm_devices/commands/dpo4kb_commands.py | 6 +- src/tm_devices/commands/dpo5k_commands.py | 6 +- src/tm_devices/commands/dpo5kb_commands.py | 6 +- src/tm_devices/commands/dpo70kc_commands.py | 6 +- src/tm_devices/commands/dpo70kd_commands.py | 6 +- src/tm_devices/commands/dpo70kdx_commands.py | 6 +- src/tm_devices/commands/dpo70ksx_commands.py | 6 +- src/tm_devices/commands/dpo7k_commands.py | 6 +- src/tm_devices/commands/dpo7kc_commands.py | 6 +- src/tm_devices/commands/dsa70kc_commands.py | 6 +- src/tm_devices/commands/dsa70kd_commands.py | 6 +- .../commands/gen_163n04_mdo/search.py | 214 +++--- .../commands/gen_16x4xq_mdo/search.py | 174 ++--- .../commands/gen_1jzp7o_mdodpo/trigger.py | 178 ++--- .../commands/gen_1kdqwg_mdo/search.py | 216 +++--- .../commands/gen_1kdqwg_mdo/trigger.py | 210 ++--- src/tm_devices/commands/gen_1kjd62_mdo/rf.py | 50 +- .../commands/gen_1kozfv_dpo/search.py | 172 ++--- .../commands/gen_1l4fot_mdomso/cursor.py | 26 +- .../commands/gen_1la1ym_msomdodpo/trigger.py | 208 ++--- .../commands/gen_1lcv3a_msodpomdo/message.py | 4 +- .../commands/gen_1lcv3a_msodpomdo/setup_1.py | 4 +- .../commands/gen_1lh2st_msodpo/search.py | 212 +++--- .../gen_1ltpwt_mdomsodpo/actonevent.py | 26 +- .../commands/gen_1ltpwt_mdomsodpo/afg.py | 24 +- .../commands/gen_1ltpwt_mdomsodpo/alias.py | 6 +- .../gen_1ltpwt_mdomsodpo/application.py | 8 +- .../commands/gen_1ltpwt_mdomsodpo/autoset.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/auxin.py | 12 +- .../commands/gen_1ltpwt_mdomsodpo/auxout.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/bus.py | 98 +-- .../gen_1ltpwt_mdomsodpo/calibrate.py | 22 +- .../commands/gen_1ltpwt_mdomsodpo/ch.py | 14 +- .../commands/gen_1ltpwt_mdomsodpo/d.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/data.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/diag.py | 12 +- .../commands/gen_1ltpwt_mdomsodpo/dvm.py | 8 +- .../commands/gen_1ltpwt_mdomsodpo/email.py | 6 +- .../commands/gen_1ltpwt_mdomsodpo/ethernet.py | 18 +- .../gen_1ltpwt_mdomsodpo/filesystem.py | 10 +- .../commands/gen_1ltpwt_mdomsodpo/fpanel.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/gpibusb.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/hardcopy.py | 6 +- .../gen_1ltpwt_mdomsodpo/histogram.py | 4 +- .../gen_1ltpwt_mdomsodpo/horizontal.py | 14 +- .../commands/gen_1ltpwt_mdomsodpo/mark.py | 8 +- .../commands/gen_1ltpwt_mdomsodpo/marker.py | 14 +- .../commands/gen_1ltpwt_mdomsodpo/math1.py | 10 +- .../gen_1ltpwt_mdomsodpo/pictbridge.py | 6 +- .../commands/gen_1ltpwt_mdomsodpo/power.py | 96 +-- .../commands/gen_1ltpwt_mdomsodpo/reboot.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/ref.py | 10 +- .../commands/gen_1ltpwt_mdomsodpo/save.py | 14 +- .../gen_1ltpwt_mdomsodpo/socketserver.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/time.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/vidpic.py | 10 +- .../commands/gen_1ltpwt_mdomsodpo/wfminpre.py | 4 +- .../gen_1ltpwt_mdomsodpo/wfmoutpre.py | 4 +- .../commands/gen_1ltpwt_mdomsodpo/zoom.py | 8 +- .../commands/gen_1lwj1r_msomdodpo/rosc.py | 4 +- .../commands/gen_1lxxm9_msomdodpo/cursor.py | 26 +- .../commands/gen_1mlt9u_mdomsodpo/acquire.py | 6 +- .../gen_1mlt9u_mdomsodpo/configuration.py | 18 +- .../commands/gen_1mlt9u_mdomsodpo/deskew.py | 4 +- .../commands/gen_1mlt9u_mdomsodpo/display.py | 18 +- .../commands/gen_1mlt9u_mdomsodpo/mask.py | 32 +- .../gen_1mlt9u_mdomsodpo/measurement.py | 24 +- .../commands/gen_1mlt9u_mdomsodpo/recall.py | 6 +- .../commands/gen_1mlt9u_mdomsodpo/select.py | 4 +- .../commands/gen_1mq0z9_msodpo/rf.py | 42 +- .../gen_1nmc1o_msodpomdo/clearmenu.py | 4 +- .../commands/gen_1nmc1o_msodpomdo/errlog.py | 4 +- .../commands/gen_1nmc1o_msodpomdo/language.py | 4 +- .../gen_1nmc1o_msodpomdo/status_and_error.py | 4 +- .../gen_1nmc1o_msodpomdo/usbdevice.py | 4 +- .../commands/gen_1nmc1o_msodpomdo/usbtmc.py | 8 +- .../commands/gen_1zn03_mso/acquire.py | 6 +- .../commands/gen_1zn03_mso/actonevent.py | 78 +- .../commands/gen_1zn03_mso/auxout.py | 4 +- .../commands/gen_1zn03_mso/battery.py | 6 +- src/tm_devices/commands/gen_1zn03_mso/bus.py | 68 +- .../commands/gen_1zn03_mso/callouts.py | 12 +- src/tm_devices/commands/gen_1zn03_mso/ch.py | 14 +- src/tm_devices/commands/gen_1zn03_mso/data.py | 6 +- src/tm_devices/commands/gen_1zn03_mso/dch.py | 10 +- src/tm_devices/commands/gen_1zn03_mso/diag.py | 10 +- .../commands/gen_1zn03_mso/display.py | 174 ++--- .../commands/gen_1zn03_mso/fpanel.py | 4 +- .../commands/gen_1zn03_mso/horizontal.py | 20 +- src/tm_devices/commands/gen_1zn03_mso/mask.py | 18 +- src/tm_devices/commands/gen_1zn03_mso/math.py | 28 +- .../commands/gen_1zn03_mso/measurement.py | 72 +- src/tm_devices/commands/gen_1zn03_mso/pg.py | 12 +- src/tm_devices/commands/gen_1zn03_mso/plot.py | 6 +- .../commands/gen_1zn03_mso/power.py | 12 +- src/tm_devices/commands/gen_1zn03_mso/ref.py | 10 +- src/tm_devices/commands/gen_1zn03_mso/save.py | 16 +- .../commands/gen_1zn03_mso/saveon.py | 10 +- .../commands/gen_1zn03_mso/saveonevent.py | 8 +- .../commands/gen_1zn03_mso/search.py | 104 +-- .../commands/gen_1zn03_mso/select.py | 6 +- .../commands/gen_1zn03_mso/touchscreen.py | 4 +- .../commands/gen_1zn03_mso/trigger.py | 104 +-- .../commands/gen_22daqs_afg/afgcontrol.py | 6 +- .../commands/gen_22daqs_afg/data.py | 10 +- .../commands/gen_22daqs_afg/diagnostic.py | 6 +- .../commands/gen_22daqs_afg/display.py | 10 +- .../commands/gen_22daqs_afg/hcopy.py | 6 +- .../commands/gen_22daqs_afg/memory.py | 12 +- .../commands/gen_22daqs_afg/mmemory.py | 10 +- .../commands/gen_22daqs_afg/output.py | 6 +- .../commands/gen_22daqs_afg/output1.py | 4 +- .../commands/gen_22daqs_afg/output2.py | 4 +- .../commands/gen_22daqs_afg/source.py | 6 +- .../commands/gen_22daqs_afg/source1.py | 64 +- .../commands/gen_22daqs_afg/source2.py | 64 +- .../commands/gen_22daqs_afg/source3.py | 10 +- .../commands/gen_22daqs_afg/source4.py | 10 +- .../commands/gen_22daqs_afg/status.py | 14 +- .../commands/gen_22daqs_afg/system.py | 18 +- .../commands/gen_22daqs_afg/trigger.py | 6 +- .../commands/gen_2i1z2s_awg/abort.py | 4 +- .../commands/gen_2i1z2s_awg/auxoutput.py | 6 +- .../commands/gen_2i1z2s_awg/awgcontrol.py | 18 +- .../commands/gen_2i1z2s_awg/bwaveform.py | 6 +- .../commands/gen_2i1z2s_awg/clock.py | 20 +- .../commands/gen_2i1z2s_awg/cplayback.py | 18 +- .../commands/gen_2i1z2s_awg/diagnostic.py | 18 +- .../commands/gen_2i1z2s_awg/fgen.py | 8 +- .../commands/gen_2i1z2s_awg/instrument.py | 8 +- .../commands/gen_2i1z2s_awg/mmemory.py | 22 +- .../commands/gen_2i1z2s_awg/output.py | 12 +- .../commands/gen_2i1z2s_awg/source.py | 38 +- .../commands/gen_2i1z2s_awg/synchronize.py | 8 +- .../commands/gen_2i1z2s_awg/system.py | 8 +- .../commands/gen_2i1z2s_awg/trigger.py | 4 +- .../commands/gen_2i1z2s_awg/wlist.py | 36 +- .../commands/gen_32dszm_awg/awgcontrol.py | 48 +- .../commands/gen_32dszm_awg/diagnostic.py | 6 +- .../commands/gen_32dszm_awg/display.py | 8 +- .../commands/gen_32dszm_awg/event.py | 4 +- .../commands/gen_32dszm_awg/instrument.py | 8 +- .../commands/gen_32dszm_awg/mmemory.py | 18 +- .../commands/gen_32dszm_awg/output.py | 8 +- .../commands/gen_32dszm_awg/sequence.py | 14 +- .../commands/gen_32dszm_awg/slist.py | 10 +- .../commands/gen_32dszm_awg/source.py | 50 +- .../commands/gen_32dszm_awg/status.py | 8 +- .../commands/gen_32dszm_awg/system.py | 6 +- .../commands/gen_32dszm_awg/trigger.py | 6 +- .../commands/gen_32dszm_awg/wlist.py | 8 +- .../commands/gen_33ijgq_afgawg/abort.py | 4 +- .../commands/gen_33ijgq_afgawg/calibration.py | 4 +- .../commands/gen_3n9auv_awg/active.py | 4 +- .../commands/gen_3n9auv_awg/calibration.py | 12 +- .../commands/gen_3n9auv_awg/connectivity.py | 6 +- .../commands/gen_3n9auv_awg/display.py | 6 +- .../commands/gen_3n9auv_awg/output.py | 4 +- .../commands/gen_3n9auv_awg/slist.py | 24 +- .../commands/gen_3n9auv_awg/status.py | 8 +- .../commands/gen_3n9auv_awg/wplugin.py | 4 +- .../commands/gen_3rs8qy_awg/auxoutput.py | 6 +- .../commands/gen_3rs8qy_awg/awgcontrol.py | 32 +- .../commands/gen_3rs8qy_awg/bwaveform.py | 6 +- .../commands/gen_3rs8qy_awg/clock.py | 20 +- .../commands/gen_3rs8qy_awg/cplayback.py | 18 +- .../commands/gen_3rs8qy_awg/diagnostic.py | 18 +- .../commands/gen_3rs8qy_awg/fgen.py | 8 +- .../commands/gen_3rs8qy_awg/instrument.py | 8 +- .../commands/gen_3rs8qy_awg/mmemory.py | 22 +- .../commands/gen_3rs8qy_awg/output.py | 18 +- .../commands/gen_3rs8qy_awg/source.py | 36 +- .../commands/gen_3rs8qy_awg/synchronize.py | 8 +- .../commands/gen_3rs8qy_awg/system.py | 10 +- .../commands/gen_3rs8qy_awg/trigger.py | 4 +- .../commands/gen_3rs8qy_awg/wlist.py | 38 +- .../commands/gen_3skc3w_dpo/trigger.py | 398 +++++----- .../commands/gen_3tjgb2_dpo/trigger.py | 412 +++++----- .../commands/gen_4jiykk_dpo/channelmapping.py | 4 +- .../commands/gen_4jiykk_dpo/counter.py | 6 +- .../commands/gen_4jiykk_dpo/errordetector.py | 44 +- .../commands/gen_4jiykk_dpo/idnmultiscope.py | 4 +- .../commands/gen_4jiykk_dpo/linktraining.py | 4 +- .../commands/gen_4jiykk_dpo/rosc.py | 6 +- .../commands/gen_4jiykk_dpo/trigger.py | 386 +++++----- .../commands/gen_53md2e_dpomso/fpanel.py | 4 +- .../commands/gen_561g9r_mso/trigger.py | 416 +++++----- .../commands/gen_5ri0nj_dpomso/bus.py | 94 +-- .../commands/gen_5vmwut_dpodsamso/trigger.py | 390 +++++----- .../gen_5xwdsk_dpodsamso/errordetector.py | 54 +- .../commands/gen_5y90wx_dpodsamso/dpojet.py | 210 ++--- .../commands/gen_5yyb4r_mso/trigger.py | 394 +++++----- .../commands/gen_60xy3r_smu/buffer.py | 20 +- .../commands/gen_60xy3r_smu/script.py | 8 +- src/tm_devices/commands/gen_60xy3r_smu/smu.py | 254 +++--- .../commands/gen_60xy3r_smu/upgrade.py | 8 +- .../commands/gen_6ocqvh_smu/buffer.py | 20 +- src/tm_devices/commands/gen_6srh1x_smu/smu.py | 254 +++--- .../commands/gen_6srh1x_smu/upgrade.py | 8 +- .../commands/gen_6vynmi_smu/acal.py | 14 +- src/tm_devices/commands/gen_6vynmi_smu/smu.py | 394 +++++----- .../commands/gen_6vynmi_smu/trigger.py | 228 +++--- .../commands/gen_6vynmi_smu/upgrade.py | 8 +- .../commands/gen_6w7311_smu/trigger.py | 226 +++--- .../commands/gen_6xiuc2_smu/buffer.py | 20 +- src/tm_devices/commands/gen_6xiuc2_smu/smu.py | 258 +++---- .../commands/gen_6xiuc2_smu/upgrade.py | 8 +- .../commands/gen_7kqm9p_smu/buffervar.py | 26 +- .../commands/gen_7kqm9p_smu/display.py | 36 +- .../commands/gen_7kqm9p_smu/tsplink.py | 32 +- .../commands/gen_7kqm9p_smu/tspnet.py | 38 +- .../commands/gen_7ryhce_smu/status.py | 676 ++++++++-------- .../commands/gen_7s2p1p_smu/beeper.py | 4 +- .../commands/gen_7s2p1p_smu/buffervar.py | 8 +- .../commands/gen_7s2p1p_smu/dataqueue.py | 6 +- .../commands/gen_7s2p1p_smu/digio.py | 6 +- .../commands/gen_7s2p1p_smu/display.py | 28 +- .../commands/gen_7s2p1p_smu/errorqueue.py | 6 +- .../commands/gen_7s2p1p_smu/eventlog.py | 4 +- .../commands/gen_7s2p1p_smu/format.py | 4 +- src/tm_devices/commands/gen_7s2p1p_smu/lan.py | 12 +- .../commands/gen_7s2p1p_smu/localnode.py | 8 +- .../commands/gen_7s2p1p_smu/serial.py | 16 +- .../commands/gen_7s2p1p_smu/smux.py | 416 +++++----- .../commands/gen_7s2p1p_smu/status.py | 344 ++++----- .../commands/gen_7s2p1p_smu/trigger.py | 10 +- .../commands/gen_7s2p1p_smu/tsplink.py | 6 +- .../commands/gen_7s2p1p_smu/tspnet.py | 4 +- .../commands/gen_7s43m8_smu/status.py | 676 ++++++++-------- .../commands/gen_7s6wr5_smu/status.py | 676 ++++++++-------- .../commands/gen_8ojdkz_smu/display.py | 64 +- .../commands/gen_8ojdkz_smu/node.py | 10 +- .../commands/gen_8ojdkz_smu/smux.py | 376 ++++----- .../commands/gen_8ojdkz_smu/status.py | 676 ++++++++-------- .../commands/gen_8wm55i_smu/smux.py | 384 +++++----- .../commands/gen_9kezla_smu/smux.py | 384 +++++----- .../commands/gen_9mzp2j_smu/digio.py | 42 +- .../commands/gen_9mzp2j_smu/display.py | 64 +- .../commands/gen_9mzp2j_smu/tsplink.py | 56 +- .../commands/gen_9ncc6e_smu/display.py | 64 +- .../commands/gen_9nnkq7_smu/status.py | 676 ++++++++-------- .../commands/gen_9slyux_smu/status.py | 676 ++++++++-------- .../commands/gen_ahkybr_smu/beeper.py | 10 +- .../commands/gen_ahkybr_smu/buffervar.py | 44 +- .../commands/gen_ahkybr_smu/eventlog.py | 20 +- src/tm_devices/commands/gen_ahkybr_smu/lan.py | 136 ++-- src/tm_devices/commands/gen_ahkybr_smu/os.py | 10 +- .../commands/gen_ahkybr_smu/script.py | 18 +- .../commands/gen_ahkybr_smu/scriptvar.py | 24 +- .../commands/gen_ahkybr_smu/setup_1.py | 12 +- .../commands/gen_ahkybr_smu/tspnet.py | 38 +- .../commands/gen_aih9e2_smu/trigger.py | 56 +- .../commands/gen_ak4990_smu/smux.py | 384 +++++----- .../commands/gen_am6pcr_smu/smux.py | 386 +++++----- .../commands/gen_am6pcr_smu/status.py | 692 ++++++++--------- .../commands/gen_amm5lc_smu/digio.py | 42 +- .../commands/gen_amm5lc_smu/tsplink.py | 56 +- .../commands/gen_aostep_smu/serial.py | 24 +- .../commands/gen_aqr1t1_smu/localnode.py | 46 +- .../commands/gen_as1ejq_smu/localnode.py | 42 +- .../commands/gen_as1ejq_smu/smux.py | 384 +++++----- .../commands/gen_as1ejq_smu/status.py | 708 ++++++++--------- .../commands/gen_at7jl1_smu/display.py | 64 +- .../commands/gen_au597k_smu/digio.py | 42 +- .../commands/gen_au597k_smu/format.py | 16 +- .../commands/gen_au597k_smu/tsplink.py | 56 +- .../commands/gen_auyr50_smu/format.py | 16 +- .../commands/gen_auyr50_smu/localnode.py | 46 +- .../commands/gen_auyr50_smu/node.py | 10 +- .../commands/gen_avh0iw_smu/display.py | 64 +- .../commands/gen_avh0iw_smu/trigger.py | 54 +- .../commands/gen_awhjao_smu/status.py | 676 ++++++++-------- .../commands/gen_by991s_smudaq/digio.py | 18 +- .../commands/gen_by991s_smudaq/status.py | 44 +- .../gen_c3g61_tekscopepc/actonevent.py | 16 +- .../commands/gen_c3g61_tekscopepc/bus.py | 260 +++---- .../commands/gen_c3g61_tekscopepc/callouts.py | 12 +- .../commands/gen_c3g61_tekscopepc/ch.py | 38 +- .../commands/gen_c3g61_tekscopepc/display.py | 210 ++--- .../commands/gen_c3g61_tekscopepc/filesys.py | 4 +- .../gen_c3g61_tekscopepc/histogram.py | 8 +- .../gen_c3g61_tekscopepc/horizontal.py | 12 +- .../commands/gen_c3g61_tekscopepc/mask.py | 18 +- .../commands/gen_c3g61_tekscopepc/math.py | 78 +- .../commands/gen_c3g61_tekscopepc/measu.py | 14 +- .../gen_c3g61_tekscopepc/measurement.py | 156 ++-- .../commands/gen_c3g61_tekscopepc/plot.py | 22 +- .../commands/gen_c3g61_tekscopepc/power.py | 90 +-- .../commands/gen_c3g61_tekscopepc/ref.py | 10 +- .../commands/gen_c3g61_tekscopepc/remote.py | 36 +- .../commands/gen_c3g61_tekscopepc/s.py | 12 +- .../commands/gen_c3g61_tekscopepc/save.py | 18 +- .../gen_c3g61_tekscopepc/saveonevent.py | 8 +- .../commands/gen_c3g61_tekscopepc/search.py | 720 +++++++++--------- .../gen_c3g61_tekscopepc/searchtable.py | 4 +- .../commands/gen_c3g61_tekscopepc/sv.py | 48 +- .../commands/gen_c3g61_tekscopepc/trigger.py | 16 +- .../commands/gen_c69az_msotekscopepc/lic.py | 4 +- .../gen_c69az_msotekscopepc/license.py | 4 +- .../commands/gen_canxny_daq/buffer.py | 22 +- .../commands/gen_canxny_daq/buffervar.py | 26 +- .../commands/gen_canxny_daq/channel.py | 60 +- .../commands/gen_canxny_daq/display.py | 40 +- src/tm_devices/commands/gen_canxny_daq/dmm.py | 394 +++++----- .../commands/gen_canxny_daq/scan.py | 82 +- .../commands/gen_canxny_daq/slot.py | 46 +- .../commands/gen_canxny_daq/trigger.py | 244 +++--- .../commands/gen_canxny_daq/tsplink.py | 28 +- .../commands/gen_canxny_daq/upgrade.py | 8 +- .../commands/gen_d6b496_dmm/acal.py | 20 +- .../commands/gen_d6b496_dmm/buffer.py | 16 +- .../commands/gen_d6b496_dmm/buffervar.py | 28 +- .../commands/gen_d6b496_dmm/display.py | 36 +- src/tm_devices/commands/gen_d6b496_dmm/dmm.py | 342 ++++----- src/tm_devices/commands/gen_d6b496_dmm/fan.py | 8 +- .../commands/gen_d6b496_dmm/localnode.py | 38 +- .../commands/gen_d6b496_dmm/trigger.py | 236 +++--- .../commands/gen_d83qe0_dmm/buffer.py | 18 +- .../commands/gen_d83qe0_dmm/buffervar.py | 28 +- .../commands/gen_d83qe0_dmm/channel.py | 32 +- .../commands/gen_d83qe0_dmm/display.py | 40 +- src/tm_devices/commands/gen_d83qe0_dmm/dmm.py | 274 +++---- .../commands/gen_d83qe0_dmm/scan.py | 78 +- .../commands/gen_d83qe0_dmm/slot.py | 16 +- .../commands/gen_d83qe0_dmm/trigger.py | 234 +++--- .../gen_dawv9y_smudaqdmm/localnode.py | 36 +- .../commands/gen_dbdq3i_smudaqdmm/beeper.py | 6 +- .../commands/gen_dbdq3i_smudaqdmm/eventlog.py | 14 +- .../commands/gen_dbdq3i_smudaqdmm/file.py | 18 +- .../commands/gen_dbdq3i_smudaqdmm/format.py | 16 +- .../commands/gen_dbdq3i_smudaqdmm/lan.py | 12 +- .../gen_dbdq3i_smudaqdmm/scriptvar.py | 12 +- .../commands/gen_dbdq3i_smudaqdmm/timer.py | 8 +- .../commands/gen_dbqd7k_dmm/digio.py | 18 +- .../commands/gen_dbqd7k_dmm/node.py | 10 +- .../commands/gen_dbqd7k_dmm/status.py | 44 +- .../commands/gen_dbqd7k_dmm/tsplink.py | 28 +- .../commands/gen_dbqd7k_dmm/tspnet.py | 38 +- .../commands/gen_dbqd7k_dmm/upgrade.py | 8 +- .../commands/gen_dcpheg_daqdmm/smu.py | 4 +- .../commands/gen_dd4xnb_smudaqdmm/script.py | 8 +- .../commands/gen_e3e9uu_lpdmso/acquire.py | 10 +- .../commands/gen_e3e9uu_lpdmso/actonevent.py | 78 +- .../commands/gen_e3e9uu_lpdmso/application.py | 4 +- .../commands/gen_e3e9uu_lpdmso/auxout.py | 4 +- .../commands/gen_e3e9uu_lpdmso/bus.py | 276 +++---- .../commands/gen_e3e9uu_lpdmso/callouts.py | 12 +- .../commands/gen_e3e9uu_lpdmso/ch.py | 42 +- .../commands/gen_e3e9uu_lpdmso/diag.py | 10 +- .../commands/gen_e3e9uu_lpdmso/diggrp.py | 6 +- .../commands/gen_e3e9uu_lpdmso/display.py | 208 ++--- .../commands/gen_e3e9uu_lpdmso/dvm.py | 12 +- .../commands/gen_e3e9uu_lpdmso/fpanel.py | 4 +- .../commands/gen_e3e9uu_lpdmso/histogram.py | 8 +- .../commands/gen_e3e9uu_lpdmso/horizontal.py | 46 +- .../commands/gen_e3e9uu_lpdmso/license.py | 4 +- .../commands/gen_e3e9uu_lpdmso/mask.py | 18 +- .../commands/gen_e3e9uu_lpdmso/math.py | 78 +- .../commands/gen_e3e9uu_lpdmso/measurement.py | 166 ++-- .../commands/gen_e3e9uu_lpdmso/pilogger.py | 4 +- .../commands/gen_e3e9uu_lpdmso/plot.py | 24 +- .../commands/gen_e3e9uu_lpdmso/power.py | 92 +-- .../commands/gen_e3e9uu_lpdmso/ref.py | 10 +- .../commands/gen_e3e9uu_lpdmso/rosc.py | 4 +- .../commands/gen_e3e9uu_lpdmso/save.py | 18 +- .../commands/gen_e3e9uu_lpdmso/saveon.py | 10 +- .../commands/gen_e3e9uu_lpdmso/saveonevent.py | 8 +- .../commands/gen_e3e9uu_lpdmso/search.py | 712 ++++++++--------- .../commands/gen_e3e9uu_lpdmso/searchtable.py | 4 +- .../commands/gen_e3e9uu_lpdmso/select.py | 4 +- .../commands/gen_e3e9uu_lpdmso/sv.py | 38 +- .../commands/gen_e3e9uu_lpdmso/touchscreen.py | 4 +- .../commands/gen_e3e9uu_lpdmso/trigger.py | 462 +++++------ .../commands/gen_e3e9uu_lpdmso/tstamptable.py | 4 +- .../commands/gen_e3h2zs_lpdmso/afg.py | 20 +- .../commands/gen_e3h2zs_lpdmso/autoset.py | 12 +- .../commands/gen_e3h2zs_lpdmso/calibrate.py | 6 +- .../commands/gen_e3h2zs_lpdmso/connected.py | 12 +- .../commands/gen_e3h2zs_lpdmso/ethernet.py | 16 +- .../commands/gen_e3h2zs_lpdmso/usbdevice.py | 4 +- .../commands/gen_e3pief_ss/beeper.py | 10 +- .../commands/gen_e3pief_ss/buffervar.py | 36 +- .../commands/gen_e3pief_ss/channel.py | 116 +-- src/tm_devices/commands/gen_e3pief_ss/comm.py | 30 +- .../commands/gen_e3pief_ss/digio.py | 42 +- .../commands/gen_e3pief_ss/display.py | 40 +- src/tm_devices/commands/gen_e3pief_ss/dmm.py | 232 +++--- .../commands/gen_e3pief_ss/eventlog.py | 20 +- .../commands/gen_e3pief_ss/format.py | 16 +- src/tm_devices/commands/gen_e3pief_ss/lan.py | 116 +-- .../commands/gen_e3pief_ss/localnode.py | 44 +- .../commands/gen_e3pief_ss/memory.py | 8 +- src/tm_devices/commands/gen_e3pief_ss/os.py | 6 +- src/tm_devices/commands/gen_e3pief_ss/ptp.py | 26 +- src/tm_devices/commands/gen_e3pief_ss/scan.py | 82 +- .../commands/gen_e3pief_ss/schedule.py | 32 +- .../commands/gen_e3pief_ss/script.py | 18 +- .../commands/gen_e3pief_ss/scriptvar.py | 22 +- .../commands/gen_e3pief_ss/setup_1.py | 12 +- src/tm_devices/commands/gen_e3pief_ss/slot.py | 44 +- .../commands/gen_e3pief_ss/status.py | 184 ++--- .../commands/gen_e3pief_ss/trigger.py | 52 +- .../commands/gen_e3pief_ss/tsplink.py | 56 +- .../commands/gen_e3pief_ss/upgrade.py | 8 +- .../gen_e44yni_lpdmsotekscopepc/data.py | 6 +- .../gen_e44yni_lpdmsotekscopepc/eyemask.py | 18 +- .../gen_e44yni_lpdmsotekscopepc/matharbflt.py | 4 +- .../gen_e44yni_lpdmsotekscopepc/peakstable.py | 8 +- .../gen_e44yni_lpdmsotekscopepc/ref.py | 16 +- .../gen_e44yni_lpdmsotekscopepc/visual.py | 8 +- .../autosavepitimeout.py | 4 +- .../autosaveuitimeout.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/bustable.py | 4 +- .../configuration.py | 6 +- .../gen_e47rsg_lpdmsotekscopepc/curve.py | 4 +- .../curvestream.py | 4 +- .../customtable.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/date.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/filesystem.py | 14 +- .../gen_e47rsg_lpdmsotekscopepc/mainwindow.py | 8 +- .../gen_e47rsg_lpdmsotekscopepc/meastable.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/recall.py | 4 +- .../socketserver.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/time.py | 6 +- .../gen_e47rsg_lpdmsotekscopepc/undo.py | 4 +- .../gen_e47rsg_lpdmsotekscopepc/vertical.py | 10 +- .../gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py | 4 +- .../commands/gen_e4de2d_lpdmsomdo/clear.py | 4 +- .../totaluptime.py | 4 +- .../pause.py | 4 +- .../commands/gen_e7aqno_smudaqss/node.py | 10 +- .../gen_eat5s3_smudaqdmmss/dataqueue.py | 14 +- .../commands/gen_eat5s3_smudaqdmmss/fs.py | 18 +- .../gen_eat5s3_smudaqdmmss/userstring.py | 10 +- .../commands/gen_ed9nkc_daqss/tspnet.py | 38 +- .../commands/gen_efap3f_smuss/bit.py | 24 +- .../commands/gen_efap3f_smuss/errorqueue.py | 10 +- .../commands/gen_efap3f_smuss/io.py | 20 +- .../commands/gen_efap3f_smuss/timer.py | 8 +- .../commands/gen_eg5ll2_smudaqdmmss/gpib.py | 8 +- .../commands/gen_ffz2xs_dpodsamso/bus.py | 94 +-- .../commands/gen_fhrp27_msodpomdodsa/curve.py | 4 +- .../commands/gen_fhrp27_msodpomdodsa/date.py | 4 +- .../gen_fhrp27_msodpomdodsa/mathvar.py | 4 +- .../save_and_recall.py | 6 +- .../commands/gen_fk3z56_dpodsamso/acquire.py | 8 +- .../commands/gen_fk3z56_dpodsamso/allocate.py | 6 +- .../gen_fk3z56_dpodsamso/application.py | 6 +- .../commands/gen_fk3z56_dpodsamso/autoset.py | 4 +- .../commands/gen_fk3z56_dpodsamso/auxin.py | 18 +- .../commands/gen_fk3z56_dpodsamso/auxout.py | 4 +- .../commands/gen_fk3z56_dpodsamso/bell.py | 4 +- .../gen_fk3z56_dpodsamso/calibrate.py | 12 +- .../commands/gen_fk3z56_dpodsamso/ch.py | 40 +- .../commands/gen_fk3z56_dpodsamso/clear.py | 4 +- .../commands/gen_fk3z56_dpodsamso/cmdbatch.py | 4 +- .../commands/gen_fk3z56_dpodsamso/cq.py | 4 +- .../commands/gen_fk3z56_dpodsamso/cursor.py | 14 +- .../gen_fk3z56_dpodsamso/curvenext.py | 4 +- .../gen_fk3z56_dpodsamso/curvestream.py | 4 +- .../commands/gen_fk3z56_dpodsamso/custom.py | 8 +- .../commands/gen_fk3z56_dpodsamso/d.py | 8 +- .../commands/gen_fk3z56_dpodsamso/data.py | 4 +- .../commands/gen_fk3z56_dpodsamso/delete.py | 4 +- .../commands/gen_fk3z56_dpodsamso/diag.py | 16 +- .../commands/gen_fk3z56_dpodsamso/display.py | 22 +- .../commands/gen_fk3z56_dpodsamso/email.py | 4 +- .../commands/gen_fk3z56_dpodsamso/export.py | 4 +- .../commands/gen_fk3z56_dpodsamso/fastacq.py | 4 +- .../gen_fk3z56_dpodsamso/filesystem.py | 6 +- .../commands/gen_fk3z56_dpodsamso/gpibusb.py | 4 +- .../commands/gen_fk3z56_dpodsamso/hardcopy.py | 4 +- .../commands/gen_fk3z56_dpodsamso/hdr.py | 4 +- .../gen_fk3z56_dpodsamso/histogram.py | 4 +- .../gen_fk3z56_dpodsamso/horizontal.py | 58 +- .../commands/gen_fk3z56_dpodsamso/limit.py | 14 +- .../commands/gen_fk3z56_dpodsamso/mark.py | 8 +- .../commands/gen_fk3z56_dpodsamso/mask.py | 46 +- .../commands/gen_fk3z56_dpodsamso/math.py | 12 +- .../gen_fk3z56_dpodsamso/matharbflt.py | 4 +- .../commands/gen_fk3z56_dpodsamso/mch.py | 4 +- .../gen_fk3z56_dpodsamso/measurement.py | 40 +- .../gen_fk3z56_dpodsamso/multiscope.py | 6 +- .../gen_fk3z56_dpodsamso/opcextended.py | 4 +- .../commands/gen_fk3z56_dpodsamso/pcenable.py | 4 +- .../commands/gen_fk3z56_dpodsamso/recall.py | 6 +- .../commands/gen_fk3z56_dpodsamso/ref.py | 10 +- .../commands/gen_fk3z56_dpodsamso/save.py | 10 +- .../gen_fk3z56_dpodsamso/save_and_recall.py | 4 +- .../commands/gen_fk3z56_dpodsamso/saveon.py | 6 +- .../commands/gen_fk3z56_dpodsamso/search.py | 314 ++++---- .../commands/gen_fk3z56_dpodsamso/select.py | 6 +- .../commands/gen_fk3z56_dpodsamso/setup_1.py | 4 +- .../commands/gen_fk3z56_dpodsamso/system.py | 4 +- .../commands/gen_fk3z56_dpodsamso/teklink.py | 4 +- .../commands/gen_fk3z56_dpodsamso/test.py | 6 +- .../commands/gen_fk3z56_dpodsamso/trig.py | 8 +- .../commands/gen_fk3z56_dpodsamso/usbtmc.py | 8 +- .../commands/gen_fk3z56_dpodsamso/visual.py | 8 +- .../gen_fk3z56_dpodsamso/wavfrmstream.py | 4 +- .../commands/gen_fk3z56_dpodsamso/wfminpre.py | 4 +- .../gen_fk3z56_dpodsamso/wfmoutpre.py | 4 +- .../commands/gen_fk3z56_dpodsamso/wfmpre.py | 4 +- .../commands/gen_fk3z56_dpodsamso/zoom.py | 52 +- .../commands/gen_fkjfe8_msodpodsa/time.py | 4 +- .../gen_fn2qbf_msodpo/errordetector.py | 44 +- .../commands/gen_fn2qbf_msodpo/trigger.py | 384 +++++----- .../commands/gen_fpx9s1_dpodsamso/counter.py | 6 +- .../gen_fpx9s1_dpodsamso/linktraining.py | 4 +- .../commands/gen_fpx9s1_dpodsamso/rosc.py | 6 +- .../miscellaneous.py | 6 +- .../status_and_error.py | 14 +- .../status_and_error.py | 4 +- .../calibration.py | 4 +- .../miscellaneous.py | 4 +- .../status_and_error.py | 6 +- .../alias.py | 6 +- .../status_and_error.py | 4 +- .../miscellaneous.py | 4 +- .../gen_fx54ua_lpdmsodpomdodsa/newpass.py | 4 +- .../gen_fx54ua_lpdmsodpomdodsa/password.py | 4 +- .../gen_fx54ua_lpdmsodpomdodsa/teksecure.py | 4 +- .../allev.py | 4 +- .../busy.py | 4 +- .../dese.py | 4 +- .../event.py | 4 +- .../evmsg.py | 4 +- .../evqty.py | 4 +- .../factory.py | 4 +- .../header.py | 4 +- .../id.py | 4 +- .../miscellaneous.py | 4 +- .../rem.py | 4 +- .../set.py | 4 +- .../status_and_error.py | 4 +- .../verbose.py | 4 +- .../wavfrm.py | 4 +- .../gen_fzn174_lpdmsodpomdodsa/lock.py | 4 +- .../gen_fzn174_lpdmsodpomdodsa/unlock.py | 4 +- .../commands/gen_u301s_msodpo/acquire.py | 4 +- .../commands/gen_u301s_msodpo/alias.py | 6 +- .../commands/gen_u301s_msodpo/autoset.py | 4 +- .../commands/gen_u301s_msodpo/auxin.py | 10 +- .../commands/gen_u301s_msodpo/bus.py | 64 +- .../commands/gen_u301s_msodpo/calibrate.py | 10 +- .../commands/gen_u301s_msodpo/ch.py | 10 +- .../commands/gen_u301s_msodpo/cursor.py | 26 +- src/tm_devices/commands/gen_u301s_msodpo/d.py | 4 +- .../commands/gen_u301s_msodpo/data.py | 6 +- .../commands/gen_u301s_msodpo/diag.py | 14 +- .../commands/gen_u301s_msodpo/display.py | 10 +- .../commands/gen_u301s_msodpo/ethernet.py | 12 +- .../commands/gen_u301s_msodpo/filesystem.py | 6 +- .../commands/gen_u301s_msodpo/filtervu.py | 6 +- .../commands/gen_u301s_msodpo/fpanel.py | 4 +- .../commands/gen_u301s_msodpo/gpibusb.py | 4 +- .../commands/gen_u301s_msodpo/hardcopy.py | 6 +- .../commands/gen_u301s_msodpo/horizontal.py | 20 +- .../commands/gen_u301s_msodpo/mark.py | 8 +- .../commands/gen_u301s_msodpo/math1.py | 14 +- .../commands/gen_u301s_msodpo/measurement.py | 22 +- .../commands/gen_u301s_msodpo/pictbridge.py | 6 +- .../commands/gen_u301s_msodpo/recall.py | 4 +- .../commands/gen_u301s_msodpo/ref.py | 10 +- .../commands/gen_u301s_msodpo/save.py | 14 +- .../commands/gen_u301s_msodpo/search.py | 106 +-- .../commands/gen_u301s_msodpo/select.py | 4 +- .../commands/gen_u301s_msodpo/trigger.py | 122 +-- .../commands/gen_u301s_msodpo/wfminpre.py | 4 +- .../commands/gen_u301s_msodpo/wfmoutpre.py | 4 +- .../commands/gen_u301s_msodpo/zoom.py | 8 +- .../commands/gen_ujuvb_mdo/acquire.py | 8 +- .../commands/gen_ujuvb_mdo/configuration.py | 18 +- .../commands/gen_ujuvb_mdo/cursor.py | 26 +- .../commands/gen_ujuvb_mdo/deskew.py | 4 +- .../commands/gen_ujuvb_mdo/display.py | 20 +- src/tm_devices/commands/gen_ujuvb_mdo/lock.py | 4 +- src/tm_devices/commands/gen_ujuvb_mdo/mask.py | 34 +- .../commands/gen_ujuvb_mdo/measurement.py | 24 +- .../commands/gen_ujuvb_mdo/message.py | 6 +- .../commands/gen_ujuvb_mdo/recall.py | 6 +- src/tm_devices/commands/gen_ujuvb_mdo/rf.py | 40 +- src/tm_devices/commands/gen_ujuvb_mdo/rrb.py | 4 +- .../commands/gen_ujuvb_mdo/search.py | 160 ++-- .../commands/gen_ujuvb_mdo/select.py | 4 +- .../commands/gen_ujuvb_mdo/setup1.py | 4 +- .../commands/gen_ujuvb_mdo/trigger.py | 176 ++--- src/tm_devices/commands/gen_usaa3_mdo/rf.py | 44 +- .../commands/gen_usaa3_mdo/search.py | 174 ++--- .../commands/gen_usaa3_mdo/trigger.py | 180 ++--- .../commands/helpers/generic_commands.py | 9 +- .../commands/helpers/scpi_commands.py | 24 +- .../commands/helpers/tsp_commands.py | 6 +- src/tm_devices/commands/lpd6_commands.py | 6 +- src/tm_devices/commands/mdo3_commands.py | 6 +- src/tm_devices/commands/mdo3k_commands.py | 6 +- src/tm_devices/commands/mdo4k_commands.py | 6 +- src/tm_devices/commands/mdo4kb_commands.py | 6 +- src/tm_devices/commands/mdo4kc_commands.py | 6 +- src/tm_devices/commands/mso2_commands.py | 6 +- src/tm_devices/commands/mso2k_commands.py | 6 +- src/tm_devices/commands/mso2kb_commands.py | 6 +- src/tm_devices/commands/mso4_commands.py | 6 +- src/tm_devices/commands/mso4b_commands.py | 6 +- src/tm_devices/commands/mso4k_commands.py | 6 +- src/tm_devices/commands/mso4kb_commands.py | 6 +- src/tm_devices/commands/mso5_commands.py | 6 +- src/tm_devices/commands/mso5b_commands.py | 6 +- src/tm_devices/commands/mso5k_commands.py | 6 +- src/tm_devices/commands/mso5kb_commands.py | 6 +- src/tm_devices/commands/mso5lp_commands.py | 6 +- src/tm_devices/commands/mso6_commands.py | 6 +- src/tm_devices/commands/mso6b_commands.py | 6 +- src/tm_devices/commands/mso70kc_commands.py | 6 +- src/tm_devices/commands/mso70kdx_commands.py | 6 +- src/tm_devices/commands/smu2450_commands.py | 28 +- src/tm_devices/commands/smu2460_commands.py | 28 +- src/tm_devices/commands/smu2461_commands.py | 28 +- src/tm_devices/commands/smu2470_commands.py | 28 +- src/tm_devices/commands/smu2601b_commands.py | 84 +- .../commands/smu2601b_pulse_commands.py | 6 +- src/tm_devices/commands/smu2602b_commands.py | 84 +- src/tm_devices/commands/smu2604b_commands.py | 84 +- src/tm_devices/commands/smu2606b_commands.py | 84 +- src/tm_devices/commands/smu2611b_commands.py | 84 +- src/tm_devices/commands/smu2612b_commands.py | 84 +- src/tm_devices/commands/smu2614b_commands.py | 84 +- src/tm_devices/commands/smu2634b_commands.py | 84 +- src/tm_devices/commands/smu2635b_commands.py | 84 +- src/tm_devices/commands/smu2636b_commands.py | 84 +- src/tm_devices/commands/smu2651a_commands.py | 66 +- src/tm_devices/commands/smu2657a_commands.py | 66 +- src/tm_devices/commands/ss3706a_commands.py | 36 +- .../commands/tekscopepc_commands.py | 6 +- src/tm_devices/device_manager.py | 24 +- .../base_afg_source_channel.py | 8 +- .../base_source_channel.py | 8 +- .../channel_control_mixin.py | 58 ++ .../{pi_device.py => pi_control.py} | 80 +- ...rest_api_device.py => rest_api_control.py} | 22 +- .../{tsp_device.py => tsp_control.py} | 13 +- .../_verification_methods_mixin.py | 203 +++++ .../ieee488_2_commands.py | 70 +- .../tek_afg_awg_mixin.py | 6 +- .../drivers/_device_driver_mapping.py | 2 +- src/tm_devices/drivers/afgs/afg.py | 8 +- src/tm_devices/drivers/awgs/awg.py | 8 +- src/tm_devices/drivers/awgs/awg5200.py | 2 +- src/tm_devices/drivers/awgs/awg5k.py | 2 +- src/tm_devices/drivers/awgs/awg70ka.py | 2 +- src/tm_devices/drivers/awgs/awg7k.py | 2 +- .../data_acquisition_systems/daq6510.py | 16 +- .../data_acquisition_system.py | 3 +- .../device_control => drivers}/device.py | 184 +---- .../digital_multimeters/digital_multimeter.py | 3 +- .../drivers/digital_multimeters/dmm6500.py | 10 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 10 +- .../drivers/margin_testers/margin_tester.py | 6 +- .../drivers/power_supplies/power_supply.py | 3 +- .../drivers/power_supplies/psu22xx/psu2200.py | 17 +- src/tm_devices/drivers/scopes/scope.py | 51 +- .../drivers/scopes/tekscope/tekscope.py | 13 +- .../drivers/scopes/tekscope/tekscopepc.py | 2 +- .../drivers/scopes/tekscope_2k/tekscope_2k.py | 7 +- .../scopes/tekscope_3k_4k/tekscope_3k_4k.py | 2 +- .../tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 2 +- src/tm_devices/drivers/scopes/tso/tsovu.py | 2 +- .../smu24xx/smu24xx_interactive.py | 6 +- .../smu24xx/smu24xx_standard.py | 6 +- .../source_measure_units/smu26xx/smu26xx.py | 6 +- .../source_measure_units/smu60xx/smu6xxx.py | 6 +- .../source_measure_unit.py | 3 +- .../drivers/systems_switches/ss3706a.py | 15 +- .../systems_switches/systems_switch.py | 3 +- src/tm_devices/helpers/enums.py | 2 +- .../{pi_device.pyi => pi_control.pyi} | 2 +- .../{tsp_device.pyi => tsp_control.pyi} | 2 +- .../device_control => drivers}/device.pyi | 0 tests/test_extension_mixin.py | 44 +- tests/test_pi_device.py | 6 +- tests/test_rest_api_device.py | 104 +-- tests/test_tm_devices.py | 2 +- tests/test_unsupported_device_type.py | 4 +- 702 files changed, 16928 insertions(+), 16846 deletions(-) create mode 100644 src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py rename src/tm_devices/driver_mixins/device_control/{pi_device.py => pi_control.py} (94%) rename src/tm_devices/driver_mixins/device_control/{rest_api_device.py => rest_api_control.py} (96%) rename src/tm_devices/driver_mixins/device_control/{tsp_device.py => tsp_control.py} (95%) create mode 100644 src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py rename src/tm_devices/{driver_mixins/device_control => drivers}/device.py (77%) rename tests/samples/golden_stubs/driver_mixins/device_control/{pi_device.pyi => pi_control.pyi} (90%) rename tests/samples/golden_stubs/driver_mixins/device_control/{tsp_device.pyi => tsp_control.pyi} (90%) rename tests/samples/golden_stubs/{driver_mixins/device_control => drivers}/device.pyi (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e1dd7e8..2765a8ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,10 +26,11 @@ Things to be included in the next release go here. NOTE: Despite all the officially breaking changes, the actual drivers were only affected in very minor ways. The primary impact to the drivers was simply the removal of previously -deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. +deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. +However, please read through all changes to be aware of what may potentially impact your code. - BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. -- BREAKING CHANGE: Moved the `Device`, `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. +- BREAKING CHANGE: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. - BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. @@ -37,10 +38,11 @@ deprecated functionality. Almost all changes only impacted the internal workings ### Removed - BREAKING CHANGE: Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class -- BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPDevice` class. +- BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPControl` class. - BREAKING CHANGE: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. - BREAKING CHANGE: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. - BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant. +- BREAKING CHANGE: Removed many hacky implementations of `total_channels` and `all_channel_names_list` properties from drivers that don't need them anymore. --- @@ -52,7 +54,7 @@ deprecated functionality. Almost all changes only impacted the internal workings ### Merged Pull Requests -- Update TSPDevice.load_script() to accept raw strings ([#308](https://github.com/tektronix/tm_devices/pull/308)) +- Update TSPControl.load_script() to accept raw strings ([#308](https://github.com/tektronix/tm_devices/pull/308)) - fix: Update stub generation helper function to handle classes followed by dataclasses ([#307](https://github.com/tektronix/tm_devices/pull/307)) - Add function to register USBTMC connection information for devices that don't have native USBTMC connection support in tm_devices ([#306](https://github.com/tektronix/tm_devices/pull/306)) - python-deps(deps-dev): Bump the python-dependencies group with 2 updates ([#304](https://github.com/tektronix/tm_devices/pull/304)) @@ -72,7 +74,7 @@ deprecated functionality. Almost all changes only impacted the internal workings - Added a config option (`default_visa_timeout`) to specify the default VISA timeout for all initial VISA device connections. - Added a new function, `register_additional_usbtmc_mapping()`, to enable users to add USBTMC connection information for devices that don't have native support for USBTMC connections in `tm_devices` yet. -- Added `TSPDevice.export_buffers()` to write tsp buffer data fields to file, default is comma separated values with buffer names header. +- Added `TSPControl.export_buffers()` to write tsp buffer data fields to file, default is comma separated values with buffer names header. ### Changed @@ -80,12 +82,12 @@ deprecated functionality. Almost all changes only impacted the internal workings - Reduced the out-of-the box `default_visa_timeout` value from 30 seconds to 5 seconds. - _**SEMI-BREAKING CHANGE**_: Changed the `USB_MODEL_ID_LOOKUP` constant to use `SupportedModels` as keys instead of values to make the documentation clearer. - _**SEMI-BREAKING CHANGE**_: Changed the `DEVICE_DRIVER_MODEL_MAPPING` constant to use `SupportedModels` as keys instead of values to make the documentation clearer. -- _**SEMI-BREAKING CHANGE**_: Changed the input parameter order in `TSPDevice.load_script()` and updated it to accept raw string input in addition to the `file_path` parameter for the script content. -- Verbosity with `PIDevice.write()` now handles multiline input printouts. +- _**SEMI-BREAKING CHANGE**_: Changed the input parameter order in `TSPControl.load_script()` and updated it to accept raw string input in addition to the `file_path` parameter for the script content. +- Verbosity with `PIControl.write()` now handles multiline input printouts. ### Deprecated -- Renamed `TSPDevice.write_buffers()` to `TSPDevice.export_buffers()` for clarity. +- Renamed `TSPControl.write_buffers()` to `TSPControl.export_buffers()` for clarity. ### Fixed @@ -484,7 +486,7 @@ deprecated functionality. Almost all changes only impacted the internal workings ### Merged Pull Requests - Fix import error on mac with system integrity protection ([#109](https://github.com/tektronix/tm_devices/issues/109)) -- feat(rest_api_device): Enable sending raw data for restful api devices. ([#107](https://github.com/tektronix/tm_devices/issues/107)) +- feat(rest_api_control): Enable sending raw data for restful api devices. ([#107](https://github.com/tektronix/tm_devices/issues/107)) - build: Update package classifiers. ([#106](https://github.com/tektronix/tm_devices/issues/106)) ### Added diff --git a/docs/contributing/add_new_driver.md b/docs/contributing/add_new_driver.md index f6fd80a0..6a36232d 100644 --- a/docs/contributing/add_new_driver.md +++ b/docs/contributing/add_new_driver.md @@ -71,7 +71,7 @@ defines abstract functions that all device drivers must implement. """Fancy PSU Base device driver for the new series/family of fancy power supplies.""" from abc import ABC from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class @family_base_class # Mark the base class for the new family of devices diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 4a78d03c..27699b2f 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -3,7 +3,7 @@ from typing import Tuple, Union from tm_devices import DeviceManager, register_additional_usbtmc_mapping -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers import MSO5 from tm_devices.drivers.scopes.scope import Scope @@ -30,23 +30,12 @@ def custom_method(self, value: str) -> None: # Custom devices that do not inherit from a supported device type can be defined by inheriting from # a parent class further up the inheritance tree. This custom class must implement all abstract # methods defined by the abstract parent classes. -class CustomDevice(PIDevice): +class CustomDevice(PIControl): """A custom device that is not one of the officially supported devices.""" # Custom device types not officially supported need to define what type of device they are. _DEVICE_TYPE = "CustomDevice" - # This is an abstract property that must be implemented by the custom device driver. - # NOTE: The implementation of this example was copied from the base Scope class. - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - return tuple(f"CH{x+1}" for x in range(self.total_channels)) - - # This is an abstract property that must be implemented by the custom device driver. - @cached_property - def total_channels(self) -> int: - return 4 - # This is an abstract method that must be implemented by the custom device driver. def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: # The contents of this method would need to be properly implemented, diff --git a/src/tm_devices/commands/afg3k_commands.py b/src/tm_devices/commands/afg3k_commands.py index e19182a8..247a19d9 100644 --- a/src/tm_devices/commands/afg3k_commands.py +++ b/src/tm_devices/commands/afg3k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -105,7 +105,7 @@ class AFG3KCommands: - ``.wai``: The ``*WAI`` command. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._afgcontrol = Afgcontrol(device) self._cal = Cal(device) @@ -853,7 +853,7 @@ class AFG3KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AFG3KCommandConstants() self._commands = AFG3KCommands(device) diff --git a/src/tm_devices/commands/afg3kb_commands.py b/src/tm_devices/commands/afg3kb_commands.py index 9da090f8..d1a618f8 100644 --- a/src/tm_devices/commands/afg3kb_commands.py +++ b/src/tm_devices/commands/afg3kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -105,7 +105,7 @@ class AFG3KBCommands: - ``.wai``: The ``*WAI`` command. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._afgcontrol = Afgcontrol(device) self._cal = Cal(device) @@ -853,7 +853,7 @@ class AFG3KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AFG3KBCommandConstants() self._commands = AFG3KBCommands(device) diff --git a/src/tm_devices/commands/afg3kc_commands.py b/src/tm_devices/commands/afg3kc_commands.py index 965ce0bc..c54b9e10 100644 --- a/src/tm_devices/commands/afg3kc_commands.py +++ b/src/tm_devices/commands/afg3kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -105,7 +105,7 @@ class AFG3KCCommands: - ``.wai``: The ``*WAI`` command. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._afgcontrol = Afgcontrol(device) self._cal = Cal(device) @@ -853,7 +853,7 @@ class AFG3KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AFG3KCCommandConstants() self._commands = AFG3KCCommands(device) diff --git a/src/tm_devices/commands/awg5200_commands.py b/src/tm_devices/commands/awg5200_commands.py index 058d240f..0cdeb41e 100644 --- a/src/tm_devices/commands/awg5200_commands.py +++ b/src/tm_devices/commands/awg5200_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_2i1z2s_awg.abort import Abort from .gen_2i1z2s_awg.auxoutput import AuxoutputItem @@ -125,7 +125,7 @@ class AWG5200Commands: - ``.wplugin``: The ``WPLugin`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._active = Active(device) self._auxoutput: Dict[int, AuxoutputItem] = DefaultDictPassKeyToFactory( @@ -954,7 +954,7 @@ class AWG5200Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG5200CommandConstants() self._commands = AWG5200Commands(device) diff --git a/src/tm_devices/commands/awg5k_commands.py b/src/tm_devices/commands/awg5k_commands.py index 5d7467d1..46bf87fa 100644 --- a/src/tm_devices/commands/awg5k_commands.py +++ b/src/tm_devices/commands/awg5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -107,7 +107,7 @@ class AWG5KCommands: - ``.wlist``: The ``WLISt`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._awgcontrol = Awgcontrol(device) self._cal = Cal(device) @@ -745,7 +745,7 @@ class AWG5KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG5KCommandConstants() self._commands = AWG5KCommands(device) diff --git a/src/tm_devices/commands/awg5kc_commands.py b/src/tm_devices/commands/awg5kc_commands.py index 073a6c9c..f0956117 100644 --- a/src/tm_devices/commands/awg5kc_commands.py +++ b/src/tm_devices/commands/awg5kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -107,7 +107,7 @@ class AWG5KCCommands: - ``.wlist``: The ``WLISt`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._awgcontrol = Awgcontrol(device) self._cal = Cal(device) @@ -745,7 +745,7 @@ class AWG5KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG5KCCommandConstants() self._commands = AWG5KCCommands(device) diff --git a/src/tm_devices/commands/awg70ka_commands.py b/src/tm_devices/commands/awg70ka_commands.py index fdc11f98..6cf2beb5 100644 --- a/src/tm_devices/commands/awg70ka_commands.py +++ b/src/tm_devices/commands/awg70ka_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration @@ -124,7 +124,7 @@ class AWG70KACommands: - ``.wplugin``: The ``WPLugin`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._active = Active(device) self._auxoutput: Dict[int, AuxoutputItem] = DefaultDictPassKeyToFactory( lambda x: AuxoutputItem(device, f"AUXoutput{x}") @@ -939,7 +939,7 @@ class AWG70KAMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG70KACommandConstants() self._commands = AWG70KACommands(device) diff --git a/src/tm_devices/commands/awg70kb_commands.py b/src/tm_devices/commands/awg70kb_commands.py index 4a7061e3..bbd69b9e 100644 --- a/src/tm_devices/commands/awg70kb_commands.py +++ b/src/tm_devices/commands/awg70kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration @@ -124,7 +124,7 @@ class AWG70KBCommands: - ``.wplugin``: The ``WPLugin`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._active = Active(device) self._auxoutput: Dict[int, AuxoutputItem] = DefaultDictPassKeyToFactory( lambda x: AuxoutputItem(device, f"AUXoutput{x}") @@ -939,7 +939,7 @@ class AWG70KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG70KBCommandConstants() self._commands = AWG70KBCommands(device) diff --git a/src/tm_devices/commands/awg7k_commands.py b/src/tm_devices/commands/awg7k_commands.py index 1e1728a3..0443d513 100644 --- a/src/tm_devices/commands/awg7k_commands.py +++ b/src/tm_devices/commands/awg7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -107,7 +107,7 @@ class AWG7KCommands: - ``.wlist``: The ``WLISt`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._awgcontrol = Awgcontrol(device) self._cal = Cal(device) @@ -745,7 +745,7 @@ class AWG7KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG7KCommandConstants() self._commands = AWG7KCommands(device) diff --git a/src/tm_devices/commands/awg7kc_commands.py b/src/tm_devices/commands/awg7kc_commands.py index 26aaf83f..ee69a687 100644 --- a/src/tm_devices/commands/awg7kc_commands.py +++ b/src/tm_devices/commands/awg7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -107,7 +107,7 @@ class AWG7KCCommands: - ``.wlist``: The ``WLISt`` command tree. """ - def __init__(self, device: Optional[PIDevice] = None) -> None: + def __init__(self, device: Optional[PIControl] = None) -> None: self._abort = Abort(device) self._awgcontrol = Awgcontrol(device) self._cal = Cal(device) @@ -745,7 +745,7 @@ class AWG7KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = AWG7KCCommandConstants() self._commands = AWG7KCCommands(device) diff --git a/src/tm_devices/commands/daq6510_commands.py b/src/tm_devices/commands/daq6510_commands.py index 3274f60f..aab7a20c 100644 --- a/src/tm_devices/commands/daq6510_commands.py +++ b/src/tm_devices/commands/daq6510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_by991s_smudaq.digio import Digio from .gen_by991s_smudaq.status import Status @@ -631,7 +631,7 @@ class DAQ6510Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._buffer = Buffer(device) @@ -1830,7 +1830,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1856,7 +1856,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1881,7 +1881,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1903,7 +1903,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1926,7 +1926,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1951,7 +1951,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1984,7 +1984,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2012,7 +2012,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2038,7 +2038,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2064,7 +2064,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2078,7 +2080,7 @@ class DAQ6510Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = DAQ6510CommandConstants() self._commands = DAQ6510Commands(device) diff --git a/src/tm_devices/commands/dmm6500_commands.py b/src/tm_devices/commands/dmm6500_commands.py index 9eb78592..258f6eda 100644 --- a/src/tm_devices/commands/dmm6500_commands.py +++ b/src/tm_devices/commands/dmm6500_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_d83qe0_dmm.buffer import Buffer from .gen_d83qe0_dmm.buffervar import Buffervar @@ -356,7 +356,7 @@ class DMM6500Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._buffer = Buffer(device) @@ -1197,7 +1197,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1223,7 +1223,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1248,7 +1248,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1270,7 +1270,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1293,7 +1293,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1318,7 +1318,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1351,7 +1351,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1379,7 +1379,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1405,7 +1405,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1431,7 +1431,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1445,7 +1447,7 @@ class DMM6500Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = DMM6500CommandConstants() self._commands = DMM6500Commands(device) diff --git a/src/tm_devices/commands/dmm7510_commands.py b/src/tm_devices/commands/dmm7510_commands.py index c52ce35f..c96b098c 100644 --- a/src/tm_devices/commands/dmm7510_commands.py +++ b/src/tm_devices/commands/dmm7510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_d6b496_dmm.acal import Acal from .gen_d6b496_dmm.buffer import Buffer @@ -354,7 +354,7 @@ class DMM7510Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._acal = Acal(device) self._beeper = Beeper(device) @@ -1157,7 +1157,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1183,7 +1183,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1208,7 +1208,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1230,7 +1230,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1253,7 +1253,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1278,7 +1278,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1311,7 +1311,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1339,7 +1339,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1365,7 +1365,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1391,7 +1391,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1405,7 +1407,7 @@ class DMM7510Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = DMM7510CommandConstants() self._commands = DMM7510Commands(device) diff --git a/src/tm_devices/commands/dpo2k_commands.py b/src/tm_devices/commands/dpo2k_commands.py index f2f4c065..f2380d9c 100644 --- a/src/tm_devices/commands/dpo2k_commands.py +++ b/src/tm_devices/commands/dpo2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -539,7 +539,7 @@ class DPO2KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -2666,7 +2666,7 @@ class DPO2KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO2KCommandConstants() self._commands = DPO2KCommands(device) diff --git a/src/tm_devices/commands/dpo2kb_commands.py b/src/tm_devices/commands/dpo2kb_commands.py index 95fc82ca..b6306dcb 100644 --- a/src/tm_devices/commands/dpo2kb_commands.py +++ b/src/tm_devices/commands/dpo2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -539,7 +539,7 @@ class DPO2KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -2666,7 +2666,7 @@ class DPO2KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO2KBCommandConstants() self._commands = DPO2KBCommands(device) diff --git a/src/tm_devices/commands/dpo4k_commands.py b/src/tm_devices/commands/dpo4k_commands.py index 24393459..214bfba0 100644 --- a/src/tm_devices/commands/dpo4k_commands.py +++ b/src/tm_devices/commands/dpo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kozfv_dpo.search import Search @@ -739,7 +739,7 @@ class DPO4KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3289,7 +3289,7 @@ class DPO4KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO4KCommandConstants() self._commands = DPO4KCommands(device) diff --git a/src/tm_devices/commands/dpo4kb_commands.py b/src/tm_devices/commands/dpo4kb_commands.py index a8852e79..cba87437 100644 --- a/src/tm_devices/commands/dpo4kb_commands.py +++ b/src/tm_devices/commands/dpo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message @@ -747,7 +747,7 @@ class DPO4KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3297,7 +3297,7 @@ class DPO4KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO4KBCommandConstants() self._commands = DPO4KBCommands(device) diff --git a/src/tm_devices/commands/dpo5k_commands.py b/src/tm_devices/commands/dpo5k_commands.py index 4f52b92e..d3737360 100644 --- a/src/tm_devices/commands/dpo5k_commands.py +++ b/src/tm_devices/commands/dpo5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -896,7 +896,7 @@ class DPO5KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3784,7 +3784,7 @@ class DPO5KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO5KCommandConstants() self._commands = DPO5KCommands(device) diff --git a/src/tm_devices/commands/dpo5kb_commands.py b/src/tm_devices/commands/dpo5kb_commands.py index 504a342b..6698ed49 100644 --- a/src/tm_devices/commands/dpo5kb_commands.py +++ b/src/tm_devices/commands/dpo5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_3tjgb2_dpo.trigger import Trigger from .gen_5ri0nj_dpomso.bus import Bus @@ -904,7 +904,7 @@ class DPO5KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3874,7 +3874,7 @@ class DPO5KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO5KBCommandConstants() self._commands = DPO5KBCommands(device) diff --git a/src/tm_devices/commands/dpo70kc_commands.py b/src/tm_devices/commands/dpo70kc_commands.py index 05cab705..0b0291c8 100644 --- a/src/tm_devices/commands/dpo70kc_commands.py +++ b/src/tm_devices/commands/dpo70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -899,7 +899,7 @@ class DPO70KCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class DPO70KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO70KCCommandConstants() self._commands = DPO70KCCommands(device) diff --git a/src/tm_devices/commands/dpo70kd_commands.py b/src/tm_devices/commands/dpo70kd_commands.py index aba6f885..3dc00df7 100644 --- a/src/tm_devices/commands/dpo70kd_commands.py +++ b/src/tm_devices/commands/dpo70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -899,7 +899,7 @@ class DPO70KDCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class DPO70KDMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO70KDCommandConstants() self._commands = DPO70KDCommands(device) diff --git a/src/tm_devices/commands/dpo70kdx_commands.py b/src/tm_devices/commands/dpo70kdx_commands.py index e302aa7d..53b43a86 100644 --- a/src/tm_devices/commands/dpo70kdx_commands.py +++ b/src/tm_devices/commands/dpo70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -899,7 +899,7 @@ class DPO70KDXCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class DPO70KDXMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO70KDXCommandConstants() self._commands = DPO70KDXCommands(device) diff --git a/src/tm_devices/commands/dpo70ksx_commands.py b/src/tm_devices/commands/dpo70ksx_commands.py index 133a5bf7..0931849b 100644 --- a/src/tm_devices/commands/dpo70ksx_commands.py +++ b/src/tm_devices/commands/dpo70ksx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_4jiykk_dpo.channelmapping import Channelmapping from .gen_4jiykk_dpo.counter import Counter @@ -908,7 +908,7 @@ class DPO70KSXCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3950,7 +3950,7 @@ class DPO70KSXMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO70KSXCommandConstants() self._commands = DPO70KSXCommands(device) diff --git a/src/tm_devices/commands/dpo7k_commands.py b/src/tm_devices/commands/dpo7k_commands.py index 0f9c282c..c116cacf 100644 --- a/src/tm_devices/commands/dpo7k_commands.py +++ b/src/tm_devices/commands/dpo7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -896,7 +896,7 @@ class DPO7KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3784,7 +3784,7 @@ class DPO7KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO7KCommandConstants() self._commands = DPO7KCommands(device) diff --git a/src/tm_devices/commands/dpo7kc_commands.py b/src/tm_devices/commands/dpo7kc_commands.py index 5d4ec8ed..373e343d 100644 --- a/src/tm_devices/commands/dpo7kc_commands.py +++ b/src/tm_devices/commands/dpo7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_3skc3w_dpo.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -900,7 +900,7 @@ class DPO7KCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3855,7 +3855,7 @@ class DPO7KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DPO7KCCommandConstants() self._commands = DPO7KCCommands(device) diff --git a/src/tm_devices/commands/dsa70kc_commands.py b/src/tm_devices/commands/dsa70kc_commands.py index 3971eed5..3184884b 100644 --- a/src/tm_devices/commands/dsa70kc_commands.py +++ b/src/tm_devices/commands/dsa70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -899,7 +899,7 @@ class DSA70KCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class DSA70KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DSA70KCCommandConstants() self._commands = DSA70KCCommands(device) diff --git a/src/tm_devices/commands/dsa70kd_commands.py b/src/tm_devices/commands/dsa70kd_commands.py index 2ffe057d..3b00f222 100644 --- a/src/tm_devices/commands/dsa70kd_commands.py +++ b/src/tm_devices/commands/dsa70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -899,7 +899,7 @@ class DSA70KDCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class DSA70KDMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = DSA70KDCommandConstants() self._commands = DSA70KDCommands(device) diff --git a/src/tm_devices/commands/gen_163n04_mdo/search.py b/src/tm_devices/commands/gen_163n04_mdo/search.py index fee130b1..0d2afaec 100644 --- a/src/tm_devices/commands/gen_163n04_mdo/search.py +++ b/src/tm_devices/commands/gen_163n04_mdo/search.py @@ -458,7 +458,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): @@ -499,7 +499,7 @@ class SearchSpectral(SCPICmdRead): - ``.list``: The ``SEARCH:SPECTral:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSpectralList(device, f"{self._cmd_syntax}:LIST") @@ -725,7 +725,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -1117,7 +1117,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1361,7 +1361,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1565,7 +1565,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1805,7 +1805,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1985,7 +1985,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -2105,7 +2105,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2375,7 +2375,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2656,7 +2656,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -3002,7 +3002,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3414,7 +3414,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3816,7 +3816,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -4117,7 +4117,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -4231,7 +4231,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4288,7 +4288,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -4628,7 +4628,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4754,7 +4754,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -5083,7 +5083,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -5386,7 +5386,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5665,7 +5665,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5844,7 +5844,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5931,7 +5931,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -6015,7 +6015,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -6098,7 +6098,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -6182,7 +6182,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -6240,7 +6240,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -6537,7 +6537,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -6730,7 +6730,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6999,7 +6999,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7094,7 +7094,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -7507,7 +7507,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -7585,7 +7585,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -7663,7 +7663,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -7741,7 +7741,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -7795,7 +7795,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7946,7 +7946,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8076,7 +8076,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8155,7 +8155,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -8246,7 +8246,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8324,7 +8324,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -8396,7 +8396,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8513,7 +8513,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -8660,7 +8660,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9105,7 +9105,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -9534,7 +9534,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9661,7 +9661,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9861,7 +9861,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -10183,7 +10183,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10272,7 +10272,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10464,7 +10464,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -10683,7 +10683,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10895,7 +10895,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11084,7 +11084,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -11302,7 +11302,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -11538,7 +11538,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -11658,7 +11658,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11917,7 +11917,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -12236,7 +12236,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12588,7 +12588,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12874,7 +12874,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13034,7 +13034,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13332,7 +13332,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -13420,7 +13420,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -13477,7 +13477,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheader(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -13592,7 +13592,7 @@ class SearchSearchItemTriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -13717,7 +13717,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacType(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacTypeHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13884,7 +13884,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13979,7 +13979,7 @@ class SearchSearchItemTriggerABusBItemEthernetMac(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusBItemEthernetMacLength( device, f"{self._cmd_syntax}:LENgth" @@ -14076,7 +14076,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14167,7 +14167,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -14225,7 +14225,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._protocol = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol( device, f"{self._cmd_syntax}:PROTOcol" @@ -14447,7 +14447,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14665,7 +14665,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14957,7 +14957,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -15143,7 +15143,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -15397,7 +15397,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -15690,7 +15690,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -15780,7 +15780,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16117,7 +16117,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -16338,7 +16338,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16562,7 +16562,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -16755,7 +16755,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16942,7 +16942,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -17244,7 +17244,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -17335,7 +17335,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -17662,7 +17662,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -17742,7 +17742,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -17799,7 +17799,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -17837,7 +17837,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -17909,7 +17909,7 @@ class SearchSearchItemTrigABusBItemEtherTcphSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphSouVal(device, f"{self._cmd_syntax}:VAL") @@ -17994,7 +17994,7 @@ class SearchSearchItemTrigABusBItemEtherTcphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -18047,7 +18047,7 @@ class SearchSearchItemTrigABusBItemEtherTcph(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherTcphDest(device, f"{self._cmd_syntax}:DEST") self._sou = SearchSearchItemTrigABusBItemEtherTcphSou(device, f"{self._cmd_syntax}:SOU") @@ -18132,7 +18132,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrSouVal( device, f"{self._cmd_syntax}:VAL" @@ -18219,7 +18219,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrDestVal( device, f"{self._cmd_syntax}:VAL" @@ -18273,7 +18273,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddr(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherMacAddrDest( device, f"{self._cmd_syntax}:DEST" @@ -18327,7 +18327,7 @@ class SearchSearchItemTrigABusBItemEtherMac(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemEtherMacAddr(device, f"{self._cmd_syntax}:ADDR") @@ -18397,7 +18397,7 @@ class SearchSearchItemTrigABusBItemEtherIphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherIphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -18450,7 +18450,7 @@ class SearchSearchItemTrigABusBItemEtherIph(SCPICmdRead): - ``.dest``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherIphDest(device, f"{self._cmd_syntax}:DEST") @@ -18487,7 +18487,7 @@ class SearchSearchItemTrigABusBItemEther(SCPICmdRead): - ``.tcph``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._iph = SearchSearchItemTrigABusBItemEtherIph(device, f"{self._cmd_syntax}:IPH") self._mac = SearchSearchItemTrigABusBItemEtherMac(device, f"{self._cmd_syntax}:MAC") @@ -18556,7 +18556,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ether = SearchSearchItemTrigABusBItemEther(device, f"{self._cmd_syntax}:ETHER") self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( @@ -18610,7 +18610,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -18646,7 +18646,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -18677,7 +18677,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -18802,7 +18802,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -18956,7 +18956,7 @@ class Search(SCPICmdRead): - ``.spectral``: The ``SEARCH:SPECTral`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_16x4xq_mdo/search.py b/src/tm_devices/commands/gen_16x4xq_mdo/search.py index 5956dc9b..f3c09c8e 100644 --- a/src/tm_devices/commands/gen_16x4xq_mdo/search.py +++ b/src/tm_devices/commands/gen_16x4xq_mdo/search.py @@ -420,7 +420,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): @@ -461,7 +461,7 @@ class SearchSpectral(SCPICmdRead): - ``.list``: The ``SEARCH:SPECTral:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSpectralList(device, f"{self._cmd_syntax}:LIST") @@ -687,7 +687,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -1079,7 +1079,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1323,7 +1323,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1527,7 +1527,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1767,7 +1767,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1947,7 +1947,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -2067,7 +2067,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2337,7 +2337,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2618,7 +2618,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2964,7 +2964,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3376,7 +3376,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3778,7 +3778,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -4079,7 +4079,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -4193,7 +4193,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4250,7 +4250,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -4590,7 +4590,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4716,7 +4716,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -5045,7 +5045,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -5348,7 +5348,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5627,7 +5627,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5806,7 +5806,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5893,7 +5893,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -5977,7 +5977,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -6060,7 +6060,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -6144,7 +6144,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -6202,7 +6202,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -6499,7 +6499,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -6692,7 +6692,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6961,7 +6961,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7056,7 +7056,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -7469,7 +7469,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -7547,7 +7547,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -7625,7 +7625,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -7703,7 +7703,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -7757,7 +7757,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7908,7 +7908,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8038,7 +8038,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8117,7 +8117,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -8208,7 +8208,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8286,7 +8286,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -8358,7 +8358,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8475,7 +8475,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -8622,7 +8622,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9067,7 +9067,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -9496,7 +9496,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9623,7 +9623,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9823,7 +9823,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -10145,7 +10145,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10234,7 +10234,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10426,7 +10426,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -10645,7 +10645,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10857,7 +10857,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11046,7 +11046,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -11264,7 +11264,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -11500,7 +11500,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -11620,7 +11620,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11879,7 +11879,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -12198,7 +12198,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12550,7 +12550,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12836,7 +12836,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12996,7 +12996,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13327,7 +13327,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetDataValue( device, f"{self._cmd_syntax}:VALue" @@ -13386,7 +13386,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemEthernetData( device, f"{self._cmd_syntax}:DATa" @@ -13516,7 +13516,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -13702,7 +13702,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -13956,7 +13956,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -14249,7 +14249,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -14339,7 +14339,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14676,7 +14676,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14897,7 +14897,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15121,7 +15121,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -15314,7 +15314,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15501,7 +15501,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -15793,7 +15793,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15884,7 +15884,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -16211,7 +16211,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -16291,7 +16291,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -16348,7 +16348,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -16386,7 +16386,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -16422,7 +16422,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( device, f"{self._cmd_syntax}:MIL1553B" @@ -16457,7 +16457,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16492,7 +16492,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -16523,7 +16523,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -16648,7 +16648,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -16802,7 +16802,7 @@ class Search(SCPICmdRead): - ``.spectral``: The ``SEARCH:SPECTral`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py index 33652b09..fd01d7c5 100644 --- a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py @@ -462,7 +462,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -569,7 +569,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -767,7 +767,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -917,7 +917,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1029,7 +1029,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -1160,7 +1160,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -1312,7 +1312,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") @@ -1725,7 +1725,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLDoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -1909,7 +1909,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._syncinterval = TriggerAVideoCustomSyncinterval( @@ -2062,7 +2062,7 @@ class TriggerAVideo(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._holdoff = TriggerAVideoHoldoff(device, f"{self._cmd_syntax}:HOLDoff") @@ -2384,7 +2384,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:UPPerthreshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2629,7 +2629,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2854,7 +2854,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3021,7 +3021,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3225,7 +3225,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3398,7 +3398,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3517,7 +3517,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -3783,7 +3783,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4046,7 +4046,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4225,7 +4225,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -4469,7 +4469,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4842,7 +4842,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ext``: The ``TRIGger:A:LOWerthreshold:EXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5095,7 +5095,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:THReshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5278,7 +5278,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -5476,7 +5476,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5593,7 +5593,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:INPut:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5803,7 +5803,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -6057,7 +6057,7 @@ class TriggerALevel(SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -6205,7 +6205,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -6347,7 +6347,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -6546,7 +6546,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -6627,7 +6627,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -6705,7 +6705,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -6782,7 +6782,7 @@ class TriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -6860,7 +6860,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -6913,7 +6913,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -7183,7 +7183,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -7360,7 +7360,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -7613,7 +7613,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7700,7 +7700,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -8075,7 +8075,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -8153,7 +8153,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -8230,7 +8230,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -8306,7 +8306,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -8356,7 +8356,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -8497,7 +8497,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -8621,7 +8621,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8695,7 +8695,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -8784,7 +8784,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8858,7 +8858,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -8924,7 +8924,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -9030,7 +9030,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -9168,7 +9168,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9614,7 +9614,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -10024,7 +10024,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10144,7 +10144,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -10326,7 +10326,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -10674,7 +10674,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10796,7 +10796,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10976,7 +10976,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -11168,7 +11168,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -11362,7 +11362,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -11536,7 +11536,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -11738,7 +11738,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -11965,7 +11965,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -12076,7 +12076,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -12317,7 +12317,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -12621,7 +12621,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -12954,7 +12954,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -13232,7 +13232,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13396,7 +13396,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -13662,7 +13662,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -13711,7 +13711,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( device, f"{self._cmd_syntax}:DESTinationport" @@ -13747,7 +13747,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._tcpheader = TriggerABusBItemEthernetTcpheader(device, f"{self._cmd_syntax}:TCPHeader") @@ -13842,7 +13842,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -14012,7 +14012,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBIT") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBIT") @@ -14251,7 +14251,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -14530,7 +14530,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -14613,7 +14613,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -14921,7 +14921,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemAudioDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemAudioDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -15122,7 +15122,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -15332,7 +15332,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -15514,7 +15514,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15690,7 +15690,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -15954,7 +15954,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16069,7 +16069,7 @@ class TriggerABandwidthRf(SCPICmdRead): - ``.low``: The ``TRIGger:A:BANDWidth:RF:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerABandwidthRfHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerABandwidthRfLow(device, f"{self._cmd_syntax}:LOW") @@ -16131,7 +16131,7 @@ class TriggerABandwidth(SCPICmdRead): - ``.rf``: The ``TRIGger:A:BANDWidth:RF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = TriggerABandwidthRf(device, f"{self._cmd_syntax}:RF") @@ -16199,7 +16199,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = TriggerABandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") @@ -16685,7 +16685,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py index 59245d83..cc86ec52 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py @@ -464,7 +464,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): @@ -505,7 +505,7 @@ class SearchSpectral(SCPICmdRead): - ``.list``: The ``SEARCH:SPECTral:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSpectralList(device, f"{self._cmd_syntax}:LIST") @@ -731,7 +731,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -1123,7 +1123,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1367,7 +1367,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1571,7 +1571,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1811,7 +1811,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1991,7 +1991,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -2111,7 +2111,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2381,7 +2381,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2662,7 +2662,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -3008,7 +3008,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3420,7 +3420,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3822,7 +3822,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -4123,7 +4123,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -4237,7 +4237,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4294,7 +4294,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -4634,7 +4634,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4760,7 +4760,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -5089,7 +5089,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -5392,7 +5392,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5671,7 +5671,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5850,7 +5850,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5937,7 +5937,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -6021,7 +6021,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -6104,7 +6104,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -6188,7 +6188,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -6246,7 +6246,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -6543,7 +6543,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -6736,7 +6736,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7005,7 +7005,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7100,7 +7100,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -7513,7 +7513,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -7591,7 +7591,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -7669,7 +7669,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -7747,7 +7747,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -7801,7 +7801,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7952,7 +7952,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8082,7 +8082,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8161,7 +8161,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -8252,7 +8252,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -8330,7 +8330,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -8402,7 +8402,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8519,7 +8519,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -8666,7 +8666,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9111,7 +9111,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -9540,7 +9540,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9667,7 +9667,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9867,7 +9867,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -10189,7 +10189,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10278,7 +10278,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10470,7 +10470,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -10689,7 +10689,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10901,7 +10901,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11090,7 +11090,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -11308,7 +11308,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -11544,7 +11544,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -11664,7 +11664,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11923,7 +11923,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -12242,7 +12242,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12594,7 +12594,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12880,7 +12880,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13040,7 +13040,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13338,7 +13338,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -13426,7 +13426,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -13483,7 +13483,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheader(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -13598,7 +13598,7 @@ class SearchSearchItemTriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -13723,7 +13723,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacType(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacTypeHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13890,7 +13890,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13985,7 +13985,7 @@ class SearchSearchItemTriggerABusBItemEthernetMac(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusBItemEthernetMacLength( device, f"{self._cmd_syntax}:LENgth" @@ -14082,7 +14082,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14173,7 +14173,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -14231,7 +14231,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._protocol = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol( device, f"{self._cmd_syntax}:PROTOcol" @@ -14453,7 +14453,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14671,7 +14671,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14963,7 +14963,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -15149,7 +15149,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -15403,7 +15403,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -15696,7 +15696,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -15786,7 +15786,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16123,7 +16123,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -16344,7 +16344,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16568,7 +16568,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -16820,7 +16820,7 @@ class SearchSearchItemTriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -16979,7 +16979,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -17189,7 +17189,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -17492,7 +17492,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -17583,7 +17583,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -17910,7 +17910,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -17990,7 +17990,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -18047,7 +18047,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -18085,7 +18085,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -18157,7 +18157,7 @@ class SearchSearchItemTrigABusBItemEtherTcphSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphSouVal(device, f"{self._cmd_syntax}:VAL") @@ -18242,7 +18242,7 @@ class SearchSearchItemTrigABusBItemEtherTcphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -18295,7 +18295,7 @@ class SearchSearchItemTrigABusBItemEtherTcph(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherTcphDest(device, f"{self._cmd_syntax}:DEST") self._sou = SearchSearchItemTrigABusBItemEtherTcphSou(device, f"{self._cmd_syntax}:SOU") @@ -18380,7 +18380,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrSouVal( device, f"{self._cmd_syntax}:VAL" @@ -18467,7 +18467,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrDestVal( device, f"{self._cmd_syntax}:VAL" @@ -18521,7 +18521,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddr(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherMacAddrDest( device, f"{self._cmd_syntax}:DEST" @@ -18575,7 +18575,7 @@ class SearchSearchItemTrigABusBItemEtherMac(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemEtherMacAddr(device, f"{self._cmd_syntax}:ADDR") @@ -18645,7 +18645,7 @@ class SearchSearchItemTrigABusBItemEtherIphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherIphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -18698,7 +18698,7 @@ class SearchSearchItemTrigABusBItemEtherIph(SCPICmdRead): - ``.dest``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherIphDest(device, f"{self._cmd_syntax}:DEST") @@ -18735,7 +18735,7 @@ class SearchSearchItemTrigABusBItemEther(SCPICmdRead): - ``.tcph``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._iph = SearchSearchItemTrigABusBItemEtherIph(device, f"{self._cmd_syntax}:IPH") self._mac = SearchSearchItemTrigABusBItemEtherMac(device, f"{self._cmd_syntax}:MAC") @@ -18804,7 +18804,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ether = SearchSearchItemTrigABusBItemEther(device, f"{self._cmd_syntax}:ETHER") self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( @@ -18858,7 +18858,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -18894,7 +18894,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -18925,7 +18925,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -19050,7 +19050,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -19204,7 +19204,7 @@ class Search(SCPICmdRead): - ``.spectral``: The ``SEARCH:SPECTral`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py index c5dd1684..55d5b308 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py @@ -508,7 +508,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -615,7 +615,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -813,7 +813,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -963,7 +963,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1075,7 +1075,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -1206,7 +1206,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -1358,7 +1358,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") @@ -1771,7 +1771,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLDoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -1955,7 +1955,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._syncinterval = TriggerAVideoCustomSyncinterval( @@ -2108,7 +2108,7 @@ class TriggerAVideo(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._holdoff = TriggerAVideoHoldoff(device, f"{self._cmd_syntax}:HOLDoff") @@ -2430,7 +2430,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:UPPerthreshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2675,7 +2675,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2900,7 +2900,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3067,7 +3067,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3271,7 +3271,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3444,7 +3444,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3563,7 +3563,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -3829,7 +3829,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4092,7 +4092,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4271,7 +4271,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -4515,7 +4515,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4888,7 +4888,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ext``: The ``TRIGger:A:LOWerthreshold:EXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5141,7 +5141,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:THReshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5324,7 +5324,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -5522,7 +5522,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5639,7 +5639,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:INPut:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5849,7 +5849,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -6103,7 +6103,7 @@ class TriggerALevel(SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -6251,7 +6251,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -6393,7 +6393,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -6592,7 +6592,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -6673,7 +6673,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -6751,7 +6751,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -6828,7 +6828,7 @@ class TriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -6906,7 +6906,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -6959,7 +6959,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -7229,7 +7229,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -7406,7 +7406,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -7659,7 +7659,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7746,7 +7746,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -8121,7 +8121,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -8199,7 +8199,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -8276,7 +8276,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -8352,7 +8352,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -8402,7 +8402,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -8543,7 +8543,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -8667,7 +8667,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8741,7 +8741,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -8830,7 +8830,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8904,7 +8904,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -8970,7 +8970,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -9076,7 +9076,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -9214,7 +9214,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9660,7 +9660,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -10070,7 +10070,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10190,7 +10190,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -10372,7 +10372,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -10720,7 +10720,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10842,7 +10842,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11022,7 +11022,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -11214,7 +11214,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -11408,7 +11408,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -11582,7 +11582,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -11784,7 +11784,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -12011,7 +12011,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -12122,7 +12122,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -12363,7 +12363,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -12667,7 +12667,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -13000,7 +13000,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -13278,7 +13278,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13442,7 +13442,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -13708,7 +13708,7 @@ class TriggerABusBItemEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -13784,7 +13784,7 @@ class TriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -13860,7 +13860,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -13936,7 +13936,7 @@ class TriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -13988,7 +13988,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerABusBItemEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( @@ -14129,7 +14129,7 @@ class TriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -14232,7 +14232,7 @@ class TriggerABusBItemEthernetMacType(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetMacTypeHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14368,7 +14368,7 @@ class TriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14474,7 +14474,7 @@ class TriggerABusBItemEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -14549,7 +14549,7 @@ class TriggerABusBItemEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -14599,7 +14599,7 @@ class TriggerABusBItemEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerABusBItemEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -14655,7 +14655,7 @@ class TriggerABusBItemEthernetMac(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerABusBItemEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -14756,7 +14756,7 @@ class TriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14832,7 +14832,7 @@ class TriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -14908,7 +14908,7 @@ class TriggerABusBItemEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14960,7 +14960,7 @@ class TriggerABusBItemEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerABusBItemEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -15177,7 +15177,7 @@ class TriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -15361,7 +15361,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -15636,7 +15636,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -15806,7 +15806,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBIT") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBIT") @@ -16045,7 +16045,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -16324,7 +16324,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -16407,7 +16407,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -16715,7 +16715,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemAudioDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemAudioDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -16916,7 +16916,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -17126,7 +17126,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -17366,7 +17366,7 @@ class TriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aDataQualifier( @@ -17515,7 +17515,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -17710,7 +17710,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -17982,7 +17982,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -18097,7 +18097,7 @@ class TriggerABandwidthRf(SCPICmdRead): - ``.low``: The ``TRIGger:A:BANDWidth:RF:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerABandwidthRfHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerABandwidthRfLow(device, f"{self._cmd_syntax}:LOW") @@ -18159,7 +18159,7 @@ class TriggerABandwidth(SCPICmdRead): - ``.rf``: The ``TRIGger:A:BANDWidth:RF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = TriggerABandwidthRf(device, f"{self._cmd_syntax}:RF") @@ -18227,7 +18227,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = TriggerABandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") @@ -18713,7 +18713,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py index 627a84a9..da5e9557 100644 --- a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py +++ b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py @@ -144,7 +144,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): @@ -317,7 +317,7 @@ class RfSquelch(SCPICmdRead): - ``.threshold``: The ``RF:SQUELCH:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfSquelchState(device, f"{self._cmd_syntax}:STATE") self._threshold = RfSquelchThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -525,7 +525,7 @@ class RfSpectrogram(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``RF:SPECTRogram:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numslices = RfSpectrogramNumslices(device, f"{self._cmd_syntax}:NUMSLICEs") self._sliceselect = RfSpectrogramSliceselect(device, f"{self._cmd_syntax}:SLICESELect") @@ -827,7 +827,7 @@ class RfRfVTime(SCPICmdRead): - ``.bandwidth``: The ``RF:RF_V_TIMe:BANDWidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = RfRfVTimeBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -913,7 +913,7 @@ class RfRfPhaseWrap(SCPICmdRead): - ``.state``: The ``RF:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = RfRfPhaseWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = RfRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -1034,7 +1034,7 @@ class RfRfPhaseVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_PHASe:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfPhaseVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfPhaseVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1131,7 +1131,7 @@ class RfRfPhaseReference(SCPICmdRead): - ``.degrees``: The ``RF:RF_PHASe:REFERence:DEGrees`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = RfRfPhaseReferenceDegrees(device, f"{self._cmd_syntax}:DEGrees") @@ -1197,7 +1197,7 @@ class RfRfPhase(SCPICmdRead): - ``.wrap``: The ``RF:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfPhaseLabel(device, f"{self._cmd_syntax}:LABel") self._reference = RfRfPhaseReference(device, f"{self._cmd_syntax}:REFERence") @@ -1337,7 +1337,7 @@ class RfRfFrequencyVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_FREQuency:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfFrequencyVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfFrequencyVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1436,7 +1436,7 @@ class RfRfFrequency(SCPICmdRead): - ``.vertical``: The ``RF:RF_FREQuency:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfFrequencyLabel(device, f"{self._cmd_syntax}:LABel") self._vertical = RfRfFrequencyVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1536,7 +1536,7 @@ class RfRfAverage(SCPICmdRead): - ``.numavg``: The ``RF:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = RfRfAverageCount(device, f"{self._cmd_syntax}:COUNt") self._numavg = RfRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -1656,7 +1656,7 @@ class RfRfAmplitudeVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_AMPlitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfAmplitudeVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfAmplitudeVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1755,7 +1755,7 @@ class RfRfAmplitude(SCPICmdRead): - ``.vertical``: The ``RF:RF_AMPlitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfAmplitudeLabel(device, f"{self._cmd_syntax}:LABel") self._vertical = RfRfAmplitudeVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1886,7 +1886,7 @@ class RfRbw(SCPICmdWrite, SCPICmdRead): - ``.mode``: The ``RF:RBW:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfRbwMode(device, f"{self._cmd_syntax}:MODe") @@ -2053,7 +2053,7 @@ class RfProbePreamp(SCPICmdRead): - ``.status``: The ``RF:PRObe:PREAmp:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfProbePreampMode(device, f"{self._cmd_syntax}:MODe") self._status = RfProbePreampStatus(device, f"{self._cmd_syntax}:STATus") @@ -2170,7 +2170,7 @@ class RfProbeId(SCPICmdRead): - ``.type``: The ``RF:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = RfProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = RfProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -2300,7 +2300,7 @@ class RfProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -2415,7 +2415,7 @@ class RfProbeCalibrate(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:CALibrate:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = RfProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -2503,7 +2503,7 @@ class RfProbe(SCPICmdRead): - ``.units``: The ``RF:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = RfProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = RfProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -2960,7 +2960,7 @@ class RfMeasureObw(SCPICmdRead): - ``.upperfreq``: The ``RF:MEASUre:OBW:UPPERFreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureObwChanbw(device, f"{self._cmd_syntax}:CHANBW") self._lowerfreq = RfMeasureObwLowerfreq(device, f"{self._cmd_syntax}:LOWERFreq") @@ -3146,7 +3146,7 @@ class RfMeasureCp(SCPICmdRead): - ``.power``: The ``RF:MEASUre:CP:POWer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureCpChanbw(device, f"{self._cmd_syntax}:CHANBW") self._power = RfMeasureCpPower(device, f"{self._cmd_syntax}:POWer") @@ -3460,7 +3460,7 @@ class RfMeasureAcpr(SCPICmdRead): - ``.ua3db``: The ``RF:MEASUre:ACPR:UA3DB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjacentpairs = RfMeasureAcprAdjacentpairs( device, f"{self._cmd_syntax}:ADJACENTPAIRs" @@ -3740,7 +3740,7 @@ class RfMeasure(SCPICmdRead): - ``.type``: The ``RF:MEASUre:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acpr = RfMeasureAcpr(device, f"{self._cmd_syntax}:ACPR") self._cp = RfMeasureCp(device, f"{self._cmd_syntax}:CP") @@ -4070,7 +4070,7 @@ class RfDetectionmethod(SCPICmdRead): - ``.rf_normal``: The ``RF:DETECTionmethod:RF_NORMal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfDetectionmethodMode(device, f"{self._cmd_syntax}:MODe") self._rf_average = RfDetectionmethodRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") @@ -4303,7 +4303,7 @@ class Rf(SCPICmdRead): - ``.window``: The ``RF:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RF") -> None: super().__init__(device, cmd_syntax) self._clipping = RfClipping(device, f"{self._cmd_syntax}:CLIPPing") self._detectionmethod = RfDetectionmethod(device, f"{self._cmd_syntax}:DETECTionmethod") diff --git a/src/tm_devices/commands/gen_1kozfv_dpo/search.py b/src/tm_devices/commands/gen_1kozfv_dpo/search.py index 3aa0057d..193054c8 100644 --- a/src/tm_devices/commands/gen_1kozfv_dpo/search.py +++ b/src/tm_devices/commands/gen_1kozfv_dpo/search.py @@ -399,7 +399,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( @@ -506,7 +506,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -798,7 +798,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1042,7 +1042,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1246,7 +1246,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1486,7 +1486,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1666,7 +1666,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1786,7 +1786,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2056,7 +2056,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2337,7 +2337,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2683,7 +2683,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3064,7 +3064,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3344,7 +3344,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3551,7 +3551,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -3665,7 +3665,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3722,7 +3722,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3960,7 +3960,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4082,7 +4082,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4294,7 +4294,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -4587,7 +4587,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4866,7 +4866,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5045,7 +5045,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5132,7 +5132,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -5216,7 +5216,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -5299,7 +5299,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -5383,7 +5383,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -5441,7 +5441,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -5738,7 +5738,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -5931,7 +5931,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6200,7 +6200,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6295,7 +6295,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -6708,7 +6708,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -6786,7 +6786,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -6864,7 +6864,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -6942,7 +6942,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -6996,7 +6996,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7147,7 +7147,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7277,7 +7277,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7356,7 +7356,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -7447,7 +7447,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7525,7 +7525,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -7597,7 +7597,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7714,7 +7714,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -7861,7 +7861,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -8306,7 +8306,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -8735,7 +8735,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -8862,7 +8862,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9062,7 +9062,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -9384,7 +9384,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9473,7 +9473,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9665,7 +9665,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -9884,7 +9884,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10096,7 +10096,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10285,7 +10285,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -10503,7 +10503,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -10739,7 +10739,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -10859,7 +10859,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11118,7 +11118,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -11437,7 +11437,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11789,7 +11789,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12075,7 +12075,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12235,7 +12235,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -12566,7 +12566,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetDataValue( device, f"{self._cmd_syntax}:VALue" @@ -12625,7 +12625,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemEthernetData( device, f"{self._cmd_syntax}:DATa" @@ -12755,7 +12755,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -12941,7 +12941,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -13195,7 +13195,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -13488,7 +13488,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -13578,7 +13578,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13915,7 +13915,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14136,7 +14136,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14360,7 +14360,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14553,7 +14553,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14740,7 +14740,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -15032,7 +15032,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15123,7 +15123,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -15443,7 +15443,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -15523,7 +15523,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -15580,7 +15580,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -15618,7 +15618,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -15654,7 +15654,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( device, f"{self._cmd_syntax}:MIL1553B" @@ -15689,7 +15689,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15724,7 +15724,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -15755,7 +15755,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -15880,7 +15880,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -16033,7 +16033,7 @@ class Search(SCPICmdRead): - ``.search``: The ``SEARCH:SEARCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py index 7d80db6c..933796b6 100644 --- a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py +++ b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): @@ -148,7 +148,7 @@ class CursorXyRectangularY(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:Y:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularYDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularYPositionItem] = DefaultDictPassKeyToFactory( @@ -299,7 +299,7 @@ class CursorXyRectangularX(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:X:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularXDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularXPositionItem] = DefaultDictPassKeyToFactory( @@ -387,7 +387,7 @@ class CursorXyRectangular(SCPICmdRead): - ``.y``: The ``CURSor:XY:RECTangular:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CursorXyRectangularX(device, f"{self._cmd_syntax}:X") self._y = CursorXyRectangularY(device, f"{self._cmd_syntax}:Y") @@ -521,7 +521,7 @@ class CursorXyRatio(SCPICmdRead): - ``.units``: The ``CURSor:XY:RATIO:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRatioDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRatioPositionItem] = DefaultDictPassKeyToFactory( @@ -661,7 +661,7 @@ class CursorXyProduct(SCPICmdRead): - ``.units``: The ``CURSor:XY:PRODUCT:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyProductDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyProductPositionItem] = DefaultDictPassKeyToFactory( @@ -798,7 +798,7 @@ class CursorXyPolarTheta(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:THETA:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarThetaDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarThetaPositionItem] = DefaultDictPassKeyToFactory( @@ -935,7 +935,7 @@ class CursorXyPolarRadius(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:RADIUS:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarRadiusDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarRadiusPositionItem] = DefaultDictPassKeyToFactory( @@ -1017,7 +1017,7 @@ class CursorXyPolar(SCPICmdRead): - ``.theta``: The ``CURSor:XY:POLar:THETA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._radius = CursorXyPolarRadius(device, f"{self._cmd_syntax}:RADIUS") self._theta = CursorXyPolarTheta(device, f"{self._cmd_syntax}:THETA") @@ -1071,7 +1071,7 @@ class CursorXy(SCPICmdRead): - ``.rectangular``: The ``CURSor:XY:RECTangular`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polar = CursorXyPolar(device, f"{self._cmd_syntax}:POLar") self._product = CursorXyProduct(device, f"{self._cmd_syntax}:PRODUCT") @@ -1353,7 +1353,7 @@ class CursorVbars(SCPICmdRead): - ``.vdelta``: The ``CURSor:VBArs:VDELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alternate: Dict[int, CursorVbarsAlternateItem] = DefaultDictPassKeyToFactory( lambda x: CursorVbarsAlternateItem(device, f"{self._cmd_syntax}:ALTERNATE{x}") @@ -1729,7 +1729,7 @@ class CursorHbars(SCPICmdRead): - ``.use``: The ``CURSor:HBArs:USE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorHbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._position: Dict[int, CursorHbarsPositionItem] = DefaultDictPassKeyToFactory( @@ -1911,7 +1911,7 @@ class Cursor(SCPICmdRead): - ``.xy``: The ``CURSor:XY`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURSor") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURSor") -> None: super().__init__(device, cmd_syntax) self._ddt = CursorDdt(device, f"{self._cmd_syntax}:DDT") self._function = CursorFunction(device, f"{self._cmd_syntax}:FUNCtion") diff --git a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py index 741f5a34..c78b743f 100644 --- a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py @@ -502,7 +502,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -609,7 +609,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -807,7 +807,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -957,7 +957,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1069,7 +1069,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -1200,7 +1200,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -1352,7 +1352,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") @@ -1765,7 +1765,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLDoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -1949,7 +1949,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._syncinterval = TriggerAVideoCustomSyncinterval( @@ -2102,7 +2102,7 @@ class TriggerAVideo(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._holdoff = TriggerAVideoHoldoff(device, f"{self._cmd_syntax}:HOLDoff") @@ -2424,7 +2424,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:UPPerthreshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2669,7 +2669,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2894,7 +2894,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3061,7 +3061,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3265,7 +3265,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3438,7 +3438,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3557,7 +3557,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -3823,7 +3823,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4086,7 +4086,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4265,7 +4265,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -4509,7 +4509,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4882,7 +4882,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ext``: The ``TRIGger:A:LOWerthreshold:EXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5135,7 +5135,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:THReshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5318,7 +5318,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -5516,7 +5516,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5633,7 +5633,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:INPut:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5843,7 +5843,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -6097,7 +6097,7 @@ class TriggerALevel(SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -6245,7 +6245,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -6387,7 +6387,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -6586,7 +6586,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -6667,7 +6667,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -6745,7 +6745,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -6822,7 +6822,7 @@ class TriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -6900,7 +6900,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -6953,7 +6953,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -7223,7 +7223,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -7400,7 +7400,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -7653,7 +7653,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7740,7 +7740,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -8115,7 +8115,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -8193,7 +8193,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -8270,7 +8270,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -8346,7 +8346,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -8396,7 +8396,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -8537,7 +8537,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -8661,7 +8661,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8735,7 +8735,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -8824,7 +8824,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8898,7 +8898,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -8964,7 +8964,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -9070,7 +9070,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -9208,7 +9208,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9654,7 +9654,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -10064,7 +10064,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10184,7 +10184,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -10366,7 +10366,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -10714,7 +10714,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10836,7 +10836,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11016,7 +11016,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -11208,7 +11208,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -11402,7 +11402,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -11576,7 +11576,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -11778,7 +11778,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -12005,7 +12005,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -12116,7 +12116,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -12357,7 +12357,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -12661,7 +12661,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -12994,7 +12994,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -13272,7 +13272,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13436,7 +13436,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -13702,7 +13702,7 @@ class TriggerABusBItemEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -13778,7 +13778,7 @@ class TriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -13854,7 +13854,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -13930,7 +13930,7 @@ class TriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -13982,7 +13982,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerABusBItemEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( @@ -14123,7 +14123,7 @@ class TriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -14226,7 +14226,7 @@ class TriggerABusBItemEthernetMacType(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetMacTypeHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14362,7 +14362,7 @@ class TriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14468,7 +14468,7 @@ class TriggerABusBItemEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -14543,7 +14543,7 @@ class TriggerABusBItemEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -14593,7 +14593,7 @@ class TriggerABusBItemEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerABusBItemEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -14649,7 +14649,7 @@ class TriggerABusBItemEthernetMac(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerABusBItemEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -14750,7 +14750,7 @@ class TriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14826,7 +14826,7 @@ class TriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -14902,7 +14902,7 @@ class TriggerABusBItemEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -14954,7 +14954,7 @@ class TriggerABusBItemEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerABusBItemEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -15171,7 +15171,7 @@ class TriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -15355,7 +15355,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -15630,7 +15630,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -15800,7 +15800,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBIT") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBIT") @@ -16039,7 +16039,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -16318,7 +16318,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -16401,7 +16401,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -16709,7 +16709,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemAudioDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemAudioDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -16910,7 +16910,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -17120,7 +17120,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -17302,7 +17302,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -17478,7 +17478,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -17749,7 +17749,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -17864,7 +17864,7 @@ class TriggerABandwidthRf(SCPICmdRead): - ``.low``: The ``TRIGger:A:BANDWidth:RF:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerABandwidthRfHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerABandwidthRfLow(device, f"{self._cmd_syntax}:LOW") @@ -17926,7 +17926,7 @@ class TriggerABandwidth(SCPICmdRead): - ``.rf``: The ``TRIGger:A:BANDWidth:RF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = TriggerABandwidthRf(device, f"{self._cmd_syntax}:RF") @@ -17994,7 +17994,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = TriggerABandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") @@ -18480,7 +18480,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py index 97dc76db..537f4597 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): @@ -159,7 +159,7 @@ class Message(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``MESSage:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MESSage") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MESSage") -> None: super().__init__(device, cmd_syntax) self._box = MessageBox(device, f"{self._cmd_syntax}:BOX") self._clear = MessageClear(device, f"{self._cmd_syntax}:CLEAR") diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py index d187098d..0fa06e09 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SetupItemTime(SCPICmdRead): @@ -96,7 +96,7 @@ class SetupItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.time``: The ``SETUP:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SETUP") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SETUP") -> None: super().__init__(device, cmd_syntax) self._date = SetupItemDate(device, f"{self._cmd_syntax}:DATE") self._label = SetupItemLabel(device, f"{self._cmd_syntax}:LABEL") diff --git a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py index f53cca38..51d70b03 100644 --- a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py +++ b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py @@ -437,7 +437,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( @@ -544,7 +544,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -836,7 +836,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1080,7 +1080,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1284,7 +1284,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1524,7 +1524,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1704,7 +1704,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1824,7 +1824,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2094,7 +2094,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2375,7 +2375,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2721,7 +2721,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3102,7 +3102,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3382,7 +3382,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3589,7 +3589,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -3703,7 +3703,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3760,7 +3760,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3998,7 +3998,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4120,7 +4120,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4332,7 +4332,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -4625,7 +4625,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4904,7 +4904,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5083,7 +5083,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5170,7 +5170,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -5254,7 +5254,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -5337,7 +5337,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -5421,7 +5421,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -5479,7 +5479,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -5776,7 +5776,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -5969,7 +5969,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6238,7 +6238,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6333,7 +6333,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -6746,7 +6746,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -6824,7 +6824,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -6902,7 +6902,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -6980,7 +6980,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -7034,7 +7034,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7185,7 +7185,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7315,7 +7315,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7394,7 +7394,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -7485,7 +7485,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7563,7 +7563,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -7635,7 +7635,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7752,7 +7752,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -7899,7 +7899,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -8344,7 +8344,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -8773,7 +8773,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -8900,7 +8900,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9100,7 +9100,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -9422,7 +9422,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9511,7 +9511,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9703,7 +9703,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -9922,7 +9922,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10134,7 +10134,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10323,7 +10323,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -10541,7 +10541,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -10777,7 +10777,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -10897,7 +10897,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11156,7 +11156,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -11475,7 +11475,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11827,7 +11827,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12113,7 +12113,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12273,7 +12273,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -12571,7 +12571,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -12659,7 +12659,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -12716,7 +12716,7 @@ class SearchSearchItemTriggerABusBItemEthernetTcpheader(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusBItemEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -12831,7 +12831,7 @@ class SearchSearchItemTriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -12956,7 +12956,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacType(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacTypeHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13123,7 +13123,7 @@ class SearchSearchItemTriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13218,7 +13218,7 @@ class SearchSearchItemTriggerABusBItemEthernetMac(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusBItemEthernetMacLength( device, f"{self._cmd_syntax}:LENgth" @@ -13315,7 +13315,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -13406,7 +13406,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -13464,7 +13464,7 @@ class SearchSearchItemTriggerABusBItemEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._protocol = SearchSearchItemTriggerABusBItemEthernetIpheaderProtocol( device, f"{self._cmd_syntax}:PROTOcol" @@ -13686,7 +13686,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemEthernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13904,7 +13904,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14196,7 +14196,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -14382,7 +14382,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -14636,7 +14636,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -14929,7 +14929,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -15019,7 +15019,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15356,7 +15356,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -15577,7 +15577,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15801,7 +15801,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -15994,7 +15994,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16181,7 +16181,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -16483,7 +16483,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16574,7 +16574,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -16894,7 +16894,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -16974,7 +16974,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -17031,7 +17031,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -17069,7 +17069,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -17141,7 +17141,7 @@ class SearchSearchItemTrigABusBItemEtherTcphSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphSouVal(device, f"{self._cmd_syntax}:VAL") @@ -17226,7 +17226,7 @@ class SearchSearchItemTrigABusBItemEtherTcphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherTcphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -17279,7 +17279,7 @@ class SearchSearchItemTrigABusBItemEtherTcph(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherTcphDest(device, f"{self._cmd_syntax}:DEST") self._sou = SearchSearchItemTrigABusBItemEtherTcphSou(device, f"{self._cmd_syntax}:SOU") @@ -17364,7 +17364,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrSou(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrSouVal( device, f"{self._cmd_syntax}:VAL" @@ -17451,7 +17451,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddrDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherMacAddrDestVal( device, f"{self._cmd_syntax}:VAL" @@ -17505,7 +17505,7 @@ class SearchSearchItemTrigABusBItemEtherMacAddr(SCPICmdRead): - ``.sou``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR:SOU`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherMacAddrDest( device, f"{self._cmd_syntax}:DEST" @@ -17559,7 +17559,7 @@ class SearchSearchItemTrigABusBItemEtherMac(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:MAC:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemEtherMacAddr(device, f"{self._cmd_syntax}:ADDR") @@ -17629,7 +17629,7 @@ class SearchSearchItemTrigABusBItemEtherIphDest(SCPICmdRead): - ``.val``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST:VAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._val = SearchSearchItemTrigABusBItemEtherIphDestVal(device, f"{self._cmd_syntax}:VAL") @@ -17682,7 +17682,7 @@ class SearchSearchItemTrigABusBItemEtherIph(SCPICmdRead): - ``.dest``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:IPH:DEST`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SearchSearchItemTrigABusBItemEtherIphDest(device, f"{self._cmd_syntax}:DEST") @@ -17719,7 +17719,7 @@ class SearchSearchItemTrigABusBItemEther(SCPICmdRead): - ``.tcph``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:ETHER:TCPH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._iph = SearchSearchItemTrigABusBItemEtherIph(device, f"{self._cmd_syntax}:IPH") self._mac = SearchSearchItemTrigABusBItemEtherMac(device, f"{self._cmd_syntax}:MAC") @@ -17788,7 +17788,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ether = SearchSearchItemTrigABusBItemEther(device, f"{self._cmd_syntax}:ETHER") self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( @@ -17842,7 +17842,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -17878,7 +17878,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -17909,7 +17909,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -18034,7 +18034,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -18187,7 +18187,7 @@ class Search(SCPICmdRead): - ``.search``: The ``SEARCH:SEARCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py index 87602218..c2f2314b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py @@ -41,7 +41,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventRepeatcount(SCPICmdWrite, SCPICmdRead): @@ -158,7 +158,7 @@ class ActoneventActionVisual(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:VISUAL:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionVisualState(device, f"{self._cmd_syntax}:STATE") @@ -230,7 +230,7 @@ class ActoneventActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -309,7 +309,7 @@ class ActoneventActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -387,7 +387,7 @@ class ActoneventActionSavewfm(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:SAVEWFM:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionSavewfmState(device, f"{self._cmd_syntax}:STATE") @@ -460,7 +460,7 @@ class ActoneventActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:SAVEIMAGE:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -534,7 +534,7 @@ class ActoneventActionPrint(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:PRINT:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionPrintState(device, f"{self._cmd_syntax}:STATE") @@ -634,7 +634,7 @@ class ActoneventActionEmailSetup(SCPICmdRead): - ``.toaddress``: The ``ACTONEVent:ACTION:EMAIL:SETUp:TOADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._toaddress = ActoneventActionEmailSetupToaddress( device, f"{self._cmd_syntax}:TOADDRess" @@ -680,7 +680,7 @@ class ActoneventActionEmail(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:EMAIL:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._setup = ActoneventActionEmailSetup(device, f"{self._cmd_syntax}:SETUp") self._state = ActoneventActionEmailState(device, f"{self._cmd_syntax}:STATE") @@ -768,7 +768,7 @@ class ActoneventActionAuxout(SCPICmdRead): - ``.state``: The ``ACTONEVent:ACTION:AUXOUT:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventActionAuxoutState(device, f"{self._cmd_syntax}:STATE") @@ -821,7 +821,7 @@ class ActoneventAction(SCPICmdRead): - ``.visual``: The ``ACTONEVent:ACTION:VISUAL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxout = ActoneventActionAuxout(device, f"{self._cmd_syntax}:AUXOUT") self._email = ActoneventActionEmail(device, f"{self._cmd_syntax}:EMAIL") @@ -961,7 +961,9 @@ class Actonevent(SCPICmdRead): - ``.repeatcount``: The ``ACTONEVent:REPEATCount`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACTONEVent") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACTONEVent" + ) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventAction(device, f"{self._cmd_syntax}:ACTION") self._eventtype = ActoneventEventtype(device, f"{self._cmd_syntax}:EVENTTYPe") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py index e0c83f78..dcf99e6b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): @@ -109,7 +109,7 @@ class AfgSquare(SCPICmdRead): - ``.duty``: The ``AFG:SQUare:DUty`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._duty = AfgSquareDuty(device, f"{self._cmd_syntax}:DUty") @@ -177,7 +177,7 @@ class AfgRamp(SCPICmdRead): - ``.symmetry``: The ``AFG:RAMP:SYMmetry`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symmetry = AfgRampSymmetry(device, f"{self._cmd_syntax}:SYMmetry") @@ -243,7 +243,7 @@ class AfgPulse(SCPICmdRead): - ``.width``: The ``AFG:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._width = AfgPulseWidth(device, f"{self._cmd_syntax}:WIDth") @@ -378,7 +378,7 @@ class AfgOutputLoad(SCPICmdRead): - ``.impedance``: The ``AFG:OUTPut:LOAd:IMPEDance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._impedance = AfgOutputLoadImpedance(device, f"{self._cmd_syntax}:IMPEDance") @@ -422,7 +422,7 @@ class AfgOutput(SCPICmdRead): - ``.state``: The ``AFG:OUTPut:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._load = AfgOutputLoad(device, f"{self._cmd_syntax}:LOAd") self._state = AfgOutputState(device, f"{self._cmd_syntax}:STATE") @@ -552,7 +552,7 @@ class AfgNoiseadd(SCPICmdRead): - ``.state``: The ``AFG:NOISEAdd:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._percent = AfgNoiseaddPercent(device, f"{self._cmd_syntax}:PERCent") self._state = AfgNoiseaddState(device, f"{self._cmd_syntax}:STATE") @@ -855,7 +855,7 @@ class AfgArbitraryEmemPoints(SCPICmdWrite, SCPICmdRead): - ``.encdg``: The ``AFG:ARBitrary:EMEM:POINTS:ENCdg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._byteorder = AfgArbitraryEmemPointsByteorder(device, f"{self._cmd_syntax}:BYTEORDer") self._encdg = AfgArbitraryEmemPointsEncdg(device, f"{self._cmd_syntax}:ENCdg") @@ -1020,7 +1020,7 @@ class AfgArbitraryEmem(SCPICmdRead): - ``.points``: The ``AFG:ARBitrary:EMEM:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = AfgArbitraryEmemFunction(device, f"{self._cmd_syntax}:FUNCtion") self._generate = AfgArbitraryEmemGenerate(device, f"{self._cmd_syntax}:GENerate") @@ -1230,7 +1230,7 @@ class AfgArbitraryArbItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.time``: The ``AFG:ARBitrary:ARB:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._date = AfgArbitraryArbItemDate(device, f"{self._cmd_syntax}:DATE") self._label = AfgArbitraryArbItemLabel(device, f"{self._cmd_syntax}:LABel") @@ -1310,7 +1310,7 @@ class AfgArbitrary(SCPICmdRead): - ``.emem``: The ``AFG:ARBitrary:EMEM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arb: Dict[int, AfgArbitraryArbItem] = DefaultDictPassKeyToFactory( lambda x: AfgArbitraryArbItem(device, f"{self._cmd_syntax}:ARB{x}") @@ -1402,7 +1402,7 @@ class Afg(SCPICmdRead): - ``.square``: The ``AFG:SQUare`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AFG") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AFG") -> None: super().__init__(device, cmd_syntax) self._amplitude = AfgAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._arbitrary = AfgArbitrary(device, f"{self._cmd_syntax}:ARBitrary") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py index 616eae20..03313831 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): @@ -104,7 +104,7 @@ class AliasDelete(SCPICmdRead): - ``.name``: The ``ALIas:DELEte:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = AliasDeleteAll(device, f"{self._cmd_syntax}:ALL") self._name = AliasDeleteName(device, f"{self._cmd_syntax}:NAMe") @@ -209,7 +209,7 @@ class Alias(SCPICmdRead): - ``.state``: The ``ALIas:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ALIas") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ALIas") -> None: super().__init__(device, cmd_syntax) self._catalog = AliasCatalog(device, f"{self._cmd_syntax}:CATalog") self._define = AliasDefine(device, f"{self._cmd_syntax}:DEFine") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py index e827024e..8294d11c 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationType(SCPICmdWrite, SCPICmdRead): @@ -141,7 +141,7 @@ class ApplicationLicenseSlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``APPLication:LICENSE:SLOT:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._location = ApplicationLicenseSlotItemLocation(device, f"{self._cmd_syntax}:LOCation") self._transfer = ApplicationLicenseSlotItemTransfer(device, f"{self._cmd_syntax}:TRANSFER") @@ -233,7 +233,7 @@ class ApplicationLicense(SCPICmdRead): - ``.slot``: The ``APPLication:LICENSE:SLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slot: Dict[int, ApplicationLicenseSlotItem] = DefaultDictPassKeyToFactory( lambda x: ApplicationLicenseSlotItem(device, f"{self._cmd_syntax}:SLOT{x}") @@ -270,7 +270,7 @@ class Application(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "APPLication" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "APPLication" ) -> None: super().__init__(device, cmd_syntax) self._license = ApplicationLicense(device, f"{self._cmd_syntax}:LICENSE") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py index 9e2a99e8..64f0e5eb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): @@ -74,7 +74,7 @@ class Autoset(SCPICmdWrite, SCPICmdRead): - ``.enable``: The ``AUTOSet:ENAble`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSet") -> None: super().__init__(device, cmd_syntax) self._enable = AutosetEnable(device, f"{self._cmd_syntax}:ENAble") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py index 415f7e7f..446f4fb1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinProbeUnits(SCPICmdRead): @@ -149,7 +149,7 @@ class AuxinProbeId(SCPICmdRead): - ``.type``: The ``AUXin:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = AuxinProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = AuxinProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -284,7 +284,7 @@ class AuxinProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``AUXin:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AuxinProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -363,7 +363,7 @@ class AuxinProbeCalibrate(SCPICmdRead): - ``.calibratable``: The ``AUXin:PRObe:CALibrate:CALIBRATABLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = AuxinProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -444,7 +444,7 @@ class AuxinProbe(SCPICmdWriteNoArguments, SCPICmdRead): - ``.units``: The ``AUXin:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = AuxinProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = AuxinProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -697,7 +697,7 @@ class Auxin(SCPICmdRead): - ``.probe``: The ``AUXin:PRObe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXin") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXin") -> None: super().__init__(device, cmd_syntax) self._probe = AuxinProbe(device, f"{self._cmd_syntax}:PRObe") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py index f1ad4523..20c74697 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): @@ -64,7 +64,7 @@ class Auxout(SCPICmdRead): - ``.source``: The ``AUXOut:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXOut") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXOut") -> None: super().__init__(device, cmd_syntax) self._source = AuxoutSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py index 1bf65979..9905c5c7 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py @@ -238,7 +238,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusUpperthresholdRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -373,7 +373,7 @@ class BusUpperthreshold(SCPICmdRead): - ``.math1``: The ``BUS:UPPerthreshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -572,7 +572,7 @@ class BusThreshold(SCPICmdRead): - ``.d``: The ``BUS:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -770,7 +770,7 @@ class BusLowerthreshold(SCPICmdRead): - ``.math1``: The ``BUS:LOWerthreshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1002,7 +1002,7 @@ class BusBItemUsbSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:USB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemUsbSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -1164,7 +1164,7 @@ class BusBItemUsb(SCPICmdRead): - ``.source``: The ``BUS:B:USB:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemUsbBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemUsbProbe(device, f"{self._cmd_syntax}:PRObe") @@ -1364,7 +1364,7 @@ class BusBItemSpiSs(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSsPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSsSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1489,7 +1489,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SELect:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1614,7 +1614,7 @@ class BusBItemSpiSclk(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SCLk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSclkPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSclkSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1810,7 +1810,7 @@ class BusBItemSpiDataOut(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:OUT:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataOutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiDataOutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1935,7 +1935,7 @@ class BusBItemSpiDataMosi(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:MOSI:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataMosiPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiDataMosiSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2061,7 +2061,7 @@ class BusBItemSpiDataMiso(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:MISO:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataMisoPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiDataMisoSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2187,7 +2187,7 @@ class BusBItemSpiDataIn(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:IN:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataInPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiDataInSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2266,7 +2266,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = BusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -2428,7 +2428,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2540,7 +2540,7 @@ class BusBItemSpi(SCPICmdRead): - ``.ss``: The ``BUS:B:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._data = BusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -2753,7 +2753,7 @@ class BusBItemRs232cTx(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:TX:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemRs232cTxSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2827,7 +2827,7 @@ class BusBItemRs232cRx(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:RX:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemRs232cRxSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3039,7 +3039,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.tx``: The ``BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -3384,7 +3384,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._isclocked = BusBItemParallelClockIsclocked(device, f"{self._cmd_syntax}:ISCLOCKed") @@ -3513,7 +3513,7 @@ class BusBItemParallelBitItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:BIT:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemParallelBitItemSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3561,7 +3561,7 @@ class BusBItemParallel(SCPICmdRead): - ``.width``: The ``BUS:B:PARallel:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bit: Dict[int, BusBItemParallelBitItem] = DefaultDictPassKeyToFactory( lambda x: BusBItemParallelBitItem(device, f"{self._cmd_syntax}:BIT{x}") @@ -3728,7 +3728,7 @@ class BusBItemMil1553bResponsetime(SCPICmdRead): - ``.minimum``: The ``BUS:B:MIL1553B:RESPonsetime:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = BusBItemMil1553bResponsetimeMaximum(device, f"{self._cmd_syntax}:MAXimum") self._minimum = BusBItemMil1553bResponsetimeMinimum(device, f"{self._cmd_syntax}:MINimum") @@ -3838,7 +3838,7 @@ class BusBItemMil1553b(SCPICmdRead): - ``.source``: The ``BUS:B:MIL1553B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemMil1553bPolarity(device, f"{self._cmd_syntax}:POLarity") self._responsetime = BusBItemMil1553bResponsetime( @@ -4118,7 +4118,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -4379,7 +4379,7 @@ class BusBItemI2cSdata(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:SDAta:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cSdataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4451,7 +4451,7 @@ class BusBItemI2cSclk(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:SCLk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cSclkSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4523,7 +4523,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4595,7 +4595,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4665,7 +4665,7 @@ class BusBItemI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``BUS:B:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = BusBItemI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -4712,7 +4712,7 @@ class BusBItemI2c(SCPICmdRead): - ``.sdata``: The ``BUS:B:I2C:SDAta`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = BusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") @@ -4911,7 +4911,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.source``: The ``BUS:B:FLEXray:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHannel") @@ -5158,7 +5158,7 @@ class BusBItemEthernetSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemEthernetSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -5328,7 +5328,7 @@ class BusBItemEthernet(SCPICmdRead): - ``.type``: The ``BUS:B:ETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._protocol = BusBItemEthernetProtocol(device, f"{self._cmd_syntax}:PROTOcol") self._probe = BusBItemEthernetProbe(device, f"{self._cmd_syntax}:PRObe") @@ -5512,7 +5512,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.type``: The ``BUS:B:DISplay:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemDisplayFormat(device, f"{self._cmd_syntax}:FORMat") self._type = BusBItemDisplayType(device, f"{self._cmd_syntax}:TYPe") @@ -5754,7 +5754,7 @@ class BusBItemCanFd(SCPICmdRead): - ``.standard``: The ``BUS:B:CAN:FD:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanFdBitrate(device, f"{self._cmd_syntax}:BITRate") self._standard = BusBItemCanFdStandard(device, f"{self._cmd_syntax}:STANDard") @@ -5856,7 +5856,7 @@ class BusBItemCan(SCPICmdRead): - ``.standard``: The ``BUS:B:CAN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._fd = BusBItemCanFd(device, f"{self._cmd_syntax}:FD") @@ -6087,7 +6087,7 @@ class BusBItemAudioWordsel(SCPICmdRead): - ``.source``: The ``BUS:B:AUDio:WORDSel:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioWordselPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioWordselSource(device, f"{self._cmd_syntax}:SOUrce") @@ -6243,7 +6243,7 @@ class BusBItemAudioFramesync(SCPICmdRead): - ``.source``: The ``BUS:B:AUDio:FRAMESync:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioFramesyncPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioFramesyncSource(device, f"{self._cmd_syntax}:SOUrce") @@ -6347,7 +6347,7 @@ class BusBItemAudioFrame(SCPICmdRead): - ``.size``: The ``BUS:B:AUDio:FRAME:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemAudioFrameSize(device, f"{self._cmd_syntax}:SIZe") @@ -6417,7 +6417,7 @@ class BusBItemAudioDisplay(SCPICmdRead): - ``.format``: The ``BUS:B:AUDio:DISplay:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemAudioDisplayFormat(device, f"{self._cmd_syntax}:FORMat") @@ -6541,7 +6541,7 @@ class BusBItemAudioData(SCPICmdRead): - ``.source``: The ``BUS:B:AUDio:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemAudioDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -6694,7 +6694,7 @@ class BusBItemAudioClock(SCPICmdRead): - ``.source``: The ``BUS:B:AUDio:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -6791,7 +6791,7 @@ class BusBItemAudioChannel(SCPICmdRead): - ``.size``: The ``BUS:B:AUDio:CHANnel:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemAudioChannelSize(device, f"{self._cmd_syntax}:SIZe") @@ -6899,7 +6899,7 @@ class BusBItemAudio(SCPICmdRead): - ``.wordsel``: The ``BUS:B:AUDio:WORDSel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitdelay = BusBItemAudioBitdelay(device, f"{self._cmd_syntax}:BITDelay") self._bitorder = BusBItemAudioBitorder(device, f"{self._cmd_syntax}:BITOrder") @@ -7202,7 +7202,7 @@ class BusBItemArinc429aData(SCPICmdRead): - ``.format``: The ``BUS:B:ARINC429A:DATA:FORMAT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemArinc429aDataFormat(device, f"{self._cmd_syntax}:FORMAT") @@ -7280,7 +7280,7 @@ class BusBItemArinc429a(SCPICmdRead): - ``.source``: The ``BUS:B:ARINC429A:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemArinc429aBitrate(device, f"{self._cmd_syntax}:BITRate") self._data = BusBItemArinc429aData(device, f"{self._cmd_syntax}:DATA") @@ -7418,7 +7418,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = BusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = BusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -7821,7 +7821,7 @@ class Bus(SCPICmdRead): - ``.upperthreshold``: The ``BUS:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, BusBItem] = DefaultDictPassKeyToFactory( lambda x: BusBItem(device, f"{self._cmd_syntax}:B{x}") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py index efd0d492..646763f9 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateTemperature(SCPICmdRead): @@ -116,7 +116,7 @@ class CalibrateRf(SCPICmdWriteNoArguments, SCPICmdRead): - ``.status``: The ``CALibrate:RF:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = CalibrateRfStart(device, f"{self._cmd_syntax}:STARt") self._status = CalibrateRfStatus(device, f"{self._cmd_syntax}:STATus") @@ -219,7 +219,7 @@ class CalibrateResultsSpc(SCPICmdRead): - ``.scope``: The ``CALibrate:RESults:SPC:SCOPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = CalibrateResultsSpcRf(device, f"{self._cmd_syntax}:RF") self._scope = CalibrateResultsSpcScope(device, f"{self._cmd_syntax}:SCOPE") @@ -349,7 +349,7 @@ class CalibrateResultsFactory(SCPICmdRead): - ``.scope``: The ``CALibrate:RESults:FACtory:SCOPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._afg = CalibrateResultsFactoryAfg(device, f"{self._cmd_syntax}:AFG") self._rf = CalibrateResultsFactoryRf(device, f"{self._cmd_syntax}:RF") @@ -446,7 +446,7 @@ class CalibrateResults(SCPICmdRead): - ``.spc``: The ``CALibrate:RESults:SPC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._factory = CalibrateResultsFactory(device, f"{self._cmd_syntax}:FACtory") self._spc = CalibrateResultsSpc(device, f"{self._cmd_syntax}:SPC") @@ -580,7 +580,7 @@ class CalibrateInternalStatus(SCPICmdRead): - ``.scope``: The ``CALibrate:INTERNal:STATus:SCOPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = CalibrateInternalStatusRf(device, f"{self._cmd_syntax}:RF") self._scope = CalibrateInternalStatusScope(device, f"{self._cmd_syntax}:SCOPE") @@ -670,7 +670,7 @@ class CalibrateInternal(SCPICmdWriteNoArguments, SCPICmdRead): - ``.status``: The ``CALibrate:INTERNal:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = CalibrateInternalStart(device, f"{self._cmd_syntax}:STARt") self._status = CalibrateInternalStatus(device, f"{self._cmd_syntax}:STATus") @@ -801,7 +801,7 @@ class CalibrateFactoryStatus(SCPICmdRead): - ``.scope``: The ``CALibrate:FACtory:STATus:SCOPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._afg = CalibrateFactoryStatusAfg(device, f"{self._cmd_syntax}:AFG") self._rf = CalibrateFactoryStatusRf(device, f"{self._cmd_syntax}:RF") @@ -901,7 +901,7 @@ class CalibrateFactoryAfg(SCPICmdRead): - ``.value``: The ``CALibrate:FACtory:AFG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = CalibrateFactoryAfgValue(device, f"{self._cmd_syntax}:VALue") @@ -938,7 +938,7 @@ class CalibrateFactory(SCPICmdRead): - ``.status``: The ``CALibrate:FACtory:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._afg = CalibrateFactoryAfg(device, f"{self._cmd_syntax}:AFG") self._status = CalibrateFactoryStatus(device, f"{self._cmd_syntax}:STATus") @@ -999,7 +999,7 @@ class Calibrate(SCPICmdRead): - ``.temperature``: The ``CALibrate:TEMPerature`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibrate") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibrate") -> None: super().__init__(device, cmd_syntax) self._factory = CalibrateFactory(device, f"{self._cmd_syntax}:FACtory") self._internal = CalibrateInternal(device, f"{self._cmd_syntax}:INTERNal") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py index c88760f3..454b7115 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py @@ -70,7 +70,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): @@ -379,7 +379,7 @@ class ChannelProbeId(SCPICmdRead): - ``.type``: The ``CH:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = ChannelProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = ChannelProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -520,7 +520,7 @@ class ChannelProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -638,7 +638,7 @@ class ChannelProbeCalibrate(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:CALibrate:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = ChannelProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -748,7 +748,7 @@ class ChannelProbe(SCPICmdRead): - ``.units``: The ``CH:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = ChannelProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = ChannelProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -1373,7 +1373,7 @@ class ChannelAmpsviavolts(SCPICmdRead): - ``.factor``: The ``CH:AMPSVIAVOLTs:FACtor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = ChannelAmpsviavoltsEnable(device, f"{self._cmd_syntax}:ENAble") self._factor = ChannelAmpsviavoltsFactor(device, f"{self._cmd_syntax}:FACtor") @@ -1470,7 +1470,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.yunits``: The ``CH:YUNits`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._ampsviavolts = ChannelAmpsviavolts(device, f"{self._cmd_syntax}:AMPSVIAVOLTs") self._bandwidth = ChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py index 2986b8ce..b63628df 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): @@ -126,7 +126,7 @@ class DigitalBit(ValidatedDigitalBit, SCPICmdWriteNoArguments, SCPICmdRead): - ``.threshold``: The ``D:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "D") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "D") -> None: super().__init__(device, cmd_syntax) self._label = DigitalBitLabel(device, f"{self._cmd_syntax}:LABel") self._position = DigitalBitPosition(device, f"{self._cmd_syntax}:POSition") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py index c9350b40..b64123f2 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): @@ -294,7 +294,7 @@ class Data(SCPICmdWrite, SCPICmdRead): - ``.width``: The ``DATa:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATa") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATa") -> None: super().__init__(device, cmd_syntax) self._destination = DataDestination(device, f"{self._cmd_syntax}:DESTination") self._encdg = DataEncdg(device, f"{self._cmd_syntax}:ENCdg") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py index 06ef9ea2..112ecbcc 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): @@ -130,7 +130,7 @@ class DiagResult(SCPICmdRead): - ``.log``: The ``DIAg:RESUlt:LOG`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._flag = DiagResultFlag(device, f"{self._cmd_syntax}:FLAg") self._log = DiagResultLog(device, f"{self._cmd_syntax}:LOG") @@ -243,7 +243,7 @@ class DiagLoopOption(SCPICmdWrite, SCPICmdRead): - ``.ntimes``: The ``DIAg:LOOP:OPTion:NTIMes`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ntimes = DiagLoopOptionNtimes(device, f"{self._cmd_syntax}:NTIMes") @@ -286,7 +286,7 @@ class DiagLoop(SCPICmdRead): - ``.stop``: The ``DIAg:LOOP:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._option = DiagLoopOption(device, f"{self._cmd_syntax}:OPTion") self._stop = DiagLoopStop(device, f"{self._cmd_syntax}:STOP") @@ -374,7 +374,7 @@ class DiagIndividual(SCPICmdRead): - ``.testnumber``: The ``DIAg:INDIvidual:TESTnumber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._testnumber = DiagIndividualTestnumber(device, f"{self._cmd_syntax}:TESTnumber") @@ -419,7 +419,7 @@ class Diag(SCPICmdRead): - ``.state``: The ``DIAg:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAg") -> None: super().__init__(device, cmd_syntax) self._individual = DiagIndividual(device, f"{self._cmd_syntax}:INDIvidual") self._loop = DiagLoop(device, f"{self._cmd_syntax}:LOOP") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py index 11043423..0bf6b81f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DvmSource(SCPICmdWrite, SCPICmdRead): @@ -215,7 +215,7 @@ class DvmMeasurementHistory(SCPICmdRead): - ``.minimum``: The ``DVM:MEASUrement:HIStory:MINImum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._average = DvmMeasurementHistoryAverage(device, f"{self._cmd_syntax}:AVErage") self._maximum = DvmMeasurementHistoryMaximum(device, f"{self._cmd_syntax}:MAXimum") @@ -319,7 +319,7 @@ class DvmMeasurement(SCPICmdRead): - ``.value``: The ``DVM:MEASUrement:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = DvmMeasurementFrequency(device, f"{self._cmd_syntax}:FREQuency") self._history = DvmMeasurementHistory(device, f"{self._cmd_syntax}:HIStory") @@ -494,7 +494,7 @@ class Dvm(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``DVM:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DVM") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DVM") -> None: super().__init__(device, cmd_syntax) self._autorange = DvmAutorange(device, f"{self._cmd_syntax}:AUTORange") self._displaystyle = DvmDisplaystyle(device, f"{self._cmd_syntax}:DISPLAYSTYle") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py index d1a1e932..bcc2b167 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EmailSetupSmtpserver(SCPICmdWrite, SCPICmdRead): @@ -189,7 +189,7 @@ class EmailSetup(SCPICmdRead): - ``.smtpserver``: The ``EMAIL:SETUp:SMTPServer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fromaddress = EmailSetupFromaddress(device, f"{self._cmd_syntax}:FROMADDRess") self._hostaliasname = EmailSetupHostaliasname(device, f"{self._cmd_syntax}:HOSTALIASNAMe") @@ -351,7 +351,7 @@ class Email(SCPICmdRead): - ``.setup``: The ``EMAIL:SETUp`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EMAIL") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EMAIL") -> None: super().__init__(device, cmd_syntax) self._setup = EmailSetup(device, f"{self._cmd_syntax}:SETUp") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py index 471510c7..5605d3ae 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): @@ -113,7 +113,7 @@ class EthernetPing(SCPICmdWrite, SCPICmdRead): - ``.status``: The ``ETHERnet:PING:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = EthernetPingStatus(device, f"{self._cmd_syntax}:STATus") @@ -337,7 +337,7 @@ class EthernetLxiLanPassword(SCPICmdRead): - ``.escopeenable``: The ``ETHERnet:LXI:LAN:PASSWord:ESCOPEENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = EthernetLxiLanPasswordEnable(device, f"{self._cmd_syntax}:ENABle") self._escopeenable = EthernetLxiLanPasswordEscopeenable( @@ -419,7 +419,7 @@ class EthernetLxiLan(SCPICmdRead): - ``.status``: The ``ETHERnet:LXI:LAN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._password = EthernetLxiLanPassword(device, f"{self._cmd_syntax}:PASSWord") self._reset = EthernetLxiLanReset(device, f"{self._cmd_syntax}:RESET") @@ -513,7 +513,7 @@ class EthernetLxi(SCPICmdRead): - ``.lan``: The ``ETHERnet:LXI:LAN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lan = EthernetLxiLan(device, f"{self._cmd_syntax}:LAN") @@ -623,7 +623,7 @@ class EthernetGateway(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:GATEWay:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetGatewayIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -684,7 +684,7 @@ class EthernetEnet(SCPICmdRead): - ``.address``: The ``ETHERnet:ENET:ADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = EthernetEnetAddress(device, f"{self._cmd_syntax}:ADDress") @@ -769,7 +769,7 @@ class EthernetDns(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:DNS:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetDnsIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -850,7 +850,7 @@ class Ethernet(SCPICmdRead): - ``.subnetmask``: The ``ETHERnet:SUBNETMask`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ETHERnet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ETHERnet") -> None: super().__init__(device, cmd_syntax) self._dhcpbootp = EthernetDhcpbootp(device, f"{self._cmd_syntax}:DHCPbootp") self._dns = EthernetDns(device, f"{self._cmd_syntax}:DNS") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py index 7706086a..90ae33c4 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): @@ -91,7 +91,7 @@ class FilesystemUnmount(SCPICmdRead): - ``.drive``: The ``FILESystem:UNMOUNT:DRIve`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drive = FilesystemUnmountDrive(device, f"{self._cmd_syntax}:DRIve") @@ -265,7 +265,7 @@ class FilesystemMount(SCPICmdRead): - ``.list``: The ``FILESystem:MOUNT:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._available = FilesystemMountAvailable(device, f"{self._cmd_syntax}:AVAILable") self._drive = FilesystemMountDrive(device, f"{self._cmd_syntax}:DRIve") @@ -555,7 +555,9 @@ class Filesystem(SCPICmdRead): - ``.writefile``: The ``FILESystem:WRITEFile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILESystem") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILESystem" + ) -> None: super().__init__(device, cmd_syntax) self._copy = FilesystemCopy(device, f"{self._cmd_syntax}:COPy") self._cwd = FilesystemCwd(device, f"{self._cmd_syntax}:CWD") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py index 5d43669e..376d2034 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): @@ -149,7 +149,7 @@ class Fpanel(SCPICmdRead): - ``.turn``: The ``FPAnel:TURN`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FPAnel") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FPAnel") -> None: super().__init__(device, cmd_syntax) self._hold = FpanelHold(device, f"{self._cmd_syntax}:HOLD") self._press = FpanelPress(device, f"{self._cmd_syntax}:PRESS") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py index 15d42401..1fc357eb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): @@ -72,7 +72,7 @@ class Gpibusb(SCPICmdRead): - ``.id``: The ``GPIBUsb:ID`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "GPIBUsb") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "GPIBUsb") -> None: super().__init__(device, cmd_syntax) self._address = GpibusbAddress(device, f"{self._cmd_syntax}:ADDress") self._id = GpibusbId(device, f"{self._cmd_syntax}:ID") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py index f9d4c149..c537840f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): @@ -146,7 +146,7 @@ class HardcopyPrinter(SCPICmdRead): - ``.rename``: The ``HARDCopy:PRINTer:REName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._add = HardcopyPrinterAdd(device, f"{self._cmd_syntax}:ADD") self._delete = HardcopyPrinterDelete(device, f"{self._cmd_syntax}:DELete") @@ -394,7 +394,7 @@ class Hardcopy(SCPICmdWrite, SCPICmdRead): - ``.printer``: The ``HARDCopy:PRINTer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HARDCopy") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HARDCopy") -> None: super().__init__(device, cmd_syntax) self._activeprinter = HardcopyActiveprinter(device, f"{self._cmd_syntax}:ACTIVeprinter") self._inksaver = HardcopyInksaver(device, f"{self._cmd_syntax}:INKSaver") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py index 0ce10477..9809adce 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramStart(SCPICmdRead): @@ -308,7 +308,7 @@ class Histogram(SCPICmdRead): - ``.start``: The ``HIStogram:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HIStogram") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HIStogram") -> None: super().__init__(device, cmd_syntax) self._box = HistogramBox(device, f"{self._cmd_syntax}:BOX") self._boxpcnt = HistogramBoxpcnt(device, f"{self._cmd_syntax}:BOXPcnt") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py index 913a28cf..78124085 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): @@ -200,7 +200,7 @@ class HorizontalDigitalSamplerate(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:SAMPLERate:MAIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalSamplerateMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalSamplerateMain(device, f"{self._cmd_syntax}:MAIn") @@ -301,7 +301,7 @@ class HorizontalDigitalRecordlength(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:RECOrdlength:MAIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalRecordlengthMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalRecordlengthMain(device, f"{self._cmd_syntax}:MAIn") @@ -362,7 +362,7 @@ class HorizontalDigital(SCPICmdRead): - ``.samplerate``: The ``HORizontal:DIGital:SAMPLERate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recordlength = HorizontalDigitalRecordlength( device, f"{self._cmd_syntax}:RECOrdlength" @@ -464,7 +464,7 @@ class HorizontalDelay(SCPICmdRead): - ``.time``: The ``HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalDelayMode(device, f"{self._cmd_syntax}:MODe") self._time = HorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -552,7 +552,9 @@ class Horizontal(SCPICmdRead): - ``.scale``: The ``HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._delay = HorizontalDelay(device, f"{self._cmd_syntax}:DELay") self._digital = HorizontalDigital(device, f"{self._cmd_syntax}:DIGital") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py index c9636e78..4dbc5bde 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkUserlist(SCPICmdWrite, SCPICmdRead): @@ -121,7 +121,7 @@ class MarkSelectedZoom(SCPICmdRead): - ``.position``: The ``MARK:SELected:ZOOm:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = MarkSelectedZoomPosition(device, f"{self._cmd_syntax}:POSition") @@ -293,7 +293,7 @@ class MarkSelected(SCPICmdRead): - ``.zoom``: The ``MARK:SELected:ZOOm`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._end = MarkSelectedEnd(device, f"{self._cmd_syntax}:END") self._focus = MarkSelectedFocus(device, f"{self._cmd_syntax}:FOCUS") @@ -578,7 +578,7 @@ class Mark(SCPICmdWrite, SCPICmdRead): - ``.userlist``: The ``MARK:USERLIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MARK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MARK") -> None: super().__init__(device, cmd_syntax) self._create = MarkCreate(device, f"{self._cmd_syntax}:CREATE") self._delete = MarkDelete(device, f"{self._cmd_syntax}:DELEte") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py index d601919b..cbe887cb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkerType(SCPICmdWrite, SCPICmdRead): @@ -146,7 +146,7 @@ class MarkerReference(SCPICmdWrite, SCPICmdRead): - ``.frequency``: The ``MARKER:REFERence:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MarkerReferenceAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._frequency = MarkerReferenceFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -334,7 +334,7 @@ class MarkerPeak(SCPICmdRead): - ``.threshold``: The ``MARKER:PEAK:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._excursion = MarkerPeakExcursion(device, f"{self._cmd_syntax}:EXCURsion") self._maximum = MarkerPeakMaximum(device, f"{self._cmd_syntax}:MAXimum") @@ -603,7 +603,7 @@ class MarkerMItemFrequency(SCPICmdRead): - ``.delta``: The ``MARKER:M:FREQuency:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MarkerMItemFrequencyAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._delta = MarkerMItemFrequencyDelta(device, f"{self._cmd_syntax}:DELTa") @@ -715,7 +715,7 @@ class MarkerMItemAmplitude(SCPICmdRead): - ``.delta``: The ``MARKER:M:AMPLitude:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MarkerMItemAmplitudeAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._delta = MarkerMItemAmplitudeDelta(device, f"{self._cmd_syntax}:DELTa") @@ -780,7 +780,7 @@ class MarkerMItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.phasenoise``: The ``MARKER:M:PHASENoise`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MarkerMItemAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._frequency = MarkerMItemFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -875,7 +875,7 @@ class Marker(SCPICmdRead): - ``.type``: The ``MARKER:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MARKER") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MARKER") -> None: super().__init__(device, cmd_syntax) self._m: Dict[int, MarkerMItem] = DefaultDictPassKeyToFactory( lambda x: MarkerMItem(device, f"{self._cmd_syntax}:M{x}") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py index 167a2068..6904c96a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Math1VerticalUnits(SCPICmdRead): @@ -128,7 +128,7 @@ class Math1Vertical(SCPICmdRead): - ``.units``: The ``MATH1:VERTical:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = Math1VerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = Math1VerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -309,7 +309,7 @@ class Math1Spectral(SCPICmdRead): - ``.window``: The ``MATH1:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mag = Math1SpectralMag(device, f"{self._cmd_syntax}:MAG") self._window = Math1SpectralWindow(device, f"{self._cmd_syntax}:WINdow") @@ -481,7 +481,7 @@ class Math1Horizontal(SCPICmdRead): - ``.units``: The ``MATH1:HORizontal:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = Math1HorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = Math1HorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -715,7 +715,7 @@ class Math1(SCPICmdRead): - ``.vertical``: The ``MATH1:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH1") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH1") -> None: super().__init__(device, cmd_syntax) self._autoscale = Math1Autoscale(device, f"{self._cmd_syntax}:AUTOSCale") self._define = Math1Define(device, f"{self._cmd_syntax}:DEFine") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py index 726644d0..a1edbfae 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PictbridgePrintqual(SCPICmdWrite, SCPICmdRead): @@ -268,7 +268,9 @@ class Pictbridge(SCPICmdRead): - ``.printqual``: The ``PICTBridge:PRINTQual`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PICTBridge") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "PICTBridge" + ) -> None: super().__init__(device, cmd_syntax) self._dateprint = PictbridgeDateprint(device, f"{self._cmd_syntax}:DATEPrint") self._default = PictbridgeDefault(device, f"{self._cmd_syntax}:DEFault") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py index 2cde614d..e78dacb8 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerVoltagesource(SCPICmdWrite, SCPICmdRead): @@ -413,7 +413,7 @@ class PowerSwlossTotalPower(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TOTal:POWer:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossTotalPowerMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossTotalPowerMean(device, f"{self._cmd_syntax}:MEAN") @@ -545,7 +545,7 @@ class PowerSwlossTotalEnergy(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TOTal:ENERGY:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossTotalEnergyMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossTotalEnergyMean(device, f"{self._cmd_syntax}:MEAN") @@ -622,7 +622,7 @@ class PowerSwlossTotal(SCPICmdRead): - ``.power``: The ``POWer:SWLoss:TOTal:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._energy = PowerSwlossTotalEnergy(device, f"{self._cmd_syntax}:ENERGY") self._power = PowerSwlossTotalPower(device, f"{self._cmd_syntax}:POWer") @@ -728,7 +728,7 @@ class PowerSwlossTonPower(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TON:POWer:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossTonPowerMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossTonPowerMean(device, f"{self._cmd_syntax}:MEAN") @@ -860,7 +860,7 @@ class PowerSwlossTonEnergy(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TON:ENERGY:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossTonEnergyMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossTonEnergyMean(device, f"{self._cmd_syntax}:MEAN") @@ -937,7 +937,7 @@ class PowerSwlossTon(SCPICmdRead): - ``.power``: The ``POWer:SWLoss:TON:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._energy = PowerSwlossTonEnergy(device, f"{self._cmd_syntax}:ENERGY") self._power = PowerSwlossTonPower(device, f"{self._cmd_syntax}:POWer") @@ -1043,7 +1043,7 @@ class PowerSwlossToffPower(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TOFF:POWer:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossToffPowerMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossToffPowerMean(device, f"{self._cmd_syntax}:MEAN") @@ -1175,7 +1175,7 @@ class PowerSwlossToffEnergy(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:TOFF:ENERGY:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossToffEnergyMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossToffEnergyMean(device, f"{self._cmd_syntax}:MEAN") @@ -1252,7 +1252,7 @@ class PowerSwlossToff(SCPICmdRead): - ``.power``: The ``POWer:SWLoss:TOFF:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._energy = PowerSwlossToffEnergy(device, f"{self._cmd_syntax}:ENERGY") self._power = PowerSwlossToffPower(device, f"{self._cmd_syntax}:POWer") @@ -1388,7 +1388,7 @@ class PowerSwlossReflevelPercent(SCPICmdRead): - ``.lowvoltage``: The ``POWer:SWLoss:REFLevel:PERCent:LOWVoltage`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gatemid = PowerSwlossReflevelPercentGatemid(device, f"{self._cmd_syntax}:GATEMid") self._lowcurrent = PowerSwlossReflevelPercentLowcurrent( @@ -1584,7 +1584,7 @@ class PowerSwlossReflevelAbsolute(SCPICmdRead): - ``.lowvoltage``: The ``POWer:SWLoss:REFLevel:ABSolute:LOWVoltage`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gatemid = PowerSwlossReflevelAbsoluteGatemid(device, f"{self._cmd_syntax}:GATEMid") self._lowcurrent = PowerSwlossReflevelAbsoluteLowcurrent( @@ -1695,7 +1695,7 @@ class PowerSwlossReflevel(SCPICmdRead): - ``.percent``: The ``POWer:SWLoss:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = PowerSwlossReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._percent = PowerSwlossReflevelPercent(device, f"{self._cmd_syntax}:PERCent") @@ -1836,7 +1836,7 @@ class PowerSwlossGate(SCPICmdRead): - ``.turnon``: The ``POWer:SWLoss:GATe:TURNON`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = PowerSwlossGatePolarity(device, f"{self._cmd_syntax}:POLarity") self._turnon = PowerSwlossGateTurnon(device, f"{self._cmd_syntax}:TURNON") @@ -1984,7 +1984,7 @@ class PowerSwlossConductionPower(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:CONDuction:POWer:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossConductionPowerMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossConductionPowerMean(device, f"{self._cmd_syntax}:MEAN") @@ -2124,7 +2124,7 @@ class PowerSwlossConductionEnergy(SCPICmdRead): - ``.min``: The ``POWer:SWLoss:CONDuction:ENERGY:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = PowerSwlossConductionEnergyMax(device, f"{self._cmd_syntax}:MAX") self._mean = PowerSwlossConductionEnergyMean(device, f"{self._cmd_syntax}:MEAN") @@ -2208,7 +2208,7 @@ class PowerSwlossConduction(SCPICmdRead): - ``.power``: The ``POWer:SWLoss:CONDuction:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._energy = PowerSwlossConductionEnergy(device, f"{self._cmd_syntax}:ENERGY") self._power = PowerSwlossConductionPower(device, f"{self._cmd_syntax}:POWer") @@ -2295,7 +2295,7 @@ class PowerSwloss(SCPICmdRead): - ``.vcesat``: The ``POWer:SWLoss:VCEsat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condcalcmethod = PowerSwlossCondcalcmethod( device, f"{self._cmd_syntax}:CONDCALCmethod" @@ -2607,7 +2607,7 @@ class PowerStatistics(SCPICmdWrite, SCPICmdRead): - ``.weighting``: The ``POWer:STATIstics:WEIghting`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = PowerStatisticsMode(device, f"{self._cmd_syntax}:MODe") self._weighting = PowerStatisticsWeighting(device, f"{self._cmd_syntax}:WEIghting") @@ -2734,7 +2734,7 @@ class PowerSoaResultFailures(SCPICmdRead): - ``.qty``: The ``POWer:SOA:RESult:FAILures:QTY`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qty = PowerSoaResultFailuresQty(device, f"{self._cmd_syntax}:QTY") @@ -2772,7 +2772,7 @@ class PowerSoaResult(SCPICmdRead): - ``.state``: The ``POWer:SOA:RESult:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failures = PowerSoaResultFailures(device, f"{self._cmd_syntax}:FAILures") self._numacq = PowerSoaResultNumacq(device, f"{self._cmd_syntax}:NUMACq") @@ -3043,7 +3043,7 @@ class PowerSoaMask(SCPICmdRead): - ``.stoponviol``: The ``POWer:SOA:MASK:STOPOnviol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._define = PowerSoaMaskDefine(device, f"{self._cmd_syntax}:DEFine") self._maxamps = PowerSoaMaskMaxamps(device, f"{self._cmd_syntax}:MAXAmps") @@ -3345,7 +3345,7 @@ class PowerSoaLog(SCPICmdRead): - ``.ymin``: The ``POWer:SOA:LOG:YMIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xmax = PowerSoaLogXmax(device, f"{self._cmd_syntax}:XMAX") self._xmin = PowerSoaLogXmin(device, f"{self._cmd_syntax}:XMIN") @@ -3564,7 +3564,7 @@ class PowerSoaLinear(SCPICmdRead): - ``.ymin``: The ``POWer:SOA:LINear:YMIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xmax = PowerSoaLinearXmax(device, f"{self._cmd_syntax}:XMAX") self._xmin = PowerSoaLinearXmin(device, f"{self._cmd_syntax}:XMIN") @@ -3692,7 +3692,7 @@ class PowerSoa(SCPICmdRead): - ``.result``: The ``POWer:SOA:RESult`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._linear = PowerSoaLinear(device, f"{self._cmd_syntax}:LINear") self._log = PowerSoaLog(device, f"{self._cmd_syntax}:LOG") @@ -3924,7 +3924,7 @@ class PowerRippleResults(SCPICmdRead): - ``.stddev``: The ``POWer:RIPPle:RESults:STDdev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = PowerRippleResultsAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._max = PowerRippleResultsMax(device, f"{self._cmd_syntax}:MAX") @@ -4053,7 +4053,7 @@ class PowerRipple(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``POWer:RIPPle:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._results = PowerRippleResults(device, f"{self._cmd_syntax}:RESults") self._source = PowerRippleSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4200,7 +4200,7 @@ class PowerReflevelPercent(SCPICmdWrite, SCPICmdRead): - ``.mid``: The ``POWer:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = PowerReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = PowerReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -4444,7 +4444,7 @@ class PowerReflevelAbsolute(SCPICmdWrite, SCPICmdRead): - ``.mid``: The ``POWer:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = PowerReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = PowerReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -4547,7 +4547,7 @@ class PowerReflevel(SCPICmdRead): - ``.percent``: The ``POWer:REFLevel:PERCent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = PowerReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._hysteresis = PowerReflevelHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -5125,7 +5125,7 @@ class PowerQualityDisplay(SCPICmdRead): - ``.vrms``: The ``POWer:QUALity:DISplay:VRMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apppwr = PowerQualityDisplayApppwr(device, f"{self._cmd_syntax}:APPpwr") self._frequency = PowerQualityDisplayFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -5456,7 +5456,7 @@ class PowerQuality(SCPICmdRead): - ``.vrms``: The ``POWer:QUALity:VRMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apppwr = PowerQualityApppwr(device, f"{self._cmd_syntax}:APPpwr") self._display = PowerQualityDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -5793,7 +5793,7 @@ class PowerModulation(SCPICmdRead): - ``.type``: The ``POWer:MODulation:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = PowerModulationSource(device, f"{self._cmd_syntax}:SOUrce") self._type = PowerModulationType(device, f"{self._cmd_syntax}:TYPe") @@ -6191,7 +6191,7 @@ class PowerHarmonicsResultsIec(SCPICmdRead): - ``.power``: The ``POWer:HARMonics:RESults:IEC:POWer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fundamental = PowerHarmonicsResultsIecFundamental( device, f"{self._cmd_syntax}:FUNDamental" @@ -6393,7 +6393,7 @@ class PowerHarmonicsResultsHarItemTestMil(SCPICmdRead): - ``.normal``: The ``POWer:HARMonics:RESults:HAR:TEST:MIL:NORMAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._normal = PowerHarmonicsResultsHarItemTestMilNormal( device, f"{self._cmd_syntax}:NORMAL" @@ -6500,7 +6500,7 @@ class PowerHarmonicsResultsHarItemTestIec(SCPICmdRead): - ``.pohclimit``: The ``POWer:HARMonics:RESults:HAR:TEST:IEC:POHCLIMit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._classalimit = PowerHarmonicsResultsHarItemTestIecClassalimit( device, f"{self._cmd_syntax}:CLASSALIMit" @@ -6591,7 +6591,7 @@ class PowerHarmonicsResultsHarItemTest(SCPICmdRead): - ``.mil``: The ``POWer:HARMonics:RESults:HAR:TEST:MIL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._iec = PowerHarmonicsResultsHarItemTestIec(device, f"{self._cmd_syntax}:IEC") self._mil = PowerHarmonicsResultsHarItemTestMil(device, f"{self._cmd_syntax}:MIL") @@ -6684,7 +6684,7 @@ class PowerHarmonicsResultsHarItemRms(SCPICmdRead): - ``.percent``: The ``POWer:HARMonics:RESults:HAR:RMS:PERCent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = PowerHarmonicsResultsHarItemRmsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -6841,7 +6841,7 @@ class PowerHarmonicsResultsHarItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.test``: The ``POWer:HARMonics:RESults:HAR:TEST`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = PowerHarmonicsResultsHarItemFrequency( device, f"{self._cmd_syntax}:FREQuency" @@ -6997,7 +6997,7 @@ class PowerHarmonicsResults(SCPICmdRead): - ``.thdr``: The ``POWer:HARMonics:RESults:THDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._har: Dict[int, PowerHarmonicsResultsHarItem] = DefaultDictPassKeyToFactory( lambda x: PowerHarmonicsResultsHarItem(device, f"{self._cmd_syntax}:HAR{x}") @@ -7264,7 +7264,7 @@ class PowerHarmonicsMilFundamentalUser(SCPICmdRead): - ``.current``: The ``POWer:HARMonics:MIL:FUNDamental:USER:CURrent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._current = PowerHarmonicsMilFundamentalUserCurrent( device, f"{self._cmd_syntax}:CURrent" @@ -7342,7 +7342,7 @@ class PowerHarmonicsMilFundamental(SCPICmdRead): - ``.user``: The ``POWer:HARMonics:MIL:FUNDamental:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calcmethod = PowerHarmonicsMilFundamentalCalcmethod( device, f"{self._cmd_syntax}:CALCmethod" @@ -7411,7 +7411,7 @@ class PowerHarmonicsMil(SCPICmdRead): - ``.powerlevel``: The ``POWer:HARMonics:MIL:POWERLEVel`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fundamental = PowerHarmonicsMilFundamental(device, f"{self._cmd_syntax}:FUNDamental") self._linefrequency = PowerHarmonicsMilLinefrequency( @@ -7716,7 +7716,7 @@ class PowerHarmonicsIec(SCPICmdRead): - ``.powerfactor``: The ``POWer:HARMonics:IEC:POWERFACtor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = PowerHarmonicsIecClass(device, f"{self._cmd_syntax}:CLAss") self._filter = PowerHarmonicsIecFilter(device, f"{self._cmd_syntax}:FILter") @@ -8004,7 +8004,7 @@ class PowerHarmonicsFreqref(SCPICmdWrite, SCPICmdRead): - ``.fixedfreqvalue``: The ``POWer:HARMonics:FREQRef:FIXEDFREQValue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fixedfreqvalue = PowerHarmonicsFreqrefFixedfreqvalue( device, f"{self._cmd_syntax}:FIXEDFREQValue" @@ -8103,7 +8103,7 @@ class PowerHarmonicsDisplay(SCPICmdRead): - ``.type``: The ``POWer:HARMonics:DISplay:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._select = PowerHarmonicsDisplaySelect(device, f"{self._cmd_syntax}:SELect") self._type = PowerHarmonicsDisplayType(device, f"{self._cmd_syntax}:TYPe") @@ -8183,7 +8183,7 @@ class PowerHarmonics(SCPICmdRead): - ``.standard``: The ``POWer:HARMonics:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = PowerHarmonicsDisplay(device, f"{self._cmd_syntax}:DISplay") self._freqref = PowerHarmonicsFreqref(device, f"{self._cmd_syntax}:FREQRef") @@ -8513,7 +8513,7 @@ class Power(SCPICmdRead): - ``.voltagesource``: The ``POWer:VOLTAGESOurce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "POWer") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "POWer") -> None: super().__init__(device, cmd_syntax) self._currentsource = PowerCurrentsource(device, f"{self._cmd_syntax}:CURRENTSOurce") self._display = PowerDisplay(device, f"{self._cmd_syntax}:DISplay") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py index efa7ff50..54884f2e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Reboot(SCPICmdWriteNoArguments): @@ -37,5 +37,5 @@ class Reboot(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REBOOT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REBOOT") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py index 62fbab51..43e3869c 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): @@ -103,7 +103,7 @@ class RefItemVertical(SCPICmdRead): - ``.scale``: The ``REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RefItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RefItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -275,7 +275,7 @@ class RefItemHorizontalDelay(SCPICmdRead): - ``.time``: The ``REF:HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = RefItemHorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -320,7 +320,7 @@ class RefItemHorizontal(SCPICmdRead): - ``.scale``: The ``REF:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = RefItemHorizontalDelay(device, f"{self._cmd_syntax}:DELay") self._scale = RefItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -409,7 +409,7 @@ class RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``REF:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._date = RefItemDate(device, f"{self._cmd_syntax}:DATE") self._horizontal = RefItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py index d90bc12d..ce6e0bf1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): @@ -136,7 +136,7 @@ class SaveWaveformFileformat(SCPICmdWrite, SCPICmdRead): - ``.rf_bb_iq``: The ``SAVe:WAVEform:FILEFormat:RF_BB_IQ`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf_bb_iq = SaveWaveformFileformatRfBbIq(device, f"{self._cmd_syntax}:RF_BB_IQ") @@ -212,7 +212,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.gating``: The ``SAVe:WAVEform:GATIng`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._gating = SaveWaveformGating(device, f"{self._cmd_syntax}:GATIng") @@ -442,7 +442,7 @@ class SaveImage(SCPICmdWrite, SCPICmdRead): - ``.layout``: The ``SAVe:IMAGe:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._inksaver = SaveImageInksaver(device, f"{self._cmd_syntax}:INKSaver") @@ -584,7 +584,7 @@ class SaveEventtable(SCPICmdRead): - ``.b``: The ``SAVe:EVENTtable:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus: Dict[int, SaveEventtableBusItem] = DefaultDictPassKeyToFactory( lambda x: SaveEventtableBusItem(device, f"{self._cmd_syntax}:BUS{x}") @@ -698,7 +698,7 @@ class SaveAssign(SCPICmdRead): - ``.type``: The ``SAVe:ASSIgn:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._folder = SaveAssignFolder(device, f"{self._cmd_syntax}:FOLder") self._type = SaveAssignType(device, f"{self._cmd_syntax}:TYPe") @@ -768,7 +768,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._assign = SaveAssign(device, f"{self._cmd_syntax}:ASSIgn") self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py index 4fd759cb..fe18e54f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): @@ -117,7 +117,7 @@ class Socketserver(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOCKETServer" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOCKETServer" ) -> None: super().__init__(device, cmd_syntax) self._enable = SocketserverEnable(device, f"{self._cmd_syntax}:ENAble") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py index af57b09e..19d87004 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): @@ -48,5 +48,5 @@ class Time(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TIMe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TIMe") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py index 8b63c114..4c1a3ca6 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VidpicStandard(SCPICmdWrite, SCPICmdRead): @@ -218,7 +218,7 @@ class VidpicLocationStart(SCPICmdRead): - ``.pixel``: The ``VIDPic:LOCation:STARt:PIXel`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._line = VidpicLocationStartLine(device, f"{self._cmd_syntax}:LINE") self._pixel = VidpicLocationStartPixel(device, f"{self._cmd_syntax}:PIXel") @@ -332,7 +332,7 @@ class VidpicLocation(SCPICmdRead): - ``.y``: The ``VIDPic:LOCation:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._height = VidpicLocationHeight(device, f"{self._cmd_syntax}:HEIght") self._offset = VidpicLocationOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -606,7 +606,7 @@ class VidpicAutocontrast(SCPICmdWrite, SCPICmdRead): - ``.updaterate``: The ``VIDPic:AUTOContrast:UPDATERate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._updaterate = VidpicAutocontrastUpdaterate(device, f"{self._cmd_syntax}:UPDATERate") @@ -653,7 +653,7 @@ class Vidpic(SCPICmdRead): - ``.standard``: The ``VIDPic:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "VIDPic") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "VIDPic") -> None: super().__init__(device, cmd_syntax) self._autocontrast = VidpicAutocontrast(device, f"{self._cmd_syntax}:AUTOContrast") self._brightness = VidpicBrightness(device, f"{self._cmd_syntax}:BRIGHTNess") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py index 1dd38045..d02c0ef3 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): @@ -668,7 +668,7 @@ class Wfminpre(SCPICmdRead): - ``.yzero``: The ``WFMInpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMInpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMInpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfminpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfminpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py index fdb38578..73701666 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): @@ -588,7 +588,7 @@ class Wfmoutpre(SCPICmdRead): - ``.yzero``: The ``WFMOutpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMOutpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMOutpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfmoutpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfmoutpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py index 5b2c3888..df3d55b5 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1Trigpos(SCPICmdRead): @@ -193,7 +193,7 @@ class ZoomZoom1Horizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1HorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1HorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -296,7 +296,7 @@ class ZoomZoom1(SCPICmdRead): - ``.trigpos``: The ``ZOOm:ZOOM1:TRIGPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._factor = ZoomZoom1Factor(device, f"{self._cmd_syntax}:FACtor") self._horizontal = ZoomZoom1Horizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -505,7 +505,7 @@ class Zoom(SCPICmdRead): - ``.state``: The ``ZOOm:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ZOOm") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ZOOm") -> None: super().__init__(device, cmd_syntax) self._zoom1 = ZoomZoom1(device, f"{self._cmd_syntax}:ZOOM1") self._mode = ZoomMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py index e8cadbb7..ceae7892 100644 --- a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py +++ b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscState(SCPICmdRead): @@ -82,7 +82,7 @@ class Rosc(SCPICmdRead): - ``.state``: The ``ROSc:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ROSc") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ROSc") -> None: super().__init__(device, cmd_syntax) self._source = RoscSource(device, f"{self._cmd_syntax}:SOUrce") self._state = RoscState(device, f"{self._cmd_syntax}:STATE") diff --git a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py index 7f8628bb..bf0a19db 100644 --- a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py +++ b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): @@ -146,7 +146,7 @@ class CursorXyRectangularY(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:Y:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularYDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularYPositionItem] = DefaultDictPassKeyToFactory( @@ -297,7 +297,7 @@ class CursorXyRectangularX(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:X:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularXDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularXPositionItem] = DefaultDictPassKeyToFactory( @@ -385,7 +385,7 @@ class CursorXyRectangular(SCPICmdRead): - ``.y``: The ``CURSor:XY:RECTangular:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CursorXyRectangularX(device, f"{self._cmd_syntax}:X") self._y = CursorXyRectangularY(device, f"{self._cmd_syntax}:Y") @@ -519,7 +519,7 @@ class CursorXyRatio(SCPICmdRead): - ``.units``: The ``CURSor:XY:RATIO:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRatioDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRatioPositionItem] = DefaultDictPassKeyToFactory( @@ -659,7 +659,7 @@ class CursorXyProduct(SCPICmdRead): - ``.units``: The ``CURSor:XY:PRODUCT:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyProductDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyProductPositionItem] = DefaultDictPassKeyToFactory( @@ -796,7 +796,7 @@ class CursorXyPolarTheta(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:THETA:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarThetaDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarThetaPositionItem] = DefaultDictPassKeyToFactory( @@ -933,7 +933,7 @@ class CursorXyPolarRadius(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:RADIUS:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarRadiusDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarRadiusPositionItem] = DefaultDictPassKeyToFactory( @@ -1015,7 +1015,7 @@ class CursorXyPolar(SCPICmdRead): - ``.theta``: The ``CURSor:XY:POLar:THETA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._radius = CursorXyPolarRadius(device, f"{self._cmd_syntax}:RADIUS") self._theta = CursorXyPolarTheta(device, f"{self._cmd_syntax}:THETA") @@ -1069,7 +1069,7 @@ class CursorXy(SCPICmdRead): - ``.rectangular``: The ``CURSor:XY:RECTangular`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polar = CursorXyPolar(device, f"{self._cmd_syntax}:POLar") self._product = CursorXyProduct(device, f"{self._cmd_syntax}:PRODUCT") @@ -1351,7 +1351,7 @@ class CursorVbars(SCPICmdRead): - ``.vdelta``: The ``CURSor:VBArs:VDELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alternate: Dict[int, CursorVbarsAlternateItem] = DefaultDictPassKeyToFactory( lambda x: CursorVbarsAlternateItem(device, f"{self._cmd_syntax}:ALTERNATE{x}") @@ -1680,7 +1680,7 @@ class CursorHbars(SCPICmdRead): - ``.use``: The ``CURSor:HBArs:USE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorHbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._position: Dict[int, CursorHbarsPositionItem] = DefaultDictPassKeyToFactory( @@ -1861,7 +1861,7 @@ class Cursor(SCPICmdRead): - ``.xy``: The ``CURSor:XY`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURSor") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURSor") -> None: super().__init__(device, cmd_syntax) self._ddt = CursorDdt(device, f"{self._cmd_syntax}:DDT") self._function = CursorFunction(device, f"{self._cmd_syntax}:FUNCtion") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py index 2c351ac2..67461e72 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): @@ -334,7 +334,7 @@ class AcquireFastacq(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``ACQuire:FASTAcq:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._palette = AcquireFastacqPalette(device, f"{self._cmd_syntax}:PALEtte") self._state = AcquireFastacqState(device, f"{self._cmd_syntax}:STATE") @@ -430,7 +430,7 @@ class Acquire(SCPICmdRead): - ``.stopafter``: The ``ACQuire:STOPAfter`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._fastacq = AcquireFastacq(device, f"{self._cmd_syntax}:FASTAcq") self._magnivu = AcquireMagnivu(device, f"{self._cmd_syntax}:MAGnivu") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py index 0accd999..054ef4b8 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py @@ -62,7 +62,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationRosc(SCPICmdRead): @@ -177,7 +177,7 @@ class ConfigurationRf(SCPICmdRead): - ``.numchannels``: The ``CONFIGuration:RF:NUMCHANnels`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advtrig = ConfigurationRfAdvtrig(device, f"{self._cmd_syntax}:ADVTRIG") self._bandwidth = ConfigurationRfBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -297,7 +297,7 @@ class ConfigurationRefs(SCPICmdRead): - ``.numrefs``: The ``CONFIGuration:REFS:NUMREFS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numrefs = ConfigurationRefsNumrefs(device, f"{self._cmd_syntax}:NUMREFS") @@ -485,7 +485,7 @@ class ConfigurationDigital(SCPICmdRead): - ``.numchannels``: The ``CONFIGuration:DIGITAl:NUMCHANnels`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = ConfigurationDigitalMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._maxsamplerate = ConfigurationDigitalMaxsamplerate( @@ -603,7 +603,7 @@ class ConfigurationBuswaveformsUsb(SCPICmdRead): - ``.hs``: The ``CONFIGuration:BUSWAVEFORMS:USB:HS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hs = ConfigurationBuswaveformsUsbHs(device, f"{self._cmd_syntax}:HS") @@ -911,7 +911,7 @@ class ConfigurationBuswaveforms(SCPICmdRead): - ``.usb``: The ``CONFIGuration:BUSWAVEFORMS:USB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = ConfigurationBuswaveformsArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -1385,7 +1385,7 @@ class ConfigurationApplications(SCPICmdRead): - ``.vidpic``: The ``CONFIGuration:APPLications:VIDPIC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custommask = ConfigurationApplicationsCustommask( device, f"{self._cmd_syntax}:CUSTOMMask" @@ -1655,7 +1655,7 @@ class ConfigurationAnalog(SCPICmdRead): - ``.vertinvert``: The ``CONFIGuration:ANALOg:VERTINVert`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = ConfigurationAnalogBandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._gndcplg = ConfigurationAnalogGndcplg(device, f"{self._cmd_syntax}:GNDCPLG") @@ -1883,7 +1883,7 @@ class Configuration(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CONFIGuration" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CONFIGuration" ) -> None: super().__init__(device, cmd_syntax) self._advmath = ConfigurationAdvmath(device, f"{self._cmd_syntax}:ADVMATH") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py index d9382298..c415490b 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): @@ -69,7 +69,7 @@ class Deskew(SCPICmdWrite, SCPICmdRead): - ``.display``: The ``DESkew:DISPlay`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DESkew") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DESkew") -> None: super().__init__(device, cmd_syntax) self._display = DeskewDisplay(device, f"{self._cmd_syntax}:DISPlay") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py index 874a0026..df897bee 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): @@ -108,7 +108,7 @@ class DisplayXy(SCPICmdWrite, SCPICmdRead): - ``.withyt``: The ``DISplay:XY:WITHYT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._withyt = DisplayXyWithyt(device, f"{self._cmd_syntax}:WITHYT") @@ -200,7 +200,7 @@ class DisplayStyle(SCPICmdRead): - ``.dotsonly``: The ``DISplay:STYle:DOTsonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dotsonly = DisplayStyleDotsonly(device, f"{self._cmd_syntax}:DOTsonly") @@ -382,7 +382,7 @@ class DisplayIntensityBacklightAutodim(SCPICmdRead): - ``.time``: The ``DISplay:INTENSITy:BACKLight:AUTODim:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = DisplayIntensityBacklightAutodimEnable(device, f"{self._cmd_syntax}:ENAble") self._time = DisplayIntensityBacklightAutodimTime(device, f"{self._cmd_syntax}:TIMe") @@ -476,7 +476,7 @@ class DisplayIntensityBacklight(SCPICmdWrite, SCPICmdRead): - ``.autodim``: The ``DISplay:INTENSITy:BACKLight:AUTODim`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodim = DisplayIntensityBacklightAutodim(device, f"{self._cmd_syntax}:AUTODim") @@ -520,7 +520,7 @@ class DisplayIntensity(SCPICmdRead): - ``.waveform``: The ``DISplay:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") self._graticule = DisplayIntensityGraticule(device, f"{self._cmd_syntax}:GRAticule") @@ -702,7 +702,7 @@ class DisplayDigital(SCPICmdRead): - ``.height``: The ``DISplay:DIGital:HEIght`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._activity = DisplayDigitalActivity(device, f"{self._cmd_syntax}:ACTIVity") self._height = DisplayDigitalHeight(device, f"{self._cmd_syntax}:HEIght") @@ -805,7 +805,7 @@ class DisplayConfigure(SCPICmdRead): - ``.readout``: The ``DISplay:CONFIGure:READOut`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._readout = DisplayConfigureReadout(device, f"{self._cmd_syntax}:READOut") @@ -894,7 +894,7 @@ class Display(SCPICmdRead): - ``.xy``: The ``DISplay:XY`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._clock = DisplayClock(device, f"{self._cmd_syntax}:CLOCk") self._configure = DisplayConfigure(device, f"{self._cmd_syntax}:CONFIGure") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py index 1f0e825c..ea5f2b61 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): @@ -317,7 +317,7 @@ class MaskUserSegItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:USER:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskUserSegItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskUserSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -468,7 +468,7 @@ class MaskUserMaskItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:USER:MASK:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskUserMaskItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskUserMaskItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -648,7 +648,7 @@ class MaskUser(SCPICmdRead): - ``.mask``: The ``MASK:USER:MASK`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MaskUserAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._hscale = MaskUserHscale(device, f"{self._cmd_syntax}:HSCAle") @@ -1110,7 +1110,7 @@ class MaskTestStop(SCPICmdRead): - ``.failure``: The ``MASK:TESt:STOP:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failure = MaskTestStopFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1265,7 +1265,7 @@ class MaskTestSrq(SCPICmdRead): - ``.failure``: The ``MASK:TESt:SRQ:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestSrqCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestSrqFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1526,7 +1526,7 @@ class MaskTestCompletion(SCPICmdRead): - ``.criterion``: The ``MASK:TESt:COMPLetion:CRITerion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._criterion = MaskTestCompletionCriterion(device, f"{self._cmd_syntax}:CRITerion") @@ -1638,7 +1638,7 @@ class MaskTestAuxout(SCPICmdRead): - ``.failure``: The ``MASK:TESt:AUXout:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestAuxoutCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestAuxoutFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1735,7 +1735,7 @@ class MaskTest(SCPICmdRead): - ``.waveform``: The ``MASK:TESt:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxout = MaskTestAuxout(device, f"{self._cmd_syntax}:AUXout") self._completion = MaskTestCompletion(device, f"{self._cmd_syntax}:COMPLetion") @@ -2175,7 +2175,7 @@ class MaskTemplateTolerance(SCPICmdRead): - ``.vertical``: The ``MASK:TEMPLate:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = MaskTemplateToleranceHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._vertical = MaskTemplateToleranceVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2303,7 +2303,7 @@ class MaskTemplate(SCPICmdRead): - ``.tolerance``: The ``MASK:TEMPLate:TOLerance`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._createmask = MaskTemplateCreatemask(device, f"{self._cmd_syntax}:CREATEmask") self._source = MaskTemplateSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2526,7 +2526,7 @@ class MaskMargin(SCPICmdRead): - ``.percent``: The ``MASK:MARgin:PERCent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._percent = MaskMarginPercent(device, f"{self._cmd_syntax}:PERCent") @@ -2732,7 +2732,7 @@ class MaskCountSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``MASK:COUNt:SEG:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskCountSegItemHits(device, f"{self._cmd_syntax}:HITS") @@ -2821,7 +2821,7 @@ class MaskCount(SCPICmdWrite, SCPICmdRead): - ``.waveforms``: The ``MASK:COUNt:WAVEFORMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failures = MaskCountFailures(device, f"{self._cmd_syntax}:FAILURES") self._hits = MaskCountHits(device, f"{self._cmd_syntax}:HITS") @@ -3046,7 +3046,7 @@ class MaskCopy(SCPICmdRead): - ``.user``: The ``MASK:COPy:USER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = MaskCopySource(device, f"{self._cmd_syntax}:SOUrce") self._user = MaskCopyUser(device, f"{self._cmd_syntax}:USER") @@ -3160,7 +3160,7 @@ class Mask(SCPICmdRead): - ``.user``: The ``MASK:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._copy = MaskCopy(device, f"{self._cmd_syntax}:COPy") self._count = MaskCount(device, f"{self._cmd_syntax}:COUNt") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py index 5b2b588a..431ffceb 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): @@ -198,7 +198,7 @@ class MeasurementStatistics(SCPICmdWrite, SCPICmdRead): - ``.weighting``: The ``MEASUrement:STATIstics:WEIghting`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MeasurementStatisticsMode(device, f"{self._cmd_syntax}:MODe") self._weighting = MeasurementStatisticsWeighting(device, f"{self._cmd_syntax}:WEIghting") @@ -881,7 +881,7 @@ class MeasurementSnapshot(SCPICmdWriteNoArguments, SCPICmdRead): - ``.rms``: The ``MEASUrement:SNAPShot:RMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MeasurementSnapshotAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._area = MeasurementSnapshotArea(device, f"{self._cmd_syntax}:AREa") @@ -1627,7 +1627,7 @@ class MeasurementReflevelPercent(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -1855,7 +1855,7 @@ class MeasurementReflevelAbsolute(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -1977,7 +1977,7 @@ class MeasurementReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -2472,7 +2472,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementMeasItemDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -2597,7 +2597,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MeasurementMeasItemCount(device, f"{self._cmd_syntax}:COUNt") self._delay = MeasurementMeasItemDelay(device, f"{self._cmd_syntax}:DELay") @@ -3108,7 +3108,7 @@ class MeasurementIndicators(SCPICmdRead): - ``.vert``: The ``MEASUrement:INDICators:VERT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horz: Dict[int, MeasurementIndicatorsHorzItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementIndicatorsHorzItem(device, f"{self._cmd_syntax}:HORZ{x}") @@ -3501,7 +3501,7 @@ class MeasurementImmedDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:IMMed:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementImmedDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementImmedDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -3594,7 +3594,7 @@ class MeasurementImmed(SCPICmdRead): - ``.value``: The ``MEASUrement:IMMed:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = MeasurementImmedDelay(device, f"{self._cmd_syntax}:DELay") self._source1 = MeasurementImmedSource1(device, f"{self._cmd_syntax}:SOUrce1") @@ -3902,7 +3902,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._clearsnapshot = MeasurementClearsnapshot(device, f"{self._cmd_syntax}:CLEARSNapshot") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py index a527666b..4622ff24 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): @@ -109,7 +109,7 @@ class RecallSetup(SCPICmdWrite, SCPICmdRead): - ``.demo``: The ``RECAll:SETUp:DEMO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._demo: Dict[int, RecallSetupDemoItem] = DefaultDictPassKeyToFactory( lambda x: RecallSetupDemoItem(device, f"{self._cmd_syntax}:DEMO{x}") @@ -172,7 +172,7 @@ class Recall(SCPICmdRead): - ``.waveform``: The ``RECAll:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RECAll") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RECAll") -> None: super().__init__(device, cmd_syntax) self._mask = RecallMask(device, f"{self._cmd_syntax}:MASK") self._setup = RecallSetup(device, f"{self._cmd_syntax}:SETUp") diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py index 122ec982..8e45e9ec 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRfPhase(SCPICmdWrite, SCPICmdRead): @@ -519,7 +519,7 @@ class Select(SCPICmdRead): - ``.math1``: The ``SELect:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SelectChannel] = DefaultDictPassKeyToFactory( lambda x: SelectChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py index 4019bc0c..9ce433ea 100644 --- a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py +++ b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py @@ -130,7 +130,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): @@ -303,7 +303,7 @@ class RfSquelch(SCPICmdRead): - ``.threshold``: The ``RF:SQUELCH:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfSquelchState(device, f"{self._cmd_syntax}:STATE") self._threshold = RfSquelchThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -511,7 +511,7 @@ class RfSpectrogram(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``RF:SPECTRogram:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numslices = RfSpectrogramNumslices(device, f"{self._cmd_syntax}:NUMSLICEs") self._sliceselect = RfSpectrogramSliceselect(device, f"{self._cmd_syntax}:SLICESELect") @@ -813,7 +813,7 @@ class RfRfVTime(SCPICmdRead): - ``.bandwidth``: The ``RF:RF_V_TIMe:BANDWidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = RfRfVTimeBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -899,7 +899,7 @@ class RfRfPhaseWrap(SCPICmdRead): - ``.state``: The ``RF:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = RfRfPhaseWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = RfRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -965,7 +965,7 @@ class RfRfPhase(SCPICmdRead): - ``.wrap``: The ``RF:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._wrap = RfRfPhaseWrap(device, f"{self._cmd_syntax}:WRAP") @@ -1042,7 +1042,7 @@ class RfRfAverage(SCPICmdRead): - ``.numavg``: The ``RF:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = RfRfAverageCount(device, f"{self._cmd_syntax}:COUNt") self._numavg = RfRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -1162,7 +1162,7 @@ class RfRfAmplitudeVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_AMPlitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfAmplitudeVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfAmplitudeVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1261,7 +1261,7 @@ class RfRfAmplitude(SCPICmdRead): - ``.vertical``: The ``RF:RF_AMPlitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfAmplitudeLabel(device, f"{self._cmd_syntax}:LABel") self._vertical = RfRfAmplitudeVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1392,7 +1392,7 @@ class RfRbw(SCPICmdWrite, SCPICmdRead): - ``.mode``: The ``RF:RBW:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfRbwMode(device, f"{self._cmd_syntax}:MODe") @@ -1559,7 +1559,7 @@ class RfProbePreamp(SCPICmdRead): - ``.status``: The ``RF:PRObe:PREAmp:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfProbePreampMode(device, f"{self._cmd_syntax}:MODe") self._status = RfProbePreampStatus(device, f"{self._cmd_syntax}:STATus") @@ -1676,7 +1676,7 @@ class RfProbeId(SCPICmdRead): - ``.type``: The ``RF:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = RfProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = RfProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -1806,7 +1806,7 @@ class RfProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -1921,7 +1921,7 @@ class RfProbeCalibrate(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:CALibrate:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = RfProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -2009,7 +2009,7 @@ class RfProbe(SCPICmdRead): - ``.units``: The ``RF:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = RfProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = RfProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -2466,7 +2466,7 @@ class RfMeasureObw(SCPICmdRead): - ``.upperfreq``: The ``RF:MEASUre:OBW:UPPERFreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureObwChanbw(device, f"{self._cmd_syntax}:CHANBW") self._lowerfreq = RfMeasureObwLowerfreq(device, f"{self._cmd_syntax}:LOWERFreq") @@ -2652,7 +2652,7 @@ class RfMeasureCp(SCPICmdRead): - ``.power``: The ``RF:MEASUre:CP:POWer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureCpChanbw(device, f"{self._cmd_syntax}:CHANBW") self._power = RfMeasureCpPower(device, f"{self._cmd_syntax}:POWer") @@ -2966,7 +2966,7 @@ class RfMeasureAcpr(SCPICmdRead): - ``.ua3db``: The ``RF:MEASUre:ACPR:UA3DB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjacentpairs = RfMeasureAcprAdjacentpairs( device, f"{self._cmd_syntax}:ADJACENTPAIRs" @@ -3246,7 +3246,7 @@ class RfMeasure(SCPICmdRead): - ``.type``: The ``RF:MEASUre:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acpr = RfMeasureAcpr(device, f"{self._cmd_syntax}:ACPR") self._cp = RfMeasureCp(device, f"{self._cmd_syntax}:CP") @@ -3576,7 +3576,7 @@ class RfDetectionmethod(SCPICmdRead): - ``.rf_normal``: The ``RF:DETECTionmethod:RF_NORMal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfDetectionmethodMode(device, f"{self._cmd_syntax}:MODe") self._rf_average = RfDetectionmethodRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") @@ -3808,7 +3808,7 @@ class Rf(SCPICmdRead): - ``.window``: The ``RF:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RF") -> None: super().__init__(device, cmd_syntax) self._clipping = RfClipping(device, f"{self._cmd_syntax}:CLIPPing") self._detectionmethod = RfDetectionmethod(device, f"{self._cmd_syntax}:DETECTionmethod") diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py index 43058182..9ca77066 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clearmenu(SCPICmdWriteNoArguments): @@ -37,5 +37,5 @@ class Clearmenu(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CLEARMenu") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CLEARMenu") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py index 992e38fb..ee60af1a 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrlogNumentries(SCPICmdRead): @@ -101,7 +101,7 @@ class Errlog(SCPICmdWrite, SCPICmdRead): - ``.numentries``: The ``ERRlog:NUMENTries`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ERRlog") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ERRlog") -> None: super().__init__(device, cmd_syntax) self._first = ErrlogFirst(device, f"{self._cmd_syntax}:FIRst") self._next = ErrlogNext(device, f"{self._cmd_syntax}:NEXt") diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py index 61280a24..37ab5a0c 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Language(SCPICmdWrite, SCPICmdRead): @@ -44,5 +44,5 @@ class Language(SCPICmdWrite, SCPICmdRead): ``` """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LANGuage") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LANGuage") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py index 2b6b64ee..39f92bf0 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): @@ -53,5 +53,5 @@ class Psc(SCPICmdWrite, SCPICmdRead): any SRQ assertion after power on. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*PSC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*PSC") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py index 29f4871e..bef636c0 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class Usbdevice(SCPICmdRead): - ``.configure``: The ``USBDevice:CONFigure`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "USBDevice") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "USBDevice") -> None: super().__init__(device, cmd_syntax) self._configure = UsbdeviceConfigure(device, f"{self._cmd_syntax}:CONFigure") diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py index 418e21ce..f8311c85 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): @@ -79,7 +79,7 @@ class UsbtmcVendorid(SCPICmdRead): - ``.hexadecimal``: The ``USBTMC:VENDORID:HEXadecimal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decimal = UsbtmcVendoridDecimal(device, f"{self._cmd_syntax}:DECimal") self._hexadecimal = UsbtmcVendoridHexadecimal(device, f"{self._cmd_syntax}:HEXadecimal") @@ -201,7 +201,7 @@ class UsbtmcProductid(SCPICmdRead): - ``.hexadecimal``: The ``USBTMC:PRODUCTID:HEXadecimal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decimal = UsbtmcProductidDecimal(device, f"{self._cmd_syntax}:DECimal") self._hexadecimal = UsbtmcProductidHexadecimal(device, f"{self._cmd_syntax}:HEXadecimal") @@ -274,7 +274,7 @@ class Usbtmc(SCPICmdRead): - ``.vendorid``: The ``USBTMC:VENDORID`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "USBTMC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "USBTMC") -> None: super().__init__(device, cmd_syntax) self._productid = UsbtmcProductid(device, f"{self._cmd_syntax}:PRODUCTID") self._serialnumber = UsbtmcSerialnumber(device, f"{self._cmd_syntax}:SERIALnumber") diff --git a/src/tm_devices/commands/gen_1zn03_mso/acquire.py b/src/tm_devices/commands/gen_1zn03_mso/acquire.py index 57f4e413..52077b16 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/acquire.py +++ b/src/tm_devices/commands/gen_1zn03_mso/acquire.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): @@ -176,7 +176,7 @@ class AcquireSequence(SCPICmdRead): - ``.numsequence``: The ``ACQuire:SEQuence:NUMSEQuence`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._current = AcquireSequenceCurrent(device, f"{self._cmd_syntax}:CURrent") self._mode = AcquireSequenceMode(device, f"{self._cmd_syntax}:MODe") @@ -380,7 +380,7 @@ class Acquire(SCPICmdRead): - ``.stopafter``: The ``ACQuire:STOPAfter`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._maxsamplerate = AcquireMaxsamplerate(device, f"{self._cmd_syntax}:MAXSamplerate") self._mode = AcquireMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py index fff6b9e6..91e916ff 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): @@ -116,7 +116,7 @@ class ActoneventTriggerActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -194,7 +194,7 @@ class ActoneventTriggerActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -276,7 +276,7 @@ class ActoneventTriggerActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -360,7 +360,7 @@ class ActoneventTriggerActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -414,7 +414,7 @@ class ActoneventTriggerAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:TRIGger:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventTriggerActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventTriggerActionSavewaveform( @@ -498,7 +498,7 @@ class ActoneventTrigger(SCPICmdRead): - ``.action``: The ``ACTONEVent:TRIGger:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventTriggerAction(device, f"{self._cmd_syntax}:ACTION") @@ -562,7 +562,7 @@ class ActoneventSearchActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -638,7 +638,7 @@ class ActoneventSearchActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -718,7 +718,7 @@ class ActoneventSearchActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -796,7 +796,7 @@ class ActoneventSearchActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -847,7 +847,7 @@ class ActoneventSearchAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:SEARCH:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventSearchActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventSearchActionSavewaveform( @@ -931,7 +931,7 @@ class ActoneventSearch(SCPICmdRead): - ``.action``: The ``ACTONEVent:SEARCH:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventSearchAction(device, f"{self._cmd_syntax}:ACTION") @@ -997,7 +997,7 @@ class ActoneventMeasurementActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1078,7 +1078,7 @@ class ActoneventMeasurementActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -1163,7 +1163,7 @@ class ActoneventMeasurementActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSavewaveformState( device, f"{self._cmd_syntax}:STATE" @@ -1248,7 +1248,7 @@ class ActoneventMeasurementActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -1300,7 +1300,7 @@ class ActoneventMeasurementAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MEASUrement:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMeasurementActionSaveimage( device, f"{self._cmd_syntax}:SAVEIMAGe" @@ -1388,7 +1388,7 @@ class ActoneventMeasurement(SCPICmdRead): - ``.action``: The ``ACTONEVent:MEASUrement:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMeasurementAction(device, f"{self._cmd_syntax}:ACTION") @@ -1452,7 +1452,7 @@ class ActoneventMaskpassActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1530,7 +1530,7 @@ class ActoneventMaskpassActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -1610,7 +1610,7 @@ class ActoneventMaskpassActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -1690,7 +1690,7 @@ class ActoneventMaskpassActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -1741,7 +1741,7 @@ class ActoneventMaskpassAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKPass:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskpassActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskpassActionSavewaveform( @@ -1825,7 +1825,7 @@ class ActoneventMaskpass(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKPass:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskpassAction(device, f"{self._cmd_syntax}:ACTION") @@ -1889,7 +1889,7 @@ class ActoneventMaskhitActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1966,7 +1966,7 @@ class ActoneventMaskhitActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -2046,7 +2046,7 @@ class ActoneventMaskhitActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -2125,7 +2125,7 @@ class ActoneventMaskhitActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -2176,7 +2176,7 @@ class ActoneventMaskhitAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKHit:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskhitActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskhitActionSavewaveform( @@ -2260,7 +2260,7 @@ class ActoneventMaskhit(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKHit:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskhitAction(device, f"{self._cmd_syntax}:ACTION") @@ -2323,7 +2323,7 @@ class ActoneventMaskfailActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -2400,7 +2400,7 @@ class ActoneventMaskfailActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -2480,7 +2480,7 @@ class ActoneventMaskfailActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -2559,7 +2559,7 @@ class ActoneventMaskfailActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -2610,7 +2610,7 @@ class ActoneventMaskfailAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKFail:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskfailActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskfailActionSavewaveform( @@ -2694,7 +2694,7 @@ class ActoneventMaskfail(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKFail:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskfailAction(device, f"{self._cmd_syntax}:ACTION") @@ -2813,7 +2813,9 @@ class Actonevent(SCPICmdRead): - ``.trigger``: The ``ACTONEVent:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACTONEVent") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACTONEVent" + ) -> None: super().__init__(device, cmd_syntax) self._enable = ActoneventEnable(device, f"{self._cmd_syntax}:ENable") self._limitcount = ActoneventLimitcount(device, f"{self._cmd_syntax}:LIMITCount") diff --git a/src/tm_devices/commands/gen_1zn03_mso/auxout.py b/src/tm_devices/commands/gen_1zn03_mso/auxout.py index 4e0cb395..1722ae43 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/auxout.py +++ b/src/tm_devices/commands/gen_1zn03_mso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): @@ -88,7 +88,7 @@ class Auxout(SCPICmdRead): - ``.source``: The ``AUXout:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXout") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXout") -> None: super().__init__(device, cmd_syntax) self._edge = AuxoutEdge(device, f"{self._cmd_syntax}:EDGE") self._source = AuxoutSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_1zn03_mso/battery.py b/src/tm_devices/commands/gen_1zn03_mso/battery.py index 14dc74f1..ae8cb7e5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/battery.py +++ b/src/tm_devices/commands/gen_1zn03_mso/battery.py @@ -23,7 +23,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BatterySlotItemTimetofull(SCPICmdRead): @@ -132,7 +132,7 @@ class BatterySlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.timetofull``: The ``BATTery:SLOT<1,2>:TIMETOFULL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._charge = BatterySlotItemCharge(device, f"{self._cmd_syntax}:CHARGE") self._installed = BatterySlotItemInstalled(device, f"{self._cmd_syntax}:INSTalled") @@ -267,7 +267,7 @@ class Battery(SCPICmdRead): - ``.slot``: The ``BATTery:SLOT<1,2>`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BATTery") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BATTery") -> None: super().__init__(device, cmd_syntax) self._acpower = BatteryAcpower(device, f"{self._cmd_syntax}:ACPOWer") self._slot: Dict[int, BatterySlotItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_1zn03_mso/bus.py b/src/tm_devices/commands/gen_1zn03_mso/bus.py index 09fdd073..1b95ba76 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/bus.py +++ b/src/tm_devices/commands/gen_1zn03_mso/bus.py @@ -188,7 +188,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): @@ -364,7 +364,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:SELect:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -501,7 +501,7 @@ class BusBItemSpiNumber(SCPICmdRead): - ``.inputs``: The ``BUS:B:SPI:NUMBer:INputs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputs = BusBItemSpiNumberInputs(device, f"{self._cmd_syntax}:INputs") @@ -632,7 +632,7 @@ class BusBItemSpiMosiData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MOSi:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMosiDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -683,7 +683,7 @@ class BusBItemSpiMosi(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MOSi:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMosiData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMosiInput(device, f"{self._cmd_syntax}:INPut") @@ -864,7 +864,7 @@ class BusBItemSpiMisoData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MISo:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMisoDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -915,7 +915,7 @@ class BusBItemSpiMiso(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MISo:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMisoData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMisoInput(device, f"{self._cmd_syntax}:INPut") @@ -1177,7 +1177,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -1403,7 +1403,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1551,7 +1551,7 @@ class BusBItemSpi(SCPICmdRead): - ``.select``: The ``BUS:B:SPI:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._clock = BusBItemSpiClock(device, f"{self._cmd_syntax}:CLOCk") @@ -2052,7 +2052,7 @@ class BusBItemSent(SCPICmdRead): - ``.ticktolerance``: The ``BUS:B:SENT:TICKTOLerance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanwidth = BusBItemSentChanwidth(device, f"{self._cmd_syntax}:CHANWidth") self._nibblecount = BusBItemSentNibblecount(device, f"{self._cmd_syntax}:NIBBLECount") @@ -2405,7 +2405,7 @@ class BusBItemRs232cSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:RS232C:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemRs232cSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -2631,7 +2631,7 @@ class BusBItemRs232cBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:RS232C:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemRs232cBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -2684,7 +2684,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -2969,7 +2969,7 @@ class BusBItemParallelClocksource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:PARallel:CLOCkSOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelClocksourceThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -3076,7 +3076,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.isclocked``: The ``BUS:B:PARallel:CLOCk:ISCLOCKED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._isclocked = BusBItemParallelClockIsclocked(device, f"{self._cmd_syntax}:ISCLOCKED") @@ -3208,7 +3208,7 @@ class BusBItemParallelBitsourceItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCP - ``.threshold``: The ``BUS:B:PARallel:BITSOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelBitsourceItemThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -3296,7 +3296,7 @@ class BusBItemParallelAllthresholds(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``BUS:B:PARallel:ALLTHResholds:APPly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = BusBItemParallelAllthresholdsApply(device, f"{self._cmd_syntax}:APPly") @@ -3341,7 +3341,7 @@ class BusBItemParallel(SCPICmdRead): - ``.clocksource``: The ``BUS:B:PARallel:CLOCkSOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allthresholds = BusBItemParallelAllthresholds( device, f"{self._cmd_syntax}:ALLTHResholds" @@ -3565,7 +3565,7 @@ class BusBItemLinSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:LIN:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemLinSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3725,7 +3725,7 @@ class BusBItemLinBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:LIN:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemLinBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -3777,7 +3777,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -4202,7 +4202,7 @@ class BusBItemLabelFont(SCPICmdRead): - ``.underline``: The ``BUS:B:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = BusBItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = BusBItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -4404,7 +4404,7 @@ class BusBItemLabel(SCPICmdRead): - ``.name``: The ``BUS:B:LABel:name`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = BusBItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = BusBItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -4650,7 +4650,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4790,7 +4790,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4873,7 +4873,7 @@ class BusBItemI2c(SCPICmdRead): - ``.rwinaddr``: The ``BUS:B:I2C:RWINADDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI2cData(device, f"{self._cmd_syntax}:DATa") @@ -5025,7 +5025,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.layout``: The ``BUS:B:DISplay:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemDisplayFormat(device, f"{self._cmd_syntax}:FORMat") self._layout = BusBItemDisplayLayout(device, f"{self._cmd_syntax}:LAYout") @@ -5280,7 +5280,7 @@ class BusBItemCanFdBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:CAN:FD:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemCanFdBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -5327,7 +5327,7 @@ class BusBItemCanFd(SCPICmdRead): - ``.bitrate``: The ``BUS:B:CAN:FD:BITRate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanFdBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -5414,7 +5414,7 @@ class BusBItemCanBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:CAN:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemCanBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -5467,7 +5467,7 @@ class BusBItemCan(SCPICmdRead): - ``.threshold``: The ``BUS:B:CAN:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._fd = BusBItemCanFd(device, f"{self._cmd_syntax}:FD") @@ -5690,7 +5690,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = BusBItemCan(device, f"{self._cmd_syntax}:CAN") self._display = BusBItemDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -5972,7 +5972,7 @@ class Bus(SCPICmdRead): - ``.list``: The ``BUS:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._addnew = BusAddnew(device, f"{self._cmd_syntax}:ADDNew") self._b: Dict[int, BusBItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_1zn03_mso/callouts.py b/src/tm_devices/commands/gen_1zn03_mso/callouts.py index faba8d24..30c3f357 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/callouts.py +++ b/src/tm_devices/commands/gen_1zn03_mso/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsDelete(SCPICmdWrite): @@ -269,7 +269,7 @@ class CalloutsCalloutItemFont(SCPICmdRead): - ``.underline``: The ``CALLOUTS:CALLOUT:FONT:UNDERLine`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = CalloutsCalloutItemFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = CalloutsCalloutItemFontItalic(device, f"{self._cmd_syntax}:ITALIC") @@ -477,7 +477,7 @@ class CalloutsCalloutItemDisplayposition(SCPICmdRead): - ``.y``: The ``CALLOUTS:CALLOUT:DISPLAYPOSition:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CalloutsCalloutItemDisplaypositionX(device, f"{self._cmd_syntax}:X") self._y = CalloutsCalloutItemDisplaypositionY(device, f"{self._cmd_syntax}:Y") @@ -628,7 +628,7 @@ class CalloutsCalloutItemBookmark(SCPICmdRead): - ``.xpos``: The ``CALLOUTS:CALLOUT:BOOKMark:XPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = CalloutsCalloutItemBookmarkSource(device, f"{self._cmd_syntax}:SOURCE") self._xpos = CalloutsCalloutItemBookmarkXpos(device, f"{self._cmd_syntax}:XPOS") @@ -709,7 +709,7 @@ class CalloutsCalloutItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``CALLOUTS:CALLOUT:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bookmark = CalloutsCalloutItemBookmark(device, f"{self._cmd_syntax}:BOOKMark") self._color = CalloutsCalloutItemColor(device, f"{self._cmd_syntax}:COLOR") @@ -885,7 +885,7 @@ class Callouts(SCPICmdRead): - ``.delete``: The ``CALLOUTS:DELete`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALLOUTS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALLOUTS") -> None: super().__init__(device, cmd_syntax) self._addnew = CalloutsAddnew(device, f"{self._cmd_syntax}:ADDNew") self._callout: Dict[int, CalloutsCalloutItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_1zn03_mso/ch.py b/src/tm_devices/commands/gen_1zn03_mso/ch.py index 8f8485e2..f57513cb 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ch.py @@ -67,7 +67,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelVtermBias(SCPICmdWrite, SCPICmdRead): @@ -110,7 +110,7 @@ class ChannelVterm(SCPICmdRead): - ``.bias``: The ``CH:VTERm:BIAS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bias = ChannelVtermBias(device, f"{self._cmd_syntax}:BIAS") @@ -277,7 +277,7 @@ class ChannelProbefuncExtunits(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbefuncExtunitsState(device, f"{self._cmd_syntax}:STATE") @@ -387,7 +387,7 @@ class ChannelProbefunc(SCPICmdRead): - ``.extunits``: The ``CH:PROBEFunc:EXTUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._extatten = ChannelProbefuncExtatten(device, f"{self._cmd_syntax}:EXTAtten") self._extdbatten = ChannelProbefuncExtdbatten(device, f"{self._cmd_syntax}:EXTDBatten") @@ -768,7 +768,7 @@ class ChannelLabelFont(SCPICmdRead): - ``.underline``: The ``CH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -965,7 +965,7 @@ class ChannelLabel(SCPICmdRead): - ``.ypos``: The ``CH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1294,7 +1294,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.vterm``: The ``CH:VTERm`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._bandwidth = ChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._clipping = ChannelClipping(device, f"{self._cmd_syntax}:CLIPping") diff --git a/src/tm_devices/commands/gen_1zn03_mso/data.py b/src/tm_devices/commands/gen_1zn03_mso/data.py index ca3b46c1..6f896ab9 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/data.py +++ b/src/tm_devices/commands/gen_1zn03_mso/data.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): @@ -181,7 +181,7 @@ class DataSource(SCPICmdWrite, SCPICmdRead): - ``.available``: The ``DATa:SOUrce:AVAILable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._available = DataSourceAvailable(device, f"{self._cmd_syntax}:AVAILable") @@ -358,7 +358,7 @@ class Data(SCPICmdWrite, SCPICmdRead): - ``.width``: The ``DATa:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATa") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATa") -> None: super().__init__(device, cmd_syntax) self._encdg = DataEncdg(device, f"{self._cmd_syntax}:ENCdg") self._mode = DataMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/dch.py b/src/tm_devices/commands/gen_1zn03_mso/dch.py index 2363708a..5ecbf7af 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/dch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/dch.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DchItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): @@ -258,7 +258,7 @@ class DchItemDigitalBitLabelFont(SCPICmdRead): - ``.underline``: The ``DCH_D:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = DchItemDigitalBitLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = DchItemDigitalBitLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -462,7 +462,7 @@ class DchItemDigitalBitLabel(SCPICmdRead): - ``.name``: The ``DCH_D:LABel:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = DchItemDigitalBitLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = DchItemDigitalBitLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -564,7 +564,7 @@ class DchItemDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.threshold``: The ``DCH_D:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = DchItemDigitalBitLabel(device, f"{self._cmd_syntax}:LABel") self._threshold = DchItemDigitalBitThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -635,7 +635,7 @@ class DchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.d``: The ``DCH_D`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DCH") -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, DchItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: DchItemDigitalBit(device, f"{self._cmd_syntax}_D{x}") diff --git a/src/tm_devices/commands/gen_1zn03_mso/diag.py b/src/tm_devices/commands/gen_1zn03_mso/diag.py index 650d7efe..5c77c35e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/diag.py +++ b/src/tm_devices/commands/gen_1zn03_mso/diag.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): @@ -143,7 +143,7 @@ class DiagResult(SCPICmdRead): - ``.log``: The ``DIAg:RESUlt:LOG`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._flag = DiagResultFlag(device, f"{self._cmd_syntax}:FLAg") self._log = DiagResultLog(device, f"{self._cmd_syntax}:LOG") @@ -282,7 +282,7 @@ class DiagLoopOption(SCPICmdWrite, SCPICmdRead): - ``.ntimes``: The ``DIAg:LOOP:OPTion:NTIMes`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ntimes = DiagLoopOptionNtimes(device, f"{self._cmd_syntax}:NTIMes") @@ -325,7 +325,7 @@ class DiagLoop(SCPICmdRead): - ``.stop``: The ``DIAg:LOOP:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._option = DiagLoopOption(device, f"{self._cmd_syntax}:OPTion") self._stop = DiagLoopStop(device, f"{self._cmd_syntax}:STOP") @@ -395,7 +395,7 @@ class Diag(SCPICmdRead): - ``.state``: The ``DIAg:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAg") -> None: super().__init__(device, cmd_syntax) self._loop = DiagLoop(device, f"{self._cmd_syntax}:LOOP") self._mode = DiagMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/display.py b/src/tm_devices/commands/gen_1zn03_mso/display.py index 40accda7..27cc4c82 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/display.py +++ b/src/tm_devices/commands/gen_1zn03_mso/display.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): @@ -451,7 +451,7 @@ class DisplayWaveviewCursorCursor1(SCPICmdRead): - ``.rolocation``: The ``DISplay:WAVEView:CURSor:CURSOR1:ROLOCATION`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rolocation = DisplayWaveviewCursorCursor1Rolocation( device, f"{self._cmd_syntax}:ROLOCATION" @@ -501,7 +501,7 @@ class DisplayWaveviewCursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView:CURSor:CURSOR1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor1 = DisplayWaveviewCursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -598,7 +598,7 @@ class DisplayWaveview1ZoomZoom1Vertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical:SCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1VerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -804,7 +804,7 @@ class DisplayWaveview1ZoomZoom1Horizontal(SCPICmdRead): - ``.winscale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:HORizontal:WINSCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1HorizontalPosition( device, f"{self._cmd_syntax}:POSition" @@ -932,7 +932,7 @@ class DisplayWaveview1ZoomZoom1(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = DisplayWaveview1ZoomZoom1Horizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -1027,7 +1027,7 @@ class DisplayWaveview1Zoom(SCPICmdRead): - ``.zoom1``: The ``DISplay:WAVEView1:ZOOM:ZOOM1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zoom1 = DisplayWaveview1ZoomZoom1(device, f"{self._cmd_syntax}:ZOOM1") @@ -1147,7 +1147,7 @@ class DisplayWaveview1RefItemDall(SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF_DALL:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frame = DisplayWaveview1RefItemDallFrame(device, f"{self._cmd_syntax}:FRAMe") @@ -1192,7 +1192,7 @@ class DisplayWaveview1RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:REF_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = DisplayWaveview1RefItemDall(device, f"{self._cmd_syntax}_DALL") @@ -1280,7 +1280,7 @@ class DisplayWaveview1RefRefItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:REF:REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RefRefItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1411,7 +1411,7 @@ class DisplayWaveview1RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF:REF:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1RefRefItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1RefRefItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1506,7 +1506,7 @@ class DisplayWaveview1Ref(SCPICmdRead): - ``.ref``: The ``DISplay:WAVEView1:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayWaveview1RefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1RefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -1598,7 +1598,7 @@ class DisplayWaveview1MathMathItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:MATH:MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1MathMathItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1736,7 +1736,7 @@ class DisplayWaveview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:MATH:MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayWaveview1MathMathItemAutoscale( device, f"{self._cmd_syntax}:AUTOScale" @@ -1838,7 +1838,7 @@ class DisplayWaveview1Math(SCPICmdRead): - ``.math``: The ``DISplay:WAVEView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayWaveview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -1926,7 +1926,7 @@ class DisplayWaveview1Intensity(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._graticule = DisplayWaveview1IntensityGraticule( device, f"{self._cmd_syntax}:GRATicule" @@ -2081,7 +2081,7 @@ class DisplayWaveview1DchItemDallVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:DCH_DALL:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1DchItemDallVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2165,7 +2165,7 @@ class DisplayWaveview1DchItemDall(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:DCH_DALL:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digorder = DisplayWaveview1DchItemDallDigorder(device, f"{self._cmd_syntax}:DIGORDER") self._vertical = DisplayWaveview1DchItemDallVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2263,7 +2263,7 @@ class DisplayWaveview1DchItemDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.state``: The ``DISplay:WAVEView1:DCH_D:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1DchItemDigitalBitState(device, f"{self._cmd_syntax}:STATE") @@ -2314,7 +2314,7 @@ class DisplayWaveview1DchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:DCH_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, DisplayWaveview1DchItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1DchItemDigitalBit(device, f"{self._cmd_syntax}_D{x}") @@ -2423,7 +2423,7 @@ class DisplayWaveview1CursorCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._avposition = DisplayWaveview1CursorCursorWaveformAvposition( device, f"{self._cmd_syntax}:AVPOSition" @@ -2556,7 +2556,7 @@ class DisplayWaveview1CursorCursor1Waveform(SCPICmdRead): - ``.bposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1WaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -2739,7 +2739,7 @@ class DisplayWaveview1CursorCursor1Vbars(SCPICmdRead): - ``.units``: The ``DISplay:WAVEView1:CURSor:CURSOR1:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1VbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3039,7 +3039,7 @@ class DisplayWaveview1CursorCursor1Screen(SCPICmdRead): - ``.byposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayWaveview1CursorCursor1ScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -3358,7 +3358,7 @@ class DisplayWaveview1CursorCursor1Hbars(SCPICmdRead): - ``.delta``: The ``DISplay:WAVEView1:CURSor:CURSOR1:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1HbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3664,7 +3664,7 @@ class DisplayWaveview1CursorCursor1(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayWaveview1CursorCursor1Asource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayWaveview1CursorCursor1Bsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -4011,7 +4011,7 @@ class DisplayWaveview1CursorCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveform = DisplayWaveview1CursorCursorWaveform( device, f"{self._cmd_syntax}:WAVEform" @@ -4056,7 +4056,7 @@ class DisplayWaveview1Cursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView1:CURSor:CURSOR1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveview1CursorCursor(device, f"{self._cmd_syntax}:CURSOR") self._cursor1 = DisplayWaveview1CursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -4183,7 +4183,7 @@ class DisplayWaveview1ChannelVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:CH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ChannelVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -4289,7 +4289,7 @@ class DisplayWaveview1Channel(ValidatedChannel, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:CH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1ChannelVertical(device, f"{self._cmd_syntax}:VERTical") @@ -4379,7 +4379,7 @@ class DisplayWaveview1BusBItemVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:BUS:B:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1BusBItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -4454,7 +4454,7 @@ class DisplayWaveview1BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:BUS:B:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1BusBItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1BusBItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -4518,7 +4518,7 @@ class DisplayWaveview1Bus(SCPICmdRead): - ``.b``: The ``DISplay:WAVEView1:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayWaveview1BusBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1BusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -4565,7 +4565,7 @@ class DisplayWaveview1(SCPICmdRead): - ``.refx``: The ``DISplay:WAVEView1:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplayWaveview1Bus(device, f"{self._cmd_syntax}:BUS") self._ch: Dict[int, DisplayWaveview1Channel] = DefaultDictPassKeyToFactory( @@ -4852,7 +4852,7 @@ class DisplayWaveview(SCPICmdRead): - ``.gridtype``: The ``DISplay:WAVEView:GRIDTYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveviewCursor(device, f"{self._cmd_syntax}:CURSor") self._gridtype = DisplayWaveviewGridtype(device, f"{self._cmd_syntax}:GRIDTYPE") @@ -4964,7 +4964,7 @@ class DisplaySelectWaveview1(SCPICmdRead): - ``.source``: The ``DISplay:SELect:WAVEView1:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = DisplaySelectWaveview1Source(device, f"{self._cmd_syntax}:SOUrce") @@ -5149,7 +5149,7 @@ class DisplaySelect(SCPICmdRead): - ``.waveview1``: The ``DISplay:SELect:WAVEView1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplaySelectBus(device, f"{self._cmd_syntax}:BUS") self._math = DisplaySelectMath(device, f"{self._cmd_syntax}:MATH") @@ -5379,7 +5379,7 @@ class DisplayReffftviewItemZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -5505,7 +5505,7 @@ class DisplayReffftviewItemZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -5580,7 +5580,7 @@ class DisplayReffftviewItemZoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:REFFFTView:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayReffftviewItemZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayReffftviewItemZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -5657,7 +5657,7 @@ class DisplayReffftviewItemXaxis(SCPICmdRead): - ``.scale``: The ``DISplay:REFFFTView:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayReffftviewItemXaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -5733,7 +5733,7 @@ class DisplayReffftviewItemRefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:REFFFTView:REF:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayReffftviewItemRefRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -5782,7 +5782,7 @@ class DisplayReffftviewItemRef(SCPICmdRead): - ``.ref``: The ``DISplay:REFFFTView:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayReffftviewItemRefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayReffftviewItemRefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -6000,7 +6000,7 @@ class DisplayReffftviewItemCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:REFFFTView:CURSor:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ahposition = DisplayReffftviewItemCursorWaveformAhposition( device, f"{self._cmd_syntax}:AHPOSition" @@ -6298,7 +6298,7 @@ class DisplayReffftviewItemCursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:REFFFTView:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6610,7 +6610,7 @@ class DisplayReffftviewItemCursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:REFFFTView:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayReffftviewItemCursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -6977,7 +6977,7 @@ class DisplayReffftviewItemCursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:REFFFTView:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -7257,7 +7257,7 @@ class DisplayReffftviewItemCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:REFFFTView:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayReffftviewItemCursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayReffftviewItemCursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -7682,7 +7682,7 @@ class DisplayReffftviewItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.zoom``: The ``DISplay:REFFFTView:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayReffftviewItemAutoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayReffftviewItemCursor(device, f"{self._cmd_syntax}:CURSor") @@ -7901,7 +7901,7 @@ class DisplayRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:REF:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayRefItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayRefItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -8033,7 +8033,7 @@ class DisplayPlotview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8159,7 +8159,7 @@ class DisplayPlotview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8233,7 +8233,7 @@ class DisplayPlotview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:PLOTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayPlotview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayPlotview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -8308,7 +8308,7 @@ class DisplayPlotview1Yaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTView1:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotview1YaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -8380,7 +8380,7 @@ class DisplayPlotview1Xaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTView1:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotview1XaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -8511,7 +8511,7 @@ class DisplayPlotview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:PLOTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -8698,7 +8698,7 @@ class DisplayPlotview1CursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:PLOTView1:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -8999,7 +8999,7 @@ class DisplayPlotview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:PLOTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayPlotview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -9349,7 +9349,7 @@ class DisplayPlotview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:PLOTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -9610,7 +9610,7 @@ class DisplayPlotview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:PLOTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayPlotview1CursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayPlotview1CursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -9996,7 +9996,7 @@ class DisplayPlotview1(SCPICmdRead): - ``.zoom``: The ``DISplay:PLOTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayPlotview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayPlotview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -10184,7 +10184,7 @@ class DisplayPersistence(SCPICmdWrite, SCPICmdRead): - ``.reset``: The ``DISplay:PERSistence:RESET`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = DisplayPersistenceReset(device, f"{self._cmd_syntax}:RESET") @@ -10274,7 +10274,7 @@ class DisplayMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:Math:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayMathItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayMathItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -10405,7 +10405,7 @@ class DisplayMathfftview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10536,7 +10536,7 @@ class DisplayMathfftview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10614,7 +10614,7 @@ class DisplayMathfftview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayMathfftview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayMathfftview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -10691,7 +10691,7 @@ class DisplayMathfftview1Yaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1YaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -10765,7 +10765,7 @@ class DisplayMathfftview1Xaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1XaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -10843,7 +10843,7 @@ class DisplayMathfftview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:MATHFFTView1:MATH:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayMathfftview1MathMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -10892,7 +10892,7 @@ class DisplayMathfftview1Math(SCPICmdRead): - ``.math``: The ``DISplay:MATHFFTView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayMathfftview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayMathfftview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -11013,7 +11013,7 @@ class DisplayMathfftview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:MATHFFTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11225,7 +11225,7 @@ class DisplayMathfftview1CursorVbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:VBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11528,7 +11528,7 @@ class DisplayMathfftview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:MATHFFTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayMathfftview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -11884,7 +11884,7 @@ class DisplayMathfftview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -12154,7 +12154,7 @@ class DisplayMathfftview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:MATHFFTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayMathfftview1CursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayMathfftview1CursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -12518,7 +12518,7 @@ class DisplayMathfftview1(SCPICmdRead): - ``.zoom``: The ``DISplay:MATHFFTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayMathfftview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayMathfftview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -12741,7 +12741,7 @@ class DisplayIntensityBacklightAutodim(SCPICmdRead): - ``.time``: The ``DISplay:INTENSITy:BACKLight:AUTODim:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = DisplayIntensityBacklightAutodimEnable(device, f"{self._cmd_syntax}:ENAble") self._time = DisplayIntensityBacklightAutodimTime(device, f"{self._cmd_syntax}:TIMe") @@ -12835,7 +12835,7 @@ class DisplayIntensityBacklight(SCPICmdWrite, SCPICmdRead): - ``.autodim``: The ``DISplay:INTENSITy:BACKLight:AUTODim`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodim = DisplayIntensityBacklightAutodim(device, f"{self._cmd_syntax}:AUTODim") @@ -12877,7 +12877,7 @@ class DisplayIntensity(SCPICmdRead): - ``.backlight``: The ``DISplay:INTENSITy:BACKLight`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") @@ -12959,7 +12959,7 @@ class DisplayGlobalRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -13039,7 +13039,7 @@ class DisplayGlobalMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -13122,7 +13122,7 @@ class DisplayGlobalDchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:DCH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalDchItemState(device, f"{self._cmd_syntax}:STATE") @@ -13203,7 +13203,7 @@ class DisplayGlobalChannel(ValidatedChannel, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:CH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalChannelState(device, f"{self._cmd_syntax}:STATE") @@ -13282,7 +13282,7 @@ class DisplayGlobalBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:B:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalBItemState(device, f"{self._cmd_syntax}:STATE") @@ -13334,7 +13334,7 @@ class DisplayGlobal(SCPICmdRead): - ``.ref``: The ``DISplay:GLObal:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayGlobalBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayGlobalBItem(device, f"{self._cmd_syntax}:B{x}") @@ -13528,7 +13528,7 @@ class DisplayChannel(ValidatedChannel, SCPICmdRead): - ``.normalcolor``: The ``DISplay:CH:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayChannelInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayChannelNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -13631,7 +13631,7 @@ class Display(SCPICmdRead): - ``.ref``: The ``DISplay:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._colors = DisplayColors(device, f"{self._cmd_syntax}:COLors") self._global = DisplayGlobal(device, f"{self._cmd_syntax}:GLObal") diff --git a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py index 067f8d48..b65d8509 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py +++ b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): @@ -95,7 +95,7 @@ class Fpanel(SCPICmdRead): - ``.turn``: The ``FPAnel:TURN`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FPAnel") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FPAnel") -> None: super().__init__(device, cmd_syntax) self._press = FpanelPress(device, f"{self._cmd_syntax}:PRESS") self._turn = FpanelTurn(device, f"{self._cmd_syntax}:TURN") diff --git a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py index dd1b28ef..d3107740 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py +++ b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): @@ -146,7 +146,7 @@ class HorizontalSamplerateAnalyzemodeMinimum(SCPICmdRead): - ``.value``: The ``HORizontal:SAMPLERate:ANALYZemode:MINimum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._override = HorizontalSamplerateAnalyzemodeMinimumOverride( device, f"{self._cmd_syntax}:OVERRide" @@ -227,7 +227,7 @@ class HorizontalSamplerateAnalyzemode(SCPICmdRead): - ``.minimum``: The ``HORizontal:SAMPLERate:ANALYZemode:MINimum`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minimum = HorizontalSamplerateAnalyzemodeMinimum( device, f"{self._cmd_syntax}:MINimum" @@ -276,7 +276,7 @@ class HorizontalSamplerate(SCPICmdWrite, SCPICmdRead): - ``.analyzemode``: The ``HORizontal:SAMPLERate:ANALYZemode`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analyzemode = HorizontalSamplerateAnalyzemode( device, f"{self._cmd_syntax}:ANALYZemode" @@ -481,7 +481,7 @@ class HorizontalModeManual(SCPICmdRead): - ``.configure``: The ``HORizontal:MODE:MANual:CONFIGure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configure = HorizontalModeManualConfigure(device, f"{self._cmd_syntax}:CONFIGure") @@ -550,7 +550,7 @@ class HorizontalMode(SCPICmdWrite, SCPICmdRead): - ``.scale``: The ``HORizontal:MODE:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._manual = HorizontalModeManual(device, f"{self._cmd_syntax}:MANual") self._recordlength = HorizontalModeRecordlength(device, f"{self._cmd_syntax}:RECOrdlength") @@ -678,7 +678,7 @@ class HorizontalMain(SCPICmdRead): - ``.interpratio``: The ``HORizontal:MAIn:INTERPRatio`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._interpratio = HorizontalMainInterpratio(device, f"{self._cmd_syntax}:INTERPRatio") @@ -783,7 +783,7 @@ class HorizontalDelay(SCPICmdRead): - ``.time``: The ``HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalDelayMode(device, f"{self._cmd_syntax}:MODe") self._time = HorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -893,7 +893,9 @@ class Horizontal(SCPICmdRead): - ``.scale``: The ``HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._acqduration = HorizontalAcqduration(device, f"{self._cmd_syntax}:ACQDURATION") self._delay = HorizontalDelay(device, f"{self._cmd_syntax}:DELay") diff --git a/src/tm_devices/commands/gen_1zn03_mso/mask.py b/src/tm_devices/commands/gen_1zn03_mso/mask.py index 0c095f84..f5e3d370 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/mask.py +++ b/src/tm_devices/commands/gen_1zn03_mso/mask.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): @@ -87,7 +87,7 @@ class MaskTest(SCPICmdRead): - ``.waveforms``: The ``MASK:TESt:WAVEforms`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveforms = MaskTestWaveforms(device, f"{self._cmd_syntax}:WAVEforms") @@ -205,7 +205,7 @@ class MaskMaskItemTolerance(SCPICmdRead): - ``.vertical``: The ``MASK:MASK:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = MaskMaskItemToleranceHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._updatenow = MaskMaskItemToleranceUpdatenow(device, f"{self._cmd_syntax}:UPDatenow") @@ -381,7 +381,7 @@ class MaskMaskItemTest(SCPICmdRead): - ``.threshold``: The ``MASK:MASK:TESt:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MaskMaskItemTestState(device, f"{self._cmd_syntax}:STATE") self._status = MaskMaskItemTestStatus(device, f"{self._cmd_syntax}:STATUS") @@ -532,7 +532,7 @@ class MaskMaskItemSegcountItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``MASK:MASK:SEGCOUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemSegcountItemHits(device, f"{self._cmd_syntax}:HITS") @@ -603,7 +603,7 @@ class MaskMaskItemSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.points``: The ``MASK:MASK:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._points = MaskMaskItemSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -755,7 +755,7 @@ class MaskMaskItemCount(SCPICmdRead): - ``.hits``: The ``MASK:MASK:COUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemCountHits(device, f"{self._cmd_syntax}:HITS") @@ -807,7 +807,7 @@ class MaskMaskItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.tolerance``: The ``MASK:MASK:TOLerance`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MaskMaskItemCount(device, f"{self._cmd_syntax}:COUNT") self._definedby = MaskMaskItemDefinedby(device, f"{self._cmd_syntax}:DEFinedby") @@ -1066,7 +1066,7 @@ class Mask(SCPICmdRead): - ``.test``: The ``MASK:TESt`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._delete = MaskDelete(device, f"{self._cmd_syntax}:DELete") self._mask: Dict[int, MaskMaskItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_1zn03_mso/math.py b/src/tm_devices/commands/gen_1zn03_mso/math.py index 4d5ad21e..cb726cd7 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/math.py +++ b/src/tm_devices/commands/gen_1zn03_mso/math.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): @@ -172,7 +172,7 @@ class MathMathItemSpi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -263,7 +263,7 @@ class MathMathItemSpectral(SCPICmdRead): - ``.window``: The ``MATH:MATH:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._window = MathMathItemSpectralWindow(device, f"{self._cmd_syntax}:WINdow") @@ -411,7 +411,7 @@ class MathMathItemSent(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SENT:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSentSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -493,7 +493,7 @@ class MathMathItemRs232c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:RS232C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemRs232cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -571,7 +571,7 @@ class MathMathItemParallel(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:PARallel:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemParallelSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -643,7 +643,7 @@ class MathMathItemLin(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:LIN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemLinSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -907,7 +907,7 @@ class MathMathItemLabelFont(SCPICmdRead): - ``.underline``: The ``MATH:MATH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = MathMathItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = MathMathItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -1098,7 +1098,7 @@ class MathMathItemLabel(SCPICmdRead): - ``.ypos``: The ``MATH:MATH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = MathMathItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = MathMathItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1297,7 +1297,7 @@ class MathMathItemI2c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:I2C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemI2cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1459,7 +1459,7 @@ class MathMathItemCan(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:CAN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemCanSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1559,7 +1559,7 @@ class MathMathItemAvg(SCPICmdRead): - ``.weight``: The ``MATH:MATH:AVG:WEIGht`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MathMathItemAvgMode(device, f"{self._cmd_syntax}:MODE") self._weight = MathMathItemAvgWeight(device, f"{self._cmd_syntax}:WEIGht") @@ -1650,7 +1650,7 @@ class MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vunit``: The ``MATH:MATH:VUNIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._avg = MathMathItemAvg(device, f"{self._cmd_syntax}:AVG") self._can = MathMathItemCan(device, f"{self._cmd_syntax}:CAN") @@ -2128,7 +2128,7 @@ class Math(SCPICmdRead): - ``.math``: The ``MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH") -> None: super().__init__(device, cmd_syntax) self._addnew = MathAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = MathDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_1zn03_mso/measurement.py b/src/tm_devices/commands/gen_1zn03_mso/measurement.py index 45dab9ed..af973511 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/measurement.py +++ b/src/tm_devices/commands/gen_1zn03_mso/measurement.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsCyclemode(SCPICmdWrite, SCPICmdRead): @@ -396,7 +396,7 @@ class MeasurementStatistics(SCPICmdRead): - ``.cyclemode``: The ``MEASUrement:STATIstics:CYCLEMode`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cyclemode = MeasurementStatisticsCyclemode(device, f"{self._cmd_syntax}:CYCLEMode") @@ -704,7 +704,7 @@ class MeasurementReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsPercentFallhigh(device, f"{self._cmd_syntax}:FALLHigh") self._falllow = MeasurementReflevelsPercentFalllow(device, f"{self._cmd_syntax}:FALLLow") @@ -1279,7 +1279,7 @@ class MeasurementReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -1539,7 +1539,7 @@ class MeasurementReflevels(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -1954,7 +1954,7 @@ class MeasurementRefItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2529,7 +2529,7 @@ class MeasurementRefItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2801,7 +2801,7 @@ class MeasurementRefItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:REF:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementRefItemReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementRefItemReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -2936,7 +2936,7 @@ class MeasurementRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:REF:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementRefItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -3423,7 +3423,7 @@ class MeasurementMeasItemResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -3717,7 +3717,7 @@ class MeasurementMeasItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -3877,7 +3877,7 @@ class MeasurementMeasItemResults(SCPICmdRead): - ``.currentacq``: The ``MEASUrement:MEAS:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemResultsCurrentacq( @@ -4026,7 +4026,7 @@ class MeasurementMeasItemReflevelsAbsolute(SCPICmdRead): - ``.fallhigh``: The ``MEASUrement:MEAS:REFLevels:ABSolute:FALLHigh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -4329,7 +4329,7 @@ class MeasurementMeasItemReflevels1Percent(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevels1PercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -4907,7 +4907,7 @@ class MeasurementMeasItemReflevels1Absolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._falllow = MeasurementMeasItemReflevels1AbsoluteFalllow( device, f"{self._cmd_syntax}:FALLLow" @@ -5161,7 +5161,7 @@ class MeasurementMeasItemReflevels1(SCPICmdRead): - ``.percent``: The ``MEASUrement:MEAS:REFLevels1:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevels1Absolute( device, f"{self._cmd_syntax}:ABSolute" @@ -5309,7 +5309,7 @@ class MeasurementMeasItemReflevels(SCPICmdRead): - ``.absolute``: The ``MEASUrement:MEAS:REFLevels:ABSolute`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -5406,7 +5406,7 @@ class MeasurementMeasItemPerfreq(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:PERFREQ:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = MeasurementMeasItemPerfreqEdge(device, f"{self._cmd_syntax}:EDGE") @@ -6018,7 +6018,7 @@ class MeasurementMeasItemGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:MEAS:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementMeasItemGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementMeasItemGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -6510,7 +6510,7 @@ class MeasurementMeasItemEdges(SCPICmdRead): - ``.tolevel``: The ``MEASUrement:MEAS:EDGES:TOLevel`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fromlevel = MeasurementMeasItemEdgesFromlevel(device, f"{self._cmd_syntax}:FROMLevel") self._level = MeasurementMeasItemEdgesLevel(device, f"{self._cmd_syntax}:LEVel") @@ -6772,7 +6772,7 @@ class MeasurementMeasItemDisplaystat(SCPICmdRead): - ``.enable``: The ``MEASUrement:MEAS:DISPlaystat:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = MeasurementMeasItemDisplaystatEnable(device, f"{self._cmd_syntax}:ENABle") @@ -6856,7 +6856,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementMeasItemDelayEdgeItem(device, f"{self._cmd_syntax}:EDGE{x}") @@ -7042,7 +7042,7 @@ class MeasurementMeasItemCcresultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -7340,7 +7340,7 @@ class MeasurementMeasItemCcresultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -7504,7 +7504,7 @@ class MeasurementMeasItemCcresults(SCPICmdRead): - ``.currentacq``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemCcresultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemCcresultsCurrentacq( @@ -7634,7 +7634,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.yunit``: The ``MEASUrement:MEAS:YUNIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstedgtype = MeasurementMeasItemBurstedgtype( device, f"{self._cmd_syntax}:BURSTEDGTYPe" @@ -9063,7 +9063,7 @@ class MeasurementMathItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -9669,7 +9669,7 @@ class MeasurementMathItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -9959,7 +9959,7 @@ class MeasurementMathItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:MATH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMathItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -10107,7 +10107,7 @@ class MeasurementMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:MATH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementMathItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -10389,7 +10389,7 @@ class MeasurementGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -10900,7 +10900,7 @@ class MeasurementChannelReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -11470,7 +11470,7 @@ class MeasurementChannelReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -11750,7 +11750,7 @@ class MeasurementChannelReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:CH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementChannelReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementChannelReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -11879,7 +11879,7 @@ class MeasurementChannel(ValidatedChannel, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:CH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementChannelReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -12086,7 +12086,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._addmeas = MeasurementAddmeas(device, f"{self._cmd_syntax}:ADDMEAS") diff --git a/src/tm_devices/commands/gen_1zn03_mso/pg.py b/src/tm_devices/commands/gen_1zn03_mso/pg.py index 7544c13a..92f0dcbf 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/pg.py +++ b/src/tm_devices/commands/gen_1zn03_mso/pg.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PgPatterndefinition(SCPICmdWrite, SCPICmdRead): @@ -104,7 +104,7 @@ class PgOutput(SCPICmdRead): - ``.mode``: The ``PG:OUTPut:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = PgOutputMode(device, f"{self._cmd_syntax}:MODe") @@ -174,7 +174,7 @@ class PgFile(SCPICmdRead): - ``.pattern``: The ``PG:FILE:PATTern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pattern = PgFilePattern(device, f"{self._cmd_syntax}:PATTern") @@ -260,7 +260,7 @@ class PgBurst(SCPICmdRead): - ``.trigger``: The ``PG:BURSt:TRIGger`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ccount = PgBurstCcount(device, f"{self._cmd_syntax}:CCOUnt") self._trigger = PgBurstTrigger(device, f"{self._cmd_syntax}:TRIGger") @@ -458,7 +458,7 @@ class PgBit(SCPICmdRead): - ``.zero``: The ``PG:BIT:ZERO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._one = PgBitOne(device, f"{self._cmd_syntax}:ONE") self._three = PgBitThree(device, f"{self._cmd_syntax}:THREE") @@ -623,7 +623,7 @@ class Pg(SCPICmdRead): - ``.patterndefinition``: The ``PG:PATTERNdefinition`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PG") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PG") -> None: super().__init__(device, cmd_syntax) self._amplitude = PgAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._bit = PgBit(device, f"{self._cmd_syntax}:BIT") diff --git a/src/tm_devices/commands/gen_1zn03_mso/plot.py b/src/tm_devices/commands/gen_1zn03_mso/plot.py index 4f480c29..77558917 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/plot.py +++ b/src/tm_devices/commands/gen_1zn03_mso/plot.py @@ -28,7 +28,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): @@ -89,7 +89,7 @@ class PlotPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``PLOT:PLOT:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source1 = PlotPlotItemSource1(device, f"{self._cmd_syntax}:SOUrce1") self._type = PlotPlotItemType(device, f"{self._cmd_syntax}:TYPe") @@ -220,7 +220,7 @@ class Plot(SCPICmdRead): - ``.plot``: The ``PLOT:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PLOT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PLOT") -> None: super().__init__(device, cmd_syntax) self._addnew = PlotAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PlotDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_1zn03_mso/power.py b/src/tm_devices/commands/gen_1zn03_mso/power.py index ba5c9962..cc80a35b 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/power.py +++ b/src/tm_devices/commands/gen_1zn03_mso/power.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemResultsCurrentacqMinimum(SCPICmdReadWithArguments): @@ -174,7 +174,7 @@ class PowerPowerItemResultsCurrentacq(SCPICmdRead): - ``.minimum``: The ``POWer:POWer:RESUlts:CURRentacq:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = PowerPowerItemResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -300,7 +300,7 @@ class PowerPowerItemResults(SCPICmdRead): - ``.currentacq``: The ``POWer:POWer:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._currentacq = PowerPowerItemResultsCurrentacq(device, f"{self._cmd_syntax}:CURRentacq") @@ -797,7 +797,7 @@ class PowerPowerItemClresponse(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:CLRESPONSE:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampval: Dict[int, PowerPowerItemClresponseAmpvalItem] = DefaultDictPassKeyToFactory( lambda x: PowerPowerItemClresponseAmpvalItem(device, f"{self._cmd_syntax}:AMP{x}Val") @@ -1296,7 +1296,7 @@ class PowerPowerItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.results``: The ``POWer:POWer:RESUlts`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clresponse = PowerPowerItemClresponse(device, f"{self._cmd_syntax}:CLRESPONSE") self._preset = PowerPowerItemPreset(device, f"{self._cmd_syntax}:PRESET") @@ -1420,7 +1420,7 @@ class Power(SCPICmdRead): - ``.power``: The ``POWer:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "POWer") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "POWer") -> None: super().__init__(device, cmd_syntax) self._addnew = PowerAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PowerDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_1zn03_mso/ref.py b/src/tm_devices/commands/gen_1zn03_mso/ref.py index 55fa4944..5a22c0a0 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ref.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ref.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): @@ -299,7 +299,7 @@ class RefRefItemLabelFont(SCPICmdRead): - ``.underline``: The ``REF:REF:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = RefRefItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = RefRefItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -483,7 +483,7 @@ class RefRefItemLabel(SCPICmdRead): - ``.ypos``: The ``REF:REF:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = RefRefItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = RefRefItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -656,7 +656,7 @@ class RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.source``: The ``REF:REF:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deskew = RefRefItemDeskew(device, f"{self._cmd_syntax}:DESKew") self._label = RefRefItemLabel(device, f"{self._cmd_syntax}:LABel") @@ -807,7 +807,7 @@ class Ref(SCPICmdRead): - ``.ref``: The ``REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._addnew = RefAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = RefDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_1zn03_mso/save.py b/src/tm_devices/commands/gen_1zn03_mso/save.py index a82273df..0efbd69e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/save.py +++ b/src/tm_devices/commands/gen_1zn03_mso/save.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): @@ -120,7 +120,7 @@ class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): - ``.resamplerate``: The ``SAVe:WAVEform:GATing:RESAMPLErate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resamplerate = SaveWaveformGatingResamplerate( device, f"{self._cmd_syntax}:RESAMPLErate" @@ -193,7 +193,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.sourcelist``: The ``SAVe:WAVEform:SOURCELIst`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gating = SaveWaveformGating(device, f"{self._cmd_syntax}:GATing") self._sourcelist = SaveWaveformSourcelist(device, f"{self._cmd_syntax}:SOURCELIst") @@ -310,7 +310,7 @@ class SaveSetup(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._includerefs = SaveSetupIncluderefs(device, f"{self._cmd_syntax}:INCLUDEREFs") @@ -417,7 +417,7 @@ class SaveReport(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._comments = SaveReportComments(device, f"{self._cmd_syntax}:COMMents") @@ -547,7 +547,7 @@ class SaveImage(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._composition = SaveImageComposition(device, f"{self._cmd_syntax}:COMPosition") self._viewtype = SaveImageViewtype(device, f"{self._cmd_syntax}:VIEWTYpe") @@ -690,7 +690,7 @@ class SaveEventtable(SCPICmdRead): - ``.searchtable``: The ``SAVe:EVENTtable:SEARCHTable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SaveEventtableBus(device, f"{self._cmd_syntax}:BUS") self._measurement = SaveEventtableMeasurement(device, f"{self._cmd_syntax}:MEASUrement") @@ -784,7 +784,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") self._image = SaveImage(device, f"{self._cmd_syntax}:IMAGe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveon.py b/src/tm_devices/commands/gen_1zn03_mso/saveon.py index f948f5bb..4fbc1d9a 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveon.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): @@ -125,7 +125,7 @@ class SaveonWaveform(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``SAVEON:WAVEform:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveonWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._source = SaveonWaveformSource(device, f"{self._cmd_syntax}:SOURce") @@ -280,7 +280,7 @@ class SaveonImage(SCPICmdWrite, SCPICmdRead): - ``.fileformat``: The ``SAVEON:IMAGe:FILEFormat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveonImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -379,7 +379,7 @@ class SaveonFile(SCPICmdRead): - ``.name``: The ``SAVEON:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SaveonFileDest(device, f"{self._cmd_syntax}:DEST") self._name = SaveonFileName(device, f"{self._cmd_syntax}:NAME") @@ -451,7 +451,7 @@ class Saveon(SCPICmdRead): - ``.waveform``: The ``SAVEON:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEON") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEON") -> None: super().__init__(device, cmd_syntax) self._file = SaveonFile(device, f"{self._cmd_syntax}:FILE") self._image = SaveonImage(device, f"{self._cmd_syntax}:IMAGe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py index 4435499a..cd80cbb4 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): @@ -104,7 +104,7 @@ class SaveoneventWaveform(SCPICmdRead): - ``.source``: The ``SAVEONEVent:WAVEform:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._source = SaveoneventWaveformSource(device, f"{self._cmd_syntax}:SOUrce") @@ -214,7 +214,7 @@ class SaveoneventImage(SCPICmdRead): - ``.fileformat``: The ``SAVEONEVent:IMAGe:FILEFormat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -314,7 +314,7 @@ class Saveonevent(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEONEVent" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEONEVent" ) -> None: super().__init__(device, cmd_syntax) self._filedest = SaveoneventFiledest(device, f"{self._cmd_syntax}:FILEDest") diff --git a/src/tm_devices/commands/gen_1zn03_mso/search.py b/src/tm_devices/commands/gen_1zn03_mso/search.py index f9aec986..9209b0e4 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/search.py +++ b/src/tm_devices/commands/gen_1zn03_mso/search.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite, SCPICmdRead): @@ -478,7 +478,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerATimeoutLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -839,7 +839,7 @@ class SearchSearchItemTriggerASetholdLogicpatternDchItem(ValidatedDynamicNumberC - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:DCH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerASetholdLogicpatternDchItemDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -934,7 +934,7 @@ class SearchSearchItemTriggerASetholdLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -1182,7 +1182,7 @@ class SearchSearchItemTriggerASetholdLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -1425,7 +1425,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1545,7 +1545,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.settime``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = SearchSearchItemTriggerASetholdHoldtime( @@ -1805,7 +1805,7 @@ class SearchSearchItemTriggerARuntThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerARuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerARuntThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -1966,7 +1966,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerARuntLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -2384,7 +2384,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -2828,7 +2828,7 @@ class SearchSearchItemTriggerALogicLogicpatternDchItem(ValidatedDynamicNumberCmd - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:DCH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerALogicLogicpatternDchItemDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -2919,7 +2919,7 @@ class SearchSearchItemTriggerALogicLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -3164,7 +3164,7 @@ class SearchSearchItemTriggerALogicLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -3324,7 +3324,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerALogicInputClockSource( device, f"{self._cmd_syntax}:SOUrce" @@ -3383,7 +3383,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.clock``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCK") @@ -3507,7 +3507,7 @@ class SearchSearchItemTriggerALogicClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = SearchSearchItemTriggerALogicClockThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -3563,7 +3563,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicClock(device, f"{self._cmd_syntax}:CLOCk") self._deltatime = SearchSearchItemTriggerALogicDeltatime( @@ -3920,7 +3920,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4127,7 +4127,7 @@ class SearchSearchItemTriggerABusSpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -4236,7 +4236,7 @@ class SearchSearchItemTriggerABusSpi(SCPICmdRead): - ``.sourcetype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:SOURCETYpe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -4393,7 +4393,7 @@ class SearchSearchItemTriggerABusSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentSlowIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -4538,7 +4538,7 @@ class SearchSearchItemTriggerABusSentSlowData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentSlowDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -4660,7 +4660,7 @@ class SearchSearchItemTriggerABusSentSlow(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = SearchSearchItemTriggerABusSentSlowIdentifier( @@ -4774,7 +4774,7 @@ class SearchSearchItemTriggerABusSentPauseTicks(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentPauseTicksHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -4891,7 +4891,7 @@ class SearchSearchItemTriggerABusSentPause(SCPICmdRead): - ``.ticks``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -4994,7 +4994,7 @@ class SearchSearchItemTriggerABusSentFastStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -5072,7 +5072,7 @@ class SearchSearchItemTriggerABusSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastInvertnibbleValue( device, f"{self._cmd_syntax}:VALue" @@ -5218,7 +5218,7 @@ class SearchSearchItemTriggerABusSentFastCounter(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5434,7 +5434,7 @@ class SearchSearchItemTriggerABusSentFastChan2b(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan2bHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5650,7 +5650,7 @@ class SearchSearchItemTriggerABusSentFastChan1a(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan1aHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5776,7 +5776,7 @@ class SearchSearchItemTriggerABusSentFast(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = SearchSearchItemTriggerABusSentFastChan1a( device, f"{self._cmd_syntax}:CHAN1A" @@ -5944,7 +5944,7 @@ class SearchSearchItemTriggerABusSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -6027,7 +6027,7 @@ class SearchSearchItemTriggerABusSent(SCPICmdRead): - ``.slow``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSentCondition( device, f"{self._cmd_syntax}:CONDition" @@ -6234,7 +6234,7 @@ class SearchSearchItemTriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusRs232cDataValue( @@ -6347,7 +6347,7 @@ class SearchSearchItemTriggerABusRs232c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -6446,7 +6446,7 @@ class SearchSearchItemTriggerABusParallelData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusParallelDataValue( device, f"{self._cmd_syntax}:VALue" @@ -6495,7 +6495,7 @@ class SearchSearchItemTriggerABusParallel(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusParallelData(device, f"{self._cmd_syntax}:DATa") @@ -6559,7 +6559,7 @@ class SearchSearchItemTriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -6762,7 +6762,7 @@ class SearchSearchItemTriggerABusLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6944,7 +6944,7 @@ class SearchSearchItemTriggerABusLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7160,7 +7160,7 @@ class SearchSearchItemTriggerABusI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -7366,7 +7366,7 @@ class SearchSearchItemTriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = SearchSearchItemTriggerABusI2cAddressValue( @@ -7448,7 +7448,7 @@ class SearchSearchItemTriggerABusI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = SearchSearchItemTriggerABusI2cCondition( @@ -7600,7 +7600,7 @@ class SearchSearchItemTriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -7779,7 +7779,7 @@ class SearchSearchItemTriggerABusCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = SearchSearchItemTriggerABusCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -8052,7 +8052,7 @@ class SearchSearchItemTriggerABusCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -8273,7 +8273,7 @@ class SearchSearchItemTriggerABusCan(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8461,7 +8461,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.spi``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = SearchSearchItemTriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._i2c = SearchSearchItemTriggerABusI2c(device, f"{self._cmd_syntax}:I2C") @@ -8653,7 +8653,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -8939,7 +8939,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -9049,7 +9049,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._navigate = SearchSearchItemNavigate(device, f"{self._cmd_syntax}:NAVigate") @@ -9240,7 +9240,7 @@ class Search(SCPICmdRead): - ``.selected``: The ``SEARCH:SELected`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._addnew = SearchAddnew(device, f"{self._cmd_syntax}:ADDNew") self._deleteall = SearchDeleteall(device, f"{self._cmd_syntax}:DELETEALL") diff --git a/src/tm_devices/commands/gen_1zn03_mso/select.py b/src/tm_devices/commands/gen_1zn03_mso/select.py index e8a685e5..a69ba107 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/select.py +++ b/src/tm_devices/commands/gen_1zn03_mso/select.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectDchItemDall(SCPICmdWrite, SCPICmdRead): @@ -72,7 +72,7 @@ class SelectDchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``SELect:DCH:DAll`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = SelectDchItemDall(device, f"{self._cmd_syntax}:DAll") @@ -148,7 +148,7 @@ class Select(SCPICmdRead): - ``.dch``: The ``SELect:DCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SelectChannel] = DefaultDictPassKeyToFactory( lambda x: SelectChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py index 6ad1e474..c82cc26c 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py +++ b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): @@ -63,7 +63,7 @@ class Touchscreen(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TOUCHSCReen" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "TOUCHSCReen" ) -> None: super().__init__(device, cmd_syntax) self._state = TouchscreenState(device, f"{self._cmd_syntax}:STATe") diff --git a/src/tm_devices/commands/gen_1zn03_mso/trigger.py b/src/tm_devices/commands/gen_1zn03_mso/trigger.py index c9a30266..580a8e75 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/trigger.py +++ b/src/tm_devices/commands/gen_1zn03_mso/trigger.py @@ -208,7 +208,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -294,7 +294,7 @@ class TriggerHysteresisUser(SCPICmdRead): - ``.value``: The ``TRIGger:HYSTeresis:USER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = TriggerHysteresisUserState(device, f"{self._cmd_syntax}:STATe") self._value = TriggerHysteresisUserValue(device, f"{self._cmd_syntax}:VALue") @@ -366,7 +366,7 @@ class TriggerHysteresis(SCPICmdRead): - ``.user``: The ``TRIGger:HYSTeresis:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._user = TriggerHysteresisUser(device, f"{self._cmd_syntax}:USER") @@ -449,7 +449,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -618,7 +618,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -833,7 +833,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SETHold:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -907,7 +907,7 @@ class TriggerASethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = TriggerASetholdHoldtime(device, f"{self._cmd_syntax}:HOLDTime") @@ -1029,7 +1029,7 @@ class TriggerASetholdlogicvalDchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHOLDLOGICVAL:DCH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, TriggerASetholdlogicvalDchItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdlogicvalDchItemDigitalBit(device, f"{self._cmd_syntax}_D{x}") @@ -1080,7 +1080,7 @@ class TriggerASetholdlogicval(SCPICmdRead): - ``.dch``: The ``TRIGger:A:SETHOLDLOGICVAL:DCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dch: Dict[int, TriggerASetholdlogicvalDchItem] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdlogicvalDchItem(device, f"{self._cmd_syntax}:DCH{x}") @@ -1227,7 +1227,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1514,7 +1514,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -1737,7 +1737,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1900,7 +1900,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1947,7 +1947,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.clock``: The ``TRIGger:A:LOGIc:INPut:CLOCk`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") @@ -2038,7 +2038,7 @@ class TriggerALogic(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -2256,7 +2256,7 @@ class TriggerALogicpatternDchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.d``: The ``TRIGger:A:LOGICPattern:DCH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, TriggerALogicpatternDchItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicpatternDchItemDigitalBit(device, f"{self._cmd_syntax}_D{x}") @@ -2338,7 +2338,7 @@ class TriggerALogicpattern(SCPICmdRead): - ``.dch``: The ``TRIGger:A:LOGICPattern:DCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicpatternChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicpatternChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2430,7 +2430,7 @@ class TriggerALevel(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2503,7 +2503,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -2640,7 +2640,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -2831,7 +2831,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -2936,7 +2936,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -3030,7 +3030,7 @@ class TriggerABusBItemSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentSlowIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -3167,7 +3167,7 @@ class TriggerABusBItemSentSlowData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentSlowDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentSlowDataQualifier( @@ -3280,7 +3280,7 @@ class TriggerABusBItemSentSlow(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = TriggerABusBItemSentSlowIdentifier( @@ -3368,7 +3368,7 @@ class TriggerABusBItemSentPause(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:SENT:PAUSE:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = TriggerABusBItemSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -3450,7 +3450,7 @@ class TriggerABusBItemSentFastStatus(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentFastStatusValue(device, f"{self._cmd_syntax}:VALue") @@ -3524,7 +3524,7 @@ class TriggerABusBItemSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentFastInvertnibbleValue(device, f"{self._cmd_syntax}:VALue") @@ -3663,7 +3663,7 @@ class TriggerABusBItemSentFastCounter(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -3872,7 +3872,7 @@ class TriggerABusBItemSentFastChan2b(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastChan2bHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentFastChan2bQualifier( @@ -4078,7 +4078,7 @@ class TriggerABusBItemSentFastChan1a(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastChan1aHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentFastChan1aQualifier( @@ -4194,7 +4194,7 @@ class TriggerABusBItemSentFast(SCPICmdRead): - ``.status``: The ``TRIGger:A:BUS:B:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = TriggerABusBItemSentFastChan1a(device, f"{self._cmd_syntax}:CHAN1A") self._chan2b = TriggerABusBItemSentFastChan2b(device, f"{self._cmd_syntax}:CHAN2B") @@ -4345,7 +4345,7 @@ class TriggerABusBItemSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``TRIGger:A:BUS:B:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -4427,7 +4427,7 @@ class TriggerABusBItemSent(SCPICmdRead): - ``.slow``: The ``TRIGger:A:BUS:B:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSentCondition(device, f"{self._cmd_syntax}:CONDition") self._errtype = TriggerABusBItemSentErrtype(device, f"{self._cmd_syntax}:ERRType") @@ -4613,7 +4613,7 @@ class TriggerABusBItemRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cDataValue(device, f"{self._cmd_syntax}:VALue") @@ -4718,7 +4718,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -4811,7 +4811,7 @@ class TriggerABusBItemParallelData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelDataValue(device, f"{self._cmd_syntax}:VALue") @@ -4856,7 +4856,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemParallelData(device, f"{self._cmd_syntax}:DATa") @@ -4919,7 +4919,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -5111,7 +5111,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -5285,7 +5285,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -5486,7 +5486,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -5683,7 +5683,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemI2cAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -5761,7 +5761,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -5906,7 +5906,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -6075,7 +6075,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -6342,7 +6342,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -6561,7 +6561,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -6738,7 +6738,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.spi``: The ``TRIGger:A:BUS:B:SPI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusBItemCan(device, f"{self._cmd_syntax}:CAN") self._i2c = TriggerABusBItemI2c(device, f"{self._cmd_syntax}:I2C") @@ -6879,7 +6879,7 @@ class TriggerABus(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -6977,7 +6977,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = TriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -7299,7 +7299,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") diff --git a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py index a31ba95d..e7af11da 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py +++ b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgcontrolCscopy(SCPICmdWrite): @@ -50,7 +50,9 @@ class Afgcontrol(SCPICmdRead): - ``.cscopy``: The ``AFGControl:CSCopy`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AFGControl") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AFGControl" + ) -> None: super().__init__(device, cmd_syntax) self._cscopy = AfgcontrolCscopy(device, f"{self._cmd_syntax}:CSCopy") diff --git a/src/tm_devices/commands/gen_22daqs_afg/data.py b/src/tm_devices/commands/gen_22daqs_afg/data.py index 28bd61e5..f499a07f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/data.py +++ b/src/tm_devices/commands/gen_22daqs_afg/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataPoints(SCPICmdWrite, SCPICmdReadWithArguments): @@ -100,7 +100,7 @@ class DataLock(SCPICmdRead): - ``.state``: The ``DATA:LOCK:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DataLockState(device, f"{self._cmd_syntax}:STATe") @@ -188,7 +188,7 @@ class DataDelete(SCPICmdRead): - ``.name``: The ``DATA:DELete:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = DataDeleteName(device, f"{self._cmd_syntax}:NAME") @@ -331,7 +331,7 @@ class DataData(SCPICmdWrite, SCPICmdReadWithArguments): - ``.value``: The ``DATA:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._line = DataDataLine(device, f"{self._cmd_syntax}:LINE") self._value = DataDataValue(device, f"{self._cmd_syntax}:VALue") @@ -452,7 +452,7 @@ class Data(SCPICmdRead): - ``.data``: The ``DATA:DATA`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATA") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATA") -> None: super().__init__(device, cmd_syntax) self._catalog = DataCatalog(device, f"{self._cmd_syntax}:CATalog") self._copy = DataCopy(device, f"{self._cmd_syntax}:COPY") diff --git a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py index 4122e64e..e5400bbe 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py +++ b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticAll(SCPICmdWriteNoArguments, SCPICmdRead): @@ -55,7 +55,9 @@ class Diagnostic(SCPICmdRead): - ``.all``: The ``DIAGnostic:ALL`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAGnostic") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAGnostic" + ) -> None: super().__init__(device, cmd_syntax) self._all = DiagnosticAll(device, f"{self._cmd_syntax}:ALL") diff --git a/src/tm_devices/commands/gen_22daqs_afg/display.py b/src/tm_devices/commands/gen_22daqs_afg/display.py index db3d6c14..1cf30717 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/display.py +++ b/src/tm_devices/commands/gen_22daqs_afg/display.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWindowTextData(SCPICmdWrite, SCPICmdRead): @@ -83,7 +83,7 @@ class DisplayWindowText(SCPICmdRead): - ``.data``: The ``DISPlay:WINDow:TEXT:DATA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = DisplayWindowTextClear(device, f"{self._cmd_syntax}:CLEar") self._data = DisplayWindowTextData(device, f"{self._cmd_syntax}:DATA") @@ -144,7 +144,7 @@ class DisplayWindow(SCPICmdRead): - ``.text``: The ``DISPlay:WINDow:TEXT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._text = DisplayWindowText(device, f"{self._cmd_syntax}:TEXT") @@ -217,7 +217,7 @@ class DisplaySaver(SCPICmdRead): - ``.state``: The ``DISPlay:SAVer:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = DisplaySaverImmediate(device, f"{self._cmd_syntax}:IMMediate") self._state = DisplaySaverState(device, f"{self._cmd_syntax}:STATe") @@ -323,7 +323,7 @@ class Display(SCPICmdRead): - ``.window``: The ``DISPlay:WINDow`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISPlay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISPlay") -> None: super().__init__(device, cmd_syntax) self._brightness = DisplayBrightness(device, f"{self._cmd_syntax}:BRIGHtness") self._contrast = DisplayContrast(device, f"{self._cmd_syntax}:CONTrast") diff --git a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py index ddef0abf..8fb00c75 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py +++ b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HcopySdumpImmediate(SCPICmdWriteNoArguments): @@ -51,7 +51,7 @@ class HcopySdump(SCPICmdRead): - ``.immediate``: The ``HCOPy:SDUMp:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = HcopySdumpImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -87,7 +87,7 @@ class Hcopy(SCPICmdRead): - ``.sdump``: The ``HCOPy:SDUMp`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HCOPy") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HCOPy") -> None: super().__init__(device, cmd_syntax) self._sdump = HcopySdump(device, f"{self._cmd_syntax}:SDUMp") diff --git a/src/tm_devices/commands/gen_22daqs_afg/memory.py b/src/tm_devices/commands/gen_22daqs_afg/memory.py index 3c421e0d..dca0c2ea 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/memory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/memory.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MemoryStateValid(SCPICmdReadWithArguments): @@ -84,7 +84,7 @@ class MemoryStateRecall(SCPICmdRead): - ``.auto``: The ``MEMory:STATe:RECall:AUTo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = MemoryStateRecallAuto(device, f"{self._cmd_syntax}:AUTo") @@ -170,7 +170,7 @@ class MemoryState(SCPICmdRead): - ``.valid``: The ``MEMory:STATe:VALid`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delete = MemoryStateDelete(device, f"{self._cmd_syntax}:DELete") self._lock = MemoryStateLock(device, f"{self._cmd_syntax}:LOCK") @@ -269,7 +269,7 @@ class Memory(SCPICmdRead): - ``.state``: The ``MEMory:STATe`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEMory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEMory") -> None: super().__init__(device, cmd_syntax) self._state = MemoryState(device, f"{self._cmd_syntax}:STATe") @@ -309,7 +309,7 @@ class Sav(SCPICmdWrite): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*SAV") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*SAV") -> None: super().__init__(device, cmd_syntax) @@ -330,5 +330,5 @@ class Rcl(SCPICmdWrite): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*RCL") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*RCL") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py index 5661d9b4..e1e241d2 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemoryStoreTrace(SCPICmdWrite): @@ -82,7 +82,7 @@ class MmemoryStore(SCPICmdRead): - ``.trace``: The ``MMEMory:STORe:TRACe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MmemoryStoreState(device, f"{self._cmd_syntax}:STATe") self._trace = MmemoryStoreTrace(device, f"{self._cmd_syntax}:TRACe") @@ -180,7 +180,7 @@ class MmemoryLock(SCPICmdRead): - ``.state``: The ``MMEMory:LOCK:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MmemoryLockState(device, f"{self._cmd_syntax}:STATe") @@ -256,7 +256,7 @@ class MmemoryLoad(SCPICmdRead): - ``.trace``: The ``MMEMory:LOAD:TRACe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MmemoryLoadState(device, f"{self._cmd_syntax}:STATe") self._trace = MmemoryLoadTrace(device, f"{self._cmd_syntax}:TRACe") @@ -374,7 +374,7 @@ class Mmemory(SCPICmdRead): - ``.store``: The ``MMEMory:STORe`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MMEMory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MMEMory") -> None: super().__init__(device, cmd_syntax) self._catalog = MmemoryCatalog(device, f"{self._cmd_syntax}:CATalog") self._cdirectory = MmemoryCdirectory(device, f"{self._cmd_syntax}:CDIRectory") diff --git a/src/tm_devices/commands/gen_22daqs_afg/output.py b/src/tm_devices/commands/gen_22daqs_afg/output.py index a0044cac..b9b13513 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputTriggerMode(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class OutputTrigger(SCPICmdRead): - ``.mode``: The ``OUTPut:TRIGger:MODE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = OutputTriggerMode(device, f"{self._cmd_syntax}:MODE") @@ -104,7 +104,7 @@ class Output(SCPICmdRead): - ``.trigger``: The ``OUTPut:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut") -> None: super().__init__(device, cmd_syntax) self._trigger = OutputTrigger(device, f"{self._cmd_syntax}:TRIGger") diff --git a/src/tm_devices/commands/gen_22daqs_afg/output1.py b/src/tm_devices/commands/gen_22daqs_afg/output1.py index 3f7b7190..ce5b0f8f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output1.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Output1State(SCPICmdWrite, SCPICmdRead): @@ -107,7 +107,7 @@ class Output1(SCPICmdRead): - ``.state``: The ``OUTPut1:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut1") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut1") -> None: super().__init__(device, cmd_syntax) self._impedance = Output1Impedance(device, f"{self._cmd_syntax}:IMPedance") self._polarity = Output1Polarity(device, f"{self._cmd_syntax}:POLarity") diff --git a/src/tm_devices/commands/gen_22daqs_afg/output2.py b/src/tm_devices/commands/gen_22daqs_afg/output2.py index 8a7590a1..90352890 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output2.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Output2State(SCPICmdWrite, SCPICmdRead): @@ -107,7 +107,7 @@ class Output2(SCPICmdRead): - ``.state``: The ``OUTPut2:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut2") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut2") -> None: super().__init__(device, cmd_syntax) self._impedance = Output2Impedance(device, f"{self._cmd_syntax}:IMPedance") self._polarity = Output2Polarity(device, f"{self._cmd_syntax}:POLarity") diff --git a/src/tm_devices/commands/gen_22daqs_afg/source.py b/src/tm_devices/commands/gen_22daqs_afg/source.py index 83107a9f..25b39de8 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceRoscillatorSource(SCPICmdWrite, SCPICmdRead): @@ -55,7 +55,7 @@ class SourceRoscillator(SCPICmdRead): - ``.source``: The ``SOURce:ROSCillator:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SourceRoscillatorSource(device, f"{self._cmd_syntax}:SOURce") @@ -94,7 +94,7 @@ class Source(SCPICmdRead): - ``.roscillator``: The ``SOURce:ROSCillator`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce") -> None: super().__init__(device, cmd_syntax) self._roscillator = SourceRoscillator(device, f"{self._cmd_syntax}:ROSCillator") diff --git a/src/tm_devices/commands/gen_22daqs_afg/source1.py b/src/tm_devices/commands/gen_22daqs_afg/source1.py index c628ee85..9fbfe61e 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source1.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source1VoltageUnit(SCPICmdWrite, SCPICmdRead): @@ -239,7 +239,7 @@ class Source1VoltageLimit(SCPICmdRead): - ``.low``: The ``SOURce1:VOLTage:LIMit:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = Source1VoltageLimitHigh(device, f"{self._cmd_syntax}:HIGH") self._low = Source1VoltageLimitLow(device, f"{self._cmd_syntax}:LOW") @@ -414,7 +414,7 @@ class Source1VoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce1:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = Source1VoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = Source1VoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -545,7 +545,7 @@ class Source1VoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce1:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = Source1VoltageLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -606,7 +606,7 @@ class Source1VoltageConcurrent(SCPICmdRead): - ``.state``: The ``SOURce1:VOLTage:CONCurrent:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = Source1VoltageConcurrentState(device, f"{self._cmd_syntax}:STATe") @@ -655,7 +655,7 @@ class Source1Voltage(SCPICmdRead): - ``.level``: The ``SOURce1:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._concurrent = Source1VoltageConcurrent(device, f"{self._cmd_syntax}:CONCurrent") self._limit = Source1VoltageLimit(device, f"{self._cmd_syntax}:LIMit") @@ -857,7 +857,7 @@ class Source1Sweep(SCPICmdRead): - ``.time``: The ``SOURce1:SWEep:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._htime = Source1SweepHtime(device, f"{self._cmd_syntax}:HTIMe") self._mode = Source1SweepMode(device, f"{self._cmd_syntax}:MODE") @@ -1090,7 +1090,7 @@ class Source1PwmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce1:PWM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source1PwmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -1159,7 +1159,7 @@ class Source1PwmInternal(SCPICmdRead): - ``.function``: The ``SOURce1:PWM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source1PwmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source1PwmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -1271,7 +1271,7 @@ class Source1PwmDeviation(SCPICmdRead): - ``.dcycle``: The ``SOURce1:PWM:DEViation:DCYCle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcycle = Source1PwmDeviationDcycle(device, f"{self._cmd_syntax}:DCYCle") @@ -1317,7 +1317,7 @@ class Source1Pwm(SCPICmdRead): - ``.deviation``: The ``SOURce1:PWM:DEViation`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source1PwmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source1PwmSource(device, f"{self._cmd_syntax}:SOURce") @@ -1479,7 +1479,7 @@ class Source1PulseTransition(SCPICmdRead): - ``.leading``: The ``SOURce1:PULSe:TRANsition:LEADing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trailing = Source1PulseTransitionTrailing(device, f"{self._cmd_syntax}:TRAiling") self._leading = Source1PulseTransitionLeading(device, f"{self._cmd_syntax}:LEADing") @@ -1636,7 +1636,7 @@ class Source1Pulse(SCPICmdRead): - ``.width``: The ``SOURce1:PULSe:WIDTh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcycle = Source1PulseDcycle(device, f"{self._cmd_syntax}:DCYCle") self._delay = Source1PulseDelay(device, f"{self._cmd_syntax}:DELay") @@ -1889,7 +1889,7 @@ class Source1PmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce1:PM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source1PmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -1958,7 +1958,7 @@ class Source1PmInternal(SCPICmdRead): - ``.function``: The ``SOURce1:PM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source1PmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source1PmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -2068,7 +2068,7 @@ class Source1Pm(SCPICmdRead): - ``.deviation``: The ``SOURce1:PM:DEViation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source1PmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source1PmSource(device, f"{self._cmd_syntax}:SOURce") @@ -2214,7 +2214,7 @@ class Source1Phase(SCPICmdRead): - ``.adjust``: The ``SOURce1:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._initiate = Source1PhaseInitiate(device, f"{self._cmd_syntax}:INITiate") self._adjust = Source1PhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -2334,7 +2334,7 @@ class Source1FunctionRamp(SCPICmdRead): - ``.symmetry``: The ``SOURce1:FUNCtion:RAMP:SYMMetry`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symmetry = Source1FunctionRampSymmetry(device, f"{self._cmd_syntax}:SYMMetry") @@ -2398,7 +2398,7 @@ class Source1Function(SCPICmdRead): - ``.shape``: The ``SOURce1:FUNCtion:SHAPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source1FunctionEfile(device, f"{self._cmd_syntax}:EFILe") self._ramp = Source1FunctionRamp(device, f"{self._cmd_syntax}:RAMP") @@ -2558,7 +2558,7 @@ class Source1FskeyInternal(SCPICmdRead): - ``.rate``: The ``SOURce1:FSKey:INTernal:RATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rate = Source1FskeyInternalRate(device, f"{self._cmd_syntax}:RATE") @@ -2624,7 +2624,7 @@ class Source1Fskey(SCPICmdRead): - ``.frequency``: The ``SOURce1:FSKey:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source1FskeyInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source1FskeySource(device, f"{self._cmd_syntax}:SOURce") @@ -2899,7 +2899,7 @@ class Source1FrequencyConcurrent(SCPICmdRead): - ``.state``: The ``SOURce1:FREQuency:CONCurrent:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = Source1FrequencyConcurrentState(device, f"{self._cmd_syntax}:STATe") @@ -2977,7 +2977,7 @@ class Source1Frequency(SCPICmdRead): - ``.fixed``: The ``SOURce1:FREQuency:FIXed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._center = Source1FrequencyCenter(device, f"{self._cmd_syntax}:CENTer") self._concurrent = Source1FrequencyConcurrent(device, f"{self._cmd_syntax}:CONCurrent") @@ -3289,7 +3289,7 @@ class Source1FmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce1:FM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source1FmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -3358,7 +3358,7 @@ class Source1FmInternal(SCPICmdRead): - ``.function``: The ``SOURce1:FM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source1FmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source1FmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -3472,7 +3472,7 @@ class Source1Fm(SCPICmdRead): - ``.deviation``: The ``SOURce1:FM:DEViation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source1FmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source1FmSource(device, f"{self._cmd_syntax}:SOURce") @@ -3605,7 +3605,7 @@ class Source1Combine(SCPICmdRead): - ``.feed``: The ``SOURce1:COMBine:FEED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._feed = Source1CombineFeed(device, f"{self._cmd_syntax}:FEED") @@ -3741,7 +3741,7 @@ class Source1Burst(SCPICmdRead): - ``.state``: The ``SOURce1:BURSt:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = Source1BurstMode(device, f"{self._cmd_syntax}:MODE") self._ncycles = Source1BurstNcycles(device, f"{self._cmd_syntax}:NCYCles") @@ -3948,7 +3948,7 @@ class Source1AmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce1:AM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source1AmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -4017,7 +4017,7 @@ class Source1AmInternal(SCPICmdRead): - ``.function``: The ``SOURce1:AM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source1AmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source1AmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -4128,7 +4128,7 @@ class Source1Am(SCPICmdRead): - ``.depth``: The ``SOURce1:AM:DEPTh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source1AmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source1AmSource(device, f"{self._cmd_syntax}:SOURce") @@ -4242,7 +4242,7 @@ class Source1(SCPICmdRead): - ``.voltage``: The ``SOURce1:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce1") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce1") -> None: super().__init__(device, cmd_syntax) self._am = Source1Am(device, f"{self._cmd_syntax}:AM") self._burst = Source1Burst(device, f"{self._cmd_syntax}:BURSt") diff --git a/src/tm_devices/commands/gen_22daqs_afg/source2.py b/src/tm_devices/commands/gen_22daqs_afg/source2.py index e385b770..4a3273fb 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source2.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source2VoltageUnit(SCPICmdWrite, SCPICmdRead): @@ -239,7 +239,7 @@ class Source2VoltageLimit(SCPICmdRead): - ``.low``: The ``SOURce2:VOLTage:LIMit:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = Source2VoltageLimitHigh(device, f"{self._cmd_syntax}:HIGH") self._low = Source2VoltageLimitLow(device, f"{self._cmd_syntax}:LOW") @@ -414,7 +414,7 @@ class Source2VoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce2:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = Source2VoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = Source2VoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -545,7 +545,7 @@ class Source2VoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce2:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = Source2VoltageLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -606,7 +606,7 @@ class Source2VoltageConcurrent(SCPICmdRead): - ``.state``: The ``SOURce2:VOLTage:CONCurrent:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = Source2VoltageConcurrentState(device, f"{self._cmd_syntax}:STATe") @@ -655,7 +655,7 @@ class Source2Voltage(SCPICmdRead): - ``.level``: The ``SOURce2:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._concurrent = Source2VoltageConcurrent(device, f"{self._cmd_syntax}:CONCurrent") self._limit = Source2VoltageLimit(device, f"{self._cmd_syntax}:LIMit") @@ -857,7 +857,7 @@ class Source2Sweep(SCPICmdRead): - ``.time``: The ``SOURce2:SWEep:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._htime = Source2SweepHtime(device, f"{self._cmd_syntax}:HTIMe") self._mode = Source2SweepMode(device, f"{self._cmd_syntax}:MODE") @@ -1090,7 +1090,7 @@ class Source2PwmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce2:PWM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source2PwmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -1159,7 +1159,7 @@ class Source2PwmInternal(SCPICmdRead): - ``.function``: The ``SOURce2:PWM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source2PwmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source2PwmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -1271,7 +1271,7 @@ class Source2PwmDeviation(SCPICmdRead): - ``.dcycle``: The ``SOURce2:PWM:DEViation:DCYCle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcycle = Source2PwmDeviationDcycle(device, f"{self._cmd_syntax}:DCYCle") @@ -1317,7 +1317,7 @@ class Source2Pwm(SCPICmdRead): - ``.deviation``: The ``SOURce2:PWM:DEViation`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source2PwmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source2PwmSource(device, f"{self._cmd_syntax}:SOURce") @@ -1479,7 +1479,7 @@ class Source2PulseTransition(SCPICmdRead): - ``.leading``: The ``SOURce2:PULSe:TRANsition:LEADing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trailing = Source2PulseTransitionTrailing(device, f"{self._cmd_syntax}:TRAiling") self._leading = Source2PulseTransitionLeading(device, f"{self._cmd_syntax}:LEADing") @@ -1636,7 +1636,7 @@ class Source2Pulse(SCPICmdRead): - ``.width``: The ``SOURce2:PULSe:WIDTh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcycle = Source2PulseDcycle(device, f"{self._cmd_syntax}:DCYCle") self._delay = Source2PulseDelay(device, f"{self._cmd_syntax}:DELay") @@ -1889,7 +1889,7 @@ class Source2PmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce2:PM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source2PmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -1958,7 +1958,7 @@ class Source2PmInternal(SCPICmdRead): - ``.function``: The ``SOURce2:PM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source2PmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source2PmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -2068,7 +2068,7 @@ class Source2Pm(SCPICmdRead): - ``.deviation``: The ``SOURce2:PM:DEViation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source2PmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source2PmSource(device, f"{self._cmd_syntax}:SOURce") @@ -2214,7 +2214,7 @@ class Source2Phase(SCPICmdRead): - ``.adjust``: The ``SOURce2:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._initiate = Source2PhaseInitiate(device, f"{self._cmd_syntax}:INITiate") self._adjust = Source2PhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -2334,7 +2334,7 @@ class Source2FunctionRamp(SCPICmdRead): - ``.symmetry``: The ``SOURce2:FUNCtion:RAMP:SYMMetry`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symmetry = Source2FunctionRampSymmetry(device, f"{self._cmd_syntax}:SYMMetry") @@ -2398,7 +2398,7 @@ class Source2Function(SCPICmdRead): - ``.shape``: The ``SOURce2:FUNCtion:SHAPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source2FunctionEfile(device, f"{self._cmd_syntax}:EFILe") self._ramp = Source2FunctionRamp(device, f"{self._cmd_syntax}:RAMP") @@ -2558,7 +2558,7 @@ class Source2FskeyInternal(SCPICmdRead): - ``.rate``: The ``SOURce2:FSKey:INTernal:RATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rate = Source2FskeyInternalRate(device, f"{self._cmd_syntax}:RATE") @@ -2624,7 +2624,7 @@ class Source2Fskey(SCPICmdRead): - ``.frequency``: The ``SOURce2:FSKey:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source2FskeyInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source2FskeySource(device, f"{self._cmd_syntax}:SOURce") @@ -2899,7 +2899,7 @@ class Source2FrequencyConcurrent(SCPICmdRead): - ``.state``: The ``SOURce2:FREQuency:CONCurrent:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = Source2FrequencyConcurrentState(device, f"{self._cmd_syntax}:STATe") @@ -2977,7 +2977,7 @@ class Source2Frequency(SCPICmdRead): - ``.fixed``: The ``SOURce2:FREQuency:FIXed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._center = Source2FrequencyCenter(device, f"{self._cmd_syntax}:CENTer") self._concurrent = Source2FrequencyConcurrent(device, f"{self._cmd_syntax}:CONCurrent") @@ -3289,7 +3289,7 @@ class Source2FmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce2:FM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source2FmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -3358,7 +3358,7 @@ class Source2FmInternal(SCPICmdRead): - ``.function``: The ``SOURce2:FM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source2FmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source2FmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -3472,7 +3472,7 @@ class Source2Fm(SCPICmdRead): - ``.deviation``: The ``SOURce2:FM:DEViation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source2FmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source2FmSource(device, f"{self._cmd_syntax}:SOURce") @@ -3605,7 +3605,7 @@ class Source2Combine(SCPICmdRead): - ``.feed``: The ``SOURce2:COMBine:FEED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._feed = Source2CombineFeed(device, f"{self._cmd_syntax}:FEED") @@ -3741,7 +3741,7 @@ class Source2Burst(SCPICmdRead): - ``.state``: The ``SOURce2:BURSt:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = Source2BurstMode(device, f"{self._cmd_syntax}:MODE") self._ncycles = Source2BurstNcycles(device, f"{self._cmd_syntax}:NCYCles") @@ -3948,7 +3948,7 @@ class Source2AmInternalFunction(SCPICmdWrite, SCPICmdRead): - ``.efile``: The ``SOURce2:AM:INTernal:FUNCtion:EFILe`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._efile = Source2AmInternalFunctionEfile(device, f"{self._cmd_syntax}:EFILe") @@ -4017,7 +4017,7 @@ class Source2AmInternal(SCPICmdRead): - ``.function``: The ``SOURce2:AM:INTernal:FUNCtion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = Source2AmInternalFrequency(device, f"{self._cmd_syntax}:FREQuency") self._function = Source2AmInternalFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -4128,7 +4128,7 @@ class Source2Am(SCPICmdRead): - ``.depth``: The ``SOURce2:AM:DEPTh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._internal = Source2AmInternal(device, f"{self._cmd_syntax}:INTernal") self._source = Source2AmSource(device, f"{self._cmd_syntax}:SOURce") @@ -4242,7 +4242,7 @@ class Source2(SCPICmdRead): - ``.voltage``: The ``SOURce2:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce2") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce2") -> None: super().__init__(device, cmd_syntax) self._am = Source2Am(device, f"{self._cmd_syntax}:AM") self._burst = Source2Burst(device, f"{self._cmd_syntax}:BURSt") diff --git a/src/tm_devices/commands/gen_22daqs_afg/source3.py b/src/tm_devices/commands/gen_22daqs_afg/source3.py index cca4de71..33e9b136 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source3.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source3.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source3PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): @@ -61,7 +61,7 @@ class Source3PowerLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce3:POWer:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = Source3PowerLevelImmediateAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -109,7 +109,7 @@ class Source3PowerLevel(SCPICmdRead): - ``.immediate``: The ``SOURce3:POWer:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = Source3PowerLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -140,7 +140,7 @@ class Source3Power(SCPICmdRead): - ``.level``: The ``SOURce3:POWer:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = Source3PowerLevel(device, f"{self._cmd_syntax}:LEVel") @@ -171,7 +171,7 @@ class Source3(SCPICmdRead): - ``.power``: The ``SOURce3:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce3") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce3") -> None: super().__init__(device, cmd_syntax) self._power = Source3Power(device, f"{self._cmd_syntax}:POWer") diff --git a/src/tm_devices/commands/gen_22daqs_afg/source4.py b/src/tm_devices/commands/gen_22daqs_afg/source4.py index 0205f7f5..27d42a5f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source4.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source4.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source4PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): @@ -61,7 +61,7 @@ class Source4PowerLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce4:POWer:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = Source4PowerLevelImmediateAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -109,7 +109,7 @@ class Source4PowerLevel(SCPICmdRead): - ``.immediate``: The ``SOURce4:POWer:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = Source4PowerLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -140,7 +140,7 @@ class Source4Power(SCPICmdRead): - ``.level``: The ``SOURce4:POWer:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = Source4PowerLevel(device, f"{self._cmd_syntax}:LEVel") @@ -171,7 +171,7 @@ class Source4(SCPICmdRead): - ``.power``: The ``SOURce4:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce4") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce4") -> None: super().__init__(device, cmd_syntax) self._power = Source4Power(device, f"{self._cmd_syntax}:POWer") diff --git a/src/tm_devices/commands/gen_22daqs_afg/status.py b/src/tm_devices/commands/gen_22daqs_afg/status.py index 50358056..cdddcad1 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/status.py +++ b/src/tm_devices/commands/gen_22daqs_afg/status.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionableEvent(SCPICmdRead): @@ -107,7 +107,7 @@ class StatusQuestionable(SCPICmdRead): - ``.event``: The ``STATus:QUEStionable:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusQuestionableCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusQuestionableEnable(device, f"{self._cmd_syntax}:ENABle") @@ -263,7 +263,7 @@ class StatusOperation(SCPICmdRead): - ``.event``: The ``STATus:OPERation:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusOperationCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusOperationEnable(device, f"{self._cmd_syntax}:ENABle") @@ -345,7 +345,7 @@ class Status(SCPICmdRead): - ``.questionable``: The ``STATus:QUEStionable`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "STATus") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "STATus") -> None: super().__init__(device, cmd_syntax) self._operation = StatusOperation(device, f"{self._cmd_syntax}:OPERation") self._preset = StatusPreset(device, f"{self._cmd_syntax}:PRESet") @@ -420,7 +420,7 @@ class Sre(SCPICmdWrite, SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*SRE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*SRE") -> None: super().__init__(device, cmd_syntax) @@ -446,7 +446,7 @@ class Psc(SCPICmdWrite, SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*PSC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*PSC") -> None: super().__init__(device, cmd_syntax) @@ -474,5 +474,5 @@ class Ese(SCPICmdWrite, SCPICmdRead): - ``::=`` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*ESE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*ESE") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_22daqs_afg/system.py b/src/tm_devices/commands/gen_22daqs_afg/system.py index 4480deae..ea04a6d9 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/system.py +++ b/src/tm_devices/commands/gen_22daqs_afg/system.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): @@ -106,7 +106,7 @@ class SystemSecurity(SCPICmdRead): - ``.immediate``: The ``SYSTem:SECurity:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SystemSecurityImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -186,7 +186,7 @@ class SystemPasswordCenable(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``SYSTem:PASSword:CENable:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SystemPasswordCenableState(device, f"{self._cmd_syntax}:STATe") @@ -243,7 +243,7 @@ class SystemPassword(SCPICmdRead): - ``.cenable``: The ``SYSTem:PASSword:CENable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cdisable = SystemPasswordCdisable(device, f"{self._cmd_syntax}:CDISable") self._new = SystemPasswordNew(device, f"{self._cmd_syntax}:NEW") @@ -344,7 +344,7 @@ class SystemKlock(SCPICmdRead): - ``.state``: The ``SYSTem:KLOCk:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SystemKlockState(device, f"{self._cmd_syntax}:STATe") @@ -404,7 +404,7 @@ class SystemKclick(SCPICmdRead): - ``.state``: The ``SYSTem:KCLick:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SystemKclickState(device, f"{self._cmd_syntax}:STATe") @@ -462,7 +462,7 @@ class SystemErrorCmd(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._next = SystemErrorNext(device, f"{self._cmd_syntax}:NEXT") @@ -539,7 +539,7 @@ class SystemBeeper(SCPICmdRead): - ``.immediate``: The ``SYSTem:BEEPer:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SystemBeeperState(device, f"{self._cmd_syntax}:STATe") self._immediate = SystemBeeperImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -608,7 +608,7 @@ class System(SCPICmdRead): - ``.version``: The ``SYSTem:VERSion`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYSTem") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYSTem") -> None: super().__init__(device, cmd_syntax) self._beeper = SystemBeeper(device, f"{self._cmd_syntax}:BEEPer") self._error = SystemError(device, f"{self._cmd_syntax}:ERRor") diff --git a/src/tm_devices/commands/gen_22daqs_afg/trigger.py b/src/tm_devices/commands/gen_22daqs_afg/trigger.py index be38f794..62b2e30b 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/trigger.py +++ b/src/tm_devices/commands/gen_22daqs_afg/trigger.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerSequenceTimer(SCPICmdWrite): @@ -129,7 +129,7 @@ class TriggerSequence(SCPICmdRead): - ``.immediate``: The ``TRIGger:SEQuence:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = TriggerSequenceSlope(device, f"{self._cmd_syntax}:SLOPe") self._source = TriggerSequenceSource(device, f"{self._cmd_syntax}:SOURce") @@ -243,7 +243,7 @@ class Trigger(SCPICmdRead): - ``.sequence``: The ``TRIGger:SEQuence`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._sequence = TriggerSequence(device, f"{self._cmd_syntax}:SEQuence") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py index 272e1fd3..596026f8 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Abort(SCPICmdWrite): @@ -38,5 +38,5 @@ class Abort(SCPICmdWrite): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ABORt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ABORt") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py index aaa505c4..7daa0396 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): @@ -68,7 +68,7 @@ class AuxoutputItemSource(SCPICmdWrite, SCPICmdRead): - ``.cmapping``: The ``AUXoutput[n]:SOURce:CMAPping`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cmapping = AuxoutputItemSourceCmapping(device, f"{self._cmd_syntax}:CMAPping") @@ -108,7 +108,7 @@ class AuxoutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXoutput[n]" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXoutput[n]" ) -> None: super().__init__(device, cmd_syntax) self._source = AuxoutputItemSource(device, f"{self._cmd_syntax}:SOURce") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py index 9c5925c9..94675e01 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): @@ -69,7 +69,7 @@ class AwgcontrolStop(SCPICmdRead): - ``.immediate``: The ``AWGControl:STOP:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolStopImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -173,7 +173,7 @@ class AwgcontrolRun(SCPICmdRead): - ``.immediate``: The ``AWGControl:RUN:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolRunImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -307,7 +307,7 @@ class AwgcontrolPjump(SCPICmdRead): - ``.sedge``: The ``AWGControl:PJUMp:SEDGe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._jstrobe = AwgcontrolPjumpJstrobe(device, f"{self._cmd_syntax}:JSTRobe") self._sedge = AwgcontrolPjumpSedge(device, f"{self._cmd_syntax}:SEDGe") @@ -398,7 +398,7 @@ class AwgcontrolConfigure(SCPICmdRead): - ``.cnumber``: The ``AWGControl:CONFigure:CNUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cnumber = AwgcontrolConfigureCnumber(device, f"{self._cmd_syntax}:CNUMber") @@ -503,7 +503,7 @@ class AwgcontrolClockPhase(SCPICmdRead): - ``.adjust``: The ``AWGControl:CLOCk:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = AwgcontrolClockPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -567,7 +567,7 @@ class AwgcontrolClock(SCPICmdRead): - ``.source``: The ``AWGControl:CLOCk:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._phase = AwgcontrolClockPhase(device, f"{self._cmd_syntax}:PHASe") self._drate = AwgcontrolClockDrate(device, f"{self._cmd_syntax}:DRATe") @@ -690,7 +690,9 @@ class Awgcontrol(SCPICmdRead): - ``.stop``: The ``AWGControl:STOP`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AWGControl") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AWGControl" + ) -> None: super().__init__(device, cmd_syntax) self._arsettings = AwgcontrolArsettings(device, f"{self._cmd_syntax}:ARSettings") self._compile = AwgcontrolCompile(device, f"{self._cmd_syntax}:COMPile") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py index 37fc9da5..41510a3f 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BwaveformSrate(SCPICmdWrite): @@ -337,7 +337,7 @@ class BwaveformCompile(SCPICmdWriteNoArguments, SCPICmdRead): - ``.play``: The ``BWAVeform:COMPile:PLAY`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cassign = BwaveformCompileCassign(device, f"{self._cmd_syntax}:CASSign") self._channel = BwaveformCompileChannel(device, f"{self._cmd_syntax}:CHANnel") @@ -504,7 +504,7 @@ class Bwaveform(SCPICmdRead): - ``.srate``: The ``BWAVeform:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BWAVeform") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BWAVeform") -> None: super().__init__(device, cmd_syntax) self._amplitude = BwaveformAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._auto = BwaveformAuto(device, f"{self._cmd_syntax}:AUTO") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py index 963e0280..c0e595b5 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): @@ -108,7 +108,7 @@ class ClockSout(SCPICmdRead): - ``.state``: The ``CLOCk:SOUT:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ClockSoutState(device, f"{self._cmd_syntax}:STATe") @@ -225,7 +225,7 @@ class ClockPhaseAdjust(SCPICmdRead): - ``.time``: The ``CLOCk:PHASe:ADJust:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = ClockPhaseAdjustDegrees(device, f"{self._cmd_syntax}:DEGRees") self._time = ClockPhaseAdjustTime(device, f"{self._cmd_syntax}:TIMe") @@ -297,7 +297,7 @@ class ClockPhase(SCPICmdRead): - ``.adjust``: The ``CLOCk:PHASe:ADJust`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = ClockPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -373,7 +373,7 @@ class ClockOutput(SCPICmdRead): - ``.state``: The ``CLOCk:OUTPut:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = ClockOutputFrequency(device, f"{self._cmd_syntax}:FREQuency") self._state = ClockOutputState(device, f"{self._cmd_syntax}:STATe") @@ -519,7 +519,7 @@ class ClockEreferenceFrequency(SCPICmdWrite, SCPICmdRead): - ``.detect``: The ``CLOCk:EREFerence:FREQuency:DETect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._detect = ClockEreferenceFrequencyDetect(device, f"{self._cmd_syntax}:DETect") @@ -586,7 +586,7 @@ class ClockEreference(SCPICmdRead): - ``.multiplier``: The ``CLOCk:EREFerence:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._divider = ClockEreferenceDivider(device, f"{self._cmd_syntax}:DIVider") self._frequency = ClockEreferenceFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -741,7 +741,7 @@ class ClockEclockFrequency(SCPICmdWrite, SCPICmdRead): - ``.detect``: The ``CLOCk:ECLock:FREQuency:DETect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._detect = ClockEclockFrequencyDetect(device, f"{self._cmd_syntax}:DETect") @@ -803,7 +803,7 @@ class ClockEclock(SCPICmdRead): - ``.multiplier``: The ``CLOCk:ECLock:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._divider = ClockEclockDivider(device, f"{self._cmd_syntax}:DIVider") self._frequency = ClockEclockFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -909,7 +909,7 @@ class Clock(SCPICmdRead): - ``.srate``: The ``CLOCk:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CLOCk") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CLOCk") -> None: super().__init__(device, cmd_syntax) self._eclock = ClockEclock(device, f"{self._cmd_syntax}:ECLock") self._ereference = ClockEreference(device, f"{self._cmd_syntax}:EREFerence") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py index 4ddb0a4e..d06eebe9 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): @@ -96,7 +96,7 @@ class CplaybackCompileSrate(SCPICmdWrite, SCPICmdRead): - ``.auto``: The ``CPLayback:COMPile:SRATe:AUTO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = CplaybackCompileSrateAuto(device, f"{self._cmd_syntax}:AUTO") @@ -219,7 +219,7 @@ class CplaybackCompile(SCPICmdWriteNoArguments, SCPICmdRead): - ``.srate``: The ``CPLayback:COMPile:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cfrequency = CplaybackCompileCfrequency(device, f"{self._cmd_syntax}:CFRequency") self._lsequence = CplaybackCompileLsequence(device, f"{self._cmd_syntax}:LSEQuence") @@ -472,7 +472,7 @@ class CplaybackClistSignalWaveform(SCPICmdRead): - ``.srate``: The ``CPLayback:CLISt:SIGNal:WAVeform:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._foffset = CplaybackClistSignalWaveformFoffset(device, f"{self._cmd_syntax}:FOFFset") self._name = CplaybackClistSignalWaveformName(device, f"{self._cmd_syntax}:NAME") @@ -636,7 +636,7 @@ class CplaybackClistSignal(SCPICmdRead): - ``.wcount``: The ``CPLayback:CLISt:SIGNal:WCOunt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delete = CplaybackClistSignalDelete(device, f"{self._cmd_syntax}:DELete") self._scompile = CplaybackClistSignalScompile(device, f"{self._cmd_syntax}:SCOMpile") @@ -766,7 +766,7 @@ class CplaybackClist(SCPICmdRead): - ``.size``: The ``CPLayback:CLISt:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = CplaybackClistName(device, f"{self._cmd_syntax}:NAME") self._signal = CplaybackClistSignal(device, f"{self._cmd_syntax}:SIGNal") @@ -882,7 +882,7 @@ class CplaybackCaptureInstrument(SCPICmdRead): - ``.rsa``: The ``CPLayback:CAPTure:INSTrument:RSA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._oscilloscope = CplaybackCaptureInstrumentOscilloscope( device, f"{self._cmd_syntax}:OSCilloscope" @@ -970,7 +970,7 @@ class CplaybackCapture(SCPICmdRead): - ``.instrument``: The ``CPLayback:CAPTure:INSTrument`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = CplaybackCaptureFile(device, f"{self._cmd_syntax}:FILE") self._instrument = CplaybackCaptureInstrument(device, f"{self._cmd_syntax}:INSTrument") @@ -1034,7 +1034,7 @@ class Cplayback(SCPICmdRead): - ``.compile``: The ``CPLayback:COMPile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CPLayback") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CPLayback") -> None: super().__init__(device, cmd_syntax) self._capture = CplaybackCapture(device, f"{self._cmd_syntax}:CAPTure") self._clist = CplaybackClist(device, f"{self._cmd_syntax}:CLISt") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py index ee77bb50..7d501eb4 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticUnselect(SCPICmdWrite): @@ -112,7 +112,7 @@ class DiagnosticType(SCPICmdWrite, SCPICmdRead): - ``.catalog``: The ``DIAGnostic:TYPE:CATalog`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._catalog = DiagnosticTypeCatalog(device, f"{self._cmd_syntax}:CATalog") @@ -173,7 +173,7 @@ class DiagnosticStop(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``DIAGnostic:STOP:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DiagnosticStopState(device, f"{self._cmd_syntax}:STATe") @@ -259,7 +259,7 @@ class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): - ``.verify``: The ``DIAGnostic:SELect:VERify`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._verify = DiagnosticSelectVerify(device, f"{self._cmd_syntax}:VERify") @@ -393,7 +393,7 @@ class DiagnosticResult(SCPICmdReadWithArguments): - ``.time``: The ``DIAGnostic:RESult:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._temperature = DiagnosticResultTemperature(device, f"{self._cmd_syntax}:TEMPerature") self._time = DiagnosticResultTime(device, f"{self._cmd_syntax}:TIME") @@ -545,7 +545,7 @@ class DiagnosticLog(SCPICmdRead): - ``.failuresonly``: The ``DIAGnostic:LOG:FAILuresonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = DiagnosticLogClear(device, f"{self._cmd_syntax}:CLEar") self._failuresonly = DiagnosticLogFailuresonly(device, f"{self._cmd_syntax}:FAILuresonly") @@ -735,7 +735,7 @@ class DiagnosticControl(SCPICmdRead): - ``.loop``: The ``DIAGnostic:CONTrol:LOOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = DiagnosticControlCount(device, f"{self._cmd_syntax}:COUNt") self._halt = DiagnosticControlHalt(device, f"{self._cmd_syntax}:HALT") @@ -892,7 +892,9 @@ class Diagnostic(SCPICmdRead): - ``.immediate``: The ``DIAGnostic:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAGnostic") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAGnostic" + ) -> None: super().__init__(device, cmd_syntax) self._abort = DiagnosticAbort(device, f"{self._cmd_syntax}:ABORt") self._catalog = DiagnosticCatalog(device, f"{self._cmd_syntax}:CATalog") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py index 72df24a8..d7ab5fb9 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): @@ -345,7 +345,7 @@ class FgenChannelItemAmplitude(SCPICmdRead): - ``.voltage``: The ``FGEN:CHANnel[n]:AMPLitude:VOLTage`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._power = FgenChannelItemAmplitudePower(device, f"{self._cmd_syntax}:POWer") self._voltage = FgenChannelItemAmplitudeVoltage(device, f"{self._cmd_syntax}:VOLTage") @@ -426,7 +426,7 @@ class FgenChannelItem(ValidatedChannel, SCPICmdRead): - ``.type``: The ``FGEN:CHANnel[n]:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = FgenChannelItemAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._dclevel = FgenChannelItemDclevel(device, f"{self._cmd_syntax}:DCLevel") @@ -728,7 +728,7 @@ class Fgen(SCPICmdRead): - ``.channel``: The ``FGEN:CHANnel[n]`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FGEN") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FGEN") -> None: super().__init__(device, cmd_syntax) self._channel: Dict[int, FgenChannelItem] = DefaultDictPassKeyToFactory( lambda x: FgenChannelItem(device, f"{self._cmd_syntax}:CHANnel{x}") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py index 671f6090..266f7d33 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): @@ -89,7 +89,7 @@ class InstrumentCouple(SCPICmdRead): - ``.source``: The ``INSTrument:COUPle:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = InstrumentCoupleSource(device, f"{self._cmd_syntax}:SOURce") @@ -136,7 +136,9 @@ class Instrument(SCPICmdRead): - ``.mode``: The ``INSTrument:MODE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "INSTrument") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "INSTrument" + ) -> None: super().__init__(device, cmd_syntax) self._couple = InstrumentCouple(device, f"{self._cmd_syntax}:COUPle") self._mode = InstrumentMode(device, f"{self._cmd_syntax}:MODE") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py index 9ce462e2..9c6a5f84 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): @@ -156,7 +156,7 @@ class MmemorySaveWaveform(SCPICmdRead): - ``.wfmx``: The ``MMEMory:SAVE:WAVeform:WFMX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mat = MmemorySaveWaveformMat(device, f"{self._cmd_syntax}:MAT") self._tiq = MmemorySaveWaveformTiq(device, f"{self._cmd_syntax}:TIQ") @@ -309,7 +309,7 @@ class MmemorySave(SCPICmdRead): - ``.waveform``: The ``MMEMory:SAVE:WAVeform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = MmemorySaveSequence(device, f"{self._cmd_syntax}:SEQuence") self._setup = MmemorySaveSetup(device, f"{self._cmd_syntax}:SETup") @@ -468,7 +468,7 @@ class MmemoryOpenSassetSequence(SCPICmdWrite, SCPICmdRead): - ``.mropened``: The ``MMEMory:OPEN:SASSet:SEQuence:MROPened`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mropened = MmemoryOpenSassetSequenceMropened(device, f"{self._cmd_syntax}:MROPened") @@ -508,7 +508,7 @@ class MmemoryOpenSasset(SCPICmdRead): - ``.waveform``: The ``MMEMory:OPEN:SASSet:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = MmemoryOpenSassetSequence(device, f"{self._cmd_syntax}:SEQuence") self._waveform = MmemoryOpenSassetWaveform(device, f"{self._cmd_syntax}:WAVeform") @@ -624,7 +624,7 @@ class MmemoryOpenParameter(SCPICmdRead): - ``.siq``: The ``MMEMory:OPEN:PARameter:SIQ`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._normalize = MmemoryOpenParameterNormalize(device, f"{self._cmd_syntax}:NORMalize") self._siq = MmemoryOpenParameterSiq(device, f"{self._cmd_syntax}:SIQ") @@ -712,7 +712,7 @@ class MmemoryOpen(SCPICmdWrite, SCPICmdRead): - ``.parameter``: The ``MMEMory:OPEN:PARameter`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sasset = MmemoryOpenSasset(device, f"{self._cmd_syntax}:SASSet") self._setup = MmemoryOpenSetup(device, f"{self._cmd_syntax}:SETup") @@ -866,7 +866,7 @@ class MmemoryImportParameter(SCPICmdRead): - ``.normalize``: The ``MMEMory:IMPort:PARameter:NORMalize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._normalize = MmemoryImportParameterNormalize(device, f"{self._cmd_syntax}:NORMalize") @@ -929,7 +929,7 @@ class MmemoryImport(SCPICmdWrite, SCPICmdRead): - ``.parameter``: The ``MMEMory:IMPort:PARameter`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parameter = MmemoryImportParameter(device, f"{self._cmd_syntax}:PARameter") @@ -1006,7 +1006,7 @@ class MmemoryData(SCPICmdWrite, SCPICmdReadWithArguments): - ``.size``: The ``MMEMory:DATA:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = MmemoryDataSize(device, f"{self._cmd_syntax}:SIZE") @@ -1091,7 +1091,7 @@ class Mmemory(SCPICmdRead): - ``.save``: The ``MMEMory:SAVE`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MMEMory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MMEMory") -> None: super().__init__(device, cmd_syntax) self._catalog = MmemoryCatalog(device, f"{self._cmd_syntax}:CATalog") self._cdirectory = MmemoryCdirectory(device, f"{self._cmd_syntax}:CDIRectory") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/output.py b/src/tm_devices/commands/gen_2i1z2s_awg/output.py index fca5e9a2..9562c728 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/output.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/output.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -111,7 +111,7 @@ class OutputItemWvalueAnalog(SCPICmdRead): - ``.state``: The ``OUTPut[n]:WVALue:ANALog:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = OutputItemWvalueAnalogState(device, f"{self._cmd_syntax}:STATe") @@ -160,7 +160,7 @@ class OutputItemWvalue(SCPICmdRead): - ``.analog``: The ``OUTPut[n]:WVALue:ANALog`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._marker: Dict[int, OutputItemWvalueMarkerItem] = DefaultDictPassKeyToFactory( lambda x: OutputItemWvalueMarkerItem(device, f"{self._cmd_syntax}:MARKer{x}") @@ -284,7 +284,7 @@ class OutputItemSvalueAnalog(SCPICmdRead): - ``.state``: The ``OUTPut[n]:SVALue:ANALog:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = OutputItemSvalueAnalogState(device, f"{self._cmd_syntax}:STATe") @@ -331,7 +331,7 @@ class OutputItemSvalue(SCPICmdRead): - ``.analog``: The ``OUTPut[n]:SVALue:ANALog`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._marker: Dict[int, OutputItemSvalueMarkerItem] = DefaultDictPassKeyToFactory( lambda x: OutputItemSvalueMarkerItem(device, f"{self._cmd_syntax}:MARKer{x}") @@ -452,7 +452,7 @@ class OutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``OUTPut[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut[n]") -> None: super().__init__(device, cmd_syntax) self._path = OutputItemPath(device, f"{self._cmd_syntax}:PATH") self._svalue = OutputItemSvalue(device, f"{self._cmd_syntax}:SVALue") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/source.py b/src/tm_devices/commands/gen_2i1z2s_awg/source.py index 36169506..b2082e9c 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/source.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/source.py @@ -78,7 +78,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): @@ -234,7 +234,7 @@ class SourceItemVoltageLevelImmediateBias(SCPICmdWrite, SCPICmdRead): - ``.enable``: The ``SOURce[n]:VOLTage:LEVel:IMMediate:BIAS:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = SourceItemVoltageLevelImmediateBiasEnable( device, f"{self._cmd_syntax}:ENABle" @@ -316,7 +316,7 @@ class SourceItemVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bias = SourceItemVoltageLevelImmediateBias(device, f"{self._cmd_syntax}:BIAS") self._high = SourceItemVoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") @@ -477,7 +477,7 @@ class SourceItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemVoltageLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -514,7 +514,7 @@ class SourceItemVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -669,7 +669,7 @@ class SourceItemPowerLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:POWer:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SourceItemPowerLevelImmediateAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -715,7 +715,7 @@ class SourceItemPowerLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:POWer:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemPowerLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -747,7 +747,7 @@ class SourceItemPower(SCPICmdRead): - ``.level``: The ``SOURce[n]:POWer:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemPowerLevel(device, f"{self._cmd_syntax}:LEVel") @@ -891,7 +891,7 @@ class SourceItemMarkerItemVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemMarkerItemVoltageLevelImmediateHigh( device, f"{self._cmd_syntax}:HIGH" @@ -1029,7 +1029,7 @@ class SourceItemMarkerItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemMarkerItemVoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -1067,7 +1067,7 @@ class SourceItemMarkerItemVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemMarkerItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -1126,7 +1126,7 @@ class SourceItemMarkerItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.voltage``: The ``SOURce[n]:MARKer[m]:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = SourceItemMarkerItemDelay(device, f"{self._cmd_syntax}:DELay") self._voltage = SourceItemMarkerItemVoltage(device, f"{self._cmd_syntax}:VOLTage") @@ -1203,7 +1203,7 @@ class SourceItemJumpPattern(SCPICmdRead): - ``.force``: The ``SOURce[n]:JUMP:PATTern:FORCe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._force = SourceItemJumpPatternForce(device, f"{self._cmd_syntax}:FORCe") @@ -1258,7 +1258,7 @@ class SourceItemJump(SCPICmdRead): - ``.pattern``: The ``SOURce[n]:JUMP:PATTern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._force = SourceItemJumpForce(device, f"{self._cmd_syntax}:FORCe") self._pattern = SourceItemJumpPattern(device, f"{self._cmd_syntax}:PATTern") @@ -1374,7 +1374,7 @@ class SourceItemDac(SCPICmdRead): - ``.resolution``: The ``SOURce[n]:DAC:RESolution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resolution = SourceItemDacResolution(device, f"{self._cmd_syntax}:RESolution") @@ -1513,7 +1513,7 @@ class SourceItemCasset(SCPICmdRead): - ``.waveform``: The ``SOURce[n]:CASSet:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = SourceItemCassetClear(device, f"{self._cmd_syntax}:CLEar") self._sequence = SourceItemCassetSequence(device, f"{self._cmd_syntax}:SEQuence") @@ -1621,7 +1621,7 @@ class SourceItem(ValidatedChannel, SCPICmdRead): - ``.jump``: The ``SOURce[n]:JUMP`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce[n]") -> None: super().__init__(device, cmd_syntax) self._casset = SourceItemCasset(device, f"{self._cmd_syntax}:CASSet") self._cfrequency = SourceItemCfrequency(device, f"{self._cmd_syntax}:CFRequency") @@ -1960,7 +1960,7 @@ class SourceRoscillator(SCPICmdRead): - ``.multiplier``: The ``SOURce:ROSCillator:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._multiplier = SourceRoscillatorMultiplier(device, f"{self._cmd_syntax}:MULTiplier") @@ -2070,7 +2070,7 @@ class Source(SCPICmdRead): - ``.roscillator``: The ``SOURce:ROSCillator`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce") -> None: super().__init__(device, cmd_syntax) self._frequency = SourceFrequency(device, f"{self._cmd_syntax}:FREQuency") self._iqimode = SourceIqimode(device, f"{self._cmd_syntax}:IQIMode") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py index e41857e8..e111a55d 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SynchronizeType(SCPICmdWrite, SCPICmdRead): @@ -135,7 +135,7 @@ class SynchronizeDeskew(SCPICmdRead): - ``.start``: The ``SYNChronize:DESKew:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._abort = SynchronizeDeskewAbort(device, f"{self._cmd_syntax}:ABORt") self._state = SynchronizeDeskewState(device, f"{self._cmd_syntax}:STATe") @@ -224,7 +224,7 @@ class SynchronizeAdjust(SCPICmdRead): - ``.start``: The ``SYNChronize:ADJust:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = SynchronizeAdjustStart(device, f"{self._cmd_syntax}:STARt") @@ -263,7 +263,7 @@ class Synchronize(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYNChronize" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYNChronize" ) -> None: super().__init__(device, cmd_syntax) self._adjust = SynchronizeAdjust(device, f"{self._cmd_syntax}:ADJust") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/system.py b/src/tm_devices/commands/gen_2i1z2s_awg/system.py index 7e573fea..66d2443a 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/system.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/system.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): @@ -181,7 +181,7 @@ class SystemErrorCode(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:CODE:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = SystemErrorCodeAll(device, f"{self._cmd_syntax}:ALL") self._next = SystemErrorCodeNext(device, f"{self._cmd_syntax}:NEXT") @@ -262,7 +262,7 @@ class SystemErrorCmd(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = SystemErrorAll(device, f"{self._cmd_syntax}:ALL") self._code = SystemErrorCode(device, f"{self._cmd_syntax}:CODE") @@ -402,7 +402,7 @@ class System(SCPICmdRead): - ``.version``: The ``SYSTem:VERSion`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYSTem") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYSTem") -> None: super().__init__(device, cmd_syntax) self._date = SystemDate(device, f"{self._cmd_syntax}:DATE") self._error = SystemError(device, f"{self._cmd_syntax}:ERRor") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py index a3e0eba1..25f05e5e 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): @@ -245,7 +245,7 @@ class Trigger(SCPICmdRead): - ``.immediate``: The ``TRIGger:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._impedance = TriggerImpedance(device, f"{self._cmd_syntax}:IMPedance") self._interval = TriggerInterval(device, f"{self._cmd_syntax}:INTerval") diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py index 15b88329..3523b0cc 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py @@ -144,7 +144,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): @@ -412,7 +412,7 @@ class WlistWaveformMarker(SCPICmdRead): - ``.data``: The ``WLISt:WAVeform:MARKer:DATA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = WlistWaveformMarkerData(device, f"{self._cmd_syntax}:DATA") @@ -682,7 +682,7 @@ class WlistWaveformData(SCPICmdWrite, SCPICmdReadWithArguments): - ``.q``: The ``WLISt:WAVeform:DATA:Q`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._i = WlistWaveformDataI(device, f"{self._cmd_syntax}:I") self._q = WlistWaveformDataQ(device, f"{self._cmd_syntax}:Q") @@ -874,7 +874,7 @@ class WlistWaveformAcfileGaussian(SCPICmdWrite, SCPICmdRead): - ``.bandwidth``: The ``WLISt:WAVeform:ACFile:GAUSsian:BANDwidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = WlistWaveformAcfileGaussianBandwidth( device, f"{self._cmd_syntax}:BANDwidth" @@ -929,7 +929,7 @@ class WlistWaveformAcfile(SCPICmdWrite, SCPICmdRead): - ``.skew``: The ``WLISt:WAVeform:ACFile:SKEW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gaussian = WlistWaveformAcfileGaussian(device, f"{self._cmd_syntax}:GAUSsian") self._rsinc = WlistWaveformAcfileRsinc(device, f"{self._cmd_syntax}:RSINc") @@ -1043,7 +1043,7 @@ class WlistWaveform(SCPICmdRead): - ``.type``: The ``WLISt:WAVeform:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acfile = WlistWaveformAcfile(device, f"{self._cmd_syntax}:ACFile") self._amplitude = WlistWaveformAmplitude(device, f"{self._cmd_syntax}:AMPLitude") @@ -1879,7 +1879,7 @@ class WlistSparameterNcascadingAggressorItemSignal(SCPICmdWrite, SCPICmdRead): - ``.prbs``: The ``WLISt:SPARameter:NCAScading:AGGRessor[n]:SIGNal:PRBS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = WlistSparameterNcascadingAggressorItemSignalFile( device, f"{self._cmd_syntax}:FILE" @@ -2026,7 +2026,7 @@ class WlistSparameterNcascadingAggressorItem(ValidatedDynamicNumberCmd, SCPICmdR - ``.signal``: The ``WLISt:SPARameter:NCAScading:AGGRessor[n]:SIGNal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = WlistSparameterNcascadingAggressorItemAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -2184,7 +2184,7 @@ class WlistSparameterNcascadingAggressor2(SCPICmdRead): - ``.enable``: The ``WLISt:SPARameter:NCAScading:AGGRessor2:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = WlistSparameterNcascadingAggressor2Enable( device, f"{self._cmd_syntax}:ENABle" @@ -2241,7 +2241,7 @@ class WlistSparameterNcascading(SCPICmdRead): - ``.type``: The ``WLISt:SPARameter:NCAScading:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aggressor2 = WlistSparameterNcascadingAggressor2( device, f"{self._cmd_syntax}:AGGRessor2" @@ -2807,7 +2807,7 @@ class WlistSparameterCascadingStageItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.tx``: The ``WLISt:SPARameter:CASCading:STAGe[m]:TX[n]`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drx: Dict[int, WlistSparameterCascadingStageItemDrxItem] = ( DefaultDictPassKeyToFactory( @@ -3105,7 +3105,7 @@ class WlistSparameterCascadingAggressorItemSignal(SCPICmdWrite, SCPICmdRead): - ``.prbs``: The ``WLISt:SPARameter:CASCading:AGGRessor[n]:SIGNal:PRBS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = WlistSparameterCascadingAggressorItemSignalFile( device, f"{self._cmd_syntax}:FILE" @@ -3251,7 +3251,7 @@ class WlistSparameterCascadingAggressorItem(ValidatedDynamicNumberCmd, SCPICmdRe - ``.signal``: The ``WLISt:SPARameter:CASCading:AGGRessor[n]:SIGNal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = WlistSparameterCascadingAggressorItemAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -3407,7 +3407,7 @@ class WlistSparameterCascadingAggressor2(SCPICmdRead): - ``.enable``: The ``WLISt:SPARameter:CASCading:AGGRessor2:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = WlistSparameterCascadingAggressor2Enable( device, f"{self._cmd_syntax}:ENABle" @@ -3457,7 +3457,7 @@ class WlistSparameterCascading(SCPICmdRead): - ``.type``: The ``WLISt:SPARameter:CASCading:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aggressor2 = WlistSparameterCascadingAggressor2( device, f"{self._cmd_syntax}:AGGRessor2" @@ -3654,7 +3654,7 @@ class WlistSparameterBandwidth(SCPICmdWrite, SCPICmdRead): - ``.auto``: The ``WLISt:SPARameter:BANDwidth:AUTO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = WlistSparameterBandwidthAuto(device, f"{self._cmd_syntax}:AUTO") @@ -3719,7 +3719,7 @@ class WlistSparameter(SCPICmdRead): - ``.sformat``: The ``WLISt:SPARameter:SFORmat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = WlistSparameterApply(device, f"{self._cmd_syntax}:APPLy") self._bandwidth = WlistSparameterBandwidth(device, f"{self._cmd_syntax}:BANDwidth") @@ -3958,7 +3958,7 @@ class Wlist(SCPICmdRead): - ``.waveform``: The ``WLISt:WAVeform`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WLISt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WLISt") -> None: super().__init__(device, cmd_syntax) self._last = WlistLast(device, f"{self._cmd_syntax}:LAST") self._list = WlistList(device, f"{self._cmd_syntax}:LIST") diff --git a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py index ffdf1d3a..e0372e5c 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py @@ -70,7 +70,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): @@ -101,7 +101,7 @@ class AwgcontrolStop(SCPICmdRead): - ``.immediate``: The ``AWGControl:STOP:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolStopImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -237,7 +237,7 @@ class AwgcontrolSequencer(SCPICmdRead): - ``.type``: The ``AWGControl:SEQuencer:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = AwgcontrolSequencerPosition(device, f"{self._cmd_syntax}:POSition") self._type = AwgcontrolSequencerType(device, f"{self._cmd_syntax}:TYPE") @@ -312,7 +312,7 @@ class AwgcontrolRun(SCPICmdRead): - ``.immediate``: The ``AWGControl:RUN:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolRunImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -408,7 +408,7 @@ class AwgcontrolRrate(SCPICmdWrite, SCPICmdRead): - ``.hold``: The ``AWGControl:RRATe:HOLD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hold = AwgcontrolRrateHold(device, f"{self._cmd_syntax}:HOLD") @@ -597,7 +597,7 @@ class AwgcontrolInterleaveAdjustment(SCPICmdRead): - ``.phase``: The ``AWGControl:INTerleave:ADJustment:PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = AwgcontrolInterleaveAdjustmentAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -677,7 +677,7 @@ class AwgcontrolInterleave(SCPICmdRead): - ``.state``: The ``AWGControl:INTerleave:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjustment = AwgcontrolInterleaveAdjustment(device, f"{self._cmd_syntax}:ADJustment") self._zeroing = AwgcontrolInterleaveZeroing(device, f"{self._cmd_syntax}:ZERoing") @@ -794,7 +794,7 @@ class AwgcontrolEventTable(SCPICmdRead): - ``.immediate``: The ``AWGControl:EVENt:TABLe:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolEventTableImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -854,7 +854,7 @@ class AwgcontrolEventSoftware(SCPICmdRead): - ``.immediate``: The ``AWGControl:EVENt:SOFTware:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolEventSoftwareImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -952,7 +952,7 @@ class AwgcontrolEventDjump(SCPICmdRead): - ``.define``: The ``AWGControl:EVENt:DJUMp:DEFine`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._define = AwgcontrolEventDjumpDefine(device, f"{self._cmd_syntax}:DEFine") @@ -1005,7 +1005,7 @@ class AwgcontrolEvent(SCPICmdRead): - ``.table``: The ``AWGControl:EVENt:TABLe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._djump = AwgcontrolEventDjump(device, f"{self._cmd_syntax}:DJUMp") self._jmode = AwgcontrolEventJmode(device, f"{self._cmd_syntax}:JMODe") @@ -1127,7 +1127,7 @@ class AwgcontrolEnhancedSequence(SCPICmdRead): - ``.jmode``: The ``AWGControl:ENHanced:SEQuence:JMODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._jmode = AwgcontrolEnhancedSequenceJmode(device, f"{self._cmd_syntax}:JMODe") @@ -1178,7 +1178,7 @@ class AwgcontrolEnhanced(SCPICmdRead): - ``.sequence``: The ``AWGControl:ENHanced:SEQuence`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = AwgcontrolEnhancedSequence(device, f"{self._cmd_syntax}:SEQuence") @@ -1238,7 +1238,7 @@ class AwgcontrolDoutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``AWGControl:DOUTput[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AwgcontrolDoutputItemState(device, f"{self._cmd_syntax}:STATe") @@ -1313,7 +1313,7 @@ class AwgcontrolDcItemVoltageLevelImmediate(SCPICmdRead): - ``.offset``: The ``AWGControl:DC[n]:VOLTage:LEVel:IMMediate:OFFSet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._offset = AwgcontrolDcItemVoltageLevelImmediateOffset( device, f"{self._cmd_syntax}:OFFSet" @@ -1359,7 +1359,7 @@ class AwgcontrolDcItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``AWGControl:DC[n]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolDcItemVoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -1394,7 +1394,7 @@ class AwgcontrolDcItemVoltage(SCPICmdRead): - ``.level``: The ``AWGControl:DC[n]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = AwgcontrolDcItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -1454,7 +1454,7 @@ class AwgcontrolDcItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``AWGControl:DC[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._voltage = AwgcontrolDcItemVoltage(device, f"{self._cmd_syntax}:VOLTage") self._state = AwgcontrolDcItemState(device, f"{self._cmd_syntax}:STATe") @@ -1535,7 +1535,7 @@ class AwgcontrolConfigure(SCPICmdRead): - ``.cnumber``: The ``AWGControl:CONFigure:CNUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cnumber = AwgcontrolConfigureCnumber(device, f"{self._cmd_syntax}:CNUMber") @@ -1646,7 +1646,7 @@ class AwgcontrolClockPhase(SCPICmdRead): - ``.adjust``: The ``AWGControl:CLOCk:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = AwgcontrolClockPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -1723,7 +1723,7 @@ class AwgcontrolClock(SCPICmdRead): - ``.source``: The ``AWGControl:CLOCk:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drate = AwgcontrolClockDrate(device, f"{self._cmd_syntax}:DRATe") self._phase = AwgcontrolClockPhase(device, f"{self._cmd_syntax}:PHASe") @@ -1861,7 +1861,7 @@ class AwgcontrolApplication(SCPICmdRead): - ``.state``: The ``AWGControl:APPLication:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._run = AwgcontrolApplicationRun(device, f"{self._cmd_syntax}:RUN") self._state = AwgcontrolApplicationState(device, f"{self._cmd_syntax}:STATe") @@ -1942,7 +1942,9 @@ class Awgcontrol(SCPICmdRead): - ``.stop``: The ``AWGControl:STOP`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AWGControl") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AWGControl" + ) -> None: super().__init__(device, cmd_syntax) self._application = AwgcontrolApplication(device, f"{self._cmd_syntax}:APPLication") self._clock = AwgcontrolClock(device, f"{self._cmd_syntax}:CLOCk") diff --git a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py index 96bc043c..ba1df850 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): @@ -114,7 +114,9 @@ class Diagnostic(SCPICmdRead): - ``.immediate``: The ``DIAGnostic:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAGnostic") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAGnostic" + ) -> None: super().__init__(device, cmd_syntax) self._data = DiagnosticData(device, f"{self._cmd_syntax}:DATA") self._select = DiagnosticSelect(device, f"{self._cmd_syntax}:SELect") diff --git a/src/tm_devices/commands/gen_32dszm_awg/display.py b/src/tm_devices/commands/gen_32dszm_awg/display.py index 6c4ba89a..e92b5b44 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/display.py +++ b/src/tm_devices/commands/gen_32dszm_awg/display.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWindow2State(SCPICmdWrite, SCPICmdRead): @@ -64,7 +64,7 @@ class DisplayWindow2(SCPICmdRead): - ``.state``: The ``DISPlay:WINDow2:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWindow2State(device, f"{self._cmd_syntax}:STATe") @@ -139,7 +139,7 @@ class DisplayWindow1(SCPICmdRead): - ``.state``: The ``DISPlay:WINDow1:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWindow1State(device, f"{self._cmd_syntax}:STATe") @@ -187,7 +187,7 @@ class Display(SCPICmdRead): - ``.window2``: The ``DISPlay:WINDow2`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISPlay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISPlay") -> None: super().__init__(device, cmd_syntax) self._window1 = DisplayWindow1(device, f"{self._cmd_syntax}:WINDow1") self._window2 = DisplayWindow2(device, f"{self._cmd_syntax}:WINDow2") diff --git a/src/tm_devices/commands/gen_32dszm_awg/event.py b/src/tm_devices/commands/gen_32dszm_awg/event.py index e9adbc05..41e0c8de 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/event.py +++ b/src/tm_devices/commands/gen_32dszm_awg/event.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EventPolarity(SCPICmdWrite, SCPICmdRead): @@ -163,7 +163,7 @@ class Event(SCPICmdRead): - ``.immediate``: The ``EVENt:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EVENt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EVENt") -> None: super().__init__(device, cmd_syntax) self._impedance = EventImpedance(device, f"{self._cmd_syntax}:IMPedance") self._jtiming = EventJtiming(device, f"{self._cmd_syntax}:JTIMing") diff --git a/src/tm_devices/commands/gen_32dszm_awg/instrument.py b/src/tm_devices/commands/gen_32dszm_awg/instrument.py index 60b3d27b..a1d2aee4 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/instrument.py +++ b/src/tm_devices/commands/gen_32dszm_awg/instrument.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentCoupleSource(SCPICmdWrite, SCPICmdRead): @@ -61,7 +61,7 @@ class InstrumentCouple(SCPICmdRead): - ``.source``: The ``INSTrument:COUPle:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = InstrumentCoupleSource(device, f"{self._cmd_syntax}:SOURce") @@ -106,7 +106,9 @@ class Instrument(SCPICmdRead): - ``.couple``: The ``INSTrument:COUPle`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "INSTrument") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "INSTrument" + ) -> None: super().__init__(device, cmd_syntax) self._couple = InstrumentCouple(device, f"{self._cmd_syntax}:COUPle") diff --git a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py index 41716f7e..1003fd54 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py +++ b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemoryMsis(SCPICmdWrite, SCPICmdRead): @@ -157,7 +157,7 @@ class MmemoryImportParameterResampling(SCPICmdRead): - ``.state``: The ``MMEMory:IMPort:PARameter:RESampling:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = MmemoryImportParameterResamplingFrequency( device, f"{self._cmd_syntax}:FREQuency" @@ -361,7 +361,7 @@ class MmemoryImportParameterLevelUpdate(SCPICmdRead): - ``.state``: The ``MMEMory:IMPort:PARameter:LEVel:UPDate:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._channel = MmemoryImportParameterLevelUpdateChannel( device, f"{self._cmd_syntax}:CHANnel" @@ -474,7 +474,7 @@ class MmemoryImportParameterLevel(SCPICmdRead): - ``.update``: The ``MMEMory:IMPort:PARameter:LEVel:UPDate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._update = MmemoryImportParameterLevelUpdate(device, f"{self._cmd_syntax}:UPDate") @@ -541,7 +541,7 @@ class MmemoryImportParameterFrequencyUpdate(SCPICmdRead): - ``.state``: The ``MMEMory:IMPort:PARameter:FREQuency:UPDate:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MmemoryImportParameterFrequencyUpdateState( device, f"{self._cmd_syntax}:STATe" @@ -591,7 +591,7 @@ class MmemoryImportParameterFrequency(SCPICmdRead): - ``.update``: The ``MMEMory:IMPort:PARameter:FREQuency:UPDate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._update = MmemoryImportParameterFrequencyUpdate(device, f"{self._cmd_syntax}:UPDate") @@ -627,7 +627,7 @@ class MmemoryImportParameter(SCPICmdRead): - ``.resampling``: The ``MMEMory:IMPort:PARameter:RESampling`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = MmemoryImportParameterFrequency(device, f"{self._cmd_syntax}:FREQuency") self._level = MmemoryImportParameterLevel(device, f"{self._cmd_syntax}:LEVel") @@ -749,7 +749,7 @@ class MmemoryImport(SCPICmdWrite, SCPICmdRead): - ``.parameter``: The ``MMEMory:IMPort:PARameter`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parameter = MmemoryImportParameter(device, f"{self._cmd_syntax}:PARameter") @@ -899,7 +899,7 @@ class Mmemory(SCPICmdRead): - ``.msis``: The ``MMEMory:MSIS`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MMEMory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MMEMory") -> None: super().__init__(device, cmd_syntax) self._catalog = MmemoryCatalog(device, f"{self._cmd_syntax}:CATalog") self._cdirectory = MmemoryCdirectory(device, f"{self._cmd_syntax}:CDIRectory") diff --git a/src/tm_devices/commands/gen_32dszm_awg/output.py b/src/tm_devices/commands/gen_32dszm_awg/output.py index 78873589..df1f0d5e 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/output.py +++ b/src/tm_devices/commands/gen_32dszm_awg/output.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemState(SCPICmdWrite, SCPICmdRead): @@ -89,7 +89,7 @@ class OutputItemFilterLpass(SCPICmdRead): - ``.frequency``: The ``OUTPut[n]:FILTer:LPASs:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = OutputItemFilterLpassFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -135,7 +135,7 @@ class OutputItemFilter(SCPICmdRead): - ``.lpass``: The ``OUTPut[n]:FILTer:LPASs`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lpass = OutputItemFilterLpass(device, f"{self._cmd_syntax}:LPASs") @@ -167,7 +167,7 @@ class OutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``OUTPut[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut[n]") -> None: super().__init__(device, cmd_syntax) self._filter = OutputItemFilter(device, f"{self._cmd_syntax}:FILTer") self._state = OutputItemState(device, f"{self._cmd_syntax}:STATe") diff --git a/src/tm_devices/commands/gen_32dszm_awg/sequence.py b/src/tm_devices/commands/gen_32dszm_awg/sequence.py index d0515510..680023ce 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/sequence.py +++ b/src/tm_devices/commands/gen_32dszm_awg/sequence.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SequenceLength(SCPICmdWrite, SCPICmdRead): @@ -110,7 +110,7 @@ class SequenceJump(SCPICmdRead): - ``.immediate``: The ``SEQuence:JUMP:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SequenceJumpImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -289,7 +289,7 @@ class SequenceElementItemLoop(SCPICmdRead): - ``.infinite``: The ``SEQuence:ELEMent[n]:LOOP:INFinite`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = SequenceElementItemLoopCount(device, f"{self._cmd_syntax}:COUNt") self._infinite = SequenceElementItemLoopInfinite(device, f"{self._cmd_syntax}:INFinite") @@ -426,7 +426,7 @@ class SequenceElementItemJtarget(SCPICmdRead): - ``.type``: The ``SEQuence:ELEMent[n]:JTARget:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._index = SequenceElementItemJtargetIndex(device, f"{self._cmd_syntax}:INDex") self._type = SequenceElementItemJtargetType(device, f"{self._cmd_syntax}:TYPE") @@ -567,7 +567,7 @@ class SequenceElementItemGoto(SCPICmdRead): - ``.state``: The ``SEQuence:ELEMent[n]:GOTO:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._index = SequenceElementItemGotoIndex(device, f"{self._cmd_syntax}:INDex") self._state = SequenceElementItemGotoState(device, f"{self._cmd_syntax}:STATe") @@ -651,7 +651,7 @@ class SequenceElementItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.waveform``: The ``SEQuence:ELEMent[n]:WAVeform[m]`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._goto = SequenceElementItemGoto(device, f"{self._cmd_syntax}:GOTO") self._jtarget = SequenceElementItemJtarget(device, f"{self._cmd_syntax}:JTARget") @@ -810,7 +810,7 @@ class Sequence(SCPICmdRead): - ``.length``: The ``SEQuence:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEQuence") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEQuence") -> None: super().__init__(device, cmd_syntax) self._element: Dict[int, SequenceElementItem] = DefaultDictPassKeyToFactory( lambda x: SequenceElementItem(device, f"{self._cmd_syntax}:ELEMent{x}") diff --git a/src/tm_devices/commands/gen_32dszm_awg/slist.py b/src/tm_devices/commands/gen_32dszm_awg/slist.py index fb424c1f..51fa9563 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/slist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/slist.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SlistSubsequenceTstamp(SCPICmdReadWithArguments): @@ -175,7 +175,7 @@ class SlistSubsequenceElementItemLoop(SCPICmdRead): - ``.count``: The ``SLISt:SUBSequence:ELEMent[n]:LOOP:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = SlistSubsequenceElementItemLoopCount(device, f"{self._cmd_syntax}:COUNt") @@ -218,7 +218,7 @@ class SlistSubsequenceElementItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.waveform``: The ``SLISt:SUBSequence:ELEMent[n]:WAVeform[n]`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._loop = SlistSubsequenceElementItemLoop(device, f"{self._cmd_syntax}:LOOP") self._waveform: Dict[int, SlistSubsequenceElementItemWaveformItem] = ( @@ -313,7 +313,7 @@ class SlistSubsequence(SCPICmdRead): - ``.tstamp``: The ``SLISt:SUBSequence:TSTamp`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delete = SlistSubsequenceDelete(device, f"{self._cmd_syntax}:DELete") self._element: Dict[int, SlistSubsequenceElementItem] = DefaultDictPassKeyToFactory( @@ -489,7 +489,7 @@ class Slist(SCPICmdRead): - ``.subsequence``: The ``SLISt:SUBSequence`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SLISt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SLISt") -> None: super().__init__(device, cmd_syntax) self._name = SlistName(device, f"{self._cmd_syntax}:NAME") self._size = SlistSize(device, f"{self._cmd_syntax}:SIZE") diff --git a/src/tm_devices/commands/gen_32dszm_awg/source.py b/src/tm_devices/commands/gen_32dszm_awg/source.py index e11f6922..128ef853 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/source.py +++ b/src/tm_devices/commands/gen_32dszm_awg/source.py @@ -83,7 +83,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): @@ -239,7 +239,7 @@ class SourceItemVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemVoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SourceItemVoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -376,7 +376,7 @@ class SourceItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemVoltageLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -412,7 +412,7 @@ class SourceItemVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -583,7 +583,7 @@ class SourceItemRoscillator(SCPICmdRead): - ``.type``: The ``SOURce[n]:ROSCillator:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = SourceItemRoscillatorFrequency(device, f"{self._cmd_syntax}:FREQuency") self._multiplier = SourceItemRoscillatorMultiplier(device, f"{self._cmd_syntax}:MULTiplier") @@ -748,7 +748,7 @@ class SourceItemPhase(SCPICmdRead): - ``.adjust``: The ``SOURce[n]:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = SourceItemPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -817,7 +817,7 @@ class SourceItemPdelay(SCPICmdRead): - ``.hold``: The ``SOURce[n]:PDELay:HOLD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hold = SourceItemPdelayHold(device, f"{self._cmd_syntax}:HOLD") @@ -981,7 +981,7 @@ class SourceItemMarker2VoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:MARKer2:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemMarker2VoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SourceItemMarker2VoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -1123,7 +1123,7 @@ class SourceItemMarker2VoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:MARKer2:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemMarker2VoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -1161,7 +1161,7 @@ class SourceItemMarker2Voltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:MARKer2:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemMarker2VoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -1221,7 +1221,7 @@ class SourceItemMarker2(SCPICmdRead): - ``.voltage``: The ``SOURce[n]:MARKer2:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = SourceItemMarker2Delay(device, f"{self._cmd_syntax}:DELay") self._voltage = SourceItemMarker2Voltage(device, f"{self._cmd_syntax}:VOLTage") @@ -1400,7 +1400,7 @@ class SourceItemMarker1VoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:MARKer1:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemMarker1VoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SourceItemMarker1VoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -1542,7 +1542,7 @@ class SourceItemMarker1VoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:MARKer1:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemMarker1VoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -1580,7 +1580,7 @@ class SourceItemMarker1Voltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:MARKer1:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemMarker1VoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -1640,7 +1640,7 @@ class SourceItemMarker1(SCPICmdRead): - ``.voltage``: The ``SOURce[n]:MARKer1:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = SourceItemMarker1Delay(device, f"{self._cmd_syntax}:DELay") self._voltage = SourceItemMarker1Voltage(device, f"{self._cmd_syntax}:VOLTage") @@ -1734,7 +1734,7 @@ class SourceItemFunction(SCPICmdRead): - ``.user``: The ``SOURce[n]:FUNCtion:USER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._user = SourceItemFunctionUser(device, f"{self._cmd_syntax}:USER") @@ -1846,7 +1846,7 @@ class SourceItemFrequency(SCPICmdRead): - ``.fixed``: The ``SOURce[n]:FREQuency:FIXed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cw = SourceItemFrequencyCw(device, f"{self._cmd_syntax}:CW") self._fixed = SourceItemFrequencyFixed(device, f"{self._cmd_syntax}:FIXed") @@ -2041,7 +2041,7 @@ class SourceItemDigitalVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:DIGital:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemDigitalVoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SourceItemDigitalVoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -2180,7 +2180,7 @@ class SourceItemDigitalVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:DIGital:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemDigitalVoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -2218,7 +2218,7 @@ class SourceItemDigitalVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:DIGital:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemDigitalVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -2250,7 +2250,7 @@ class SourceItemDigital(SCPICmdRead): - ``.voltage``: The ``SOURce[n]:DIGital:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._voltage = SourceItemDigitalVoltage(device, f"{self._cmd_syntax}:VOLTage") @@ -2328,7 +2328,7 @@ class SourceItemDelay(SCPICmdRead): - ``.adjust``: The ``SOURce[n]:DELay:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._points = SourceItemDelayPoints(device, f"{self._cmd_syntax}:POINts") self._adjust = SourceItemDelayAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -2422,7 +2422,7 @@ class SourceItemDac(SCPICmdRead): - ``.resolution``: The ``SOURce[n]:DAC:RESolution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resolution = SourceItemDacResolution(device, f"{self._cmd_syntax}:RESolution") @@ -2491,7 +2491,7 @@ class SourceItemCombine(SCPICmdRead): - ``.feed``: The ``SOURce[n]:COMBine:FEED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._feed = SourceItemCombineFeed(device, f"{self._cmd_syntax}:FEED") @@ -2549,7 +2549,7 @@ class SourceItem(ValidatedChannel, SCPICmdRead): - ``.waveform``: The ``SOURce[n]:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce[n]") -> None: super().__init__(device, cmd_syntax) self._frequency = SourceItemFrequency(device, f"{self._cmd_syntax}:FREQuency") self._roscillator = SourceItemRoscillator(device, f"{self._cmd_syntax}:ROSCillator") diff --git a/src/tm_devices/commands/gen_32dszm_awg/status.py b/src/tm_devices/commands/gen_32dszm_awg/status.py index e516064b..74f2f471 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/status.py +++ b/src/tm_devices/commands/gen_32dszm_awg/status.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionableEvent(SCPICmdRead): @@ -102,7 +102,7 @@ class StatusQuestionable(SCPICmdRead): - ``.event``: The ``STATus:QUEStionable:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusQuestionableCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusQuestionableEnable(device, f"{self._cmd_syntax}:ENABle") @@ -259,7 +259,7 @@ class StatusOperation(SCPICmdRead): - ``.event``: The ``STATus:OPERation:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusOperationCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusOperationEnable(device, f"{self._cmd_syntax}:ENABle") @@ -341,7 +341,7 @@ class Status(SCPICmdRead): - ``.questionable``: The ``STATus:QUEStionable`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "STATus") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "STATus") -> None: super().__init__(device, cmd_syntax) self._operation = StatusOperation(device, f"{self._cmd_syntax}:OPERation") self._preset = StatusPreset(device, f"{self._cmd_syntax}:PRESet") diff --git a/src/tm_devices/commands/gen_32dszm_awg/system.py b/src/tm_devices/commands/gen_32dszm_awg/system.py index ba4ed890..d8b95ee6 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/system.py +++ b/src/tm_devices/commands/gen_32dszm_awg/system.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): @@ -123,7 +123,7 @@ class SystemErrorCmd(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._next = SystemErrorNext(device, f"{self._cmd_syntax}:NEXT") @@ -184,7 +184,7 @@ class System(SCPICmdRead): - ``.version``: The ``SYSTem:VERSion`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYSTem") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYSTem") -> None: super().__init__(device, cmd_syntax) self._date = SystemDate(device, f"{self._cmd_syntax}:DATE") self._error = SystemError(device, f"{self._cmd_syntax}:ERRor") diff --git a/src/tm_devices/commands/gen_32dszm_awg/trigger.py b/src/tm_devices/commands/gen_32dszm_awg/trigger.py index 7b59b9e5..e17a71d0 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/trigger.py +++ b/src/tm_devices/commands/gen_32dszm_awg/trigger.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerSequenceWvalue(SCPICmdWrite, SCPICmdRead): @@ -276,7 +276,7 @@ class TriggerSequence(SCPICmdRead): - ``.immediate``: The ``TRIGger:SEQuence:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._impedance = TriggerSequenceImpedance(device, f"{self._cmd_syntax}:IMPedance") self._level = TriggerSequenceLevel(device, f"{self._cmd_syntax}:LEVel") @@ -532,7 +532,7 @@ class Trigger(SCPICmdRead): - ``.sequence``: The ``TRIGger:SEQuence`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._sequence = TriggerSequence(device, f"{self._cmd_syntax}:SEQuence") diff --git a/src/tm_devices/commands/gen_32dszm_awg/wlist.py b/src/tm_devices/commands/gen_32dszm_awg/wlist.py index ea325421..d61827d5 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/wlist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/wlist.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): @@ -197,7 +197,7 @@ class WlistWaveformMarker(SCPICmdRead): - ``.data``: The ``WLISt:WAVeform:MARKer:DATA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = WlistWaveformMarkerData(device, f"{self._cmd_syntax}:DATA") @@ -327,7 +327,7 @@ class WlistWaveform(SCPICmdRead): - ``.type``: The ``WLISt:WAVeform:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = WlistWaveformData(device, f"{self._cmd_syntax}:DATA") self._delete = WlistWaveformDelete(device, f"{self._cmd_syntax}:DELete") @@ -620,7 +620,7 @@ class Wlist(SCPICmdRead): - ``.waveform``: The ``WLISt:WAVeform`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WLISt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WLISt") -> None: super().__init__(device, cmd_syntax) self._name = WlistName(device, f"{self._cmd_syntax}:NAME") self._size = WlistSize(device, f"{self._cmd_syntax}:SIZE") diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py index 2e6ff11e..bdab01f7 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Abort(SCPICmdWriteNoArguments): @@ -36,5 +36,5 @@ class Abort(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ABORt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ABORt") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py index 3294a7b2..baa9447d 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrationAll(SCPICmdWriteNoArguments, SCPICmdRead): @@ -57,7 +57,7 @@ class Calibration(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibration" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibration" ) -> None: super().__init__(device, cmd_syntax) self._all = CalibrationAll(device, f"{self._cmd_syntax}:ALL") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/active.py b/src/tm_devices/commands/gen_3n9auv_awg/active.py index 7c5e762f..fd5427c2 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/active.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/active.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActiveMode(SCPICmdWrite, SCPICmdRead): @@ -77,7 +77,7 @@ class Active(SCPICmdRead): - ``.mode``: The ``ACTive:MODE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACTive") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACTive") -> None: super().__init__(device, cmd_syntax) self._mode = ActiveMode(device, f"{self._cmd_syntax}:MODE") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py index 68a6f1fd..4cd2a0f7 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrationStopState(SCPICmdRead): @@ -67,7 +67,7 @@ class CalibrationStop(SCPICmdRead): - ``.state``: The ``CALibration:STOP:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = CalibrationStopState(device, f"{self._cmd_syntax}:STATe") @@ -154,7 +154,7 @@ class CalibrationState(SCPICmdRead): - ``.user``: The ``CALibration:STATe:USER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._factory = CalibrationStateFactory(device, f"{self._cmd_syntax}:FACTory") self._user = CalibrationStateUser(device, f"{self._cmd_syntax}:USER") @@ -305,7 +305,7 @@ class CalibrationResult(SCPICmdRead): - ``.time``: The ``CALibration:RESult:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._temperature = CalibrationResultTemperature(device, f"{self._cmd_syntax}:TEMPerature") self._time = CalibrationResultTime(device, f"{self._cmd_syntax}:TIME") @@ -436,7 +436,7 @@ class CalibrationLog(SCPICmdRead): - ``.failuresonly``: The ``CALibration:LOG:FAILuresonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = CalibrationLogClear(device, f"{self._cmd_syntax}:CLEar") self._failuresonly = CalibrationLogFailuresonly(device, f"{self._cmd_syntax}:FAILuresonly") @@ -572,7 +572,7 @@ class Calibration(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibration" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibration" ) -> None: super().__init__(device, cmd_syntax) self._abort = CalibrationAbort(device, f"{self._cmd_syntax}:ABORt") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py index a6d3d60e..b102cfa0 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConnectivityStatus(SCPICmdReadWithArguments): @@ -95,7 +95,7 @@ class ConnectivityGang(SCPICmdRead): - ``.create``: The ``CONNectivity:GANG:CREAte`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._create = ConnectivityGangCreate(device, f"{self._cmd_syntax}:CREAte") @@ -198,7 +198,7 @@ class Connectivity(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CONNectivity" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CONNectivity" ) -> None: super().__init__(device, cmd_syntax) self._active = ConnectivityActive(device, f"{self._cmd_syntax}:ACTive") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/display.py b/src/tm_devices/commands/gen_3n9auv_awg/display.py index e2df83ef..49afcea9 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/display.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/display.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayPlotState(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class DisplayPlot(SCPICmdRead): - ``.state``: The ``DISPlay:PLOT:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayPlotState(device, f"{self._cmd_syntax}:STATe") @@ -102,7 +102,7 @@ class Display(SCPICmdRead): - ``.plot``: The ``DISPlay:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISPlay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISPlay") -> None: super().__init__(device, cmd_syntax) self._plot = DisplayPlot(device, f"{self._cmd_syntax}:PLOT") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/output.py b/src/tm_devices/commands/gen_3n9auv_awg/output.py index b904394f..e9007d05 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/output.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputOff(SCPICmdWrite, SCPICmdRead): @@ -65,7 +65,7 @@ class Output(SCPICmdRead): - ``.off``: The ``OUTPut:OFF`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut") -> None: super().__init__(device, cmd_syntax) self._off = OutputOff(device, f"{self._cmd_syntax}:OFF") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/slist.py b/src/tm_devices/commands/gen_3n9auv_awg/slist.py index c63b5055..99b464e8 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/slist.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/slist.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SlistSize(SCPICmdRead): @@ -177,7 +177,7 @@ class SlistSequenceTrack(SCPICmdReadWithArguments): - ``.max``: The ``SLISt:SEQuence:TRACk:MAX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SlistSequenceTrackMax(device, f"{self._cmd_syntax}:MAX") @@ -370,7 +370,7 @@ class SlistSequenceStepItemTflagItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dflag``: The ``SLISt:SEQuence:STEP[n]:TFLag[m]:DFLag`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aflag = SlistSequenceStepItemTflagItemAflag(device, f"{self._cmd_syntax}:AFLag") self._bflag = SlistSequenceStepItemTflagItemBflag(device, f"{self._cmd_syntax}:BFLag") @@ -567,7 +567,7 @@ class SlistSequenceStepItemTassetItem(ValidatedDynamicNumberCmd, SCPICmdReadWith - ``.waveform``: The ``SLISt:SEQuence:STEP[n]:TASSet[m]:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SlistSequenceStepItemTassetItemType(device, f"{self._cmd_syntax}:TYPE") self._waveform = SlistSequenceStepItemTassetItemWaveform( @@ -646,7 +646,7 @@ class SlistSequenceStepItemTasset(SCPICmdRead): - ``.sequence``: The ``SLISt:SEQuence:STEP[n]:TASSet:SEQuence`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = SlistSequenceStepItemTassetSequence(device, f"{self._cmd_syntax}:SEQuence") @@ -815,7 +815,7 @@ class SlistSequenceStepItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.winput``: The ``SLISt:SEQuence:STEP[n]:WINPut`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ejinput = SlistSequenceStepItemEjinput(device, f"{self._cmd_syntax}:EJINput") self._ejump = SlistSequenceStepItemEjump(device, f"{self._cmd_syntax}:EJUMp") @@ -1086,7 +1086,7 @@ class SlistSequenceStepRcount(SCPICmdRead): - ``.max``: The ``SLISt:SEQuence:STEP:RCOunt:MAX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SlistSequenceStepRcountMax(device, f"{self._cmd_syntax}:MAX") @@ -1165,7 +1165,7 @@ class SlistSequenceStep(SCPICmdRead): - ``.rcount``: The ``SLISt:SEQuence:STEP:RCOunt`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._add = SlistSequenceStepAdd(device, f"{self._cmd_syntax}:ADD") self._max = SlistSequenceStepMax(device, f"{self._cmd_syntax}:MAX") @@ -1447,7 +1447,7 @@ class SlistSequenceEventPjump(SCPICmdRead): - ``.size``: The ``SLISt:SEQuence:EVENt:PJUMp:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._define = SlistSequenceEventPjumpDefine(device, f"{self._cmd_syntax}:DEFine") self._enable = SlistSequenceEventPjumpEnable(device, f"{self._cmd_syntax}:ENABle") @@ -1575,7 +1575,7 @@ class SlistSequenceEvent(SCPICmdRead): - ``.pjump``: The ``SLISt:SEQuence:EVENt:PJUMp`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._jtiming = SlistSequenceEventJtiming(device, f"{self._cmd_syntax}:JTIMing") self._pjump = SlistSequenceEventPjump(device, f"{self._cmd_syntax}:PJUMp") @@ -1694,7 +1694,7 @@ class SlistSequence(SCPICmdRead): - ``.wmusage``: The ``SLISt:SEQuence:WMUSage`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SlistSequenceAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._delete = SlistSequenceDelete(device, f"{self._cmd_syntax}:DELete") @@ -2049,7 +2049,7 @@ class Slist(SCPICmdRead): - ``.size``: The ``SLISt:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SLISt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SLISt") -> None: super().__init__(device, cmd_syntax) self._name = SlistName(device, f"{self._cmd_syntax}:NAME") self._sequence = SlistSequence(device, f"{self._cmd_syntax}:SEQuence") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/status.py b/src/tm_devices/commands/gen_3n9auv_awg/status.py index 8ced5e7b..3a24b2f4 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/status.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/status.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionablePtransition(SCPICmdWrite, SCPICmdRead): @@ -157,7 +157,7 @@ class StatusQuestionable(SCPICmdRead): - ``.event``: The ``STATus:QUEStionable:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusQuestionableCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusQuestionableEnable(device, f"{self._cmd_syntax}:ENABle") @@ -411,7 +411,7 @@ class StatusOperation(SCPICmdRead): - ``.event``: The ``STATus:OPERation:EVENt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = StatusOperationCondition(device, f"{self._cmd_syntax}:CONDition") self._enable = StatusOperationEnable(device, f"{self._cmd_syntax}:ENABle") @@ -541,7 +541,7 @@ class Status(SCPICmdRead): - ``.questionable``: The ``STATus:QUEStionable`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "STATus") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "STATus") -> None: super().__init__(device, cmd_syntax) self._operation = StatusOperation(device, f"{self._cmd_syntax}:OPERation") self._preset = StatusPreset(device, f"{self._cmd_syntax}:PRESet") diff --git a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py index 508653a6..86f0ae38 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WpluginPlugins(SCPICmdRead): @@ -75,7 +75,7 @@ class Wplugin(SCPICmdRead): - ``.plugins``: The ``WPLugin:PLUGins`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WPLugin") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WPLugin") -> None: super().__init__(device, cmd_syntax) self._active = WpluginActive(device, f"{self._cmd_syntax}:ACTive") self._plugins = WpluginPlugins(device, f"{self._cmd_syntax}:PLUGins") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py index bce31ea7..681b0702 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): @@ -68,7 +68,7 @@ class AuxoutputItemSource(SCPICmdWrite, SCPICmdRead): - ``.cmapping``: The ``AUXoutput[n]:SOURce:CMAPping`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cmapping = AuxoutputItemSourceCmapping(device, f"{self._cmd_syntax}:CMAPping") @@ -108,7 +108,7 @@ class AuxoutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXoutput[n]" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXoutput[n]" ) -> None: super().__init__(device, cmd_syntax) self._source = AuxoutputItemSource(device, f"{self._cmd_syntax}:SOURce") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py index 49a8c435..9ad808ee 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolTimerStop(SCPICmdWriteNoArguments): @@ -201,7 +201,7 @@ class AwgcontrolTimerInterval(SCPICmdRead): - ``.seconds``: The ``AWGControl:TIMer:INTerval:SEConds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hz = AwgcontrolTimerIntervalHz(device, f"{self._cmd_syntax}:HZ") self._seconds = AwgcontrolTimerIntervalSeconds(device, f"{self._cmd_syntax}:SEConds") @@ -271,7 +271,7 @@ class AwgcontrolTimer(SCPICmdRead): - ``.stop``: The ``AWGControl:TIMer:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._interval = AwgcontrolTimerInterval(device, f"{self._cmd_syntax}:INTerval") self._rstate = AwgcontrolTimerRstate(device, f"{self._cmd_syntax}:RSTate") @@ -428,7 +428,7 @@ class AwgcontrolStreaming(SCPICmdRead): - ``.jevent``: The ``AWGControl:STReaming:JEVent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AwgcontrolStreamingEnable(device, f"{self._cmd_syntax}:ENABle") self._jevent = AwgcontrolStreamingJevent(device, f"{self._cmd_syntax}:JEVent") @@ -506,7 +506,7 @@ class AwgcontrolStop(SCPICmdRead): - ``.immediate``: The ``AWGControl:STOP:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolStopImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -610,7 +610,7 @@ class AwgcontrolRun(SCPICmdRead): - ``.immediate``: The ``AWGControl:RUN:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = AwgcontrolRunImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -743,7 +743,7 @@ class AwgcontrolPjump(SCPICmdRead): - ``.sedge``: The ``AWGControl:PJUMp:SEDGe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._jstrobe = AwgcontrolPjumpJstrobe(device, f"{self._cmd_syntax}:JSTRobe") self._sedge = AwgcontrolPjumpSedge(device, f"{self._cmd_syntax}:SEDGe") @@ -892,7 +892,7 @@ class AwgcontrolInterleaveAdjustment(SCPICmdRead): - ``.phase``: The ``AWGControl:INTerleave:ADJustment:PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = AwgcontrolInterleaveAdjustmentAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -970,7 +970,7 @@ class AwgcontrolInterleave(SCPICmdRead): - ``.adjustment``: The ``AWGControl:INTerleave:ADJustment`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjustment = AwgcontrolInterleaveAdjustment(device, f"{self._cmd_syntax}:ADJustment") @@ -1026,7 +1026,7 @@ class AwgcontrolDoutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``AWGControl:DOUTput[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AwgcontrolDoutputItemState(device, f"{self._cmd_syntax}:STATe") @@ -1088,7 +1088,7 @@ class AwgcontrolDloading(SCPICmdRead): - ``.enable``: The ``AWGControl:DLOading:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AwgcontrolDloadingEnable(device, f"{self._cmd_syntax}:ENABle") @@ -1146,7 +1146,7 @@ class AwgcontrolConfigure(SCPICmdRead): - ``.cnumber``: The ``AWGControl:CONFigure:CNUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cnumber = AwgcontrolConfigureCnumber(device, f"{self._cmd_syntax}:CNUMber") @@ -1251,7 +1251,7 @@ class AwgcontrolClockPhase(SCPICmdRead): - ``.adjust``: The ``AWGControl:CLOCk:PHASe:ADJust`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = AwgcontrolClockPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -1315,7 +1315,7 @@ class AwgcontrolClock(SCPICmdRead): - ``.source``: The ``AWGControl:CLOCk:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._phase = AwgcontrolClockPhase(device, f"{self._cmd_syntax}:PHASe") self._drate = AwgcontrolClockDrate(device, f"{self._cmd_syntax}:DRATe") @@ -1448,7 +1448,9 @@ class Awgcontrol(SCPICmdRead): - ``.timer``: The ``AWGControl:TIMer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AWGControl") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AWGControl" + ) -> None: super().__init__(device, cmd_syntax) self._arsettings = AwgcontrolArsettings(device, f"{self._cmd_syntax}:ARSettings") self._compile = AwgcontrolCompile(device, f"{self._cmd_syntax}:COMPile") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py index d4f5ddbc..15cb8624 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BwaveformSrate(SCPICmdWrite, SCPICmdRead): @@ -383,7 +383,7 @@ class BwaveformCompile(SCPICmdWriteNoArguments, SCPICmdRead): - ``.play``: The ``BWAVeform:COMPile:PLAY`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cassign = BwaveformCompileCassign(device, f"{self._cmd_syntax}:CASSign") self._channel = BwaveformCompileChannel(device, f"{self._cmd_syntax}:CHANnel") @@ -558,7 +558,7 @@ class Bwaveform(SCPICmdRead): - ``.srate``: The ``BWAVeform:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BWAVeform") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BWAVeform") -> None: super().__init__(device, cmd_syntax) self._amplitude = BwaveformAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._auto = BwaveformAuto(device, f"{self._cmd_syntax}:AUTO") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py index f3921cf1..66c6f6ee 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): @@ -110,7 +110,7 @@ class ClockSout(SCPICmdRead): - ``.state``: The ``CLOCk:SOUT:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ClockSoutState(device, f"{self._cmd_syntax}:STATe") @@ -227,7 +227,7 @@ class ClockPhaseAdjust(SCPICmdRead): - ``.time``: The ``CLOCk:PHASe:ADJust:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = ClockPhaseAdjustDegrees(device, f"{self._cmd_syntax}:DEGRees") self._time = ClockPhaseAdjustTime(device, f"{self._cmd_syntax}:TIMe") @@ -299,7 +299,7 @@ class ClockPhase(SCPICmdRead): - ``.adjust``: The ``CLOCk:PHASe:ADJust`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = ClockPhaseAdjust(device, f"{self._cmd_syntax}:ADJust") @@ -375,7 +375,7 @@ class ClockOutput(SCPICmdRead): - ``.state``: The ``CLOCk:OUTPut:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = ClockOutputFrequency(device, f"{self._cmd_syntax}:FREQuency") self._state = ClockOutputState(device, f"{self._cmd_syntax}:STATe") @@ -524,7 +524,7 @@ class ClockEreferenceFrequency(SCPICmdWrite, SCPICmdRead): - ``.detect``: The ``CLOCk:EREFerence:FREQuency:DETect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._detect = ClockEreferenceFrequencyDetect(device, f"{self._cmd_syntax}:DETect") @@ -591,7 +591,7 @@ class ClockEreference(SCPICmdRead): - ``.multiplier``: The ``CLOCk:EREFerence:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._divider = ClockEreferenceDivider(device, f"{self._cmd_syntax}:DIVider") self._frequency = ClockEreferenceFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -767,7 +767,7 @@ class ClockEclockFrequency(SCPICmdWrite, SCPICmdRead): - ``.detect``: The ``CLOCk:ECLock:FREQuency:DETect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjust = ClockEclockFrequencyAdjust(device, f"{self._cmd_syntax}:ADJust") self._detect = ClockEclockFrequencyDetect(device, f"{self._cmd_syntax}:DETect") @@ -851,7 +851,7 @@ class ClockEclock(SCPICmdRead): - ``.multiplier``: The ``CLOCk:ECLock:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._divider = ClockEclockDivider(device, f"{self._cmd_syntax}:DIVider") self._frequency = ClockEclockFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -958,7 +958,7 @@ class Clock(SCPICmdRead): - ``.srate``: The ``CLOCk:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CLOCk") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CLOCk") -> None: super().__init__(device, cmd_syntax) self._eclock = ClockEclock(device, f"{self._cmd_syntax}:ECLock") self._ereference = ClockEreference(device, f"{self._cmd_syntax}:EREFerence") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py index e3537f55..0c292552 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): @@ -97,7 +97,7 @@ class CplaybackCompileSrate(SCPICmdWrite, SCPICmdRead): - ``.auto``: The ``CPLayback:COMPile:SRATe:AUTO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = CplaybackCompileSrateAuto(device, f"{self._cmd_syntax}:AUTO") @@ -220,7 +220,7 @@ class CplaybackCompile(SCPICmdWriteNoArguments, SCPICmdRead): - ``.srate``: The ``CPLayback:COMPile:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cfrequency = CplaybackCompileCfrequency(device, f"{self._cmd_syntax}:CFRequency") self._lsequence = CplaybackCompileLsequence(device, f"{self._cmd_syntax}:LSEQuence") @@ -473,7 +473,7 @@ class CplaybackClistSignalWaveform(SCPICmdRead): - ``.srate``: The ``CPLayback:CLISt:SIGNal:WAVeform:SRATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._foffset = CplaybackClistSignalWaveformFoffset(device, f"{self._cmd_syntax}:FOFFset") self._name = CplaybackClistSignalWaveformName(device, f"{self._cmd_syntax}:NAME") @@ -637,7 +637,7 @@ class CplaybackClistSignal(SCPICmdRead): - ``.wcount``: The ``CPLayback:CLISt:SIGNal:WCOunt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delete = CplaybackClistSignalDelete(device, f"{self._cmd_syntax}:DELete") self._scompile = CplaybackClistSignalScompile(device, f"{self._cmd_syntax}:SCOMpile") @@ -767,7 +767,7 @@ class CplaybackClist(SCPICmdRead): - ``.size``: The ``CPLayback:CLISt:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = CplaybackClistName(device, f"{self._cmd_syntax}:NAME") self._signal = CplaybackClistSignal(device, f"{self._cmd_syntax}:SIGNal") @@ -902,7 +902,7 @@ class CplaybackCaptureInstrument(SCPICmdRead): - ``.rsa``: The ``CPLayback:CAPTure:INSTrument:RSA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._oscilloscope = CplaybackCaptureInstrumentOscilloscope( device, f"{self._cmd_syntax}:OSCilloscope" @@ -991,7 +991,7 @@ class CplaybackCapture(SCPICmdRead): - ``.wlist``: The ``CPLayback:CAPTure:WLISt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = CplaybackCaptureFile(device, f"{self._cmd_syntax}:FILE") self._instrument = CplaybackCaptureInstrument(device, f"{self._cmd_syntax}:INSTrument") @@ -1076,7 +1076,7 @@ class Cplayback(SCPICmdRead): - ``.compile``: The ``CPLayback:COMPile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CPLayback") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CPLayback") -> None: super().__init__(device, cmd_syntax) self._capture = CplaybackCapture(device, f"{self._cmd_syntax}:CAPTure") self._clist = CplaybackClist(device, f"{self._cmd_syntax}:CLISt") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py index c194e3f4..59f228f4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticUnselect(SCPICmdWrite): @@ -113,7 +113,7 @@ class DiagnosticType(SCPICmdWrite, SCPICmdRead): - ``.catalog``: The ``DIAGnostic:TYPE:CATalog`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._catalog = DiagnosticTypeCatalog(device, f"{self._cmd_syntax}:CATalog") @@ -174,7 +174,7 @@ class DiagnosticStop(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``DIAGnostic:STOP:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DiagnosticStopState(device, f"{self._cmd_syntax}:STATe") @@ -260,7 +260,7 @@ class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): - ``.verify``: The ``DIAGnostic:SELect:VERify`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._verify = DiagnosticSelectVerify(device, f"{self._cmd_syntax}:VERify") @@ -394,7 +394,7 @@ class DiagnosticResult(SCPICmdReadWithArguments): - ``.time``: The ``DIAGnostic:RESult:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._temperature = DiagnosticResultTemperature(device, f"{self._cmd_syntax}:TEMPerature") self._time = DiagnosticResultTime(device, f"{self._cmd_syntax}:TIME") @@ -546,7 +546,7 @@ class DiagnosticLog(SCPICmdRead): - ``.failuresonly``: The ``DIAGnostic:LOG:FAILuresonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = DiagnosticLogClear(device, f"{self._cmd_syntax}:CLEar") self._failuresonly = DiagnosticLogFailuresonly(device, f"{self._cmd_syntax}:FAILuresonly") @@ -740,7 +740,7 @@ class DiagnosticControl(SCPICmdRead): - ``.loop``: The ``DIAGnostic:CONTrol:LOOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = DiagnosticControlCount(device, f"{self._cmd_syntax}:COUNt") self._halt = DiagnosticControlHalt(device, f"{self._cmd_syntax}:HALT") @@ -901,7 +901,9 @@ class Diagnostic(SCPICmdRead): - ``.immediate``: The ``DIAGnostic:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAGnostic") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAGnostic" + ) -> None: super().__init__(device, cmd_syntax) self._abort = DiagnosticAbort(device, f"{self._cmd_syntax}:ABORt") self._catalog = DiagnosticCatalog(device, f"{self._cmd_syntax}:CATalog") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py index 0c7bf86c..4e2a558f 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): @@ -338,7 +338,7 @@ class FgenChannelItemAmplitude(SCPICmdRead): - ``.voltage``: The ``FGEN:CHANnel[n]:AMPLitude:VOLTage`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._power = FgenChannelItemAmplitudePower(device, f"{self._cmd_syntax}:POWer") self._voltage = FgenChannelItemAmplitudeVoltage(device, f"{self._cmd_syntax}:VOLTage") @@ -419,7 +419,7 @@ class FgenChannelItem(ValidatedChannel, SCPICmdRead): - ``.type``: The ``FGEN:CHANnel[n]:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._path = FgenChannelItemPath(device, f"{self._cmd_syntax}:PATH") self._amplitude = FgenChannelItemAmplitude(device, f"{self._cmd_syntax}:AMPLitude") @@ -714,7 +714,7 @@ class Fgen(SCPICmdRead): - ``.channel``: The ``FGEN:CHANnel[n]`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FGEN") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FGEN") -> None: super().__init__(device, cmd_syntax) self._channel: Dict[int, FgenChannelItem] = DefaultDictPassKeyToFactory( lambda x: FgenChannelItem(device, f"{self._cmd_syntax}:CHANnel{x}") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py index b4293f06..3be2e0a4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): @@ -89,7 +89,7 @@ class InstrumentCouple(SCPICmdRead): - ``.source``: The ``INSTrument:COUPle:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = InstrumentCoupleSource(device, f"{self._cmd_syntax}:SOURce") @@ -135,7 +135,9 @@ class Instrument(SCPICmdRead): - ``.mode``: The ``INSTrument:MODE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "INSTrument") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "INSTrument" + ) -> None: super().__init__(device, cmd_syntax) self._couple = InstrumentCouple(device, f"{self._cmd_syntax}:COUPle") self._mode = InstrumentMode(device, f"{self._cmd_syntax}:MODE") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py index 86cbae0e..bb747b15 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): @@ -157,7 +157,7 @@ class MmemorySaveWaveform(SCPICmdRead): - ``.wfmx``: The ``MMEMory:SAVE:WAVeform:WFMX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mat = MmemorySaveWaveformMat(device, f"{self._cmd_syntax}:MAT") self._tiq = MmemorySaveWaveformTiq(device, f"{self._cmd_syntax}:TIQ") @@ -310,7 +310,7 @@ class MmemorySave(SCPICmdRead): - ``.waveform``: The ``MMEMory:SAVE:WAVeform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = MmemorySaveSequence(device, f"{self._cmd_syntax}:SEQuence") self._setup = MmemorySaveSetup(device, f"{self._cmd_syntax}:SETup") @@ -469,7 +469,7 @@ class MmemoryOpenSassetSequence(SCPICmdWrite, SCPICmdRead): - ``.mropened``: The ``MMEMory:OPEN:SASSet:SEQuence:MROPened`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mropened = MmemoryOpenSassetSequenceMropened(device, f"{self._cmd_syntax}:MROPened") @@ -509,7 +509,7 @@ class MmemoryOpenSasset(SCPICmdRead): - ``.waveform``: The ``MMEMory:OPEN:SASSet:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = MmemoryOpenSassetSequence(device, f"{self._cmd_syntax}:SEQuence") self._waveform = MmemoryOpenSassetWaveform(device, f"{self._cmd_syntax}:WAVeform") @@ -629,7 +629,7 @@ class MmemoryOpenParameter(SCPICmdRead): - ``.siq``: The ``MMEMory:OPEN:PARameter:SIQ`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._normalize = MmemoryOpenParameterNormalize(device, f"{self._cmd_syntax}:NORMalize") self._siq = MmemoryOpenParameterSiq(device, f"{self._cmd_syntax}:SIQ") @@ -723,7 +723,7 @@ class MmemoryOpen(SCPICmdWrite, SCPICmdRead): - ``.parameter``: The ``MMEMory:OPEN:PARameter`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sasset = MmemoryOpenSasset(device, f"{self._cmd_syntax}:SASSet") self._setup = MmemoryOpenSetup(device, f"{self._cmd_syntax}:SETup") @@ -877,7 +877,7 @@ class MmemoryImportParameter(SCPICmdRead): - ``.normalize``: The ``MMEMory:IMPort:PARameter:NORMalize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._normalize = MmemoryImportParameterNormalize(device, f"{self._cmd_syntax}:NORMalize") @@ -940,7 +940,7 @@ class MmemoryImport(SCPICmdWrite, SCPICmdRead): - ``.parameter``: The ``MMEMory:IMPort:PARameter`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parameter = MmemoryImportParameter(device, f"{self._cmd_syntax}:PARameter") @@ -1017,7 +1017,7 @@ class MmemoryData(SCPICmdWrite, SCPICmdReadWithArguments): - ``.size``: The ``MMEMory:DATA:SIZE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = MmemoryDataSize(device, f"{self._cmd_syntax}:SIZE") @@ -1102,7 +1102,7 @@ class Mmemory(SCPICmdRead): - ``.save``: The ``MMEMory:SAVE`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MMEMory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MMEMory") -> None: super().__init__(device, cmd_syntax) self._catalog = MmemoryCatalog(device, f"{self._cmd_syntax}:CATalog") self._cdirectory = MmemoryCdirectory(device, f"{self._cmd_syntax}:CDIRectory") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/output.py b/src/tm_devices/commands/gen_3rs8qy_awg/output.py index 46425579..f32127bb 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/output.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/output.py @@ -46,7 +46,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -123,7 +123,7 @@ class OutputItemWvalueAnalog(SCPICmdRead): - ``.state``: The ``OUTPut[n]:WVALue:ANALog:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = OutputItemWvalueAnalogState(device, f"{self._cmd_syntax}:STATe") @@ -172,7 +172,7 @@ class OutputItemWvalue(SCPICmdRead): - ``.analog``: The ``OUTPut[n]:WVALue:ANALog`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._marker: Dict[int, OutputItemWvalueMarkerItem] = DefaultDictPassKeyToFactory( lambda x: OutputItemWvalueMarkerItem(device, f"{self._cmd_syntax}:MARKer{x}") @@ -296,7 +296,7 @@ class OutputItemSvalueAnalog(SCPICmdRead): - ``.state``: The ``OUTPut[n]:SVALue:ANALog:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = OutputItemSvalueAnalogState(device, f"{self._cmd_syntax}:STATe") @@ -343,7 +343,7 @@ class OutputItemSvalue(SCPICmdRead): - ``.analog``: The ``OUTPut[n]:SVALue:ANALog`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._marker: Dict[int, OutputItemSvalueMarkerItem] = DefaultDictPassKeyToFactory( lambda x: OutputItemSvalueMarkerItem(device, f"{self._cmd_syntax}:MARKer{x}") @@ -486,7 +486,7 @@ class OutputItemFilterBpass(SCPICmdRead): - ``.range``: The ``OUTPut[n]:FILTer:BPASs:RANGe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._range = OutputItemFilterBpassRange(device, f"{self._cmd_syntax}:RANGe") @@ -540,7 +540,7 @@ class OutputItemFilter(SCPICmdWrite, SCPICmdRead): - ``.bpass``: The ``OUTPut[n]:FILTer:BPASs`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bpass = OutputItemFilterBpass(device, f"{self._cmd_syntax}:BPASs") @@ -673,7 +673,7 @@ class OutputItemAttenuator(SCPICmdRead): - ``.dac``: The ``OUTPut[n]:ATTenuator:DAC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a1 = OutputItemAttenuatorA1(device, f"{self._cmd_syntax}:A1") self._a2 = OutputItemAttenuatorA2(device, f"{self._cmd_syntax}:A2") @@ -801,7 +801,7 @@ class OutputItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``OUTPut[n]:STATe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OUTPut[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "OUTPut[n]") -> None: super().__init__(device, cmd_syntax) self._attenuator = OutputItemAttenuator(device, f"{self._cmd_syntax}:ATTenuator") self._filter = OutputItemFilter(device, f"{self._cmd_syntax}:FILTer") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/source.py b/src/tm_devices/commands/gen_3rs8qy_awg/source.py index 62608c61..fe8f952d 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/source.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/source.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): @@ -205,7 +205,7 @@ class SourceItemVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemVoltageLevelImmediateHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SourceItemVoltageLevelImmediateLow(device, f"{self._cmd_syntax}:LOW") @@ -332,7 +332,7 @@ class SourceItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemVoltageLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -368,7 +368,7 @@ class SourceItemVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -523,7 +523,7 @@ class SourceItemPowerLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:POWer:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SourceItemPowerLevelImmediateAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -569,7 +569,7 @@ class SourceItemPowerLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:POWer:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemPowerLevelImmediate(device, f"{self._cmd_syntax}:IMMediate") @@ -601,7 +601,7 @@ class SourceItemPower(SCPICmdRead): - ``.level``: The ``SOURce[n]:POWer:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemPowerLevel(device, f"{self._cmd_syntax}:LEVel") @@ -745,7 +745,7 @@ class SourceItemMarkerItemVoltageLevelImmediate(SCPICmdRead): - ``.amplitude``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel:IMMediate:AMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SourceItemMarkerItemVoltageLevelImmediateHigh( device, f"{self._cmd_syntax}:HIGH" @@ -883,7 +883,7 @@ class SourceItemMarkerItemVoltageLevel(SCPICmdRead): - ``.immediate``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel:IMMediate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immediate = SourceItemMarkerItemVoltageLevelImmediate( device, f"{self._cmd_syntax}:IMMediate" @@ -921,7 +921,7 @@ class SourceItemMarkerItemVoltage(SCPICmdRead): - ``.level``: The ``SOURce[n]:MARKer[m]:VOLTage:LEVel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = SourceItemMarkerItemVoltageLevel(device, f"{self._cmd_syntax}:LEVel") @@ -980,7 +980,7 @@ class SourceItemMarkerItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.voltage``: The ``SOURce[n]:MARKer[m]:VOLTage`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = SourceItemMarkerItemDelay(device, f"{self._cmd_syntax}:DELay") self._voltage = SourceItemMarkerItemVoltage(device, f"{self._cmd_syntax}:VOLTage") @@ -1057,7 +1057,7 @@ class SourceItemJumpPattern(SCPICmdRead): - ``.force``: The ``SOURce[n]:JUMP:PATTern:FORCe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._force = SourceItemJumpPatternForce(device, f"{self._cmd_syntax}:FORCe") @@ -1112,7 +1112,7 @@ class SourceItemJump(SCPICmdRead): - ``.pattern``: The ``SOURce[n]:JUMP:PATTern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._force = SourceItemJumpForce(device, f"{self._cmd_syntax}:FORCe") self._pattern = SourceItemJumpPattern(device, f"{self._cmd_syntax}:PATTern") @@ -1187,7 +1187,7 @@ class SourceItemDac(SCPICmdRead): - ``.resolution``: The ``SOURce[n]:DAC:RESolution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resolution = SourceItemDacResolution(device, f"{self._cmd_syntax}:RESolution") @@ -1292,7 +1292,7 @@ class SourceItemCasset(SCPICmdRead): - ``.waveform``: The ``SOURce[n]:CASSet:WAVeform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sequence = SourceItemCassetSequence(device, f"{self._cmd_syntax}:SEQuence") self._type = SourceItemCassetType(device, f"{self._cmd_syntax}:TYPE") @@ -1379,7 +1379,7 @@ class SourceItem(ValidatedChannel, SCPICmdRead): - ``.jump``: The ``SOURce[n]:JUMP`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce[n]") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce[n]") -> None: super().__init__(device, cmd_syntax) self._casset = SourceItemCasset(device, f"{self._cmd_syntax}:CASSet") self._dac = SourceItemDac(device, f"{self._cmd_syntax}:DAC") @@ -1652,7 +1652,7 @@ class SourceRoscillator(SCPICmdRead): - ``.multiplier``: The ``SOURce:ROSCillator:MULTiplier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._multiplier = SourceRoscillatorMultiplier(device, f"{self._cmd_syntax}:MULTiplier") @@ -1745,7 +1745,7 @@ class Source(SCPICmdRead): - ``.roscillator``: The ``SOURce:ROSCillator`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOURce") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOURce") -> None: super().__init__(device, cmd_syntax) self._frequency = SourceFrequency(device, f"{self._cmd_syntax}:FREQuency") self._rccouple = SourceRccouple(device, f"{self._cmd_syntax}:RCCouple") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py index d0e1fd83..31e3db8d 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SynchronizeType(SCPICmdRead): @@ -131,7 +131,7 @@ class SynchronizeDeskew(SCPICmdRead): - ``.start``: The ``SYNChronize:DESKew:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._abort = SynchronizeDeskewAbort(device, f"{self._cmd_syntax}:ABORt") self._state = SynchronizeDeskewState(device, f"{self._cmd_syntax}:STATe") @@ -241,7 +241,7 @@ class SynchronizeAdjust(SCPICmdRead): - ``.start``: The ``SYNChronize:ADJust:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = SynchronizeAdjustStart(device, f"{self._cmd_syntax}:STARt") @@ -281,7 +281,7 @@ class Synchronize(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYNChronize" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYNChronize" ) -> None: super().__init__(device, cmd_syntax) self._adjust = SynchronizeAdjust(device, f"{self._cmd_syntax}:ADJust") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/system.py b/src/tm_devices/commands/gen_3rs8qy_awg/system.py index 0aa4290b..48ef5cc6 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/system.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/system.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): @@ -148,7 +148,7 @@ class SystemSid(SCPICmdRead): - ``.mac``: The ``SYSTem:SID:MAC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gateway = SystemSidGateway(device, f"{self._cmd_syntax}:GATeway") self._ip = SystemSidIp(device, f"{self._cmd_syntax}:IP") @@ -327,7 +327,7 @@ class SystemErrorCode(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:CODE:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = SystemErrorCodeAll(device, f"{self._cmd_syntax}:ALL") self._next = SystemErrorCodeNext(device, f"{self._cmd_syntax}:NEXT") @@ -408,7 +408,7 @@ class SystemErrorCmd(SCPICmdRead): - ``.next``: The ``SYSTem:ERRor:NEXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = SystemErrorAll(device, f"{self._cmd_syntax}:ALL") self._code = SystemErrorCode(device, f"{self._cmd_syntax}:CODE") @@ -553,7 +553,7 @@ class System(SCPICmdRead): - ``.version``: The ``SYSTem:VERSion`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYSTem") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYSTem") -> None: super().__init__(device, cmd_syntax) self._date = SystemDate(device, f"{self._cmd_syntax}:DATE") self._error = SystemError(device, f"{self._cmd_syntax}:ERRor") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py index 04a6fdfa..0090e6f4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): @@ -246,7 +246,7 @@ class Trigger(SCPICmdRead): - ``.immediate``: The ``TRIGger:IMMediate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._impedance = TriggerImpedance(device, f"{self._cmd_syntax}:IMPedance") self._interval = TriggerInterval(device, f"{self._cmd_syntax}:INTerval") diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py index 54436776..8bdc813e 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): @@ -344,7 +344,7 @@ class WlistWaveformRotate(SCPICmdRead): - ``.degrees``: The ``WLISt:WAVeform:ROTate:DEGRees`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._points = WlistWaveformRotatePoints(device, f"{self._cmd_syntax}:POINts") self._degrees = WlistWaveformRotateDegrees(device, f"{self._cmd_syntax}:DEGRees") @@ -534,7 +534,7 @@ class WlistWaveformMarker(SCPICmdRead): - ``.data``: The ``WLISt:WAVeform:MARKer:DATA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = WlistWaveformMarkerData(device, f"{self._cmd_syntax}:DATA") @@ -776,7 +776,7 @@ class WlistWaveformData(SCPICmdWrite, SCPICmdReadWithArguments): - ``.i``: The ``WLISt:WAVeform:DATA:I`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._q = WlistWaveformDataQ(device, f"{self._cmd_syntax}:Q") self._i = WlistWaveformDataI(device, f"{self._cmd_syntax}:I") @@ -981,7 +981,7 @@ class WlistWaveformAcfileGaussian(SCPICmdWrite, SCPICmdRead): - ``.bandwidth``: The ``WLISt:WAVeform:ACFile:GAUSsian:BANDwidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = WlistWaveformAcfileGaussianBandwidth( device, f"{self._cmd_syntax}:BANDwidth" @@ -1036,7 +1036,7 @@ class WlistWaveformAcfile(SCPICmdWrite, SCPICmdRead): - ``.skew``: The ``WLISt:WAVeform:ACFile:SKEW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gaussian = WlistWaveformAcfileGaussian(device, f"{self._cmd_syntax}:GAUSsian") self._rsinc = WlistWaveformAcfileRsinc(device, f"{self._cmd_syntax}:RSINc") @@ -1153,7 +1153,7 @@ class WlistWaveform(SCPICmdRead): - ``.type``: The ``WLISt:WAVeform:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acfile = WlistWaveformAcfile(device, f"{self._cmd_syntax}:ACFile") self._amplitude = WlistWaveformAmplitude(device, f"{self._cmd_syntax}:AMPLitude") @@ -2030,7 +2030,7 @@ class WlistSparameterNcascadingAggressorItemSignal(SCPICmdWrite, SCPICmdRead): - ``.prbs``: The ``WLISt:SPARameter:NCAScading:AGGRessor[n]:SIGNal:PRBS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = WlistSparameterNcascadingAggressorItemSignalFile( device, f"{self._cmd_syntax}:FILE" @@ -2177,7 +2177,7 @@ class WlistSparameterNcascadingAggressorItem(ValidatedDynamicNumberCmd, SCPICmdR - ``.signal``: The ``WLISt:SPARameter:NCAScading:AGGRessor[n]:SIGNal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = WlistSparameterNcascadingAggressorItemAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -2335,7 +2335,7 @@ class WlistSparameterNcascadingAggressor2(SCPICmdRead): - ``.enable``: The ``WLISt:SPARameter:NCAScading:AGGRessor2:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = WlistSparameterNcascadingAggressor2Enable( device, f"{self._cmd_syntax}:ENABle" @@ -2392,7 +2392,7 @@ class WlistSparameterNcascading(SCPICmdRead): - ``.type``: The ``WLISt:SPARameter:NCAScading:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aggressor2 = WlistSparameterNcascadingAggressor2( device, f"{self._cmd_syntax}:AGGRessor2" @@ -2976,7 +2976,7 @@ class WlistSparameterCascadingStageItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.tx``: The ``WLISt:SPARameter:CASCading:STAGe[m]:TX[n]`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drx: Dict[int, WlistSparameterCascadingStageItemDrxItem] = ( DefaultDictPassKeyToFactory( @@ -3280,7 +3280,7 @@ class WlistSparameterCascadingAggressorItemSignal(SCPICmdWrite, SCPICmdRead): - ``.prbs``: The ``WLISt:SPARameter:CASCading:AGGRessor[n]:SIGNal:PRBS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = WlistSparameterCascadingAggressorItemSignalFile( device, f"{self._cmd_syntax}:FILE" @@ -3426,7 +3426,7 @@ class WlistSparameterCascadingAggressorItem(ValidatedDynamicNumberCmd, SCPICmdRe - ``.signal``: The ``WLISt:SPARameter:CASCading:AGGRessor[n]:SIGNal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = WlistSparameterCascadingAggressorItemAmplitude( device, f"{self._cmd_syntax}:AMPLitude" @@ -3582,7 +3582,7 @@ class WlistSparameterCascadingAggressor2(SCPICmdRead): - ``.enable``: The ``WLISt:SPARameter:CASCading:AGGRessor2:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = WlistSparameterCascadingAggressor2Enable( device, f"{self._cmd_syntax}:ENABle" @@ -3632,7 +3632,7 @@ class WlistSparameterCascading(SCPICmdRead): - ``.type``: The ``WLISt:SPARameter:CASCading:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aggressor2 = WlistSparameterCascadingAggressor2( device, f"{self._cmd_syntax}:AGGRessor2" @@ -3829,7 +3829,7 @@ class WlistSparameterBandwidth(SCPICmdWrite, SCPICmdRead): - ``.auto``: The ``WLISt:SPARameter:BANDwidth:AUTO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = WlistSparameterBandwidthAuto(device, f"{self._cmd_syntax}:AUTO") @@ -3894,7 +3894,7 @@ class WlistSparameter(SCPICmdRead): - ``.sformat``: The ``WLISt:SPARameter:SFORmat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = WlistSparameterApply(device, f"{self._cmd_syntax}:APPLy") self._bandwidth = WlistSparameterBandwidth(device, f"{self._cmd_syntax}:BANDwidth") @@ -4133,7 +4133,7 @@ class Wlist(SCPICmdRead): - ``.waveform``: The ``WLISt:WAVeform`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WLISt") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WLISt") -> None: super().__init__(device, cmd_syntax) self._last = WlistLast(device, f"{self._cmd_syntax}:LAST") self._list = WlistList(device, f"{self._cmd_syntax}:LIST") diff --git a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py index edc4d769..c298c4b4 100644 --- a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py @@ -1042,7 +1042,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1215,7 +1215,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1326,7 +1326,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1580,7 +1580,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1738,7 +1738,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1922,7 +1922,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1995,7 +1995,7 @@ class TriggerMainPulseGlitch(SCPICmdRead): - ``.lowpassfilter``: The ``TRIGger:MAIn:PULse:GLItch:LOWPASSfilter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerMainPulseGlitchLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -2040,7 +2040,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._glitch = TriggerMainPulseGlitch(device, f"{self._cmd_syntax}:GLItch") self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2086,7 +2086,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2230,7 +2230,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2519,7 +2519,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3080,7 +3080,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3700,7 +3700,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3885,7 +3885,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3975,7 +3975,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4303,7 +4303,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4444,7 +4444,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4767,7 +4767,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4951,7 +4951,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5045,7 +5045,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5336,7 +5336,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5431,7 +5431,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5755,7 +5755,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5937,7 +5937,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6003,7 +6003,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6383,7 +6383,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6742,7 +6742,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6861,7 +6861,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -7111,7 +7111,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7446,7 +7446,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7532,7 +7532,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7638,7 +7638,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7699,7 +7699,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -7894,7 +7894,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8011,7 +8011,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8174,7 +8174,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8326,7 +8326,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8488,7 +8488,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8736,7 +8736,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8847,7 +8847,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8912,7 +8912,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9076,7 +9076,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9256,7 +9256,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9520,7 +9520,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9599,7 +9599,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9754,7 +9754,7 @@ class TriggerBEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerBEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerBEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -9893,7 +9893,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9956,7 +9956,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -10195,7 +10195,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10853,7 +10853,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -11050,7 +11050,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11211,7 +11211,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11516,7 +11516,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11688,7 +11688,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11860,7 +11860,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12110,7 +12110,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12340,7 +12340,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12493,7 +12493,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12630,7 +12630,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12931,7 +12931,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12969,7 +12969,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -13076,7 +13076,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -13180,7 +13180,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13359,7 +13359,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13493,7 +13493,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13909,7 +13909,7 @@ class TriggerARs232Data(SCPICmdRead): - ``.value``: The ``TRIGger:A:RS232:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerARs232DataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerARs232DataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -14033,7 +14033,7 @@ class TriggerARs232(SCPICmdRead): - ``.parity``: The ``TRIGger:A:RS232:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._baud = TriggerARs232Baud(device, f"{self._cmd_syntax}:BAUd") self._data = TriggerARs232Data(device, f"{self._cmd_syntax}:DATa") @@ -14347,7 +14347,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -14532,7 +14532,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14617,7 +14617,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14711,7 +14711,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14773,7 +14773,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14871,7 +14871,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -15241,7 +15241,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15382,7 +15382,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -15705,7 +15705,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15889,7 +15889,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15983,7 +15983,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -16274,7 +16274,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16369,7 +16369,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -16693,7 +16693,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16875,7 +16875,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16959,7 +16959,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17053,7 +17053,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17116,7 +17116,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -17181,7 +17181,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17587,7 +17587,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17947,7 +17947,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18066,7 +18066,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -18316,7 +18316,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18691,7 +18691,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18844,7 +18844,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18930,7 +18930,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19036,7 +19036,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19097,7 +19097,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -19292,7 +19292,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19409,7 +19409,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19572,7 +19572,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19724,7 +19724,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19886,7 +19886,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -20134,7 +20134,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -20245,7 +20245,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20310,7 +20310,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -20474,7 +20474,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20654,7 +20654,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20918,7 +20918,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21124,7 +21124,7 @@ class TriggerAI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerAI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerAI2cDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -21360,7 +21360,7 @@ class TriggerAI2cClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:I2C:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerAI2cClockLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerAI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -21538,7 +21538,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerAI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -21670,7 +21670,7 @@ class TriggerAI2c(SCPICmdRead): - ``.format``: The ``TRIGger:A:I2C:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._clock = TriggerAI2cClock(device, f"{self._cmd_syntax}:CLOCk") @@ -21889,7 +21889,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -22104,7 +22104,7 @@ class TriggerAEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerAEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerAEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -22243,7 +22243,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -22306,7 +22306,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -22512,7 +22512,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -22620,7 +22620,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22723,7 +22723,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22853,7 +22853,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -22927,7 +22927,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -23053,7 +23053,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -23156,7 +23156,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -23281,7 +23281,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -23384,7 +23384,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -23509,7 +23509,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -23612,7 +23612,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -23737,7 +23737,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -23840,7 +23840,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -23915,7 +23915,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -24268,7 +24268,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -24495,7 +24495,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -24657,7 +24657,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -24917,7 +24917,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -24999,7 +24999,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -25100,7 +25100,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -25229,7 +25229,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -25334,7 +25334,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -25387,7 +25387,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -25562,7 +25562,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -25722,7 +25722,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -25880,7 +25880,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -26191,7 +26191,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -26487,7 +26487,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -26758,7 +26758,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -26851,7 +26851,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -26992,7 +26992,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -27116,7 +27116,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -27614,7 +27614,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -27740,7 +27740,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -27879,7 +27879,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -27989,7 +27989,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28215,7 +28215,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28315,7 +28315,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -28382,7 +28382,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -28623,7 +28623,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -28754,7 +28754,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -28862,7 +28862,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -29031,7 +29031,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -29190,7 +29190,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -29271,7 +29271,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -29450,7 +29450,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -29580,7 +29580,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -29697,7 +29697,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -29830,7 +29830,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -30075,7 +30075,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -30174,7 +30174,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -30241,7 +30241,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -30485,7 +30485,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -30895,7 +30895,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -31309,7 +31309,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -31420,7 +31420,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -31591,7 +31591,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -31812,7 +31812,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -31950,7 +31950,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -32087,7 +32087,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -32202,7 +32202,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -32385,7 +32385,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32592,7 +32592,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -32786,7 +32786,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -32928,7 +32928,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -33134,7 +33134,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33401,7 +33401,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -33536,7 +33536,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -33698,7 +33698,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -33927,7 +33927,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -34275,7 +34275,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -34507,7 +34507,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -34636,7 +34636,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -34856,7 +34856,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -34901,7 +34901,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( device, f"{self._cmd_syntax}:SOUrceaddr" @@ -34961,7 +34961,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -35007,7 +35007,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") @@ -35107,7 +35107,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -35278,7 +35278,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -35548,7 +35548,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -35816,7 +35816,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -35941,7 +35941,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -36072,7 +36072,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -36399,7 +36399,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -36916,7 +36916,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py index e6bcb125..fd6de4af 100644 --- a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py @@ -1052,7 +1052,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1225,7 +1225,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1336,7 +1336,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1590,7 +1590,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1748,7 +1748,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1932,7 +1932,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1981,7 +1981,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2012,7 +2012,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2155,7 +2155,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2444,7 +2444,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3005,7 +3005,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3625,7 +3625,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3810,7 +3810,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3900,7 +3900,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4228,7 +4228,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4369,7 +4369,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4692,7 +4692,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4876,7 +4876,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4970,7 +4970,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5261,7 +5261,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5356,7 +5356,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5680,7 +5680,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5862,7 +5862,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5928,7 +5928,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6308,7 +6308,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6667,7 +6667,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6786,7 +6786,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -7036,7 +7036,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7371,7 +7371,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7457,7 +7457,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7563,7 +7563,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7624,7 +7624,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -7819,7 +7819,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7936,7 +7936,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8099,7 +8099,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8251,7 +8251,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8413,7 +8413,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8661,7 +8661,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8772,7 +8772,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8837,7 +8837,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9001,7 +9001,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9181,7 +9181,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9445,7 +9445,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9524,7 +9524,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9689,7 +9689,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9752,7 +9752,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -9987,7 +9987,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10645,7 +10645,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -10842,7 +10842,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11003,7 +11003,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11308,7 +11308,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11480,7 +11480,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11652,7 +11652,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11902,7 +11902,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12132,7 +12132,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12285,7 +12285,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12422,7 +12422,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12723,7 +12723,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12761,7 +12761,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -12868,7 +12868,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -12972,7 +12972,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13151,7 +13151,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13285,7 +13285,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13771,7 +13771,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -13956,7 +13956,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14041,7 +14041,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14135,7 +14135,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14197,7 +14197,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14295,7 +14295,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14665,7 +14665,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14806,7 +14806,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -15129,7 +15129,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15313,7 +15313,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15407,7 +15407,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15698,7 +15698,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15793,7 +15793,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -16117,7 +16117,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16299,7 +16299,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16383,7 +16383,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16477,7 +16477,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16540,7 +16540,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16605,7 +16605,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17011,7 +17011,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17371,7 +17371,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17490,7 +17490,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -17740,7 +17740,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18115,7 +18115,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18268,7 +18268,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18354,7 +18354,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18460,7 +18460,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18521,7 +18521,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -18716,7 +18716,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18833,7 +18833,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -18996,7 +18996,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19148,7 +19148,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19310,7 +19310,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19558,7 +19558,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19669,7 +19669,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19734,7 +19734,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -19898,7 +19898,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20078,7 +20078,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20342,7 +20342,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20414,7 +20414,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20458,7 +20458,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20578,7 +20578,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -20803,7 +20803,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20866,7 +20866,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -21068,7 +21068,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21176,7 +21176,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21279,7 +21279,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21409,7 +21409,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21483,7 +21483,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -21609,7 +21609,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21712,7 +21712,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21837,7 +21837,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21940,7 +21940,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22065,7 +22065,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22168,7 +22168,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22293,7 +22293,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22396,7 +22396,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22471,7 +22471,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -22824,7 +22824,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -23051,7 +23051,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23213,7 +23213,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23473,7 +23473,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23555,7 +23555,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23656,7 +23656,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -23785,7 +23785,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -23890,7 +23890,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -23943,7 +23943,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24118,7 +24118,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24278,7 +24278,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24436,7 +24436,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -24747,7 +24747,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25043,7 +25043,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25314,7 +25314,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25407,7 +25407,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25548,7 +25548,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25672,7 +25672,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26170,7 +26170,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26296,7 +26296,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26435,7 +26435,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26545,7 +26545,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -26771,7 +26771,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -26871,7 +26871,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -26938,7 +26938,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27179,7 +27179,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27310,7 +27310,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27418,7 +27418,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27587,7 +27587,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -27746,7 +27746,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -27827,7 +27827,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -28006,7 +28006,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28136,7 +28136,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28253,7 +28253,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28386,7 +28386,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28631,7 +28631,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28730,7 +28730,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -28797,7 +28797,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -29041,7 +29041,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29451,7 +29451,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -29865,7 +29865,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -29976,7 +29976,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30147,7 +30147,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30368,7 +30368,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30506,7 +30506,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -30643,7 +30643,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -30758,7 +30758,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -30941,7 +30941,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31148,7 +31148,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31342,7 +31342,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31484,7 +31484,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -31690,7 +31690,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -31957,7 +31957,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -32092,7 +32092,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32254,7 +32254,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32483,7 +32483,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -32831,7 +32831,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33063,7 +33063,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33192,7 +33192,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33443,7 +33443,7 @@ class TriggerABusEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderSourceportFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33582,7 +33582,7 @@ class TriggerABusEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderSeqnumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33719,7 +33719,7 @@ class TriggerABusEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderDestinationportFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33858,7 +33858,7 @@ class TriggerABusEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderAcknumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33939,7 +33939,7 @@ class TriggerABusEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerABusEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerABusEthernetTcpheaderDestinationport( @@ -34114,7 +34114,7 @@ class TriggerABusEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetQtagFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -34245,7 +34245,7 @@ class TriggerABusEthernetMacType(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacTypeFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetMacTypeValue(device, f"{self._cmd_syntax}:VALue") @@ -34376,7 +34376,7 @@ class TriggerABusEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacLengthFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetMacLengthValue(device, f"{self._cmd_syntax}:VALue") @@ -34509,7 +34509,7 @@ class TriggerABusEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacAddressSourceFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34644,7 +34644,7 @@ class TriggerABusEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacAddressDestinationFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34723,7 +34723,7 @@ class TriggerABusEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerABusEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -34779,7 +34779,7 @@ class TriggerABusEthernetMac(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerABusEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -34908,7 +34908,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderSourceaddrFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35046,7 +35046,7 @@ class TriggerABusEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderProtocolFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35182,7 +35182,7 @@ class TriggerABusEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderDestinationaddrFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35264,7 +35264,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerABusEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -35441,7 +35441,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -35611,7 +35611,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -35844,7 +35844,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -36015,7 +36015,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36285,7 +36285,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36553,7 +36553,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36678,7 +36678,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -36809,7 +36809,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -37140,7 +37140,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -37635,7 +37635,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py index e9319f83..2d88c030 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Channelmapping(SCPICmdRead): @@ -40,6 +40,6 @@ class Channelmapping(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CHANNELMAPping" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CHANNELMAPping" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py index 226bfd6f..2819cc0b 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py @@ -50,7 +50,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CounterView(SCPICmdWrite, SCPICmdRead): @@ -402,7 +402,7 @@ class CounterResults(SCPICmdRead): - ``.value``: The ``COUnter:RESULTs:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._avgmean = CounterResultsAvgmean(device, f"{self._cmd_syntax}:AVGmean") self._deviation = CounterResultsDeviation(device, f"{self._cmd_syntax}:DEViation") @@ -778,7 +778,7 @@ class Counter(SCPICmdWrite, SCPICmdRead): - ``.view``: The ``COUnter:VIEW`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "COUnter") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "COUnter") -> None: super().__init__(device, cmd_syntax) self._duration = CounterDuration(device, f"{self._cmd_syntax}:DURation") self._gain = CounterGain(device, f"{self._cmd_syntax}:GAIn") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py index fc847ee7..f10a27ae 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py @@ -177,7 +177,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): @@ -332,7 +332,7 @@ class ErrordetectorSymbolTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorSymbolTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorSymbolTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -527,7 +527,7 @@ class ErrordetectorSymbolTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorSymbolTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorSymbolTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -869,7 +869,7 @@ class ErrordetectorSymbolTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:SYMBOL:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorSymbolTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._bitcount = ErrordetectorSymbolTestBitcount(device, f"{self._cmd_syntax}:BITCOUNT") @@ -1193,7 +1193,7 @@ class ErrordetectorSymbol(SCPICmdRead): - ``.test``: The ``ERRORDetector:SYMBOL:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._test = ErrordetectorSymbolTest(device, f"{self._cmd_syntax}:TEST") @@ -1564,7 +1564,7 @@ class ErrordetectorPreset(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``ERRORDetector:PREset:APPLY`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = ErrordetectorPresetApply(device, f"{self._cmd_syntax}:APPLY") @@ -1741,7 +1741,7 @@ class ErrordetectorFrameTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorFrameTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorFrameTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -1936,7 +1936,7 @@ class ErrordetectorFrameTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorFrameTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorFrameTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -2214,7 +2214,7 @@ class ErrordetectorFrameTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:FRAme:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorFrameTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._count = ErrordetectorFrameTestCount(device, f"{self._cmd_syntax}:COUNt") @@ -2542,7 +2542,7 @@ class ErrordetectorFrame(SCPICmdRead): - ``.test``: The ``ERRORDetector:FRAme:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eof = ErrordetectorFrameEof(device, f"{self._cmd_syntax}:EOF") self._initialcrcvalue = ErrordetectorFrameInitialcrcvalue( @@ -2760,7 +2760,7 @@ class ErrordetectorFile(SCPICmdRead): - ``.save``: The ``ERRORDetector:FILE:SAVe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recall = ErrordetectorFileRecall(device, f"{self._cmd_syntax}:RECAll") self._save = ErrordetectorFileSave(device, f"{self._cmd_syntax}:SAVe") @@ -2970,7 +2970,7 @@ class ErrordetectorDurationTime(SCPICmdWrite, SCPICmdRead): - ``.seconds``: The ``ERRORDetector:DURATION:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorDurationTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorDurationTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3154,7 +3154,7 @@ class ErrordetectorDuration(SCPICmdRead): - ``.time``: The ``ERRORDetector:DURATION:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorDurationCount(device, f"{self._cmd_syntax}:COUNt") self._seconds = ErrordetectorDurationSeconds(device, f"{self._cmd_syntax}:SECOnds") @@ -3329,7 +3329,7 @@ class ErrordetectorBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``ERRORDetector:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = ErrordetectorBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -3460,7 +3460,7 @@ class ErrordetectorBitTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorBitTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorBitTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3671,7 +3671,7 @@ class ErrordetectorBitTestStatus(SCPICmdRead): - ``.sync``: The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorBitTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorBitTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -3931,7 +3931,7 @@ class ErrordetectorBitTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:BIT:TEST:TIME`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorBitTestCount(device, f"{self._cmd_syntax}:COUNt") self._duration = ErrordetectorBitTestDuration(device, f"{self._cmd_syntax}:DURATION") @@ -4247,7 +4247,7 @@ class ErrordetectorBitSyncpattern(SCPICmdRead): - ``.plus``: The ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitstring = ErrordetectorBitSyncpatternBitstring( device, f"{self._cmd_syntax}:BITString" @@ -4442,7 +4442,7 @@ class ErrordetectorBit(SCPICmdRead): - ``.test``: The ``ERRORDetector:BIT:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = ErrordetectorBitLength(device, f"{self._cmd_syntax}:LENgth") self._patternfilename = ErrordetectorBitPatternfilename( @@ -4779,7 +4779,7 @@ class ErrordetectorAlignprimitive(SCPICmdRead): - ``.symbols``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAlignprimitiveMinus(device, f"{self._cmd_syntax}:MINUS") self._minusx: Dict[int, ErrordetectorAlignprimitiveMinusItem] = DefaultDictPassKeyToFactory( @@ -5062,7 +5062,7 @@ class ErrordetectorAligncharacter(SCPICmdRead): - ``.symbol``: The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAligncharacterMinus(device, f"{self._cmd_syntax}:MINus") self._plus = ErrordetectorAligncharacterPlus(device, f"{self._cmd_syntax}:PLUS") @@ -5208,7 +5208,7 @@ class Errordetector(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ERRORDetector" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ERRORDetector" ) -> None: super().__init__(device, cmd_syntax) self._alert = ErrordetectorAlert(device, f"{self._cmd_syntax}:ALERT") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py index cb181db9..8c36d289 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class IdnmultiscopeDigitalBit(SCPICmdRead): @@ -131,7 +131,7 @@ class Idnmultiscope(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "IDNMultiscope" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "IDNMultiscope" ) -> None: super().__init__(device, cmd_syntax) self._a = IdnmultiscopeA(device, f"{self._cmd_syntax}:A") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py index 26d0dd16..44facb35 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LinktrainingTriggeron(SCPICmdWrite): @@ -432,7 +432,7 @@ class Linktraining(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LINKTRaining" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "LINKTRaining" ) -> None: super().__init__(device, cmd_syntax) self._acqtime = LinktrainingAcqtime(device, f"{self._cmd_syntax}:ACQTime") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py index 5895bfe2..fd92aade 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): @@ -169,7 +169,7 @@ class RoscOut(SCPICmdRead): - ``.ultrasync``: The ``ROSc:OUT:ULTRAsync`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = RoscOutFrequency(device, f"{self._cmd_syntax}:FREQuency") self._ultrasync = RoscOutUltrasync(device, f"{self._cmd_syntax}:ULTRAsync") @@ -242,7 +242,7 @@ class Rosc(SCPICmdRead): - ``.tracking``: The ``ROSc:TRACking`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ROSc") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ROSc") -> None: super().__init__(device, cmd_syntax) self._out = RoscOut(device, f"{self._cmd_syntax}:OUT") self._source = RoscSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py index 86bcb05d..db309d78 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1177,7 +1177,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1288,7 +1288,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1542,7 +1542,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1700,7 +1700,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1884,7 +1884,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1957,7 +1957,7 @@ class TriggerMainPulseGlitch(SCPICmdRead): - ``.lowpassfilter``: The ``TRIGger:MAIn:PULse:GLItch:LOWPASSfilter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerMainPulseGlitchLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -2002,7 +2002,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._glitch = TriggerMainPulseGlitch(device, f"{self._cmd_syntax}:GLItch") self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2048,7 +2048,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2192,7 +2192,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2481,7 +2481,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3042,7 +3042,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3662,7 +3662,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3847,7 +3847,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3937,7 +3937,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4265,7 +4265,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4423,7 +4423,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerBPulseWidthEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") @@ -4774,7 +4774,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4958,7 +4958,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5052,7 +5052,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5343,7 +5343,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5455,7 +5455,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerBPulseTimeoutEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( @@ -5809,7 +5809,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5991,7 +5991,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6057,7 +6057,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6437,7 +6437,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6796,7 +6796,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6932,7 +6932,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerBPulseGlitchEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") @@ -7211,7 +7211,7 @@ class TriggerBPulse(SCPICmdRead): - ``.transition``: The ``TRIGger:B:PULse:TRANsition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7519,7 +7519,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7605,7 +7605,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7711,7 +7711,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7772,7 +7772,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -7967,7 +7967,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8084,7 +8084,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8247,7 +8247,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8399,7 +8399,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8561,7 +8561,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8809,7 +8809,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8920,7 +8920,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8985,7 +8985,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9149,7 +9149,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9329,7 +9329,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9593,7 +9593,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9672,7 +9672,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9863,7 +9863,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9916,7 +9916,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerBEdgeEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") @@ -10179,7 +10179,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10827,7 +10827,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -10991,7 +10991,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11114,7 +11114,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11418,7 +11418,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11590,7 +11590,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11762,7 +11762,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12012,7 +12012,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12242,7 +12242,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12395,7 +12395,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12532,7 +12532,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12833,7 +12833,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12871,7 +12871,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -12978,7 +12978,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -13082,7 +13082,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13261,7 +13261,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13395,7 +13395,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13881,7 +13881,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -14066,7 +14066,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14151,7 +14151,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14245,7 +14245,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14307,7 +14307,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14405,7 +14405,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14775,7 +14775,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14933,7 +14933,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerAPulseWidthEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") @@ -15284,7 +15284,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15468,7 +15468,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15562,7 +15562,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15853,7 +15853,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15965,7 +15965,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerAPulseTimeoutEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( @@ -16319,7 +16319,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16501,7 +16501,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16585,7 +16585,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16679,7 +16679,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16742,7 +16742,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16807,7 +16807,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17213,7 +17213,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17573,7 +17573,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17709,7 +17709,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerAPulseGlitchEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") @@ -17988,7 +17988,7 @@ class TriggerAPulse(SCPICmdRead): - ``.transition``: The ``TRIGger:A:PULse:TRANsition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18336,7 +18336,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18489,7 +18489,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18575,7 +18575,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18681,7 +18681,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18742,7 +18742,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -18937,7 +18937,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19054,7 +19054,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19217,7 +19217,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19369,7 +19369,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19531,7 +19531,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19779,7 +19779,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19890,7 +19890,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19955,7 +19955,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -20119,7 +20119,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20299,7 +20299,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20563,7 +20563,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20635,7 +20635,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20679,7 +20679,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20799,7 +20799,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -21050,7 +21050,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21103,7 +21103,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._envelope = TriggerAEdgeEnvelope(device, f"{self._cmd_syntax}:ENVelope") self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") @@ -21333,7 +21333,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21441,7 +21441,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21544,7 +21544,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21674,7 +21674,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21748,7 +21748,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -21874,7 +21874,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21977,7 +21977,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22102,7 +22102,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22205,7 +22205,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22330,7 +22330,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22433,7 +22433,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22558,7 +22558,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22661,7 +22661,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22736,7 +22736,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -23089,7 +23089,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -23316,7 +23316,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23478,7 +23478,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23738,7 +23738,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23820,7 +23820,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23921,7 +23921,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -24050,7 +24050,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -24155,7 +24155,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -24208,7 +24208,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24383,7 +24383,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24543,7 +24543,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24701,7 +24701,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -25012,7 +25012,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25308,7 +25308,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25579,7 +25579,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25672,7 +25672,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25813,7 +25813,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25937,7 +25937,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26435,7 +26435,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26561,7 +26561,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26700,7 +26700,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26810,7 +26810,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -27036,7 +27036,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -27136,7 +27136,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -27203,7 +27203,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27444,7 +27444,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27575,7 +27575,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27683,7 +27683,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27852,7 +27852,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -28011,7 +28011,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -28092,7 +28092,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -28271,7 +28271,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28401,7 +28401,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28518,7 +28518,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28651,7 +28651,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28896,7 +28896,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28995,7 +28995,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -29062,7 +29062,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -29306,7 +29306,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29716,7 +29716,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -30130,7 +30130,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -30241,7 +30241,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30412,7 +30412,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30633,7 +30633,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30771,7 +30771,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -30908,7 +30908,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -31023,7 +31023,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -31206,7 +31206,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31413,7 +31413,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31607,7 +31607,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31749,7 +31749,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -31955,7 +31955,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -32222,7 +32222,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -32357,7 +32357,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32519,7 +32519,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32748,7 +32748,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -33096,7 +33096,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33328,7 +33328,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33457,7 +33457,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33677,7 +33677,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -33722,7 +33722,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( device, f"{self._cmd_syntax}:SOUrceaddr" @@ -33782,7 +33782,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33828,7 +33828,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") @@ -33928,7 +33928,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -34099,7 +34099,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34369,7 +34369,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34637,7 +34637,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34762,7 +34762,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -34893,7 +34893,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -35219,7 +35219,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -35704,7 +35704,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py index b8d04fab..77c2e070 100644 --- a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py +++ b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelPress(SCPICmdWrite): @@ -53,7 +53,7 @@ class Fpanel(SCPICmdRead): - ``.press``: The ``FPANel:PRESS`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FPANel") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FPANel") -> None: super().__init__(device, cmd_syntax) self._press = FpanelPress(device, f"{self._cmd_syntax}:PRESS") diff --git a/src/tm_devices/commands/gen_561g9r_mso/trigger.py b/src/tm_devices/commands/gen_561g9r_mso/trigger.py index fe1f68ea..5b8fc853 100644 --- a/src/tm_devices/commands/gen_561g9r_mso/trigger.py +++ b/src/tm_devices/commands/gen_561g9r_mso/trigger.py @@ -1056,7 +1056,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1229,7 +1229,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1340,7 +1340,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1594,7 +1594,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1752,7 +1752,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1936,7 +1936,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1985,7 +1985,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2016,7 +2016,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2159,7 +2159,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2448,7 +2448,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3009,7 +3009,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3629,7 +3629,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3814,7 +3814,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3904,7 +3904,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4232,7 +4232,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4373,7 +4373,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4696,7 +4696,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4880,7 +4880,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4974,7 +4974,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5265,7 +5265,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5360,7 +5360,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5684,7 +5684,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5866,7 +5866,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5932,7 +5932,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6312,7 +6312,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6671,7 +6671,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6790,7 +6790,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -7040,7 +7040,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7375,7 +7375,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7461,7 +7461,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7567,7 +7567,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7642,7 +7642,7 @@ class TriggerBLogicStateClock(SCPICmdRead): - ``.source``: The ``TRIGger:B:LOGIc:STATE:CLOck:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerBLogicStateClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -7699,7 +7699,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicStateClock(device, f"{self._cmd_syntax}:CLOck") self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") @@ -7909,7 +7909,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8026,7 +8026,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8189,7 +8189,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8341,7 +8341,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8503,7 +8503,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8751,7 +8751,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8862,7 +8862,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8927,7 +8927,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9091,7 +9091,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9271,7 +9271,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9536,7 +9536,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9615,7 +9615,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9780,7 +9780,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9843,7 +9843,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -10078,7 +10078,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10736,7 +10736,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -10933,7 +10933,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11094,7 +11094,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11399,7 +11399,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11571,7 +11571,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11743,7 +11743,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11993,7 +11993,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12223,7 +12223,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12376,7 +12376,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12513,7 +12513,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12814,7 +12814,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12852,7 +12852,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -12959,7 +12959,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -13063,7 +13063,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13242,7 +13242,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13376,7 +13376,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13862,7 +13862,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -14047,7 +14047,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14132,7 +14132,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14226,7 +14226,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14288,7 +14288,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14386,7 +14386,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14756,7 +14756,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14897,7 +14897,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -15220,7 +15220,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15404,7 +15404,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15498,7 +15498,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15789,7 +15789,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15884,7 +15884,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -16208,7 +16208,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16390,7 +16390,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16474,7 +16474,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16568,7 +16568,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16631,7 +16631,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16696,7 +16696,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17102,7 +17102,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17462,7 +17462,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17581,7 +17581,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -17831,7 +17831,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18206,7 +18206,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18359,7 +18359,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18445,7 +18445,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18551,7 +18551,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18626,7 +18626,7 @@ class TriggerALogicStateClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:STATE:CLOck:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerALogicStateClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -18683,7 +18683,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicStateClock(device, f"{self._cmd_syntax}:CLOck") self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") @@ -18893,7 +18893,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19010,7 +19010,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19173,7 +19173,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19325,7 +19325,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19487,7 +19487,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19735,7 +19735,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19846,7 +19846,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19911,7 +19911,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -20075,7 +20075,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20255,7 +20255,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20520,7 +20520,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20592,7 +20592,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20636,7 +20636,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20756,7 +20756,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -20981,7 +20981,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21044,7 +21044,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -21246,7 +21246,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21354,7 +21354,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21457,7 +21457,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21587,7 +21587,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21661,7 +21661,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -21787,7 +21787,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21890,7 +21890,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22015,7 +22015,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22118,7 +22118,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22243,7 +22243,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22346,7 +22346,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22471,7 +22471,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22574,7 +22574,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22649,7 +22649,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -23002,7 +23002,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -23229,7 +23229,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23391,7 +23391,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23651,7 +23651,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23733,7 +23733,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23834,7 +23834,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -23963,7 +23963,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -24068,7 +24068,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -24121,7 +24121,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24296,7 +24296,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24456,7 +24456,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24614,7 +24614,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -24925,7 +24925,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25221,7 +25221,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25492,7 +25492,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25585,7 +25585,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25726,7 +25726,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25850,7 +25850,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26348,7 +26348,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26474,7 +26474,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26613,7 +26613,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26723,7 +26723,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -26949,7 +26949,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -27049,7 +27049,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -27116,7 +27116,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27357,7 +27357,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27488,7 +27488,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27596,7 +27596,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27765,7 +27765,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -27924,7 +27924,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -28005,7 +28005,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -28184,7 +28184,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28314,7 +28314,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28431,7 +28431,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28564,7 +28564,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28809,7 +28809,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28908,7 +28908,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -28975,7 +28975,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -29219,7 +29219,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29629,7 +29629,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -30043,7 +30043,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -30154,7 +30154,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30325,7 +30325,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30546,7 +30546,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30684,7 +30684,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -30821,7 +30821,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -30936,7 +30936,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -31119,7 +31119,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31326,7 +31326,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31520,7 +31520,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31662,7 +31662,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -31868,7 +31868,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -32135,7 +32135,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -32270,7 +32270,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32432,7 +32432,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32661,7 +32661,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -33009,7 +33009,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33241,7 +33241,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33370,7 +33370,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33621,7 +33621,7 @@ class TriggerABusEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderSourceportFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33760,7 +33760,7 @@ class TriggerABusEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderSeqnumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -33897,7 +33897,7 @@ class TriggerABusEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderDestinationportFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34036,7 +34036,7 @@ class TriggerABusEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetTcpheaderAcknumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34117,7 +34117,7 @@ class TriggerABusEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerABusEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerABusEthernetTcpheaderDestinationport( @@ -34292,7 +34292,7 @@ class TriggerABusEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetQtagFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -34423,7 +34423,7 @@ class TriggerABusEthernetMacType(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacTypeFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetMacTypeValue(device, f"{self._cmd_syntax}:VALue") @@ -34554,7 +34554,7 @@ class TriggerABusEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacLengthFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusEthernetMacLengthValue(device, f"{self._cmd_syntax}:VALue") @@ -34687,7 +34687,7 @@ class TriggerABusEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacAddressSourceFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34822,7 +34822,7 @@ class TriggerABusEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetMacAddressDestinationFormat( device, f"{self._cmd_syntax}:FORMat" @@ -34901,7 +34901,7 @@ class TriggerABusEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerABusEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -34957,7 +34957,7 @@ class TriggerABusEthernetMac(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerABusEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -35086,7 +35086,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderSourceaddrFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35224,7 +35224,7 @@ class TriggerABusEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderProtocolFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35360,7 +35360,7 @@ class TriggerABusEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetIpheaderDestinationaddrFormat( device, f"{self._cmd_syntax}:FORMat" @@ -35442,7 +35442,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerABusEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -35619,7 +35619,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -35789,7 +35789,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -36022,7 +36022,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -36193,7 +36193,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36463,7 +36463,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36731,7 +36731,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -36856,7 +36856,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -36987,7 +36987,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -37318,7 +37318,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -37813,7 +37813,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py index 48244547..4e67ffb0 100644 --- a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py +++ b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py @@ -214,7 +214,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): @@ -255,7 +255,7 @@ class BusRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.threshold``: The ``BUS:REF:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusRefItemThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -353,7 +353,7 @@ class BusMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.threshold``: The ``BUS:MATH:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusMathItemLowthreshold(device, f"{self._cmd_syntax}:LOWTHRESHold") self._threshold = BusMathItemThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -478,7 +478,7 @@ class BusChannel(ValidatedChannel, SCPICmdRead): - ``.threshold``: The ``BUS:CH:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusChannelLowthreshold(device, f"{self._cmd_syntax}:LOWTHRESHold") self._threshold = BusChannelThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -628,7 +628,7 @@ class BusBItemUsbSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:USB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemUsbSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemUsbSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -763,7 +763,7 @@ class BusBItemUsb(SCPICmdRead): - ``.source``: The ``BUS:B:USB:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemUsbBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemUsbProbe(device, f"{self._cmd_syntax}:PRObe") @@ -965,7 +965,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SELect:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1199,7 +1199,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = BusBItemSpiDataDelay(device, f"{self._cmd_syntax}:DELay") self._polarity = BusBItemSpiDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1391,7 +1391,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1504,7 +1504,7 @@ class BusBItemSpi(SCPICmdRead): - ``.select``: The ``BUS:B:SPI:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._clock = BusBItemSpiClock(device, f"{self._cmd_syntax}:CLOCk") @@ -1764,7 +1764,7 @@ class BusBItemS8b10bBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:S8B10B:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemS8b10bBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -1809,7 +1809,7 @@ class BusBItemS8b10b(SCPICmdRead): - ``.source``: The ``BUS:B:S8B10B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS8b10bBitrate(device, f"{self._cmd_syntax}:BITRate") self._hysteresis = BusBItemS8b10bHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -2042,7 +2042,7 @@ class BusBItemS64b66bBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:S64B66B:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemS64b66bBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -2088,7 +2088,7 @@ class BusBItemS64b66b(SCPICmdRead): - ``.source``: The ``BUS:B:S64B66B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS64b66bBitrate(device, f"{self._cmd_syntax}:BITRate") self._descramble = BusBItemS64b66bDescramble(device, f"{self._cmd_syntax}:DESCRAMble") @@ -2413,7 +2413,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -2762,7 +2762,7 @@ class BusBItemPcieBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:PCIE:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemPcieBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -2808,7 +2808,7 @@ class BusBItemPcie(SCPICmdRead): - ``.source``: The ``BUS:B:PCIE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemPcieBitrate(device, f"{self._cmd_syntax}:BITRate") self._hysteresis = BusBItemPcieHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -3044,7 +3044,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = BusBItemParallelClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3122,7 +3122,7 @@ class BusBItemParallel(SCPICmdRead): - ``.sources``: The ``BUS:B:PARallel:SOURCES`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemParallelClock(device, f"{self._cmd_syntax}:CLOCk") self._isclocked = BusBItemParallelIsclocked(device, f"{self._cmd_syntax}:ISCLOCKED") @@ -3337,7 +3337,7 @@ class BusBItemMipidsioneLaneItemSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:MIPIDSIOne:LANE:SOUrce:DPLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemMipidsioneLaneItemSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -3454,7 +3454,7 @@ class BusBItemMipidsioneLaneItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:MIPIDSIOne:LANE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipidsioneLaneItemSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipidsioneLaneItemType(device, f"{self._cmd_syntax}:TYPe") @@ -3573,7 +3573,7 @@ class BusBItemMipidsioneClock(SCPICmdRead): - ``.type``: The ``BUS:B:MIPIDSIOne:CLOCk:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipidsioneClockSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipidsioneClockType(device, f"{self._cmd_syntax}:TYPe") @@ -3650,7 +3650,7 @@ class BusBItemMipidsione(SCPICmdRead): - ``.lane``: The ``BUS:B:MIPIDSIOne:LANE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMipidsioneClock(device, f"{self._cmd_syntax}:CLOCk") self._lane: Dict[int, BusBItemMipidsioneLaneItem] = DefaultDictPassKeyToFactory( @@ -3819,7 +3819,7 @@ class BusBItemMipicsitwoLaneItemSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:MIPICSITWo:LANE:SOUrce:DPLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemMipicsitwoLaneItemSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -3936,7 +3936,7 @@ class BusBItemMipicsitwoLaneItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:MIPICSITWo:LANE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipicsitwoLaneItemSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipicsitwoLaneItemType(device, f"{self._cmd_syntax}:TYPe") @@ -4055,7 +4055,7 @@ class BusBItemMipicsitwoClock(SCPICmdRead): - ``.type``: The ``BUS:B:MIPICSITWo:CLOCk:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipicsitwoClockSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipicsitwoClockType(device, f"{self._cmd_syntax}:TYPe") @@ -4132,7 +4132,7 @@ class BusBItemMipicsitwo(SCPICmdRead): - ``.lane``: The ``BUS:B:MIPICSITWo:LANE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMipicsitwoClock(device, f"{self._cmd_syntax}:CLOCk") self._lane: Dict[int, BusBItemMipicsitwoLaneItem] = DefaultDictPassKeyToFactory( @@ -4271,7 +4271,7 @@ class BusBItemMil1553bResponsetime(SCPICmdRead): - ``.minimum``: The ``BUS:B:MIL1553B:RESPonsetime:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = BusBItemMil1553bResponsetimeMaximum(device, f"{self._cmd_syntax}:MAXimum") self._minimum = BusBItemMil1553bResponsetimeMinimum(device, f"{self._cmd_syntax}:MINimum") @@ -4377,7 +4377,7 @@ class BusBItemMil1553b(SCPICmdRead): - ``.source``: The ``BUS:B:MIL1553B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemMil1553bPolarity(device, f"{self._cmd_syntax}:POLarity") self._responsetime = BusBItemMil1553bResponsetime( @@ -4604,7 +4604,7 @@ class BusBItemLinBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:LIN:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemLinBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -4651,7 +4651,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -4887,7 +4887,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4963,7 +4963,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5012,7 +5012,7 @@ class BusBItemI2c(SCPICmdRead): - ``.rwinaddr``: The ``BUS:B:I2C:RWINADDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI2cData(device, f"{self._cmd_syntax}:DATa") @@ -5215,7 +5215,7 @@ class BusBItemFlexrayBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:FLEXRAY:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemFlexrayBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -5259,7 +5259,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.signal``: The ``BUS:B:FLEXRAY:SIGnal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHANnel") @@ -5509,7 +5509,7 @@ class BusBItemEthernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemEthernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemEthernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -5619,7 +5619,7 @@ class BusBItemEthernet(SCPICmdRead): - ``.type``: The ``BUS:B:ETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = BusBItemEthernetProbe(device, f"{self._cmd_syntax}:PRObe") self._source = BusBItemEthernetSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5817,7 +5817,7 @@ class BusBItemDisplayDecode(SCPICmdRead): - ``.state``: The ``BUS:B:DISplay:DECOde:STAte`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = BusBItemDisplayDecodeFile(device, f"{self._cmd_syntax}:FILe") self._state = BusBItemDisplayDecodeState(device, f"{self._cmd_syntax}:STAte") @@ -5900,7 +5900,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.type``: The ``BUS:B:DISplay:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decode = BusBItemDisplayDecode(device, f"{self._cmd_syntax}:DECOde") self._type = BusBItemDisplayType(device, f"{self._cmd_syntax}:TYPe") @@ -6035,7 +6035,7 @@ class BusBItemCanBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:CAN:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemCanBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -6079,7 +6079,7 @@ class BusBItemCan(SCPICmdRead): - ``.source``: The ``BUS:B:CAN:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemCanProbe(device, f"{self._cmd_syntax}:PRObe") @@ -6185,7 +6185,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = BusBItemCan(device, f"{self._cmd_syntax}:CAN") self._display = BusBItemDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -6607,7 +6607,7 @@ class BusB1ItemUsb(SCPICmdRead): - ``.hysteresis``: The ``BUS:B1:USB:HYSTeresis`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hysteresis = BusB1ItemUsbHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -6702,7 +6702,7 @@ class BusB1ItemDisplay(SCPICmdRead): - ``.layout``: The ``BUS:B1:DISplay:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hierarchical = BusB1ItemDisplayHierarchical( device, f"{self._cmd_syntax}:HIERarchical" @@ -6773,7 +6773,7 @@ class BusB1Item(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B1:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = BusB1ItemDisplay(device, f"{self._cmd_syntax}:DISplay") self._usb = BusB1ItemUsb(device, f"{self._cmd_syntax}:USB") @@ -6824,7 +6824,7 @@ class Bus(SCPICmdRead): - ``.ref``: The ``BUS:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._b1: Dict[int, BusB1Item] = DefaultDictPassKeyToFactory( lambda x: BusB1Item(device, f"{self._cmd_syntax}:B1{x}") diff --git a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py index 7e5df760..f8cfafbc 100644 --- a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py +++ b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1177,7 +1177,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1288,7 +1288,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1542,7 +1542,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1700,7 +1700,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1884,7 +1884,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1957,7 +1957,7 @@ class TriggerMainPulseGlitch(SCPICmdRead): - ``.lowpassfilter``: The ``TRIGger:MAIn:PULse:GLItch:LOWPASSfilter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerMainPulseGlitchLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -2002,7 +2002,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._glitch = TriggerMainPulseGlitch(device, f"{self._cmd_syntax}:GLItch") self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2048,7 +2048,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2192,7 +2192,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2481,7 +2481,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3042,7 +3042,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3662,7 +3662,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3847,7 +3847,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3937,7 +3937,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4265,7 +4265,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4406,7 +4406,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4729,7 +4729,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4913,7 +4913,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5007,7 +5007,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5298,7 +5298,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5393,7 +5393,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5717,7 +5717,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5899,7 +5899,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5965,7 +5965,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6345,7 +6345,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6704,7 +6704,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6823,7 +6823,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -7073,7 +7073,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7408,7 +7408,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7494,7 +7494,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7600,7 +7600,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7661,7 +7661,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -7856,7 +7856,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7973,7 +7973,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8136,7 +8136,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8288,7 +8288,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8450,7 +8450,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8698,7 +8698,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8809,7 +8809,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8874,7 +8874,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9038,7 +9038,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9218,7 +9218,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9482,7 +9482,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9561,7 +9561,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9716,7 +9716,7 @@ class TriggerBEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerBEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerBEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -9855,7 +9855,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9918,7 +9918,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -10157,7 +10157,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10815,7 +10815,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -10979,7 +10979,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11102,7 +11102,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11406,7 +11406,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11578,7 +11578,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11750,7 +11750,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12000,7 +12000,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12230,7 +12230,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12383,7 +12383,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12520,7 +12520,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12821,7 +12821,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12859,7 +12859,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -12966,7 +12966,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -13070,7 +13070,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13249,7 +13249,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13383,7 +13383,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13869,7 +13869,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -14054,7 +14054,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14139,7 +14139,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14233,7 +14233,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14295,7 +14295,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14393,7 +14393,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14763,7 +14763,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14904,7 +14904,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -15227,7 +15227,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15411,7 +15411,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15505,7 +15505,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15796,7 +15796,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15891,7 +15891,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -16215,7 +16215,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16397,7 +16397,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16481,7 +16481,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16575,7 +16575,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16638,7 +16638,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16703,7 +16703,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17109,7 +17109,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17469,7 +17469,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17588,7 +17588,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -17838,7 +17838,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18213,7 +18213,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18366,7 +18366,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18452,7 +18452,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18558,7 +18558,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18619,7 +18619,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -18814,7 +18814,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18931,7 +18931,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19094,7 +19094,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19246,7 +19246,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19408,7 +19408,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19656,7 +19656,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19767,7 +19767,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19832,7 +19832,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -19996,7 +19996,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20176,7 +20176,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20440,7 +20440,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20512,7 +20512,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20556,7 +20556,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20676,7 +20676,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -20891,7 +20891,7 @@ class TriggerAEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerAEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerAEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -21030,7 +21030,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21093,7 +21093,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -21299,7 +21299,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21407,7 +21407,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21510,7 +21510,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21640,7 +21640,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21714,7 +21714,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -21840,7 +21840,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21943,7 +21943,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22068,7 +22068,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22171,7 +22171,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22296,7 +22296,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22399,7 +22399,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22524,7 +22524,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22627,7 +22627,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22702,7 +22702,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -23055,7 +23055,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -23282,7 +23282,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23444,7 +23444,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23704,7 +23704,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23786,7 +23786,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23887,7 +23887,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -24016,7 +24016,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -24121,7 +24121,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -24174,7 +24174,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24349,7 +24349,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24509,7 +24509,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24667,7 +24667,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -24978,7 +24978,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25274,7 +25274,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25545,7 +25545,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25638,7 +25638,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25779,7 +25779,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25903,7 +25903,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26401,7 +26401,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26527,7 +26527,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26666,7 +26666,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26776,7 +26776,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -27002,7 +27002,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -27102,7 +27102,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -27169,7 +27169,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27410,7 +27410,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27541,7 +27541,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27649,7 +27649,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27818,7 +27818,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -27977,7 +27977,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -28058,7 +28058,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -28237,7 +28237,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28367,7 +28367,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28484,7 +28484,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28617,7 +28617,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28862,7 +28862,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28961,7 +28961,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -29028,7 +29028,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -29272,7 +29272,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29682,7 +29682,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -30096,7 +30096,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -30207,7 +30207,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30378,7 +30378,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30599,7 +30599,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30737,7 +30737,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -30874,7 +30874,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -30989,7 +30989,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -31172,7 +31172,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31379,7 +31379,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31573,7 +31573,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31715,7 +31715,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -31921,7 +31921,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -32188,7 +32188,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -32323,7 +32323,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32485,7 +32485,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32714,7 +32714,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -33062,7 +33062,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33294,7 +33294,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33423,7 +33423,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33643,7 +33643,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -33688,7 +33688,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( device, f"{self._cmd_syntax}:SOUrceaddr" @@ -33748,7 +33748,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33794,7 +33794,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") @@ -33894,7 +33894,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -34065,7 +34065,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34335,7 +34335,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34603,7 +34603,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34728,7 +34728,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -34859,7 +34859,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -35185,7 +35185,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -35680,7 +35680,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py index b3360b31..f8470d80 100644 --- a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py +++ b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py @@ -209,7 +209,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): @@ -364,7 +364,7 @@ class ErrordetectorSymbolTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorSymbolTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorSymbolTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -559,7 +559,7 @@ class ErrordetectorSymbolTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorSymbolTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorSymbolTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -901,7 +901,7 @@ class ErrordetectorSymbolTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:SYMBOL:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorSymbolTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._bitcount = ErrordetectorSymbolTestBitcount(device, f"{self._cmd_syntax}:BITCOUNT") @@ -1225,7 +1225,7 @@ class ErrordetectorSymbol(SCPICmdRead): - ``.test``: The ``ERRORDetector:SYMBOL:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._test = ErrordetectorSymbolTest(device, f"{self._cmd_syntax}:TEST") @@ -1551,7 +1551,7 @@ class ErrordetectorSkipsetprimitive(SCPICmdRead): - ``.symbols``: The ``ERRORDetector:SKIPSETPRIMitive:SYMBOLS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, ErrordetectorSkipsetprimitiveMinusItem] = ( DefaultDictPassKeyToFactory( @@ -1896,7 +1896,7 @@ class ErrordetectorPreset(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``ERRORDetector:PREset:APPLY`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = ErrordetectorPresetApply(device, f"{self._cmd_syntax}:APPLY") @@ -2073,7 +2073,7 @@ class ErrordetectorFrameTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorFrameTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorFrameTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -2268,7 +2268,7 @@ class ErrordetectorFrameTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorFrameTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorFrameTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -2546,7 +2546,7 @@ class ErrordetectorFrameTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:FRAme:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorFrameTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._count = ErrordetectorFrameTestCount(device, f"{self._cmd_syntax}:COUNt") @@ -2874,7 +2874,7 @@ class ErrordetectorFrame(SCPICmdRead): - ``.test``: The ``ERRORDetector:FRAme:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eof = ErrordetectorFrameEof(device, f"{self._cmd_syntax}:EOF") self._initialcrcvalue = ErrordetectorFrameInitialcrcvalue( @@ -3092,7 +3092,7 @@ class ErrordetectorFile(SCPICmdRead): - ``.save``: The ``ERRORDetector:FILE:SAVe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recall = ErrordetectorFileRecall(device, f"{self._cmd_syntax}:RECAll") self._save = ErrordetectorFileSave(device, f"{self._cmd_syntax}:SAVe") @@ -3302,7 +3302,7 @@ class ErrordetectorDurationTime(SCPICmdWrite, SCPICmdRead): - ``.seconds``: The ``ERRORDetector:DURATION:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorDurationTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorDurationTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3486,7 +3486,7 @@ class ErrordetectorDuration(SCPICmdRead): - ``.time``: The ``ERRORDetector:DURATION:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorDurationCount(device, f"{self._cmd_syntax}:COUNt") self._seconds = ErrordetectorDurationSeconds(device, f"{self._cmd_syntax}:SECOnds") @@ -3684,7 +3684,7 @@ class ErrordetectorCharacterTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:CHARacter:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorCharacterTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorCharacterTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3880,7 +3880,7 @@ class ErrordetectorCharacterTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:CHARacter:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorCharacterTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorCharacterTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -4170,7 +4170,7 @@ class ErrordetectorCharacterTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:CHARacter:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorCharacterTestCount(device, f"{self._cmd_syntax}:COUNt") self._dispcount = ErrordetectorCharacterTestDispcount( @@ -4436,7 +4436,7 @@ class ErrordetectorCharacter(SCPICmdRead): - ``.test``: The ``ERRORDetector:CHARacter:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._test = ErrordetectorCharacterTest(device, f"{self._cmd_syntax}:TEST") @@ -4560,7 +4560,7 @@ class ErrordetectorBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``ERRORDetector:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = ErrordetectorBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -4691,7 +4691,7 @@ class ErrordetectorBitTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorBitTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorBitTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -4902,7 +4902,7 @@ class ErrordetectorBitTestStatus(SCPICmdRead): - ``.sync``: The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorBitTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorBitTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -5162,7 +5162,7 @@ class ErrordetectorBitTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:BIT:TEST:TIME`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorBitTestCount(device, f"{self._cmd_syntax}:COUNt") self._duration = ErrordetectorBitTestDuration(device, f"{self._cmd_syntax}:DURATION") @@ -5563,7 +5563,7 @@ class ErrordetectorBitSyncpattern(SCPICmdRead): - ``.symbols``: The ``ERRORDetector:BIT:SYNCPATtern:SYMBOLS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanced = ErrordetectorBitSyncpatternAdvanced(device, f"{self._cmd_syntax}:ADVanced") self._bitstring = ErrordetectorBitSyncpatternBitstring( @@ -5817,7 +5817,7 @@ class ErrordetectorBit(SCPICmdRead): - ``.test``: The ``ERRORDetector:BIT:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = ErrordetectorBitLength(device, f"{self._cmd_syntax}:LENgth") self._syncpattern = ErrordetectorBitSyncpattern(device, f"{self._cmd_syntax}:SYNCPATtern") @@ -6115,7 +6115,7 @@ class ErrordetectorAlignprimitive(SCPICmdRead): - ``.symbols``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAlignprimitiveMinus(device, f"{self._cmd_syntax}:MINUS") self._minusx: Dict[int, ErrordetectorAlignprimitiveMinusItem] = DefaultDictPassKeyToFactory( @@ -6398,7 +6398,7 @@ class ErrordetectorAligncharacter(SCPICmdRead): - ``.symbol``: The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAligncharacterMinus(device, f"{self._cmd_syntax}:MINus") self._plus = ErrordetectorAligncharacterPlus(device, f"{self._cmd_syntax}:PLUS") @@ -6546,7 +6546,7 @@ class Errordetector(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ERRORDetector" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ERRORDetector" ) -> None: super().__init__(device, cmd_syntax) self._alert = ErrordetectorAlert(device, f"{self._cmd_syntax}:ALERT") diff --git a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py index 220e46eb..9ffeb1b4 100644 --- a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py +++ b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py @@ -717,7 +717,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DpojetVersion(SCPICmdRead): @@ -896,7 +896,7 @@ class DpojetSourceautosetHorizontal(SCPICmdRead): - ``.uivalue``: The ``DPOJET:SOURCEAutoset:HORizontal:UIValue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._uicount = DpojetSourceautosetHorizontalUicount(device, f"{self._cmd_syntax}:UICount") self._uivalue = DpojetSourceautosetHorizontalUivalue(device, f"{self._cmd_syntax}:UIValue") @@ -970,7 +970,7 @@ class DpojetSourceautoset(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``DPOJET:SOURCEAutoset:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = DpojetSourceautosetHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._state = DpojetSourceautosetState(device, f"{self._cmd_syntax}:STATE") @@ -1057,7 +1057,7 @@ class DpojetSnc(SCPICmdRead): - ``.close``: The ``DPOJET:SNC:CLOse`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._activate = DpojetSncActivate(device, f"{self._cmd_syntax}:ACTIvate") self._close = DpojetSncClose(device, f"{self._cmd_syntax}:CLOse") @@ -1282,7 +1282,7 @@ class DpojetResults(SCPICmdRead): - ``.view``: The ``DPOJET:RESULts:VIew`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._getallresults = DpojetResultsGetallresults( device, f"{self._cmd_syntax}:GETALLResults" @@ -1731,7 +1731,7 @@ class DpojetReport(SCPICmdWrite, SCPICmdRead): - ``.viewreport``: The ``DPOJET:REPORT:VIEWreport`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._applicationconfig = DpojetReportApplicationconfig( device, f"{self._cmd_syntax}:APPlicationconfig" @@ -2339,7 +2339,7 @@ class DpojetReflevelsChannelPercent(SCPICmdRead): - ``.risemid``: The ``DPOJET:REFLevels:CH:PERcent:RISEMid`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = DpojetReflevelsChannelPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2790,7 +2790,7 @@ class DpojetReflevelsChannelAbsolute(SCPICmdRead): - ``.risemid``: The ``DPOJET:REFLevels:CH:ABSolute:RISEMid`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = DpojetReflevelsChannelAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2996,7 +2996,7 @@ class DpojetReflevelsChannel(ValidatedChannel, SCPICmdRead): - ``.percent``: The ``DPOJET:REFLevels:CH:PERcent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = DpojetReflevelsChannelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._autoset = DpojetReflevelsChannelAutoset(device, f"{self._cmd_syntax}:AUTOSet") @@ -3152,7 +3152,7 @@ class DpojetReflevelsAutoset(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``DPOJET:REFLevels:AUTOset:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DpojetReflevelsAutosetState(device, f"{self._cmd_syntax}:STATE") @@ -3189,7 +3189,7 @@ class DpojetReflevels(SCPICmdRead): - ``.ch``: The ``DPOJET:REFLevels:CH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoset = DpojetReflevelsAutoset(device, f"{self._cmd_syntax}:AUTOset") self._ch: Dict[int, DpojetReflevelsChannel] = DefaultDictPassKeyToFactory( @@ -3272,7 +3272,7 @@ class DpojetReflevelChannel(ValidatedChannel, SCPICmdRead): - ``.midzero``: The ``DPOJET:REFLevel:CH:MIDZero`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._midzero = DpojetReflevelChannelMidzero(device, f"{self._cmd_syntax}:MIDZero") @@ -3311,7 +3311,7 @@ class DpojetReflevel(SCPICmdRead): - ``.ch``: The ``DPOJET:REFLevel:CH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, DpojetReflevelChannel] = DefaultDictPassKeyToFactory( lambda x: DpojetReflevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3406,7 +3406,7 @@ class DpojetQualify(SCPICmdRead): - ``.state``: The ``DPOJET:QUALify:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = DpojetQualifyActive(device, f"{self._cmd_syntax}:ACTIVE") self._source = DpojetQualifySource(device, f"{self._cmd_syntax}:SOUrce") @@ -3578,7 +3578,7 @@ class DpojetPopulation(SCPICmdRead): - ``.state``: The ``DPOJET:POPULATION:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = DpojetPopulationCondition(device, f"{self._cmd_syntax}:CONDition") self._limit = DpojetPopulationLimit(device, f"{self._cmd_syntax}:LIMIT") @@ -3774,7 +3774,7 @@ class DpojetPlotItemVertbathtubHorizontal(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:VERTBATHtub:HORizontal:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemVertbathtubHorizontalScale(device, f"{self._cmd_syntax}:SCALE") @@ -3839,7 +3839,7 @@ class DpojetPlotItemVertbathtub(SCPICmdRead): - ``.yaxisunits``: The ``DPOJET:PLOT:VERTBATHtub:YAXISUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = DpojetPlotItemVertbathtubBer(device, f"{self._cmd_syntax}:BER") self._horizontal = DpojetPlotItemVertbathtubHorizontal( @@ -3963,7 +3963,7 @@ class DpojetPlotItemTrend(SCPICmdRead): - ``.type``: The ``DPOJET:PLOT:TREND:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = DpojetPlotItemTrendType(device, f"{self._cmd_syntax}:TYPe") @@ -4026,7 +4026,7 @@ class DpojetPlotItemTransferVertical(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:TRANSfer:VERTical:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemTransferVerticalScale(device, f"{self._cmd_syntax}:SCALE") @@ -4134,7 +4134,7 @@ class DpojetPlotItemTransferHorizontal(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:TRANSfer:HORizontal:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemTransferHorizontalScale(device, f"{self._cmd_syntax}:SCALE") @@ -4203,7 +4203,7 @@ class DpojetPlotItemTransfer(SCPICmdRead): - ``.vertical``: The ``DPOJET:PLOT:TRANSfer:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._denominator = DpojetPlotItemTransferDenominator( device, f"{self._cmd_syntax}:DENominator" @@ -4392,7 +4392,7 @@ class DpojetPlotItemSpectrumVertical(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:SPECtrum:VERTical:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemSpectrumVerticalScale(device, f"{self._cmd_syntax}:SCALE") @@ -4479,7 +4479,7 @@ class DpojetPlotItemSpectrumHorizontal(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:SPECtrum:HORizontal:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemSpectrumHorizontalScale(device, f"{self._cmd_syntax}:SCALE") @@ -4545,7 +4545,7 @@ class DpojetPlotItemSpectrum(SCPICmdRead): - ``.vertical``: The ``DPOJET:PLOT:SPECtrum:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._base = DpojetPlotItemSpectrumBase(device, f"{self._cmd_syntax}:BASE") self._horizontal = DpojetPlotItemSpectrumHorizontal( @@ -4706,7 +4706,7 @@ class DpojetPlotItemPhasenoise(SCPICmdRead): - ``.smootheningfilter``: The ``DPOJET:PLOT:PHASEnoise:SMOOTHENINGFilter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._baseline = DpojetPlotItemPhasenoiseBaseline(device, f"{self._cmd_syntax}:BASEline") self._smootheningfilter = DpojetPlotItemPhasenoiseSmootheningfilter( @@ -4906,7 +4906,7 @@ class DpojetPlotItemPdfeye(SCPICmdRead): - ``.targetber``: The ``DPOJET:PLOT:PDFEye:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber1e12v = DpojetPlotItemPdfeyeBer1e12v(device, f"{self._cmd_syntax}:BER1E12V") self._ber1e15v = DpojetPlotItemPdfeyeBer1e15v(device, f"{self._cmd_syntax}:BER1E15V") @@ -5084,7 +5084,7 @@ class DpojetPlotItemNoisebathtub(SCPICmdRead): - ``.yaxisunits``: The ``DPOJET:PLOT:NOISEBATHtub:YAXISUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._yaxisunits = DpojetPlotItemNoisebathtubYaxisunits( device, f"{self._cmd_syntax}:YAXISUnits" @@ -5151,7 +5151,7 @@ class DpojetPlotItemHistogramVertical(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:HISTOgram:VERTical:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemHistogramVerticalScale(device, f"{self._cmd_syntax}:SCALE") @@ -5288,7 +5288,7 @@ class DpojetPlotItemHistogramHorizontal(SCPICmdRead): - ``.span``: The ``DPOJET:PLOT:HISTOgram:HORizontal:SPAN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DpojetPlotItemHistogramHorizontalAutoscale( device, f"{self._cmd_syntax}:AUTOscale" @@ -5403,7 +5403,7 @@ class DpojetPlotItemHistogram(SCPICmdRead): - ``.vertical``: The ``DPOJET:PLOT:HISTOgram:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoset = DpojetPlotItemHistogramAutoset(device, f"{self._cmd_syntax}:AUTOset") self._horizontal = DpojetPlotItemHistogramHorizontal( @@ -5550,7 +5550,7 @@ class DpojetPlotItemEyeVertical(SCPICmdRead): - ``.yaxismin``: The ``DPOJET:PLOT:EYE:VERTical:YAXISMIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._yaxismax = DpojetPlotItemEyeVerticalYaxismax(device, f"{self._cmd_syntax}:YAXISMAx") self._yaxismin = DpojetPlotItemEyeVerticalYaxismin(device, f"{self._cmd_syntax}:YAXISMIn") @@ -5865,7 +5865,7 @@ class DpojetPlotItemEyeHorizontal(SCPICmdRead): - ``.xaxismin``: The ``DPOJET:PLOT:EYE:HORizontal:XAXISMIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DpojetPlotItemEyeHorizontalAutoscale( device, f"{self._cmd_syntax}:AUTOscale" @@ -6063,7 +6063,7 @@ class DpojetPlotItemEye(SCPICmdRead): - ``.vertical``: The ``DPOJET:PLOT:EYE:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alignment = DpojetPlotItemEyeAlignment(device, f"{self._cmd_syntax}:ALIGNment") self._eyeverticalscale = DpojetPlotItemEyeEyeverticalscale( @@ -6612,7 +6612,7 @@ class DpojetPlotItemDataYdata(SCPICmdRead): - ``.tn``: The ``DPOJET:PLOT:DATA:YDATa:TN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ddjdcd = DpojetPlotItemDataYdataDdjdcd(device, f"{self._cmd_syntax}:DDJDCD") self._ddnone = DpojetPlotItemDataYdataDdnone(device, f"{self._cmd_syntax}:DDNONE") @@ -7085,7 +7085,7 @@ class DpojetPlotItemDataXdata(SCPICmdRead): - ``.tn``: The ``DPOJET:PLOT:DATA:XDATa:TN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ddjdcd = DpojetPlotItemDataXdataDdjdcd(device, f"{self._cmd_syntax}:DDJDCD") self._ddnone = DpojetPlotItemDataXdataDdnone(device, f"{self._cmd_syntax}:DDNONE") @@ -7329,7 +7329,7 @@ class DpojetPlotItemData(SCPICmdRead): - ``.ydata``: The ``DPOJET:PLOT:DATA:YDATa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xdata = DpojetPlotItemDataXdata(device, f"{self._cmd_syntax}:XDATa") self._ydata = DpojetPlotItemDataYdata(device, f"{self._cmd_syntax}:YDATa") @@ -7647,7 +7647,7 @@ class DpojetPlotItemCorrelatedeye(SCPICmdRead): - ``.targetber``: The ``DPOJET:PLOT:CORRELATEDEye:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber1e12v = DpojetPlotItemCorrelatedeyeBer1e12v(device, f"{self._cmd_syntax}:BER1E12V") self._ber1e15v = DpojetPlotItemCorrelatedeyeBer1e15v(device, f"{self._cmd_syntax}:BER1E15V") @@ -7985,7 +7985,7 @@ class DpojetPlotItemCompositenoisehistHorizontal(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:COMPOSITENoisehist:HORizontal:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemCompositenoisehistHorizontalScale( device, f"{self._cmd_syntax}:SCALE" @@ -8081,7 +8081,7 @@ class DpojetPlotItemCompositenoisehist(SCPICmdRead): - ``.tn``: The ``DPOJET:PLOT:COMPOSITENoisehist:TN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ddnone = DpojetPlotItemCompositenoisehistDdnone(device, f"{self._cmd_syntax}:DDNONE") self._ddnzero = DpojetPlotItemCompositenoisehistDdnzero( @@ -8296,7 +8296,7 @@ class DpojetPlotItemCompositejitterhistVertical(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:COMPOSITEJitterhist:VERTical:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemCompositejitterhistVerticalScale( device, f"{self._cmd_syntax}:SCALE" @@ -8465,7 +8465,7 @@ class DpojetPlotItemCompositejitterhist(SCPICmdRead): - ``.vertical``: The ``DPOJET:PLOT:COMPOSITEJitterhist:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ddjdcd = DpojetPlotItemCompositejitterhistDdjdcd(device, f"{self._cmd_syntax}:DDJDCD") self._numbins = DpojetPlotItemCompositejitterhistNumbins( @@ -8763,7 +8763,7 @@ class DpojetPlotItemBereye(SCPICmdRead): - ``.targetber``: The ``DPOJET:PLOT:BEREye:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber1e12v = DpojetPlotItemBereyeBer1e12v(device, f"{self._cmd_syntax}:BER1E12V") self._ber1e15v = DpojetPlotItemBereyeBer1e15v(device, f"{self._cmd_syntax}:BER1E15V") @@ -9054,7 +9054,7 @@ class DpojetPlotItemBercontourHorizontal(SCPICmdRead): - ``.resolution``: The ``DPOJET:PLOT:BERContour:HORizontal:RESolution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DpojetPlotItemBercontourHorizontalAutoscale( device, f"{self._cmd_syntax}:AUTOscale" @@ -9262,7 +9262,7 @@ class DpojetPlotItemBercontour(SCPICmdRead): - ``.targetber``: The ``DPOJET:PLOT:BERContour:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alignment = DpojetPlotItemBercontourAlignment(device, f"{self._cmd_syntax}:ALIGNment") self._ber1e12v = DpojetPlotItemBercontourBer1e12v(device, f"{self._cmd_syntax}:BER1E12V") @@ -9593,7 +9593,7 @@ class DpojetPlotItemBathtubVertical(SCPICmdRead): - ``.scale``: The ``DPOJET:PLOT:BATHtub:VERTical:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DpojetPlotItemBathtubVerticalScale(device, f"{self._cmd_syntax}:SCALE") @@ -9658,7 +9658,7 @@ class DpojetPlotItemBathtub(SCPICmdRead): - ``.xaxisunits``: The ``DPOJET:PLOT:BATHtub:XAXISUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = DpojetPlotItemBathtubBer(device, f"{self._cmd_syntax}:BER") self._vertical = DpojetPlotItemBathtubVertical(device, f"{self._cmd_syntax}:VERTical") @@ -9763,7 +9763,7 @@ class DpojetPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.yunits``: The ``DPOJET:PLOT:YUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bathtub = DpojetPlotItemBathtub(device, f"{self._cmd_syntax}:BATHtub") self._bercontour = DpojetPlotItemBercontour(device, f"{self._cmd_syntax}:BERContour") @@ -10516,7 +10516,7 @@ class DpojetMeasItemSscNominalfreq(SCPICmdRead): - ``.selectiontype``: The ``DPOJET:MEAS:SSC:NOMinalfreq:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = DpojetMeasItemSscNominalfreqAuto(device, f"{self._cmd_syntax}:AUTO") self._manual = DpojetMeasItemSscNominalfreqManual(device, f"{self._cmd_syntax}:MANual") @@ -10609,7 +10609,7 @@ class DpojetMeasItemSsc(SCPICmdRead): - ``.nominalfreq``: The ``DPOJET:MEAS:SSC:NOMinalfreq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nominalfreq = DpojetMeasItemSscNominalfreq(device, f"{self._cmd_syntax}:NOMinalfreq") @@ -10884,7 +10884,7 @@ class DpojetMeasItemRndn(SCPICmdRead): - ``.windowlength``: The ``DPOJET:MEAS:RNDN:WINDOwlength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodetectpattern = DpojetMeasItemRndnAutodetectpattern( device, f"{self._cmd_syntax}:AUTODETECTpattern" @@ -11270,7 +11270,7 @@ class DpojetMeasItemRjdj(SCPICmdRead): - ``.windowlength``: The ``DPOJET:MEAS:RJDJ:WINDOwlength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = DpojetMeasItemRjdjBer(device, f"{self._cmd_syntax}:BER") self._detectplen = DpojetMeasItemRjdjDetectplen(device, f"{self._cmd_syntax}:DETECTPLEN") @@ -11564,7 +11564,7 @@ class DpojetMeasItemResultsCurrentacqStddev(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:STDDev:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqStddevStatus( device, f"{self._cmd_syntax}:STATus" @@ -11638,7 +11638,7 @@ class DpojetMeasItemResultsCurrentacqPopulation(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:POPUlation:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqPopulationStatus( device, f"{self._cmd_syntax}:STATus" @@ -11711,7 +11711,7 @@ class DpojetMeasItemResultsCurrentacqPk2pk(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:PK2PK:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqPk2pkStatus( device, f"{self._cmd_syntax}:STATus" @@ -11784,7 +11784,7 @@ class DpojetMeasItemResultsCurrentacqMincc(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:MINCC:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqMinccStatus( device, f"{self._cmd_syntax}:STATus" @@ -11858,7 +11858,7 @@ class DpojetMeasItemResultsCurrentacqMin(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:MIN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqMinStatus( device, f"{self._cmd_syntax}:STATus" @@ -11931,7 +11931,7 @@ class DpojetMeasItemResultsCurrentacqMean(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:MEAN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqMeanStatus( device, f"{self._cmd_syntax}:STATus" @@ -12004,7 +12004,7 @@ class DpojetMeasItemResultsCurrentacqMaxcc(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:MAXCC:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqMaxccStatus( device, f"{self._cmd_syntax}:STATus" @@ -12078,7 +12078,7 @@ class DpojetMeasItemResultsCurrentacqMax(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:CURRentacq:MAX:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsCurrentacqMaxStatus( device, f"{self._cmd_syntax}:STATus" @@ -12127,7 +12127,7 @@ class DpojetMeasItemResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``DPOJET:MEAS:RESULts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = DpojetMeasItemResultsCurrentacqMax(device, f"{self._cmd_syntax}:MAX") self._maxcc = DpojetMeasItemResultsCurrentacqMaxcc(device, f"{self._cmd_syntax}:MAXCC") @@ -12385,7 +12385,7 @@ class DpojetMeasItemResultsAllacqsStddev(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:STDDev:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsStddevStatus( device, f"{self._cmd_syntax}:STATus" @@ -12493,7 +12493,7 @@ class DpojetMeasItemResultsAllacqsSegItem(ValidatedDynamicNumberCmd, SCPICmdRead - ``.minhits``: The ``DPOJET:MEAS:RESULts:ALLAcqs:SEG:MINHits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = DpojetMeasItemResultsAllacqsSegItemHits(device, f"{self._cmd_syntax}:Hits") self._maxhits = DpojetMeasItemResultsAllacqsSegItemMaxhits( @@ -12614,7 +12614,7 @@ class DpojetMeasItemResultsAllacqsPopulation(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:POPUlation:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsPopulationStatus( device, f"{self._cmd_syntax}:STATus" @@ -12687,7 +12687,7 @@ class DpojetMeasItemResultsAllacqsPk2pk(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:PK2PK:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsPk2pkStatus(device, f"{self._cmd_syntax}:STATus") @@ -12778,7 +12778,7 @@ class DpojetMeasItemResultsAllacqsMincc(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:MINCC:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsMinccStatus(device, f"{self._cmd_syntax}:STATus") @@ -12889,7 +12889,7 @@ class DpojetMeasItemResultsAllacqsMin(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:MIN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowlimit = DpojetMeasItemResultsAllacqsMinLowlimit( device, f"{self._cmd_syntax}:LOWLimit" @@ -13028,7 +13028,7 @@ class DpojetMeasItemResultsAllacqsMean(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:MEAN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = DpojetMeasItemResultsAllacqsMeanHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -13143,7 +13143,7 @@ class DpojetMeasItemResultsAllacqsMaxcc(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:MAXCC:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsMaxccStatus(device, f"{self._cmd_syntax}:STATus") @@ -13255,7 +13255,7 @@ class DpojetMeasItemResultsAllacqsMax(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:MAX:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = DpojetMeasItemResultsAllacqsMaxHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -13385,7 +13385,7 @@ class DpojetMeasItemResultsAllacqsLimitsLow(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:LIMits:LOw:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsLimitsLowStatus( device, f"{self._cmd_syntax}:STATus" @@ -13447,7 +13447,7 @@ class DpojetMeasItemResultsAllacqsLimitsHigh(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:LIMits:HIgh:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = DpojetMeasItemResultsAllacqsLimitsHighStatus( device, f"{self._cmd_syntax}:STATus" @@ -13491,7 +13491,7 @@ class DpojetMeasItemResultsAllacqsLimits(SCPICmdRead): - ``.status``: The ``DPOJET:MEAS:RESULts:ALLAcqs:LIMits:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DpojetMeasItemResultsAllacqsLimitsHigh(device, f"{self._cmd_syntax}:HIgh") self._low = DpojetMeasItemResultsAllacqsLimitsLow(device, f"{self._cmd_syntax}:LOw") @@ -13627,7 +13627,7 @@ class DpojetMeasItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``DPOJET:MEAS:RESULts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitpopulation = DpojetMeasItemResultsAllacqsHitpopulation( device, f"{self._cmd_syntax}:HITPopulation" @@ -14001,7 +14001,7 @@ class DpojetMeasItemResults(SCPICmdRead): - ``.view``: The ``DPOJET:MEAS:RESULts:VIew`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = DpojetMeasItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = DpojetMeasItemResultsCurrentacq(device, f"{self._cmd_syntax}:CURRentacq") @@ -14222,7 +14222,7 @@ class DpojetMeasItemPhasenoise(SCPICmdRead): - ``.lowlimit``: The ``DPOJET:MEAS:PHASENoise:LOWLimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = DpojetMeasItemPhasenoiseHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = DpojetMeasItemPhasenoiseLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -14419,7 +14419,7 @@ class DpojetMeasItemOptical(SCPICmdRead): - ``.wfmtype``: The ``DPOJET:MEAS:OPTIcal:WFMTYpe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = DpojetMeasItemOpticalBandwidth(device, f"{self._cmd_syntax}:BANDWIDth") self._btfilter = DpojetMeasItemOpticalBtfilter(device, f"{self._cmd_syntax}:BTFILTEr") @@ -14704,7 +14704,7 @@ class DpojetMeasItemMeasrange(SCPICmdRead): - ``.state``: The ``DPOJET:MEAS:MEASRange:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = DpojetMeasItemMeasrangeMax(device, f"{self._cmd_syntax}:MAX") self._min = DpojetMeasItemMeasrangeMin(device, f"{self._cmd_syntax}:MIN") @@ -14884,7 +14884,7 @@ class DpojetMeasItemMaskoffsetHorizontal(SCPICmdRead): - ``.selectiontype``: The ``DPOJET:MEAS:MASKOffset:HORizontal:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autofit = DpojetMeasItemMaskoffsetHorizontalAutofit( device, f"{self._cmd_syntax}:AUTOfit" @@ -14982,7 +14982,7 @@ class DpojetMeasItemMaskoffset(SCPICmdRead): - ``.horizontal``: The ``DPOJET:MEAS:MASKOffset:HORizontal`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = DpojetMeasItemMaskoffsetHorizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -15110,7 +15110,7 @@ class DpojetMeasItemMargin(SCPICmdRead): - ``.resolution``: The ``DPOJET:MEAS:MARGIN:RESOlution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitcountvalue = DpojetMeasItemMarginHitcountvalue( device, f"{self._cmd_syntax}:HITCOUNTValue" @@ -15279,7 +15279,7 @@ class DpojetMeasItemLoggingWorstcase(SCPICmdRead): - ``.select``: The ``DPOJET:MEAS:LOGging:WORSTcase:SELect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._select = DpojetMeasItemLoggingWorstcaseSelect(device, f"{self._cmd_syntax}:SELect") @@ -15346,7 +15346,7 @@ class DpojetMeasItemLoggingStatistics(SCPICmdRead): - ``.select``: The ``DPOJET:MEAS:LOGging:STATistics:SELect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._select = DpojetMeasItemLoggingStatisticsSelect(device, f"{self._cmd_syntax}:SELect") @@ -15437,7 +15437,7 @@ class DpojetMeasItemLoggingMeasurements(SCPICmdRead): - ``.select``: The ``DPOJET:MEAS:LOGging:MEASurements:SELect`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = DpojetMeasItemLoggingMeasurementsFilename( device, f"{self._cmd_syntax}:FILEname" @@ -15507,7 +15507,7 @@ class DpojetMeasItemLogging(SCPICmdRead): - ``.worstcase``: The ``DPOJET:MEAS:LOGging:WORSTcase`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._measurements = DpojetMeasItemLoggingMeasurements( device, f"{self._cmd_syntax}:MEASurements" @@ -15730,7 +15730,7 @@ class DpojetMeasItemFiltersLowpass(SCPICmdRead): - ``.spec``: The ``DPOJET:MEAS:FILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = DpojetMeasItemFiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = DpojetMeasItemFiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -15843,7 +15843,7 @@ class DpojetMeasItemFiltersHighpass(SCPICmdRead): - ``.spec``: The ``DPOJET:MEAS:FILTers:HIGHPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = DpojetMeasItemFiltersHighpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = DpojetMeasItemFiltersHighpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -15936,7 +15936,7 @@ class DpojetMeasItemFilters(SCPICmdRead): - ``.sjfrequency``: The ``DPOJET:MEAS:FILTers:SJFRequency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blankingtime = DpojetMeasItemFiltersBlankingtime( device, f"{self._cmd_syntax}:BLANKingtime" @@ -16275,7 +16275,7 @@ class DpojetMeasItemEdges(SCPICmdRead): - ``.voltagestate``: The ``DPOJET:MEAS:EDGES:VOLTAGEState`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eyeheightstate = DpojetMeasItemEdgesEyeheightstate( device, f"{self._cmd_syntax}:EYEHeightstate" @@ -16806,7 +16806,7 @@ class DpojetMeasItemDfe(SCPICmdRead): - ``.tapvalue``: The ``DPOJET:MEAS:DFE:TAPValue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolutetimestate = DpojetMeasItemDfeAbsolutetimestate( device, f"{self._cmd_syntax}:ABSOLUTETIMEState" @@ -17240,7 +17240,7 @@ class DpojetMeasItemCustomgating(SCPICmdRead): - ``.toedge``: The ``DPOJET:MEAS:CUSTOMGATING:TOedge`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fromedge = DpojetMeasItemCustomgatingFromedge(device, f"{self._cmd_syntax}:FROMedge") self._measurementedge = DpojetMeasItemCustomgatingMeasurementedge( @@ -17410,7 +17410,7 @@ class DpojetMeasItemCommonmodeFilters(SCPICmdRead): - ``.state``: The ``DPOJET:MEAS:COMMONMode:FILTers:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DpojetMeasItemCommonmodeFiltersState(device, f"{self._cmd_syntax}:STATE") @@ -17451,7 +17451,7 @@ class DpojetMeasItemCommonmode(SCPICmdRead): - ``.filters``: The ``DPOJET:MEAS:COMMONMode:FILTers`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filters = DpojetMeasItemCommonmodeFilters(device, f"{self._cmd_syntax}:FILTers") @@ -17641,7 +17641,7 @@ class DpojetMeasItemClockrecoveryNominaloffset(SCPICmdWrite, SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = DpojetMeasItemClockrecoveryNominaloffsetAuto( device, f"{self._cmd_syntax}:AUTO" @@ -18057,7 +18057,7 @@ class DpojetMeasItemClockrecovery(SCPICmdRead): - ``.standard``: The ``DPOJET:MEAS:CLOCKRecovery:STAndard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bhvrstandard = DpojetMeasItemClockrecoveryBhvrstandard( device, f"{self._cmd_syntax}:BHVRSTANdard" @@ -18657,7 +18657,7 @@ class DpojetMeasItemBusstate(SCPICmdRead): - ``.tosymbol``: The ``DPOJET:MEAS:BUSState:TOSymbol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clockpolarity = DpojetMeasItemBusstateClockpolarity( device, f"{self._cmd_syntax}:CLOCKPolarity" @@ -19017,7 +19017,7 @@ class DpojetMeasItemBitconfig(SCPICmdRead): - ``.startpercent``: The ``DPOJET:MEAS:BITConfig:STARTPercent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absrelstate = DpojetMeasItemBitconfigAbsrelstate( device, f"{self._cmd_syntax}:ABSRELstate" @@ -19184,7 +19184,7 @@ class DpojetMeasItemBer(SCPICmdRead): - ``.targetber``: The ``DPOJET:MEAS:BER:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._targetber = DpojetMeasItemBerTargetber(device, f"{self._cmd_syntax}:TARGETBER") @@ -19269,7 +19269,7 @@ class DpojetMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.zoomevent``: The ``DPOJET:MEAS:ZOOMEVENT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = DpojetMeasItemBer(device, f"{self._cmd_syntax}:BER") self._bitcfgmethod = DpojetMeasItemBitcfgmethod(device, f"{self._cmd_syntax}:BITCfgmethod") @@ -20269,7 +20269,7 @@ class DpojetLoggingWorstcase(SCPICmdRead): - ``.state``: The ``DPOJET:LOGging:WORSTcase:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._folder = DpojetLoggingWorstcaseFolder(device, f"{self._cmd_syntax}:FOLDer") self._state = DpojetLoggingWorstcaseState(device, f"{self._cmd_syntax}:STATE") @@ -20383,7 +20383,7 @@ class DpojetLoggingStatistics(SCPICmdRead): - ``.state``: The ``DPOJET:LOGging:STATistics:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = DpojetLoggingStatisticsFilename(device, f"{self._cmd_syntax}:FILEName") self._state = DpojetLoggingStatisticsState(device, f"{self._cmd_syntax}:STATE") @@ -20513,7 +20513,7 @@ class DpojetLoggingMeasurements(SCPICmdRead): - ``.state``: The ``DPOJET:LOGging:MEASurements:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._folder = DpojetLoggingMeasurementsFolder(device, f"{self._cmd_syntax}:FOLDer") self._state = DpojetLoggingMeasurementsState(device, f"{self._cmd_syntax}:STATE") @@ -20584,7 +20584,7 @@ class DpojetLogging(SCPICmdRead): - ``.worstcase``: The ``DPOJET:LOGging:WORSTcase`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._measurements = DpojetLoggingMeasurements(device, f"{self._cmd_syntax}:MEASurements") self._snapshot = DpojetLoggingSnapshot(device, f"{self._cmd_syntax}:SNAPshot") @@ -20751,7 +20751,7 @@ class DpojetLimits(SCPICmdRead): - ``.state``: The ``DPOJET:LIMits:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = DpojetLimitsFilename(device, f"{self._cmd_syntax}:FILEName") self._state = DpojetLimitsState(device, f"{self._cmd_syntax}:STATE") @@ -21239,7 +21239,7 @@ class DpojetDeskew(SCPICmdWrite, SCPICmdRead): - ``.refmidlevel``: The ``DPOJET:DESKEW:REFMidlevel`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deskewhysteresis = DpojetDeskewDeskewhysteresis( device, f"{self._cmd_syntax}:DESKEWHysteresis" @@ -21677,7 +21677,7 @@ class Dpojet(SCPICmdRead): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DPOJET" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "DPOJET" ) -> None: super().__init__(device, cmd_syntax) self._activate = DpojetActivate(device, f"{self._cmd_syntax}:ACTIVATE") diff --git a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py index 649ab77c..687487d8 100644 --- a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py +++ b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py @@ -1008,7 +1008,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1181,7 +1181,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1292,7 +1292,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1546,7 +1546,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1704,7 +1704,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1888,7 +1888,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1961,7 +1961,7 @@ class TriggerMainPulseGlitch(SCPICmdRead): - ``.lowpassfilter``: The ``TRIGger:MAIn:PULse:GLItch:LOWPASSfilter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerMainPulseGlitchLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -2006,7 +2006,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._glitch = TriggerMainPulseGlitch(device, f"{self._cmd_syntax}:GLItch") self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -2052,7 +2052,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2196,7 +2196,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2485,7 +2485,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -3046,7 +3046,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3666,7 +3666,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3851,7 +3851,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3941,7 +3941,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4269,7 +4269,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4410,7 +4410,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4733,7 +4733,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4917,7 +4917,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5011,7 +5011,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5302,7 +5302,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5397,7 +5397,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5721,7 +5721,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5903,7 +5903,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5969,7 +5969,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6349,7 +6349,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6708,7 +6708,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6827,7 +6827,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -7077,7 +7077,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7412,7 +7412,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7498,7 +7498,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7604,7 +7604,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7679,7 +7679,7 @@ class TriggerBLogicStateClock(SCPICmdRead): - ``.source``: The ``TRIGger:B:LOGIc:STATE:CLOck:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerBLogicStateClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -7736,7 +7736,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicStateClock(device, f"{self._cmd_syntax}:CLOck") self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") @@ -7946,7 +7946,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8063,7 +8063,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8226,7 +8226,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8378,7 +8378,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8540,7 +8540,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8788,7 +8788,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8899,7 +8899,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8964,7 +8964,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -9128,7 +9128,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9308,7 +9308,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9573,7 +9573,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9652,7 +9652,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9807,7 +9807,7 @@ class TriggerBEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerBEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerBEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -9946,7 +9946,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -10009,7 +10009,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -10248,7 +10248,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10906,7 +10906,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -11070,7 +11070,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -11193,7 +11193,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11497,7 +11497,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11669,7 +11669,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11841,7 +11841,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12091,7 +12091,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12321,7 +12321,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12474,7 +12474,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12611,7 +12611,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12912,7 +12912,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12950,7 +12950,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -13057,7 +13057,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -13161,7 +13161,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13340,7 +13340,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13474,7 +13474,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13960,7 +13960,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -14145,7 +14145,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14230,7 +14230,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14324,7 +14324,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14386,7 +14386,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14484,7 +14484,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14854,7 +14854,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14995,7 +14995,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -15318,7 +15318,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15502,7 +15502,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15596,7 +15596,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15887,7 +15887,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15982,7 +15982,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -16306,7 +16306,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16488,7 +16488,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16572,7 +16572,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16666,7 +16666,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16729,7 +16729,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16794,7 +16794,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -17200,7 +17200,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17560,7 +17560,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17679,7 +17679,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -17929,7 +17929,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -18304,7 +18304,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18457,7 +18457,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18543,7 +18543,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18649,7 +18649,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18724,7 +18724,7 @@ class TriggerALogicStateClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:STATE:CLOck:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerALogicStateClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -18781,7 +18781,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicStateClock(device, f"{self._cmd_syntax}:CLOck") self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") @@ -18991,7 +18991,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19108,7 +19108,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19271,7 +19271,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19423,7 +19423,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19585,7 +19585,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19833,7 +19833,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19944,7 +19944,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20009,7 +20009,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -20173,7 +20173,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -20353,7 +20353,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20618,7 +20618,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20690,7 +20690,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20734,7 +20734,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20854,7 +20854,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -21069,7 +21069,7 @@ class TriggerAEdgeSlope(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:SLOpe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = TriggerAEdgeSlopeAux(device, f"{self._cmd_syntax}:AUX") self._ch: Dict[int, TriggerAEdgeSlopeChannel] = DefaultDictPassKeyToFactory( @@ -21208,7 +21208,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21271,7 +21271,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -21477,7 +21477,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21585,7 +21585,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21688,7 +21688,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21818,7 +21818,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21892,7 +21892,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -22018,7 +22018,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22121,7 +22121,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22246,7 +22246,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22349,7 +22349,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22474,7 +22474,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22577,7 +22577,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22702,7 +22702,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22805,7 +22805,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22880,7 +22880,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -23233,7 +23233,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -23460,7 +23460,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23622,7 +23622,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23882,7 +23882,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23964,7 +23964,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -24065,7 +24065,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -24194,7 +24194,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -24299,7 +24299,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -24352,7 +24352,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24527,7 +24527,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24687,7 +24687,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24845,7 +24845,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -25156,7 +25156,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25452,7 +25452,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25723,7 +25723,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25816,7 +25816,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25957,7 +25957,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -26081,7 +26081,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26579,7 +26579,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26705,7 +26705,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26844,7 +26844,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26954,7 +26954,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -27180,7 +27180,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -27280,7 +27280,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -27347,7 +27347,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27588,7 +27588,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27719,7 +27719,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27827,7 +27827,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27996,7 +27996,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -28155,7 +28155,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -28236,7 +28236,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -28415,7 +28415,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28545,7 +28545,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28662,7 +28662,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28795,7 +28795,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -29040,7 +29040,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -29139,7 +29139,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -29206,7 +29206,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -29450,7 +29450,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29860,7 +29860,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -30274,7 +30274,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -30385,7 +30385,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30556,7 +30556,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30777,7 +30777,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30915,7 +30915,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -31052,7 +31052,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -31167,7 +31167,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -31350,7 +31350,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31557,7 +31557,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31751,7 +31751,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31893,7 +31893,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -32099,7 +32099,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -32366,7 +32366,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -32501,7 +32501,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32663,7 +32663,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32892,7 +32892,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -33240,7 +33240,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33472,7 +33472,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33601,7 +33601,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33821,7 +33821,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -33866,7 +33866,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( device, f"{self._cmd_syntax}:SOUrceaddr" @@ -33926,7 +33926,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33972,7 +33972,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") @@ -34072,7 +34072,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -34243,7 +34243,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34513,7 +34513,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34781,7 +34781,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34906,7 +34906,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -35037,7 +35037,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -35363,7 +35363,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -35858,7 +35858,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py index 425e08c1..7959dc33 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -87,7 +87,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reading( @@ -139,7 +139,7 @@ def reading( f"{self._cmd_syntax}.reading({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -382,7 +382,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -421,7 +421,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -446,7 +446,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstats( @@ -497,7 +497,7 @@ def getstats( self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -535,7 +535,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -585,7 +585,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -636,5 +636,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_60xy3r_smu/script.py b/src/tm_devices/commands/gen_60xy3r_smu/script.py index e000d59d..04781bfa 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/script.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): @@ -32,7 +32,7 @@ class Script(BaseTSPCmd): - ``.load()``: The ``script.load()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "script") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "script") -> None: super().__init__(device, cmd_syntax) def delete(self, script_name: str) -> None: @@ -57,7 +57,7 @@ def delete(self, script_name: str) -> None: f'{self._cmd_syntax}.delete("{script_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load(self, file: str) -> str: @@ -87,5 +87,5 @@ def load(self, file: str) -> str: f'print({self._cmd_syntax}.load("{file}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_60xy3r_smu/smu.py b/src/tm_devices/commands/gen_60xy3r_smu/smu.py index a1c4cdd2..a3165e5e 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/smu.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): @@ -144,7 +144,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -178,7 +178,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -207,7 +207,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -247,7 +247,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -281,7 +281,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -309,7 +309,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -349,7 +349,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -383,7 +383,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -412,7 +412,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -452,7 +452,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -477,7 +477,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -512,7 +512,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -554,7 +554,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -602,7 +602,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -631,7 +631,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -666,7 +666,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, config_list_name: str, function: str, index: Optional[int] = None) -> None: @@ -705,7 +705,7 @@ def storefunc(self, config_list_name: str, function: str, index: Optional[int] = f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -737,7 +737,7 @@ class SmuSource(BaseTSPCmd): - ``.vlimit``: The ``smu.source.vlimit`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configlist = SmuSourceConfiglist(device, f"{self._cmd_syntax}.configlist") self._protect = SmuSourceProtect(device, f"{self._cmd_syntax}.protect") @@ -779,7 +779,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -814,7 +814,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -846,7 +846,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -881,7 +881,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -927,7 +927,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -960,7 +960,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -990,7 +990,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1023,7 +1023,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1053,7 +1053,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1086,7 +1086,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1149,7 +1149,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1179,7 +1179,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -1212,7 +1212,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1242,7 +1242,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -1275,7 +1275,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1315,7 +1315,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -1348,7 +1348,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1380,7 +1380,7 @@ def readback(self) -> str: f"print({self._cmd_syntax}.readback)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readback.setter @@ -1415,7 +1415,7 @@ def readback(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readback = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1492,7 +1492,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -1520,7 +1520,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1591,7 +1591,7 @@ def sweeplinear( f"{self._cmd_syntax}.sweeplinear({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1661,7 +1661,7 @@ def sweeplinearstep( f"{self._cmd_syntax}.sweeplinearstep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweeplist( @@ -1717,7 +1717,7 @@ def sweeplist( f"{self._cmd_syntax}.sweeplist({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1791,7 +1791,7 @@ def sweeplog( f"{self._cmd_syntax}.sweeplog({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1833,7 +1833,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1868,7 +1868,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1899,7 +1899,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1933,7 +1933,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -1958,7 +1958,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1998,7 +1998,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -2032,7 +2032,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2063,7 +2063,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -2097,7 +2097,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2111,7 +2111,7 @@ class SmuMeasureMath(BaseTSPCmd): - ``.percent``: The ``smu.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = SmuMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -2144,7 +2144,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2179,7 +2179,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2211,7 +2211,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -2246,7 +2246,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2288,7 +2288,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -2323,7 +2323,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2362,7 +2362,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2396,7 +2396,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2436,7 +2436,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2471,7 +2471,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2488,7 +2488,7 @@ class SmuMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``smu.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SmuMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = SmuMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -2522,7 +2522,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -2557,7 +2557,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2589,7 +2589,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -2624,7 +2624,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2656,7 +2656,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2691,7 +2691,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2719,7 +2719,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2760,7 +2760,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2802,7 +2802,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -2837,7 +2837,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2869,7 +2869,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2904,7 +2904,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2936,7 +2936,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -2971,7 +2971,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3012,7 +3012,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -3037,7 +3037,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -3072,7 +3072,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -3113,7 +3113,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -3161,7 +3161,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -3190,7 +3190,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -3225,7 +3225,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, list_name: str, function: str, index: Optional[int] = None) -> None: @@ -3263,7 +3263,7 @@ def storefunc(self, list_name: str, function: str, index: Optional[int] = None) f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3304,7 +3304,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3339,7 +3339,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def once(self) -> None: @@ -3362,7 +3362,7 @@ def once(self) -> None: f"{self._cmd_syntax}.once()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3396,7 +3396,7 @@ class SmuMeasure(BaseTSPCmd): - ``.userdelay``: The ``smu.measure.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = SmuMeasureAutozero(device, f"{self._cmd_syntax}.autozero") self._configlist = SmuMeasureConfiglist(device, f"{self._cmd_syntax}.configlist") @@ -3442,7 +3442,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -3477,7 +3477,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3509,7 +3509,7 @@ def autorangehigh(self) -> str: f"print({self._cmd_syntax}.autorangehigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangehigh.setter @@ -3544,7 +3544,7 @@ def autorangehigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangehigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3576,7 +3576,7 @@ def autorangelow(self) -> str: f"print({self._cmd_syntax}.autorangelow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangelow.setter @@ -3611,7 +3611,7 @@ def autorangelow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangelow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3643,7 +3643,7 @@ def autorangerebound(self) -> str: f"print({self._cmd_syntax}.autorangerebound)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangerebound.setter @@ -3678,7 +3678,7 @@ def autorangerebound(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangerebound = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3735,7 +3735,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3769,7 +3769,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3807,7 +3807,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -3848,7 +3848,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3889,7 +3889,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -3922,7 +3922,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3980,7 +3980,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4014,7 +4014,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4045,7 +4045,7 @@ def offsetcompensation(self) -> str: f"print({self._cmd_syntax}.offsetcompensation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offsetcompensation.setter @@ -4079,7 +4079,7 @@ def offsetcompensation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offsetcompensation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4109,7 +4109,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -4142,7 +4142,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4183,7 +4183,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -4216,7 +4216,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4247,7 +4247,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4281,7 +4281,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4338,7 +4338,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4370,7 +4370,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -4402,7 +4402,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4431,7 +4431,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4472,7 +4472,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4507,7 +4507,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4535,7 +4535,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4858,7 +4858,7 @@ class Smu(BaseTSPCmd): UNIT_WATT = "smu.UNIT_WATT" """str: Set unit of measure to power (only available for voltage or current measurements).""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smu") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smu") -> None: super().__init__(device, cmd_syntax) self._interlock = SmuInterlock(device, f"{self._cmd_syntax}.interlock") self._measure = SmuMeasure(device, f"{self._cmd_syntax}.measure") @@ -4962,7 +4962,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @terminals.setter @@ -4996,7 +4996,7 @@ def terminals(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.terminals = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -5019,5 +5019,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py index 1d15e36c..02bb8944 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py index 4d9cc778..b3efdbe2 100644 --- a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py +++ b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -87,7 +87,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reading( @@ -139,7 +139,7 @@ def reading( f"{self._cmd_syntax}.reading({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -461,7 +461,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -500,7 +500,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -525,7 +525,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstats( @@ -576,7 +576,7 @@ def getstats( self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -614,7 +614,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -663,7 +663,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -714,5 +714,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6srh1x_smu/smu.py b/src/tm_devices/commands/gen_6srh1x_smu/smu.py index 96156291..65845213 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/smu.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): @@ -144,7 +144,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -178,7 +178,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -207,7 +207,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -247,7 +247,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -281,7 +281,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -309,7 +309,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -349,7 +349,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -383,7 +383,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -412,7 +412,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -452,7 +452,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -477,7 +477,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -512,7 +512,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -554,7 +554,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -602,7 +602,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -631,7 +631,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -666,7 +666,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, config_list_name: str, function: str, index: Optional[int] = None) -> None: @@ -705,7 +705,7 @@ def storefunc(self, config_list_name: str, function: str, index: Optional[int] = f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -737,7 +737,7 @@ class SmuSource(BaseTSPCmd): - ``.vlimit``: The ``smu.source.vlimit`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configlist = SmuSourceConfiglist(device, f"{self._cmd_syntax}.configlist") self._protect = SmuSourceProtect(device, f"{self._cmd_syntax}.protect") @@ -779,7 +779,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -814,7 +814,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -846,7 +846,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -881,7 +881,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -927,7 +927,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -960,7 +960,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -990,7 +990,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1023,7 +1023,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1053,7 +1053,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1086,7 +1086,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1149,7 +1149,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1179,7 +1179,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -1212,7 +1212,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1242,7 +1242,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -1275,7 +1275,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1315,7 +1315,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -1348,7 +1348,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1380,7 +1380,7 @@ def readback(self) -> str: f"print({self._cmd_syntax}.readback)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readback.setter @@ -1415,7 +1415,7 @@ def readback(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readback = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1492,7 +1492,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -1520,7 +1520,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1591,7 +1591,7 @@ def sweeplinear( f"{self._cmd_syntax}.sweeplinear({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1661,7 +1661,7 @@ def sweeplinearstep( f"{self._cmd_syntax}.sweeplinearstep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweeplist( @@ -1717,7 +1717,7 @@ def sweeplist( f"{self._cmd_syntax}.sweeplist({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1791,7 +1791,7 @@ def sweeplog( f"{self._cmd_syntax}.sweeplog({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1833,7 +1833,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1868,7 +1868,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1899,7 +1899,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1933,7 +1933,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -1958,7 +1958,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1998,7 +1998,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -2032,7 +2032,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2063,7 +2063,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -2097,7 +2097,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2111,7 +2111,7 @@ class SmuMeasureMath(BaseTSPCmd): - ``.percent``: The ``smu.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = SmuMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -2144,7 +2144,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2179,7 +2179,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2211,7 +2211,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -2246,7 +2246,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2288,7 +2288,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -2323,7 +2323,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2362,7 +2362,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2396,7 +2396,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2436,7 +2436,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2471,7 +2471,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2488,7 +2488,7 @@ class SmuMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``smu.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SmuMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = SmuMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -2522,7 +2522,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -2557,7 +2557,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2589,7 +2589,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -2624,7 +2624,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2656,7 +2656,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2691,7 +2691,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2719,7 +2719,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2760,7 +2760,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2802,7 +2802,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -2837,7 +2837,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2869,7 +2869,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2904,7 +2904,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2936,7 +2936,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -2971,7 +2971,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3012,7 +3012,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -3037,7 +3037,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -3072,7 +3072,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -3113,7 +3113,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -3161,7 +3161,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -3190,7 +3190,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -3225,7 +3225,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, list_name: str, function: str, index: Optional[int] = None) -> None: @@ -3263,7 +3263,7 @@ def storefunc(self, list_name: str, function: str, index: Optional[int] = None) f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3304,7 +3304,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3339,7 +3339,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def once(self) -> None: @@ -3362,7 +3362,7 @@ def once(self) -> None: f"{self._cmd_syntax}.once()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3396,7 +3396,7 @@ class SmuMeasure(BaseTSPCmd): - ``.userdelay``: The ``smu.measure.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = SmuMeasureAutozero(device, f"{self._cmd_syntax}.autozero") self._configlist = SmuMeasureConfiglist(device, f"{self._cmd_syntax}.configlist") @@ -3442,7 +3442,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -3477,7 +3477,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3509,7 +3509,7 @@ def autorangehigh(self) -> str: f"print({self._cmd_syntax}.autorangehigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangehigh.setter @@ -3544,7 +3544,7 @@ def autorangehigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangehigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3576,7 +3576,7 @@ def autorangelow(self) -> str: f"print({self._cmd_syntax}.autorangelow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangelow.setter @@ -3611,7 +3611,7 @@ def autorangelow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangelow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3643,7 +3643,7 @@ def autorangerebound(self) -> str: f"print({self._cmd_syntax}.autorangerebound)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangerebound.setter @@ -3678,7 +3678,7 @@ def autorangerebound(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangerebound = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3735,7 +3735,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3769,7 +3769,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3807,7 +3807,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -3848,7 +3848,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3889,7 +3889,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -3922,7 +3922,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3980,7 +3980,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4014,7 +4014,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4045,7 +4045,7 @@ def offsetcompensation(self) -> str: f"print({self._cmd_syntax}.offsetcompensation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offsetcompensation.setter @@ -4079,7 +4079,7 @@ def offsetcompensation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offsetcompensation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4109,7 +4109,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -4142,7 +4142,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4183,7 +4183,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -4216,7 +4216,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4247,7 +4247,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4281,7 +4281,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4338,7 +4338,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4370,7 +4370,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -4402,7 +4402,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4431,7 +4431,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4472,7 +4472,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4507,7 +4507,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4535,7 +4535,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4858,7 +4858,7 @@ class Smu(BaseTSPCmd): UNIT_WATT = "smu.UNIT_WATT" """str: Set unit of measure to power (only available for voltage or current measurements).""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smu") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smu") -> None: super().__init__(device, cmd_syntax) self._interlock = SmuInterlock(device, f"{self._cmd_syntax}.interlock") self._measure = SmuMeasure(device, f"{self._cmd_syntax}.measure") @@ -4962,7 +4962,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @terminals.setter @@ -4996,7 +4996,7 @@ def terminals(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.terminals = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -5019,5 +5019,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py index 15846155..d9acca82 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6vynmi_smu/acal.py b/src/tm_devices/commands/gen_6vynmi_smu/acal.py index 21a2f945..3b54a418 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/acal.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/acal.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class AcalLastrun(BaseTSPCmd): @@ -62,7 +62,7 @@ def internaltemp(self) -> str: f"print({self._cmd_syntax}.internaltemp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -91,7 +91,7 @@ def tempdiff(self) -> str: f"print({self._cmd_syntax}.tempdiff)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tempdiff`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tempdiff`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -119,7 +119,7 @@ def time(self) -> str: f"print({self._cmd_syntax}.time)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -132,7 +132,7 @@ class Acal(BaseTSPCmd): - ``.run()``: The ``acal.run()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "acal") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "acal") -> None: super().__init__(device, cmd_syntax) self._lastrun = AcalLastrun(device, f"{self._cmd_syntax}.lastrun") @@ -161,7 +161,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -194,5 +194,5 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6vynmi_smu/smu.py b/src/tm_devices/commands/gen_6vynmi_smu/smu.py index 6ee2e28d..b64f789c 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/smu.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/smu.py @@ -145,7 +145,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): @@ -184,7 +184,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -218,7 +218,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -247,7 +247,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -287,7 +287,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -322,7 +322,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -362,7 +362,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -397,7 +397,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -410,7 +410,7 @@ class SmuSourcePulse(BaseTSPCmd): - ``.vlimit``: The ``smu.source.pulse.vlimit`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ilimit = SmuSourcePulseIlimit(device, f"{self._cmd_syntax}.ilimit") self._vlimit = SmuSourcePulseVlimit(device, f"{self._cmd_syntax}.vlimit") @@ -444,7 +444,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -479,7 +479,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -537,7 +537,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -571,7 +571,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -599,7 +599,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -639,7 +639,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -673,7 +673,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -702,7 +702,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -742,7 +742,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -767,7 +767,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -802,7 +802,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -844,7 +844,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -892,7 +892,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -921,7 +921,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -956,7 +956,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, config_list_name: str, function: str, index: Optional[int] = None) -> None: @@ -995,7 +995,7 @@ def storefunc(self, config_list_name: str, function: str, index: Optional[int] = f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1033,7 +1033,7 @@ class SmuSource(BaseTSPCmd): - ``.vlimit``: The ``smu.source.vlimit`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configlist = SmuSourceConfiglist(device, f"{self._cmd_syntax}.configlist") self._protect = SmuSourceProtect(device, f"{self._cmd_syntax}.protect") @@ -1076,7 +1076,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -1111,7 +1111,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1143,7 +1143,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -1178,7 +1178,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1224,7 +1224,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1257,7 +1257,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1287,7 +1287,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1320,7 +1320,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1350,7 +1350,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1383,7 +1383,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1413,7 +1413,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1446,7 +1446,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1476,7 +1476,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -1509,7 +1509,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1539,7 +1539,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -1572,7 +1572,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1623,7 +1623,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -1656,7 +1656,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1688,7 +1688,7 @@ def readback(self) -> str: f"print({self._cmd_syntax}.readback)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readback.setter @@ -1723,7 +1723,7 @@ def readback(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readback = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1800,7 +1800,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1886,7 +1886,7 @@ def pulsesweeplinear( f"{self._cmd_syntax}.pulsesweeplinear({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplinear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplinear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1974,7 +1974,7 @@ def pulsesweeplinearstep( f"{self._cmd_syntax}.pulsesweeplinearstep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplinearstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplinearstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2041,7 +2041,7 @@ def pulsesweeplist( f"{self._cmd_syntax}.pulsesweeplist({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -2130,7 +2130,7 @@ def pulsesweeplog( f"{self._cmd_syntax}.pulsesweeplog({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pulsesweeplog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2206,7 +2206,7 @@ def pulsetrain( f"{self._cmd_syntax}.pulsetrain({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pulsetrain()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pulsetrain()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -2234,7 +2234,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2305,7 +2305,7 @@ def sweeplinear( f"{self._cmd_syntax}.sweeplinear({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2375,7 +2375,7 @@ def sweeplinearstep( f"{self._cmd_syntax}.sweeplinearstep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweeplist( @@ -2431,7 +2431,7 @@ def sweeplist( f"{self._cmd_syntax}.sweeplist({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2505,7 +2505,7 @@ def sweeplog( f"{self._cmd_syntax}.sweeplog({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2547,7 +2547,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2582,7 +2582,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2613,7 +2613,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2647,7 +2647,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -2672,7 +2672,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2712,7 +2712,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -2746,7 +2746,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2777,7 +2777,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -2811,7 +2811,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2825,7 +2825,7 @@ class SmuMeasureMath(BaseTSPCmd): - ``.percent``: The ``smu.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = SmuMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -2858,7 +2858,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2893,7 +2893,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2925,7 +2925,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -2960,7 +2960,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3002,7 +3002,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -3037,7 +3037,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3076,7 +3076,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -3110,7 +3110,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3150,7 +3150,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -3185,7 +3185,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3202,7 +3202,7 @@ class SmuMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``smu.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SmuMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = SmuMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -3236,7 +3236,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -3271,7 +3271,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3303,7 +3303,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -3338,7 +3338,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3370,7 +3370,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3405,7 +3405,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3433,7 +3433,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3474,7 +3474,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3516,7 +3516,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3551,7 +3551,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3583,7 +3583,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3618,7 +3618,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3650,7 +3650,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -3685,7 +3685,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3726,7 +3726,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -3751,7 +3751,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -3786,7 +3786,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -3827,7 +3827,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -3875,7 +3875,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -3904,7 +3904,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -3940,7 +3940,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, list_name: str, function: str, index: Optional[int] = None) -> None: @@ -3978,7 +3978,7 @@ def storefunc(self, list_name: str, function: str, index: Optional[int] = None) f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4019,7 +4019,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4054,7 +4054,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def once(self) -> None: @@ -4077,7 +4077,7 @@ def once(self) -> None: f"{self._cmd_syntax}.once()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4111,7 +4111,7 @@ class SmuMeasure(BaseTSPCmd): - ``.userdelay``: The ``smu.measure.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = SmuMeasureAutozero(device, f"{self._cmd_syntax}.autozero") self._configlist = SmuMeasureConfiglist(device, f"{self._cmd_syntax}.configlist") @@ -4157,7 +4157,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -4192,7 +4192,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4224,7 +4224,7 @@ def autorangehigh(self) -> str: f"print({self._cmd_syntax}.autorangehigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangehigh.setter @@ -4259,7 +4259,7 @@ def autorangehigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangehigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4291,7 +4291,7 @@ def autorangelow(self) -> str: f"print({self._cmd_syntax}.autorangelow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangelow.setter @@ -4326,7 +4326,7 @@ def autorangelow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangelow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4358,7 +4358,7 @@ def autorangerebound(self) -> str: f"print({self._cmd_syntax}.autorangerebound)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangerebound.setter @@ -4393,7 +4393,7 @@ def autorangerebound(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangerebound = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4450,7 +4450,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4484,7 +4484,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4522,7 +4522,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -4563,7 +4563,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4604,7 +4604,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -4637,7 +4637,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4695,7 +4695,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4729,7 +4729,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4760,7 +4760,7 @@ def offsetcompensation(self) -> str: f"print({self._cmd_syntax}.offsetcompensation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offsetcompensation.setter @@ -4794,7 +4794,7 @@ def offsetcompensation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offsetcompensation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4824,7 +4824,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -4857,7 +4857,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4898,7 +4898,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -4931,7 +4931,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4962,7 +4962,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4996,7 +4996,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5053,7 +5053,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -5085,7 +5085,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -5117,7 +5117,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -5146,7 +5146,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5187,7 +5187,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5222,7 +5222,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5250,7 +5250,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5292,7 +5292,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5327,7 +5327,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5358,7 +5358,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -5392,7 +5392,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -5418,7 +5418,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5458,7 +5458,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -5492,7 +5492,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5523,7 +5523,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -5557,7 +5557,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5571,7 +5571,7 @@ class SmuDigitizeMath(BaseTSPCmd): - ``.percent``: The ``smu.digitize.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = SmuDigitizeMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -5604,7 +5604,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5639,7 +5639,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5671,7 +5671,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -5706,7 +5706,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5748,7 +5748,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -5783,7 +5783,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5823,7 +5823,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -5858,7 +5858,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5898,7 +5898,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -5933,7 +5933,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5950,7 +5950,7 @@ class SmuDigitizeLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``smu.digitize.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SmuDigitizeLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = SmuDigitizeLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -5984,7 +5984,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -6019,7 +6019,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6052,7 +6052,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -6088,7 +6088,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6120,7 +6120,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6155,7 +6155,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6183,7 +6183,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6224,7 +6224,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6248,7 +6248,7 @@ class SmuDigitize(BaseTSPCmd): - ``.userdelay``: The ``smu.digitize.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit: Dict[int, SmuDigitizeLimitItem] = DefaultDictPassKeyToFactory( lambda x: SmuDigitizeLimitItem(device, f"{self._cmd_syntax}.limit[{x}]") @@ -6290,7 +6290,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -6324,7 +6324,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6355,7 +6355,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -6389,7 +6389,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6421,7 +6421,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -6456,7 +6456,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6486,7 +6486,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -6519,7 +6519,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6577,7 +6577,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -6611,7 +6611,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6654,7 +6654,7 @@ def samplerate(self) -> str: f"print({self._cmd_syntax}.samplerate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @samplerate.setter @@ -6689,7 +6689,7 @@ def samplerate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.samplerate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6720,7 +6720,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -6754,7 +6754,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6785,7 +6785,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -6819,7 +6819,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6878,7 +6878,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -6910,7 +6910,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6952,7 +6952,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6986,7 +6986,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7018,7 +7018,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -7053,7 +7053,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> str: @@ -7079,7 +7079,7 @@ def check(self) -> str: f"print({self._cmd_syntax}.check())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def checkall(self) -> str: @@ -7105,7 +7105,7 @@ def checkall(self) -> str: f"print({self._cmd_syntax}.checkall())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.checkall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.checkall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7432,7 +7432,7 @@ class Smu(BaseTSPCmd): UNIT_WATT = "smu.UNIT_WATT" """str: Set unit of measure to power (only available for voltage or current measurements).""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smu") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smu") -> None: super().__init__(device, cmd_syntax) self._contact = SmuContact(device, f"{self._cmd_syntax}.contact") self._digitize = SmuDigitize(device, f"{self._cmd_syntax}.digitize") @@ -7503,7 +7503,7 @@ def fastrangechange(self) -> str: f"print({self._cmd_syntax}.fastrangechange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fastrangechange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fastrangechange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fastrangechange.setter @@ -7538,7 +7538,7 @@ def fastrangechange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fastrangechange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fastrangechange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fastrangechange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7611,7 +7611,7 @@ def priorityvoltage(self) -> str: f"print({self._cmd_syntax}.priorityvoltage)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.priorityvoltage`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.priorityvoltage`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @priorityvoltage.setter @@ -7646,7 +7646,7 @@ def priorityvoltage(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.priorityvoltage = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.priorityvoltage`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.priorityvoltage`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7712,7 +7712,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @terminals.setter @@ -7746,7 +7746,7 @@ def terminals(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.terminals = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7769,5 +7769,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py index aef20601..5dd46a0c 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -161,7 +161,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -198,7 +198,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -235,7 +235,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -275,7 +275,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -310,7 +310,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -348,7 +348,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -374,7 +374,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -399,7 +399,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -448,7 +448,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -486,7 +486,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -518,7 +518,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -543,7 +543,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -571,7 +571,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -622,7 +622,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -661,7 +661,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -696,7 +696,7 @@ def generate(self) -> str: f"print({self._cmd_syntax}.generate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @generate.setter @@ -734,7 +734,7 @@ def generate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.generate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -765,7 +765,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -800,7 +800,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -838,7 +838,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -873,7 +873,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -911,7 +911,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -932,7 +932,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.timer[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = TriggerTimerItemStart(device, f"{self._cmd_syntax}.start") @@ -968,7 +968,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1006,7 +1006,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1040,7 +1040,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1077,7 +1077,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1111,7 +1111,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -1148,7 +1148,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1182,7 +1182,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1219,7 +1219,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1261,7 +1261,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1286,7 +1286,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -1314,7 +1314,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1403,7 +1403,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getblocklist(self) -> str: @@ -1428,7 +1428,7 @@ def getblocklist(self) -> str: f"print({self._cmd_syntax}.getblocklist())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbranchcount(self, block_number: int) -> str: @@ -1456,7 +1456,7 @@ def getbranchcount(self, block_number: int) -> str: f"print({self._cmd_syntax}.getbranchcount({block_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate(self) -> None: @@ -1478,7 +1478,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_config_list( @@ -1528,7 +1528,7 @@ def load_config_list( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_duration_loop( @@ -1570,7 +1570,7 @@ def load_duration_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_empty(self) -> None: @@ -1592,7 +1592,7 @@ def load_empty(self) -> None: f"{self._cmd_syntax}.load()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1698,7 +1698,7 @@ def load_grade_binning( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_logic_trigger( @@ -1753,7 +1753,7 @@ def load_logic_trigger( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_loop_until_event( @@ -1807,7 +1807,7 @@ def load_loop_until_event( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_simple_loop( @@ -1850,7 +1850,7 @@ def load_simple_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1956,7 +1956,7 @@ def load_sort_binning( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pause(self) -> None: @@ -1978,7 +1978,7 @@ def pause(self) -> None: f"{self._cmd_syntax}.pause()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resume(self) -> None: @@ -2000,7 +2000,7 @@ def resume(self) -> None: f"{self._cmd_syntax}.resume()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_always(self, block_number: int, branch_to_block: str) -> None: @@ -2029,7 +2029,7 @@ def setblock_trigger_block_branch_always(self, block_number: int, branch_to_bloc f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_counter( @@ -2063,7 +2063,7 @@ def setblock_trigger_block_branch_counter( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_delta( @@ -2113,7 +2113,7 @@ def setblock_trigger_block_branch_delta( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_constant( @@ -2168,7 +2168,7 @@ def setblock_trigger_block_branch_limit_constant( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_dynamic( @@ -2220,7 +2220,7 @@ def setblock_trigger_block_branch_limit_dynamic( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: str) -> None: @@ -2250,7 +2250,7 @@ def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once_excluded( @@ -2283,7 +2283,7 @@ def setblock_trigger_block_branch_once_excluded( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_on_event( @@ -2316,7 +2316,7 @@ def setblock_trigger_block_branch_on_event( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_buffer_clear( @@ -2354,7 +2354,7 @@ def setblock_trigger_block_buffer_clear( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_next( @@ -2398,7 +2398,7 @@ def setblock_trigger_block_config_next( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_prev( @@ -2443,7 +2443,7 @@ def setblock_trigger_block_config_prev( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_recall( @@ -2497,7 +2497,7 @@ def setblock_trigger_block_config_recall( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> None: @@ -2523,7 +2523,7 @@ def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_CONSTANT, {time})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_digital_io( @@ -2556,7 +2556,7 @@ def setblock_trigger_block_digital_io( f"{bit_mask})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_log_event( @@ -2589,7 +2589,7 @@ def setblock_trigger_block_log_event( f'"{message}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_measure_digitize( @@ -2630,7 +2630,7 @@ def setblock_trigger_block_measure_digitize( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_nop(self, block_number: int) -> None: @@ -2656,7 +2656,7 @@ def setblock_trigger_block_nop(self, block_number: int) -> None: f"{self._cmd_syntax}.setblock({block_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: @@ -2683,7 +2683,7 @@ def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_NOTIFY, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: str) -> None: @@ -2711,7 +2711,7 @@ def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: f"{counter})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_source_output(self, block_number: int, state: str) -> None: @@ -2737,7 +2737,7 @@ def setblock_trigger_block_source_output(self, block_number: int, state: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_SOURCE_OUTPUT, {state})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_source_pulse_output(self, block_number: int, state: str) -> None: @@ -2765,7 +2765,7 @@ def setblock_trigger_block_source_pulse_output(self, block_number: int, state: s f"{state})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_wait( @@ -2821,7 +2821,7 @@ def setblock_trigger_block_wait( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def state(self) -> str: @@ -2846,7 +2846,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2895,7 +2895,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2930,7 +2930,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -2968,7 +2968,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3003,7 +3003,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3041,7 +3041,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3075,7 +3075,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -3112,7 +3112,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3147,7 +3147,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3185,7 +3185,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3211,7 +3211,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -3236,7 +3236,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -3261,7 +3261,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3310,7 +3310,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3348,7 +3348,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3379,7 +3379,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3404,7 +3404,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3432,7 +3432,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3482,7 +3482,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3520,7 +3520,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3556,7 +3556,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -3595,7 +3595,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3630,7 +3630,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3668,7 +3668,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3693,7 +3693,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -3718,7 +3718,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3767,7 +3767,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3805,7 +3805,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3836,7 +3836,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3861,7 +3861,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3889,7 +3889,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3908,7 +3908,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.blender[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._stimulus: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.stimulus[{{key}}]", @@ -3948,7 +3948,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -3985,7 +3985,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4017,7 +4017,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4071,7 +4071,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -4096,7 +4096,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4124,7 +4124,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4517,7 +4517,7 @@ class Trigger(BaseTSPCmd): WAIT_OR = "trigger.WAIT_OR" """str: At least one of the events must occur before the trigger model continues.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -4589,7 +4589,7 @@ def continuous(self) -> str: f"print({self._cmd_syntax}.continuous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @continuous.setter @@ -4622,7 +4622,7 @@ def continuous(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.continuous = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4826,7 +4826,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4854,5 +4854,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py index ee7ee77d..ed8c8c19 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6w7311_smu/trigger.py b/src/tm_devices/commands/gen_6w7311_smu/trigger.py index 37b909b3..d6bf548d 100644 --- a/src/tm_devices/commands/gen_6w7311_smu/trigger.py +++ b/src/tm_devices/commands/gen_6w7311_smu/trigger.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -160,7 +160,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -197,7 +197,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -234,7 +234,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -274,7 +274,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -309,7 +309,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -347,7 +347,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -373,7 +373,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -398,7 +398,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -447,7 +447,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -485,7 +485,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -517,7 +517,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -542,7 +542,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -570,7 +570,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -621,7 +621,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -660,7 +660,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -695,7 +695,7 @@ def generate(self) -> str: f"print({self._cmd_syntax}.generate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @generate.setter @@ -733,7 +733,7 @@ def generate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.generate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -764,7 +764,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -799,7 +799,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -837,7 +837,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -872,7 +872,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -910,7 +910,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -931,7 +931,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.timer[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = TriggerTimerItemStart(device, f"{self._cmd_syntax}.start") @@ -967,7 +967,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1005,7 +1005,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1039,7 +1039,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1076,7 +1076,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1110,7 +1110,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -1147,7 +1147,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1181,7 +1181,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1218,7 +1218,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1260,7 +1260,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1285,7 +1285,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -1313,7 +1313,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1400,7 +1400,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getblocklist(self) -> str: @@ -1425,7 +1425,7 @@ def getblocklist(self) -> str: f"print({self._cmd_syntax}.getblocklist())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbranchcount(self, block_number: int) -> str: @@ -1453,7 +1453,7 @@ def getbranchcount(self, block_number: int) -> str: f"print({self._cmd_syntax}.getbranchcount({block_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate(self) -> None: @@ -1475,7 +1475,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_config_list( @@ -1525,7 +1525,7 @@ def load_config_list( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_duration_loop( @@ -1567,7 +1567,7 @@ def load_duration_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_empty(self) -> None: @@ -1589,7 +1589,7 @@ def load_empty(self) -> None: f"{self._cmd_syntax}.load()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1695,7 +1695,7 @@ def load_grade_binning( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_logic_trigger( @@ -1750,7 +1750,7 @@ def load_logic_trigger( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_loop_until_event( @@ -1804,7 +1804,7 @@ def load_loop_until_event( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_simple_loop( @@ -1847,7 +1847,7 @@ def load_simple_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1953,7 +1953,7 @@ def load_sort_binning( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pause(self) -> None: @@ -1975,7 +1975,7 @@ def pause(self) -> None: f"{self._cmd_syntax}.pause()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resume(self) -> None: @@ -1997,7 +1997,7 @@ def resume(self) -> None: f"{self._cmd_syntax}.resume()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_always(self, block_number: int, branch_to_block: str) -> None: @@ -2026,7 +2026,7 @@ def setblock_trigger_block_branch_always(self, block_number: int, branch_to_bloc f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_counter( @@ -2060,7 +2060,7 @@ def setblock_trigger_block_branch_counter( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_delta( @@ -2110,7 +2110,7 @@ def setblock_trigger_block_branch_delta( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_constant( @@ -2165,7 +2165,7 @@ def setblock_trigger_block_branch_limit_constant( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_dynamic( @@ -2217,7 +2217,7 @@ def setblock_trigger_block_branch_limit_dynamic( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: str) -> None: @@ -2247,7 +2247,7 @@ def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once_excluded( @@ -2280,7 +2280,7 @@ def setblock_trigger_block_branch_once_excluded( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_on_event( @@ -2313,7 +2313,7 @@ def setblock_trigger_block_branch_on_event( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_buffer_clear( @@ -2351,7 +2351,7 @@ def setblock_trigger_block_buffer_clear( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_next( @@ -2395,7 +2395,7 @@ def setblock_trigger_block_config_next( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_prev( @@ -2440,7 +2440,7 @@ def setblock_trigger_block_config_prev( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_recall( @@ -2494,7 +2494,7 @@ def setblock_trigger_block_config_recall( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> None: @@ -2520,7 +2520,7 @@ def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_CONSTANT, {time})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_digital_io( @@ -2553,7 +2553,7 @@ def setblock_trigger_block_digital_io( f"{bit_mask})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_log_event( @@ -2586,7 +2586,7 @@ def setblock_trigger_block_log_event( f'"{message}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_measure_digitize( @@ -2627,7 +2627,7 @@ def setblock_trigger_block_measure_digitize( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_nop(self, block_number: int) -> None: @@ -2653,7 +2653,7 @@ def setblock_trigger_block_nop(self, block_number: int) -> None: f"{self._cmd_syntax}.setblock({block_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: @@ -2680,7 +2680,7 @@ def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_NOTIFY, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: str) -> None: @@ -2708,7 +2708,7 @@ def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: f"{counter})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_source_output(self, block_number: int, state: str) -> None: @@ -2734,7 +2734,7 @@ def setblock_trigger_block_source_output(self, block_number: int, state: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_SOURCE_OUTPUT, {state})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_wait( @@ -2790,7 +2790,7 @@ def setblock_trigger_block_wait( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def state(self) -> str: @@ -2815,7 +2815,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2864,7 +2864,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2899,7 +2899,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -2937,7 +2937,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2972,7 +2972,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3010,7 +3010,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3044,7 +3044,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -3081,7 +3081,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3116,7 +3116,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3154,7 +3154,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3180,7 +3180,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -3205,7 +3205,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -3230,7 +3230,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3279,7 +3279,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3317,7 +3317,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3348,7 +3348,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3373,7 +3373,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3401,7 +3401,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3451,7 +3451,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3489,7 +3489,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3525,7 +3525,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -3564,7 +3564,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3599,7 +3599,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3637,7 +3637,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3662,7 +3662,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -3687,7 +3687,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3736,7 +3736,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3774,7 +3774,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3805,7 +3805,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3830,7 +3830,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3858,7 +3858,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3877,7 +3877,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.blender[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._stimulus: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.stimulus[{{key}}]", @@ -3917,7 +3917,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -3954,7 +3954,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3986,7 +3986,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4040,7 +4040,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -4065,7 +4065,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4093,7 +4093,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4501,7 +4501,7 @@ class Trigger(BaseTSPCmd): WAIT_OR = "trigger.WAIT_OR" """str: At least one of the events must occur before the trigger model continues.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -4573,7 +4573,7 @@ def continuous(self) -> str: f"print({self._cmd_syntax}.continuous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @continuous.setter @@ -4606,7 +4606,7 @@ def continuous(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.continuous = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4808,7 +4808,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4836,5 +4836,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py index 4c1a3603..bcfa10b9 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -87,7 +87,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reading( @@ -139,7 +139,7 @@ def reading( f"{self._cmd_syntax}.reading({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -382,7 +382,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -421,7 +421,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -446,7 +446,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstats( @@ -497,7 +497,7 @@ def getstats( self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -535,7 +535,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -584,7 +584,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -635,5 +635,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py index 908f4024..bd1126ad 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py @@ -106,7 +106,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): @@ -145,7 +145,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -179,7 +179,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -208,7 +208,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -248,7 +248,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -282,7 +282,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -310,7 +310,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +350,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -384,7 +384,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -413,7 +413,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -453,7 +453,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -478,7 +478,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -513,7 +513,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -555,7 +555,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -603,7 +603,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -632,7 +632,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -667,7 +667,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, config_list_name: str, function: str, index: Optional[int] = None) -> None: @@ -706,7 +706,7 @@ def storefunc(self, config_list_name: str, function: str, index: Optional[int] = f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -738,7 +738,7 @@ class SmuSource(BaseTSPCmd): - ``.vlimit``: The ``smu.source.vlimit`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configlist = SmuSourceConfiglist(device, f"{self._cmd_syntax}.configlist") self._protect = SmuSourceProtect(device, f"{self._cmd_syntax}.protect") @@ -780,7 +780,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -815,7 +815,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -847,7 +847,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -882,7 +882,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -928,7 +928,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -961,7 +961,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -991,7 +991,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1024,7 +1024,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1054,7 +1054,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1087,7 +1087,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1117,7 +1117,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1150,7 +1150,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1180,7 +1180,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -1213,7 +1213,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1243,7 +1243,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -1276,7 +1276,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1316,7 +1316,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -1349,7 +1349,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1381,7 +1381,7 @@ def readback(self) -> str: f"print({self._cmd_syntax}.readback)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readback.setter @@ -1416,7 +1416,7 @@ def readback(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readback = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readback`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1493,7 +1493,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -1521,7 +1521,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1592,7 +1592,7 @@ def sweeplinear( f"{self._cmd_syntax}.sweeplinear({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1662,7 +1662,7 @@ def sweeplinearstep( f"{self._cmd_syntax}.sweeplinearstep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplinearstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweeplist( @@ -1718,7 +1718,7 @@ def sweeplist( f"{self._cmd_syntax}.sweeplist({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1792,7 +1792,7 @@ def sweeplog( f"{self._cmd_syntax}.sweeplog({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sweeplog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1834,7 +1834,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1869,7 +1869,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1900,7 +1900,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1934,7 +1934,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -1959,7 +1959,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1999,7 +1999,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -2033,7 +2033,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2064,7 +2064,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -2098,7 +2098,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2112,7 +2112,7 @@ class SmuMeasureMath(BaseTSPCmd): - ``.percent``: The ``smu.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = SmuMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -2145,7 +2145,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2180,7 +2180,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2212,7 +2212,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -2247,7 +2247,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2289,7 +2289,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -2324,7 +2324,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2363,7 +2363,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2397,7 +2397,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2437,7 +2437,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -2472,7 +2472,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2489,7 +2489,7 @@ class SmuMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``smu.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SmuMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = SmuMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -2523,7 +2523,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -2558,7 +2558,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2590,7 +2590,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -2625,7 +2625,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2657,7 +2657,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2692,7 +2692,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2720,7 +2720,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2761,7 +2761,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2803,7 +2803,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -2838,7 +2838,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2870,7 +2870,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2905,7 +2905,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2937,7 +2937,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -2972,7 +2972,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3013,7 +3013,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -3038,7 +3038,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -3073,7 +3073,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -3114,7 +3114,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall( @@ -3162,7 +3162,7 @@ def recall( f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -3191,7 +3191,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -3227,7 +3227,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, list_name: str, function: str, index: Optional[int] = None) -> None: @@ -3265,7 +3265,7 @@ def storefunc(self, list_name: str, function: str, index: Optional[int] = None) f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3306,7 +3306,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3341,7 +3341,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def once(self) -> None: @@ -3364,7 +3364,7 @@ def once(self) -> None: f"{self._cmd_syntax}.once()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3398,7 +3398,7 @@ class SmuMeasure(BaseTSPCmd): - ``.userdelay``: The ``smu.measure.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = SmuMeasureAutozero(device, f"{self._cmd_syntax}.autozero") self._configlist = SmuMeasureConfiglist(device, f"{self._cmd_syntax}.configlist") @@ -3444,7 +3444,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -3479,7 +3479,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3511,7 +3511,7 @@ def autorangehigh(self) -> str: f"print({self._cmd_syntax}.autorangehigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangehigh.setter @@ -3546,7 +3546,7 @@ def autorangehigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangehigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangehigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3578,7 +3578,7 @@ def autorangelow(self) -> str: f"print({self._cmd_syntax}.autorangelow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangelow.setter @@ -3613,7 +3613,7 @@ def autorangelow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangelow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangelow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3645,7 +3645,7 @@ def autorangerebound(self) -> str: f"print({self._cmd_syntax}.autorangerebound)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangerebound.setter @@ -3680,7 +3680,7 @@ def autorangerebound(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangerebound = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangerebound`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3737,7 +3737,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3771,7 +3771,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3809,7 +3809,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -3850,7 +3850,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3891,7 +3891,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -3924,7 +3924,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3982,7 +3982,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4016,7 +4016,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4047,7 +4047,7 @@ def offsetcompensation(self) -> str: f"print({self._cmd_syntax}.offsetcompensation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offsetcompensation.setter @@ -4081,7 +4081,7 @@ def offsetcompensation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offsetcompensation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4111,7 +4111,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -4144,7 +4144,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4185,7 +4185,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -4218,7 +4218,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4249,7 +4249,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4283,7 +4283,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4340,7 +4340,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4372,7 +4372,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -4404,7 +4404,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4433,7 +4433,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4474,7 +4474,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4509,7 +4509,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4537,7 +4537,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4861,7 +4861,7 @@ class Smu(BaseTSPCmd): UNIT_WATT = "smu.UNIT_WATT" """str: Set unit of measure to power (only available for voltage or current measurements).""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smu") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smu") -> None: super().__init__(device, cmd_syntax) self._interlock = SmuInterlock(device, f"{self._cmd_syntax}.interlock") self._measure = SmuMeasure(device, f"{self._cmd_syntax}.measure") @@ -4897,7 +4897,7 @@ def breakdownprotection(self) -> str: f"print({self._cmd_syntax}.breakdownprotection)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.breakdownprotection`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.breakdownprotection`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @breakdownprotection.setter @@ -4933,7 +4933,7 @@ def breakdownprotection(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.breakdownprotection = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.breakdownprotection`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.breakdownprotection`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5034,7 +5034,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @terminals.setter @@ -5068,7 +5068,7 @@ def terminals(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.terminals = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -5091,5 +5091,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py index 76c9ef5b..e93c15df 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py index a6f171ca..41835ddc 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py @@ -43,7 +43,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods @@ -81,7 +81,9 @@ class Buffervar(BaseTSPCmd): - ``.units``: The ``bufferVar.units[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._dates: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.dates[{{key}}]", @@ -200,7 +202,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @capacity.setter @@ -237,7 +239,7 @@ def capacity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.capacity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -296,7 +298,7 @@ def endindex(self) -> str: f"print({self._cmd_syntax}.endindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -413,7 +415,7 @@ def fillmode(self) -> str: f"print({self._cmd_syntax}.fillmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillmode.setter @@ -451,7 +453,7 @@ def fillmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -541,7 +543,7 @@ def logstate(self) -> str: f"print({self._cmd_syntax}.logstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logstate.setter @@ -579,7 +581,7 @@ def logstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -611,7 +613,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -836,7 +838,7 @@ def startindex(self) -> str: f"print({self._cmd_syntax}.startindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -972,5 +974,5 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/display.py b/src/tm_devices/commands/gen_7kqm9p_smu/display.py index 3079b75e..d4389b04 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/display.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): @@ -94,7 +94,7 @@ def number( f"print({self._cmd_syntax}.number({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def option(self, dialog_title: str, button_title1: str, button_title2: str) -> str: @@ -129,7 +129,7 @@ def option(self, dialog_title: str, button_title1: str, button_title2: str) -> s f'"{button_title2}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_set: str, dialog_title: str) -> str: @@ -160,7 +160,7 @@ def prompt(self, button_set: str, dialog_title: str) -> str: f'print({self._cmd_syntax}.prompt({button_set}, "{dialog_title}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: @@ -199,7 +199,7 @@ def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: f"print({self._cmd_syntax}.string({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -348,7 +348,7 @@ class Display(BaseTSPCmd): TEXT2 = "display.TEXT2" """str: display text line for Line 2.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._input = DisplayInput(device, f"{self._cmd_syntax}.input") @@ -381,7 +381,7 @@ def activebuffer(self) -> str: f"print({self._cmd_syntax}.activebuffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @activebuffer.setter @@ -416,7 +416,7 @@ def activebuffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.activebuffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -458,7 +458,7 @@ def lightstate(self) -> str: f"print({self._cmd_syntax}.lightstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lightstate.setter @@ -491,7 +491,7 @@ def lightstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lightstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -527,7 +527,7 @@ def readingformat(self) -> str: f"print({self._cmd_syntax}.readingformat)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readingformat.setter @@ -566,7 +566,7 @@ def readingformat(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readingformat = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def changescreen(self, screen_name: str) -> None: @@ -591,7 +591,7 @@ def changescreen(self, screen_name: str) -> None: f"{self._cmd_syntax}.changescreen({screen_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -613,7 +613,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, prompt_id: str) -> None: @@ -639,7 +639,7 @@ def delete(self, prompt_id: str) -> None: f"{self._cmd_syntax}.delete({prompt_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_id: str, prompt_text: str) -> str: @@ -669,7 +669,7 @@ def prompt(self, button_id: str, prompt_text: str) -> str: f'print({self._cmd_syntax}.prompt({button_id}, "{prompt_text}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext( @@ -707,7 +707,7 @@ def settext( f"{self._cmd_syntax}.settext({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitevent(self, timeout: Optional[float] = None) -> str: @@ -738,5 +738,5 @@ def waitevent(self, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.waitevent({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py index 4d4d91f8..71d6aa8d 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -80,7 +80,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -117,7 +117,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -151,7 +151,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @state.setter @@ -188,7 +188,7 @@ def state(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.state = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -214,7 +214,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -253,7 +253,7 @@ class Tsplink(BaseTSPCmd): STATE_LOW = "tsplink.STATE_LOW" """str: Low state of the synchronization line.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._line: Dict[int, TsplinkLineItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkLineItem(device, f"{self._cmd_syntax}.line[{x}]") @@ -286,7 +286,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -319,7 +319,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -361,7 +361,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -391,7 +391,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -424,7 +424,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -452,7 +452,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initialize(self, expected_nodes: Optional[int] = None) -> str: @@ -481,7 +481,7 @@ def initialize(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.initialize({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -506,7 +506,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -531,5 +531,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py index acc1156d..cb29c0d9 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): @@ -75,7 +75,7 @@ def abortonconnect(self) -> str: f"print({self._cmd_syntax}.abortonconnect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @abortonconnect.setter @@ -109,7 +109,7 @@ def abortonconnect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.abortonconnect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def abort(self, connection_id: str) -> None: @@ -135,7 +135,7 @@ def abort(self, connection_id: str) -> None: f"{self._cmd_syntax}.abort({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rbtablecopy( @@ -183,7 +183,7 @@ def rbtablecopy( f"print({self._cmd_syntax}.rbtablecopy({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def runscript(self, connection_id: str, name: str, script: str) -> None: @@ -210,7 +210,7 @@ def runscript(self, connection_id: str, name: str, script: str) -> None: f'{self._cmd_syntax}.runscript({connection_id}, "{name}", "{script}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -247,7 +247,7 @@ class Tspnet(BaseTSPCmd): TERM_LFCR = "tspnet.TERM_LFCR" """str: Set the device line termination sequence to LFCR.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tspnet") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tspnet") -> None: super().__init__(device, cmd_syntax) self._tsp = TspnetTsp(device, f"{self._cmd_syntax}.tsp") @@ -279,7 +279,7 @@ def timeout(self) -> str: f"print({self._cmd_syntax}.timeout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timeout.setter @@ -313,7 +313,7 @@ def timeout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timeout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -350,7 +350,7 @@ def clear(self, connection_id: str) -> None: f"{self._cmd_syntax}.clear({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect( @@ -401,7 +401,7 @@ def connect( f"print({self._cmd_syntax}.connect({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self, connection_id: str) -> None: @@ -426,7 +426,7 @@ def disconnect(self, connection_id: str) -> None: f"{self._cmd_syntax}.disconnect({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def execute( @@ -467,7 +467,7 @@ def execute( f"print({self._cmd_syntax}.execute({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def idn(self, connection_id: str) -> str: @@ -495,7 +495,7 @@ def idn(self, connection_id: str) -> str: f"print({self._cmd_syntax}.idn({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, connection_id: str, format_string: Optional[str] = None) -> str: @@ -532,7 +532,7 @@ def read(self, connection_id: str, format_string: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readavailable(self, connection_id: str) -> str: @@ -560,7 +560,7 @@ def readavailable(self, connection_id: str) -> str: f"print({self._cmd_syntax}.readavailable({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -582,7 +582,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def termination(self, connection_id: str, term_sequence: Optional[str] = None) -> str: @@ -619,7 +619,7 @@ def termination(self, connection_id: str, term_sequence: Optional[str] = None) - f"print({self._cmd_syntax}.termination({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, connection_id: str, input_string: str) -> None: @@ -645,5 +645,5 @@ def write(self, connection_id: str, input_string: str) -> None: f'{self._cmd_syntax}.write({connection_id}, "{input_string}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7ryhce_smu/status.py b/src/tm_devices/commands/gen_7ryhce_smu/status.py index c3e03aad..58defb1f 100644 --- a/src/tm_devices/commands/gen_7ryhce_smu/status.py +++ b/src/tm_devices/commands/gen_7ryhce_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -266,7 +266,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -299,7 +299,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -335,7 +335,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -365,7 +365,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -397,7 +397,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -432,7 +432,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -464,7 +464,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -499,7 +499,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -541,7 +541,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -574,7 +574,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -610,7 +610,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -640,7 +640,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -672,7 +672,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -707,7 +707,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -739,7 +739,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -774,7 +774,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -816,7 +816,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -849,7 +849,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -885,7 +885,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -915,7 +915,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -947,7 +947,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -982,7 +982,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1014,7 +1014,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1049,7 +1049,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1091,7 +1091,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1124,7 +1124,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1160,7 +1160,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1190,7 +1190,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1222,7 +1222,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1257,7 +1257,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1289,7 +1289,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1324,7 +1324,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1366,7 +1366,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1399,7 +1399,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1435,7 +1435,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1465,7 +1465,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1497,7 +1497,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1532,7 +1532,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1564,7 +1564,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1599,7 +1599,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1700,7 +1700,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1731,7 +1731,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1765,7 +1765,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1793,7 +1793,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1824,7 +1824,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1858,7 +1858,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1889,7 +1889,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1923,7 +1923,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1975,7 +1975,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2007,7 +2007,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2042,7 +2042,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2071,7 +2071,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2103,7 +2103,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2138,7 +2138,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2170,7 +2170,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2205,7 +2205,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2255,7 +2255,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2287,7 +2287,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2322,7 +2322,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2351,7 +2351,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2383,7 +2383,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2418,7 +2418,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2450,7 +2450,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2485,7 +2485,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2532,7 +2532,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2577,7 +2577,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2613,7 +2613,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2652,7 +2652,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2685,7 +2685,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2721,7 +2721,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2760,7 +2760,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2796,7 +2796,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2835,7 +2835,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2862,7 +2862,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUB = "status.questionable.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits for the SMU B questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -2894,7 +2894,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2926,7 +2926,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2961,7 +2961,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2990,7 +2990,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3022,7 +3022,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3057,7 +3057,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3089,7 +3089,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3124,7 +3124,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3205,7 +3205,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3237,7 +3237,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3272,7 +3272,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3301,7 +3301,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3333,7 +3333,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3368,7 +3368,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3400,7 +3400,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3435,7 +3435,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3489,7 +3489,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3546,7 +3546,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3577,7 +3577,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3611,7 +3611,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3639,7 +3639,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3690,7 +3690,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3724,7 +3724,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3774,7 +3774,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3808,7 +3808,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3919,7 +3919,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -3954,7 +3954,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3985,7 +3985,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4019,7 +4019,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4047,7 +4047,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4078,7 +4078,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4112,7 +4112,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4143,7 +4143,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4177,7 +4177,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4249,7 +4249,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4281,7 +4281,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4316,7 +4316,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4345,7 +4345,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4377,7 +4377,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4412,7 +4412,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4444,7 +4444,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4479,7 +4479,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4529,7 +4529,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4561,7 +4561,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4596,7 +4596,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4625,7 +4625,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4656,7 +4656,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4690,7 +4690,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4721,7 +4721,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4755,7 +4755,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4812,7 +4812,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4843,7 +4843,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4877,7 +4877,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4905,7 +4905,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4936,7 +4936,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4970,7 +4970,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5001,7 +5001,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5035,7 +5035,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5087,7 +5087,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5119,7 +5119,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5154,7 +5154,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5183,7 +5183,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5214,7 +5214,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5248,7 +5248,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5279,7 +5279,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5313,7 +5313,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5356,7 +5356,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5389,7 +5389,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5425,7 +5425,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5455,7 +5455,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5488,7 +5488,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5524,7 +5524,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5557,7 +5557,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5593,7 +5593,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5610,7 +5610,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5643,7 +5643,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5676,7 +5676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5712,7 +5712,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5742,7 +5742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5775,7 +5775,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5811,7 +5811,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5844,7 +5844,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5880,7 +5880,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5975,7 +5975,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6007,7 +6007,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6042,7 +6042,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6071,7 +6071,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6103,7 +6103,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6138,7 +6138,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6170,7 +6170,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6205,7 +6205,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6233,7 +6233,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6265,7 +6265,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6297,7 +6297,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6332,7 +6332,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6361,7 +6361,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6393,7 +6393,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6428,7 +6428,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6460,7 +6460,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6495,7 +6495,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6605,7 +6605,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6638,7 +6638,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6674,7 +6674,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6703,7 +6703,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6735,7 +6735,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6770,7 +6770,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6802,7 +6802,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6837,7 +6837,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6865,7 +6865,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6897,7 +6897,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6929,7 +6929,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6964,7 +6964,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6993,7 +6993,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7025,7 +7025,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7060,7 +7060,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7092,7 +7092,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7127,7 +7127,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7187,7 +7187,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7237,7 +7237,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7269,7 +7269,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7304,7 +7304,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7333,7 +7333,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7365,7 +7365,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7400,7 +7400,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7432,7 +7432,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7467,7 +7467,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7518,7 +7518,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7573,7 +7573,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7609,7 +7609,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7648,7 +7648,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7681,7 +7681,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7717,7 +7717,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7756,7 +7756,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7792,7 +7792,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7831,7 +7831,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7939,7 +7939,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7971,7 +7971,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8006,7 +8006,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8035,7 +8035,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8067,7 +8067,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8102,7 +8102,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8134,7 +8134,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8169,7 +8169,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8211,7 +8211,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8243,7 +8243,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8275,7 +8275,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8310,7 +8310,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8339,7 +8339,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8371,7 +8371,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8406,7 +8406,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8438,7 +8438,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8473,7 +8473,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8548,7 +8548,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8581,7 +8581,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8617,7 +8617,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8647,7 +8647,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8680,7 +8680,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8716,7 +8716,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8749,7 +8749,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8785,7 +8785,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8813,7 +8813,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8846,7 +8846,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8879,7 +8879,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8915,7 +8915,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8945,7 +8945,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8978,7 +8978,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9014,7 +9014,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9047,7 +9047,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9083,7 +9083,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9150,7 +9150,7 @@ class StatusOperationInstrument(BaseTSPCmd): TRIGGER_TIMER = "status.operation.instrument.TRIGGER_TIMER" """str: B11. Set bit indicates one or more enabled bits for the operation status trigger timer summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9191,7 +9191,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9244,7 +9244,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9279,7 +9279,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9308,7 +9308,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9368,7 +9368,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9403,7 +9403,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9435,7 +9435,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9470,7 +9470,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9609,7 +9609,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9641,7 +9641,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9676,7 +9676,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9705,7 +9705,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9737,7 +9737,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9772,7 +9772,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9804,7 +9804,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9839,7 +9839,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9922,7 +9922,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -9976,7 +9976,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10007,7 +10007,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10041,7 +10041,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10069,7 +10069,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10155,7 +10155,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10189,7 +10189,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10220,7 +10220,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10254,7 +10254,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10402,7 +10402,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10434,7 +10434,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10469,7 +10469,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10498,7 +10498,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10530,7 +10530,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10565,7 +10565,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10597,7 +10597,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10632,7 +10632,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10682,7 +10682,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10714,7 +10714,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10749,7 +10749,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10778,7 +10778,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10810,7 +10810,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10845,7 +10845,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10877,7 +10877,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10912,7 +10912,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10961,7 +10961,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11011,7 +11011,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11048,7 +11048,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11088,7 +11088,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11122,7 +11122,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11159,7 +11159,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11199,7 +11199,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11236,7 +11236,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11276,7 +11276,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11303,7 +11303,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUB = "status.measurement.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits of the measurement event SMU B summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11336,7 +11336,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11369,7 +11369,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11405,7 +11405,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11435,7 +11435,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11468,7 +11468,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11504,7 +11504,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11537,7 +11537,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11573,7 +11573,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11653,7 +11653,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11685,7 +11685,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11720,7 +11720,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11749,7 +11749,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11781,7 +11781,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11816,7 +11816,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11848,7 +11848,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11883,7 +11883,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11941,7 +11941,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11973,7 +11973,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12008,7 +12008,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12037,7 +12037,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12069,7 +12069,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12104,7 +12104,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12136,7 +12136,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12171,7 +12171,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12243,7 +12243,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12305,7 +12305,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12353,7 +12353,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12387,7 +12387,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12415,7 +12415,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12466,7 +12466,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12500,7 +12500,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12531,7 +12531,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12565,7 +12565,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12682,7 +12682,7 @@ class Status(BaseTSPCmd): QUESTIONABLE_SUMMARY_BIT = "status.QUESTIONABLE_SUMMARY_BIT" """str: B3. Set summary bit indicates that an enabled questionable event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -12719,7 +12719,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12793,7 +12793,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -12827,7 +12827,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12855,7 +12855,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12971,7 +12971,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13005,7 +13005,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13033,7 +13033,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13167,5 +13167,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py index 44e3cf43..b1dd98d7 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -32,5 +32,5 @@ class Beeper(BaseTSPCmd): ON = "beeper.ON" """str: This command turns the beeper on.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "beeper") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "beeper") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py index bf37fcff..a448fa4f 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Buffervar(BaseTSPCmd): @@ -36,7 +36,9 @@ class Buffervar(BaseTSPCmd): - ``.statuses``: The ``bufferVar.statuses[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._statuses: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.statuses[{{key}}]", @@ -73,7 +75,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py index 487ca0be..b8426c78 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -29,5 +29,7 @@ class Dataqueue(BaseTSPCmd): CAPACITY = "dataqueue.CAPACITY" """str: The maximum number of entries that you can store in the data queue.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dataqueue") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dataqueue" + ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py index be763070..88c1fd0a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -34,7 +34,7 @@ class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "digio.trigger[N].EVENT_ID" """str: Selects the event that causes a trigger to be asserted on the digital output line as the edge detected on the specified digital I/O line.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -101,7 +101,7 @@ class Digio(BaseTSPCmd): TRIG_SYNCHRONOUSM = "digio.TRIG_SYNCHRONOUSM" """str: Sets the mode in which the trigger event detector and the output trigger generator operate on the specified trigger line to detect rising-edge triggers as input and assert a TTL-low pulse for output.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, DigioTriggerItem] = DefaultDictPassKeyToFactory( lambda x: DigioTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/display.py b/src/tm_devices/commands/gen_7s2p1p_smu/display.py index acc571e6..8381995f 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/display.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/display.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -82,7 +82,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -116,7 +116,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -155,7 +155,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -189,7 +189,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -202,7 +202,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -235,7 +235,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -269,7 +269,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -507,7 +507,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( lambda x: DisplaySmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -541,7 +541,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -574,7 +574,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -620,7 +620,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -646,7 +646,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -671,5 +671,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py index 60dd5930..9bc526cd 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Errorqueue(BaseTSPCmd): @@ -31,7 +31,7 @@ class Errorqueue(BaseTSPCmd): """ def __init__( - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "errorqueue" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "errorqueue" ) -> None: super().__init__(device, cmd_syntax) @@ -58,5 +58,5 @@ def next(self) -> str: f"print({self._cmd_syntax}.next())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py index 150a6a3a..752778a5 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -38,5 +38,5 @@ class Eventlog(BaseTSPCmd): ENABLE = "eventlog.ENABLE" """str: Enable the event log.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "eventlog") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "eventlog") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/format.py b/src/tm_devices/commands/gen_7s2p1p_smu/format.py index e20e4fc0..85534576 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/format.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/format.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -86,5 +86,5 @@ class Format(BaseTSPCmd): """str: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be least significant byte first.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "format") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "format") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py index 61ffab64..5d349c96 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -40,7 +40,7 @@ class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "lan.trigger[N].EVENT_ID" """str: Selects the event that causes a trigger to be asserted on the digital output line as the appropriate LXI trigger packet received on LAN trigger object N.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -83,7 +83,7 @@ def hostname(self) -> str: f"print({self._cmd_syntax}.hostname)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @hostname.setter @@ -117,7 +117,7 @@ def hostname(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.hostname = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -128,7 +128,7 @@ class LanConfig(BaseTSPCmd): - ``.dns``: The ``lan.config.dns`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dns = LanConfigDns(device, f"{self._cmd_syntax}.dns") @@ -212,7 +212,7 @@ class Lan(BaseTSPCmd): UDP = "lan.UDP" """str: Use UDP protocol.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "lan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "lan") -> None: super().__init__(device, cmd_syntax) self._config = LanConfig(device, f"{self._cmd_syntax}.config") self._trigger: Dict[int, LanTriggerItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py index 87fa4f5d..09872016 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -45,7 +45,9 @@ class Localnode(BaseTSPCmd): PASSWORD_WEB = "localnode.PASSWORD_WEB" """str: Use passwords on the web interface only.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -73,5 +75,5 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py index fb65e6e5..7f6a9c86 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Serial(BaseTSPCmd): @@ -34,7 +34,7 @@ class Serial(BaseTSPCmd): - ``.parity``: The ``serial.parity`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "serial") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "serial") -> None: super().__init__(device, cmd_syntax) @property @@ -64,7 +64,7 @@ def baud(self) -> str: f"print({self._cmd_syntax}.baud)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @baud.setter @@ -97,7 +97,7 @@ def baud(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.baud = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -130,7 +130,7 @@ def databits(self) -> str: f"print({self._cmd_syntax}.databits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @databits.setter @@ -166,7 +166,7 @@ def databits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.databits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -196,7 +196,7 @@ def parity(self) -> str: f"print({self._cmd_syntax}.parity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @parity.setter @@ -229,5 +229,5 @@ def parity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.parity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py index 13c023df..36c3efda 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py @@ -128,7 +128,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -177,7 +177,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -211,7 +211,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -242,7 +242,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -276,7 +276,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -307,7 +307,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -341,7 +341,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -373,7 +373,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -408,7 +408,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -440,7 +440,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -475,7 +475,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -502,7 +502,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -529,7 +529,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -554,7 +554,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -579,7 +579,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -608,7 +608,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -637,7 +637,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -659,7 +659,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -705,7 +705,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -739,7 +739,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -771,7 +771,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -806,7 +806,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -832,7 +832,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -859,7 +859,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -885,7 +885,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -911,7 +911,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -937,7 +937,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -959,7 +959,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -998,7 +998,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1032,7 +1032,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1073,7 +1073,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1107,7 +1107,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1139,7 +1139,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1174,7 +1174,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1196,7 +1196,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1237,7 +1237,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1271,7 +1271,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1303,7 +1303,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1338,7 +1338,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1360,7 +1360,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1403,7 +1403,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1472,7 +1472,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1506,7 +1506,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1536,7 +1536,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1569,7 +1569,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1647,7 +1647,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1711,7 +1711,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1746,7 +1746,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1778,7 +1778,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1813,7 +1813,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1841,7 +1841,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1871,7 +1871,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1904,7 +1904,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1934,7 +1934,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1967,7 +1967,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1997,7 +1997,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -2030,7 +2030,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2060,7 +2060,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2093,7 +2093,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2123,7 +2123,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2156,7 +2156,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2186,7 +2186,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2219,7 +2219,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2249,7 +2249,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2282,7 +2282,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2312,7 +2312,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2345,7 +2345,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2377,7 +2377,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2412,7 +2412,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2444,7 +2444,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2479,7 +2479,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2511,7 +2511,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2546,7 +2546,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2578,7 +2578,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2613,7 +2613,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2645,7 +2645,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2680,7 +2680,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2711,7 +2711,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2745,7 +2745,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2775,7 +2775,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -2808,7 +2808,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2838,7 +2838,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -2871,7 +2871,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2901,7 +2901,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -2934,7 +2934,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2965,7 +2965,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -2999,7 +2999,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3029,7 +3029,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3062,7 +3062,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3103,7 +3103,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3144,7 +3144,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3193,7 +3193,7 @@ def calibratebiasi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratebiasi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratebiasi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3233,7 +3233,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3275,7 +3275,7 @@ def sensev(self) -> str: f"print({self._cmd_syntax}.sensev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sensev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sensev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sensev.setter @@ -3310,7 +3310,7 @@ def sensev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sensev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sensev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sensev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3342,7 +3342,7 @@ def sourcev(self) -> str: f"print({self._cmd_syntax}.sourcev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sourcev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sourcev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sourcev.setter @@ -3377,7 +3377,7 @@ def sourcev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sourcev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sourcev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sourcev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3405,7 +3405,7 @@ def tripped(self) -> str: f"print({self._cmd_syntax}.tripped)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tripped`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3447,7 +3447,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -3481,7 +3481,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3512,7 +3512,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -3546,7 +3546,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3587,7 +3587,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3628,7 +3628,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3642,7 +3642,7 @@ class SmuxItemPulser(BaseTSPCmd): - ``.source``: The ``smuX.pulser.source`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._measure = SmuxItemPulserMeasure(device, f"{self._cmd_syntax}.measure") self._protect = SmuxItemPulserProtect(device, f"{self._cmd_syntax}.protect") @@ -3675,7 +3675,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3708,7 +3708,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3787,7 +3787,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3821,7 +3821,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3852,7 +3852,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3886,7 +3886,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3917,7 +3917,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3951,7 +3951,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3982,7 +3982,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -4016,7 +4016,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4048,7 +4048,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -4083,7 +4083,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4114,7 +4114,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -4148,7 +4148,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4180,7 +4180,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -4215,7 +4215,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4246,7 +4246,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -4280,7 +4280,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4322,7 +4322,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4357,7 +4357,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4388,7 +4388,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4422,7 +4422,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4454,7 +4454,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4489,7 +4489,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4527,7 +4527,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -4560,7 +4560,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4594,7 +4594,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4625,7 +4625,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4659,7 +4659,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4691,7 +4691,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4726,7 +4726,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4756,7 +4756,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4789,7 +4789,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4819,7 +4819,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4852,7 +4852,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4884,7 +4884,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4919,7 +4919,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4963,7 +4963,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4999,7 +4999,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5030,7 +5030,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -5064,7 +5064,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5096,7 +5096,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -5131,7 +5131,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5163,7 +5163,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -5198,7 +5198,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5229,7 +5229,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -5263,7 +5263,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5295,7 +5295,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -5330,7 +5330,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5362,7 +5362,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -5397,7 +5397,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5442,7 +5442,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -5482,7 +5482,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -5511,7 +5511,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5540,7 +5540,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5569,7 +5569,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5610,7 +5610,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5651,7 +5651,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5677,7 +5677,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5704,7 +5704,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5729,7 +5729,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5755,7 +5755,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5780,7 +5780,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5819,7 +5819,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5853,7 +5853,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5896,7 +5896,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5929,7 +5929,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5960,7 +5960,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5994,7 +5994,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -6027,7 +6027,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -6060,7 +6060,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -6082,7 +6082,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -6107,7 +6107,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6155,7 +6155,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -6189,7 +6189,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6219,7 +6219,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -6252,7 +6252,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6282,7 +6282,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -6315,7 +6315,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6364,7 +6364,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6395,7 +6395,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -6429,7 +6429,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6457,7 +6457,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -6479,7 +6479,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -6506,7 +6506,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -6528,7 +6528,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -6553,7 +6553,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6593,7 +6593,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6618,7 +6618,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6822,7 +6822,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -7055,7 +7055,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7083,7 +7083,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7125,7 +7125,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -7158,7 +7158,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7237,7 +7237,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -7265,7 +7265,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -7294,7 +7294,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -7323,7 +7323,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -7352,7 +7352,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -7381,7 +7381,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -7410,7 +7410,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7433,7 +7433,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -7459,5 +7459,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/status.py b/src/tm_devices/commands/gen_7s2p1p_smu/status.py index 8f33f8b6..e11a1185 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/status.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/status.py @@ -121,7 +121,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -569,7 +569,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -601,7 +601,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -636,7 +636,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -665,7 +665,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -697,7 +697,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -732,7 +732,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -764,7 +764,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -799,7 +799,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -846,7 +846,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -878,7 +878,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -913,7 +913,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -942,7 +942,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -974,7 +974,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1009,7 +1009,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1041,7 +1041,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1076,7 +1076,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1123,7 +1123,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1164,7 +1164,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1196,7 +1196,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1231,7 +1231,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1260,7 +1260,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1292,7 +1292,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1327,7 +1327,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1359,7 +1359,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1394,7 +1394,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1417,7 +1417,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUA = "status.questionable.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits for the SMU A questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -1449,7 +1449,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1481,7 +1481,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1516,7 +1516,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1545,7 +1545,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1577,7 +1577,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1612,7 +1612,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1644,7 +1644,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1679,7 +1679,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1756,7 +1756,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1788,7 +1788,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1823,7 +1823,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1852,7 +1852,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1884,7 +1884,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1919,7 +1919,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1951,7 +1951,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1986,7 +1986,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2040,7 +2040,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -2094,7 +2094,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2125,7 +2125,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2159,7 +2159,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2187,7 +2187,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2236,7 +2236,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2270,7 +2270,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2318,7 +2318,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2352,7 +2352,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2503,7 +2503,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2535,7 +2535,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2570,7 +2570,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2599,7 +2599,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2631,7 +2631,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2666,7 +2666,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2698,7 +2698,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2733,7 +2733,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2780,7 +2780,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2812,7 +2812,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2847,7 +2847,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2876,7 +2876,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2907,7 +2907,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2941,7 +2941,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2972,7 +2972,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3006,7 +3006,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3076,7 +3076,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3108,7 +3108,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3143,7 +3143,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3172,7 +3172,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3203,7 +3203,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3237,7 +3237,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3268,7 +3268,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3302,7 +3302,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3346,7 +3346,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -3427,7 +3427,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -3510,7 +3510,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -3561,7 +3561,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -3613,7 +3613,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -3726,7 +3726,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -3841,7 +3841,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -3940,7 +3940,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -3981,7 +3981,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4029,7 +4029,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4064,7 +4064,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4093,7 +4093,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4148,7 +4148,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4183,7 +4183,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4215,7 +4215,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4250,7 +4250,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4369,7 +4369,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4401,7 +4401,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4436,7 +4436,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4465,7 +4465,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4497,7 +4497,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4532,7 +4532,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4564,7 +4564,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4599,7 +4599,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4677,7 +4677,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -4892,7 +4892,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4924,7 +4924,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4959,7 +4959,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4988,7 +4988,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5020,7 +5020,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5055,7 +5055,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5087,7 +5087,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5122,7 +5122,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5169,7 +5169,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5201,7 +5201,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5236,7 +5236,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5265,7 +5265,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5297,7 +5297,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5332,7 +5332,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5364,7 +5364,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5399,7 +5399,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5441,7 +5441,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5474,7 +5474,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5510,7 +5510,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5540,7 +5540,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5573,7 +5573,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5609,7 +5609,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5642,7 +5642,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5678,7 +5678,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5727,7 +5727,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -5773,7 +5773,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5806,7 +5806,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5842,7 +5842,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5872,7 +5872,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5905,7 +5905,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5941,7 +5941,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5974,7 +5974,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6010,7 +6010,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6033,7 +6033,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUA = "status.measurement.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits of the measurement event SMU A summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -6066,7 +6066,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6099,7 +6099,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6135,7 +6135,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6165,7 +6165,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6198,7 +6198,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6234,7 +6234,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6267,7 +6267,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6303,7 +6303,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6380,7 +6380,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6412,7 +6412,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6447,7 +6447,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6476,7 +6476,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6508,7 +6508,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6543,7 +6543,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6575,7 +6575,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6610,7 +6610,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6661,7 +6661,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6693,7 +6693,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6728,7 +6728,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6757,7 +6757,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6789,7 +6789,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6824,7 +6824,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6856,7 +6856,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6891,7 +6891,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6964,7 +6964,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -7024,7 +7024,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7071,7 +7071,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7105,7 +7105,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7133,7 +7133,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7182,7 +7182,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7216,7 +7216,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7260,7 +7260,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7294,7 +7294,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7411,7 +7411,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -7575,7 +7575,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -7609,7 +7609,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7637,7 +7637,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py index dc111b68..14df2859 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -33,7 +33,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.timer[N].EVENT_ID" """str: The trigger timer event number (1 to 8).""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -52,7 +52,7 @@ class TriggerGeneratorItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.generator[N].EVENT_ID" """str: The trigger event generated by trigger event generator 1.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -72,7 +72,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.blender[N].EVENT_ID" """str: Selects the event that causes a trigger to be asserted on the digital output line after a collection of events is detected.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -96,7 +96,7 @@ class Trigger(BaseTSPCmd): EVENT_ID = "trigger.EVENT_ID" r"""str: Selects the event that causes a trigger to be asserted on the digital output line as a \*TRG command received on the remote interface.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py index 93aa7198..130758f6 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py @@ -20,7 +20,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -35,7 +35,7 @@ class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "tsplink.trigger[N].EVENT_ID" """str: Selects the event that causes a trigger to be asserted on the digital output line as the edge detected on the specified TSP-Link line.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -95,7 +95,7 @@ class Tsplink(BaseTSPCmd): TRIG_SYNCHRONOUSM = "tsplink.TRIG_SYNCHRONOUSM" """str: Detects rising-edge triggers as an input. Asserts a TTL-low pulse for output.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, TsplinkTriggerItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py index e46cc2f8..305c885a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -38,5 +38,5 @@ class Tspnet(BaseTSPCmd): TERM_LFCR = "tspnet.TERM_LFCR" """str: Set the device line termination sequence to LFCR.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tspnet") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tspnet") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_7s43m8_smu/status.py b/src/tm_devices/commands/gen_7s43m8_smu/status.py index 729a1212..b208ae20 100644 --- a/src/tm_devices/commands/gen_7s43m8_smu/status.py +++ b/src/tm_devices/commands/gen_7s43m8_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -301,7 +301,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -334,7 +334,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -370,7 +370,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -400,7 +400,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -432,7 +432,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -467,7 +467,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -499,7 +499,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -534,7 +534,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -643,7 +643,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -676,7 +676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -712,7 +712,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -742,7 +742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -774,7 +774,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -809,7 +809,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -841,7 +841,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -876,7 +876,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -985,7 +985,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1018,7 +1018,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1054,7 +1054,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1084,7 +1084,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1151,7 +1151,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1183,7 +1183,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1218,7 +1218,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1360,7 +1360,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1396,7 +1396,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1426,7 +1426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1458,7 +1458,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1493,7 +1493,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1525,7 +1525,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1560,7 +1560,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1669,7 +1669,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1738,7 +1738,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1768,7 +1768,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1800,7 +1800,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1835,7 +1835,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1867,7 +1867,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1902,7 +1902,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2003,7 +2003,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2034,7 +2034,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2068,7 +2068,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2096,7 +2096,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2127,7 +2127,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2161,7 +2161,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2192,7 +2192,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2226,7 +2226,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2278,7 +2278,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2310,7 +2310,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2345,7 +2345,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2374,7 +2374,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2406,7 +2406,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2441,7 +2441,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2473,7 +2473,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2508,7 +2508,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2558,7 +2558,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2590,7 +2590,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2625,7 +2625,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2654,7 +2654,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2686,7 +2686,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2721,7 +2721,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2753,7 +2753,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2788,7 +2788,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2835,7 +2835,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2880,7 +2880,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2916,7 +2916,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2955,7 +2955,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2988,7 +2988,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3024,7 +3024,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3063,7 +3063,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3099,7 +3099,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3138,7 +3138,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3165,7 +3165,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUB = "status.questionable.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits for the SMU B questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3197,7 +3197,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3229,7 +3229,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3264,7 +3264,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3293,7 +3293,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3325,7 +3325,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3360,7 +3360,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3392,7 +3392,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3427,7 +3427,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3508,7 +3508,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3540,7 +3540,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3575,7 +3575,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3604,7 +3604,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3636,7 +3636,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3671,7 +3671,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3703,7 +3703,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3738,7 +3738,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3792,7 +3792,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3849,7 +3849,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3880,7 +3880,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3914,7 +3914,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3942,7 +3942,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3993,7 +3993,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4027,7 +4027,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4077,7 +4077,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4111,7 +4111,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4222,7 +4222,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4257,7 +4257,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4288,7 +4288,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4322,7 +4322,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4350,7 +4350,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4381,7 +4381,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4415,7 +4415,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4446,7 +4446,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4480,7 +4480,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4564,7 +4564,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4596,7 +4596,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4631,7 +4631,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4660,7 +4660,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4692,7 +4692,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4727,7 +4727,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4759,7 +4759,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4794,7 +4794,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4844,7 +4844,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4876,7 +4876,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4911,7 +4911,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4940,7 +4940,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4971,7 +4971,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5005,7 +5005,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5036,7 +5036,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5070,7 +5070,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5127,7 +5127,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5158,7 +5158,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5192,7 +5192,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5220,7 +5220,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5251,7 +5251,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5285,7 +5285,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5316,7 +5316,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5350,7 +5350,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5402,7 +5402,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5434,7 +5434,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5469,7 +5469,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5498,7 +5498,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5529,7 +5529,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5563,7 +5563,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5594,7 +5594,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5628,7 +5628,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5686,7 +5686,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5719,7 +5719,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5755,7 +5755,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5785,7 +5785,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5818,7 +5818,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5854,7 +5854,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5887,7 +5887,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5923,7 +5923,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5951,7 +5951,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5984,7 +5984,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6017,7 +6017,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6053,7 +6053,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6083,7 +6083,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6116,7 +6116,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6152,7 +6152,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6185,7 +6185,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6221,7 +6221,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6324,7 +6324,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6356,7 +6356,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6391,7 +6391,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6420,7 +6420,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6452,7 +6452,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6487,7 +6487,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6519,7 +6519,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6554,7 +6554,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6582,7 +6582,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6614,7 +6614,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6646,7 +6646,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6681,7 +6681,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6710,7 +6710,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6742,7 +6742,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6777,7 +6777,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6809,7 +6809,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6844,7 +6844,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6954,7 +6954,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6987,7 +6987,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7023,7 +7023,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7052,7 +7052,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7084,7 +7084,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7119,7 +7119,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7151,7 +7151,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7186,7 +7186,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7214,7 +7214,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7246,7 +7246,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7278,7 +7278,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7313,7 +7313,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7342,7 +7342,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7374,7 +7374,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7409,7 +7409,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7441,7 +7441,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7476,7 +7476,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7536,7 +7536,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7586,7 +7586,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7618,7 +7618,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7653,7 +7653,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7682,7 +7682,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7714,7 +7714,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7749,7 +7749,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7781,7 +7781,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7816,7 +7816,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7867,7 +7867,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7922,7 +7922,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7958,7 +7958,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7997,7 +7997,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8030,7 +8030,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8066,7 +8066,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8105,7 +8105,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8141,7 +8141,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8180,7 +8180,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8288,7 +8288,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8320,7 +8320,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8355,7 +8355,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8384,7 +8384,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8416,7 +8416,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8451,7 +8451,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8483,7 +8483,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8518,7 +8518,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8560,7 +8560,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8592,7 +8592,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8624,7 +8624,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8659,7 +8659,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8688,7 +8688,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8720,7 +8720,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8755,7 +8755,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8787,7 +8787,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8822,7 +8822,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8956,7 +8956,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8989,7 +8989,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9025,7 +9025,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9055,7 +9055,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9088,7 +9088,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9124,7 +9124,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9157,7 +9157,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9193,7 +9193,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9221,7 +9221,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9254,7 +9254,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9287,7 +9287,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9323,7 +9323,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9353,7 +9353,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9386,7 +9386,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9422,7 +9422,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9455,7 +9455,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9491,7 +9491,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9600,7 +9600,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9641,7 +9641,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9694,7 +9694,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9729,7 +9729,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9758,7 +9758,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9818,7 +9818,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9853,7 +9853,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9885,7 +9885,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9920,7 +9920,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10065,7 +10065,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10097,7 +10097,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10132,7 +10132,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10161,7 +10161,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10193,7 +10193,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10228,7 +10228,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10260,7 +10260,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10295,7 +10295,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10378,7 +10378,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10432,7 +10432,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10463,7 +10463,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10497,7 +10497,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10525,7 +10525,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10617,7 +10617,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10651,7 +10651,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10682,7 +10682,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10716,7 +10716,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10870,7 +10870,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10902,7 +10902,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10937,7 +10937,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10966,7 +10966,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10998,7 +10998,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11033,7 +11033,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11065,7 +11065,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11100,7 +11100,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11150,7 +11150,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11182,7 +11182,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11217,7 +11217,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11246,7 +11246,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11278,7 +11278,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11313,7 +11313,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11345,7 +11345,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11380,7 +11380,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11429,7 +11429,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11479,7 +11479,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11516,7 +11516,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11556,7 +11556,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11590,7 +11590,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11627,7 +11627,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11667,7 +11667,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11704,7 +11704,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11744,7 +11744,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11771,7 +11771,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUB = "status.measurement.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits of the measurement event SMU B summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11804,7 +11804,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11837,7 +11837,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11873,7 +11873,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11903,7 +11903,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11936,7 +11936,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11972,7 +11972,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12005,7 +12005,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12041,7 +12041,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12121,7 +12121,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12153,7 +12153,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12188,7 +12188,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12217,7 +12217,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12249,7 +12249,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12284,7 +12284,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12316,7 +12316,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12351,7 +12351,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12409,7 +12409,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12441,7 +12441,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12476,7 +12476,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12505,7 +12505,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12537,7 +12537,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12572,7 +12572,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12604,7 +12604,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12639,7 +12639,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12711,7 +12711,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12773,7 +12773,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12821,7 +12821,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12855,7 +12855,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12883,7 +12883,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12934,7 +12934,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12968,7 +12968,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12999,7 +12999,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -13033,7 +13033,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13157,7 +13157,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13194,7 +13194,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13268,7 +13268,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13302,7 +13302,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13330,7 +13330,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13446,7 +13446,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13480,7 +13480,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13508,7 +13508,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13796,5 +13796,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_7s6wr5_smu/status.py b/src/tm_devices/commands/gen_7s6wr5_smu/status.py index c915e6f5..b445a726 100644 --- a/src/tm_devices/commands/gen_7s6wr5_smu/status.py +++ b/src/tm_devices/commands/gen_7s6wr5_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -301,7 +301,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -334,7 +334,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -370,7 +370,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -400,7 +400,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -432,7 +432,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -467,7 +467,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -499,7 +499,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -534,7 +534,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -643,7 +643,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -676,7 +676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -712,7 +712,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -742,7 +742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -774,7 +774,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -809,7 +809,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -841,7 +841,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -876,7 +876,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -985,7 +985,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1018,7 +1018,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1054,7 +1054,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1084,7 +1084,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1151,7 +1151,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1183,7 +1183,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1218,7 +1218,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1360,7 +1360,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1396,7 +1396,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1426,7 +1426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1458,7 +1458,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1493,7 +1493,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1525,7 +1525,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1560,7 +1560,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1669,7 +1669,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1738,7 +1738,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1768,7 +1768,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1800,7 +1800,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1835,7 +1835,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1867,7 +1867,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1902,7 +1902,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2003,7 +2003,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2034,7 +2034,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2068,7 +2068,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2096,7 +2096,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2127,7 +2127,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2161,7 +2161,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2192,7 +2192,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2226,7 +2226,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2267,7 +2267,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2299,7 +2299,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2334,7 +2334,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2363,7 +2363,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2395,7 +2395,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2430,7 +2430,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2462,7 +2462,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2497,7 +2497,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2538,7 +2538,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2570,7 +2570,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2605,7 +2605,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2634,7 +2634,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2666,7 +2666,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2701,7 +2701,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2733,7 +2733,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2768,7 +2768,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2815,7 +2815,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2860,7 +2860,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2896,7 +2896,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2935,7 +2935,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2968,7 +2968,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3004,7 +3004,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3043,7 +3043,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3079,7 +3079,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3118,7 +3118,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3141,7 +3141,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUA = "status.questionable.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits for the SMU A questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3173,7 +3173,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3205,7 +3205,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3240,7 +3240,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3269,7 +3269,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3301,7 +3301,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3336,7 +3336,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3368,7 +3368,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3403,7 +3403,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3480,7 +3480,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3512,7 +3512,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3547,7 +3547,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3576,7 +3576,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3608,7 +3608,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3643,7 +3643,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3675,7 +3675,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3710,7 +3710,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3740,7 +3740,7 @@ class StatusQuestionable(BaseTSPCmd): CALIBRATION = "status.questionable.CALIBRATION" """str: B8. An enabled bit in the questionable status calibration summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3794,7 +3794,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3825,7 +3825,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3859,7 +3859,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3887,7 +3887,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3936,7 +3936,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3970,7 +3970,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4014,7 +4014,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4048,7 +4048,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4105,7 +4105,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4140,7 +4140,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4171,7 +4171,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4205,7 +4205,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4233,7 +4233,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4264,7 +4264,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4298,7 +4298,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4329,7 +4329,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4363,7 +4363,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4443,7 +4443,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4475,7 +4475,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4510,7 +4510,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4539,7 +4539,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4571,7 +4571,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4606,7 +4606,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4638,7 +4638,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4673,7 +4673,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4720,7 +4720,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4752,7 +4752,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4787,7 +4787,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4816,7 +4816,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4847,7 +4847,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4881,7 +4881,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4912,7 +4912,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4946,7 +4946,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5003,7 +5003,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5034,7 +5034,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5068,7 +5068,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5096,7 +5096,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5127,7 +5127,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5161,7 +5161,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5192,7 +5192,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5226,7 +5226,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5274,7 +5274,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5306,7 +5306,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5341,7 +5341,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5370,7 +5370,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5401,7 +5401,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5435,7 +5435,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5466,7 +5466,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5500,7 +5500,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5558,7 +5558,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5591,7 +5591,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5627,7 +5627,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5657,7 +5657,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5690,7 +5690,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5726,7 +5726,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5759,7 +5759,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5795,7 +5795,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5823,7 +5823,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5856,7 +5856,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5889,7 +5889,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5925,7 +5925,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5955,7 +5955,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5988,7 +5988,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6024,7 +6024,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6057,7 +6057,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6093,7 +6093,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6196,7 +6196,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6228,7 +6228,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6263,7 +6263,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6292,7 +6292,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6324,7 +6324,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6359,7 +6359,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6391,7 +6391,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6426,7 +6426,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6454,7 +6454,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6486,7 +6486,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6518,7 +6518,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6553,7 +6553,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6582,7 +6582,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6614,7 +6614,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6649,7 +6649,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6681,7 +6681,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6716,7 +6716,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6826,7 +6826,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6859,7 +6859,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6895,7 +6895,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6924,7 +6924,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6956,7 +6956,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6991,7 +6991,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7023,7 +7023,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7058,7 +7058,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7086,7 +7086,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7118,7 +7118,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7150,7 +7150,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7185,7 +7185,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7214,7 +7214,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7246,7 +7246,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7281,7 +7281,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7313,7 +7313,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7348,7 +7348,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7408,7 +7408,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7458,7 +7458,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7490,7 +7490,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7525,7 +7525,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7554,7 +7554,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7586,7 +7586,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7621,7 +7621,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7653,7 +7653,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7688,7 +7688,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7739,7 +7739,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7794,7 +7794,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7830,7 +7830,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7869,7 +7869,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7902,7 +7902,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7938,7 +7938,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7977,7 +7977,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8013,7 +8013,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8052,7 +8052,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8160,7 +8160,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8192,7 +8192,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8227,7 +8227,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8256,7 +8256,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8288,7 +8288,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8323,7 +8323,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8355,7 +8355,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8390,7 +8390,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8432,7 +8432,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8464,7 +8464,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8496,7 +8496,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8531,7 +8531,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8560,7 +8560,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8592,7 +8592,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8627,7 +8627,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8659,7 +8659,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8694,7 +8694,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8828,7 +8828,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8861,7 +8861,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8897,7 +8897,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8927,7 +8927,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8960,7 +8960,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8996,7 +8996,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9029,7 +9029,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9065,7 +9065,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9093,7 +9093,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9126,7 +9126,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9159,7 +9159,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9195,7 +9195,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9225,7 +9225,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9258,7 +9258,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9294,7 +9294,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9327,7 +9327,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9363,7 +9363,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9468,7 +9468,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9509,7 +9509,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9562,7 +9562,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9597,7 +9597,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9626,7 +9626,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9686,7 +9686,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9721,7 +9721,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9753,7 +9753,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9788,7 +9788,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9930,7 +9930,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9962,7 +9962,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9997,7 +9997,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10026,7 +10026,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10058,7 +10058,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10093,7 +10093,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10125,7 +10125,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10160,7 +10160,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10243,7 +10243,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10296,7 +10296,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10327,7 +10327,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10361,7 +10361,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10389,7 +10389,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10477,7 +10477,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10511,7 +10511,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10542,7 +10542,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10576,7 +10576,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10706,7 +10706,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10738,7 +10738,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10773,7 +10773,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10802,7 +10802,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10834,7 +10834,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10869,7 +10869,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10901,7 +10901,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10936,7 +10936,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10983,7 +10983,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11015,7 +11015,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11050,7 +11050,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11079,7 +11079,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11111,7 +11111,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11146,7 +11146,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11178,7 +11178,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11213,7 +11213,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11262,7 +11262,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11312,7 +11312,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11349,7 +11349,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11389,7 +11389,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11423,7 +11423,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11460,7 +11460,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11500,7 +11500,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11537,7 +11537,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11577,7 +11577,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11600,7 +11600,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUA = "status.measurement.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits of the measurement event SMU A summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11633,7 +11633,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11666,7 +11666,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11702,7 +11702,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11732,7 +11732,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11765,7 +11765,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11801,7 +11801,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11834,7 +11834,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11870,7 +11870,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11947,7 +11947,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11979,7 +11979,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12014,7 +12014,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12043,7 +12043,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12075,7 +12075,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12110,7 +12110,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12142,7 +12142,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12177,7 +12177,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12228,7 +12228,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12260,7 +12260,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12295,7 +12295,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12324,7 +12324,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12356,7 +12356,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12391,7 +12391,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12423,7 +12423,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12458,7 +12458,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12530,7 +12530,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12589,7 +12589,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12636,7 +12636,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12670,7 +12670,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12698,7 +12698,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12747,7 +12747,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12781,7 +12781,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12812,7 +12812,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12846,7 +12846,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12967,7 +12967,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13004,7 +13004,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13078,7 +13078,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13112,7 +13112,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13140,7 +13140,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13244,7 +13244,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13278,7 +13278,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13306,7 +13306,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13594,5 +13594,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/display.py b/src/tm_devices/commands/gen_8ojdkz_smu/display.py index 5fa7ef91..0992a62d 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/display.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): @@ -91,7 +91,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -113,7 +113,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -141,7 +141,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -180,7 +180,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -214,7 +214,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -262,7 +262,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -301,7 +301,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -318,7 +318,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -356,7 +356,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -395,7 +395,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -463,7 +463,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -489,7 +489,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -760,7 +760,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( @@ -811,7 +811,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -850,7 +850,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -881,7 +881,7 @@ def numpad(self) -> str: f"print({self._cmd_syntax}.numpad)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @numpad.setter @@ -915,7 +915,7 @@ def numpad(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.numpad = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -945,7 +945,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -978,7 +978,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1030,7 +1030,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -1055,7 +1055,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -1081,7 +1081,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -1106,7 +1106,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -1157,7 +1157,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -1206,7 +1206,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -1235,7 +1235,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt( @@ -1292,7 +1292,7 @@ def prompt( f"print({self._cmd_syntax}.prompt({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -1318,7 +1318,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -1355,7 +1355,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext(self, text: str) -> None: @@ -1380,7 +1380,7 @@ def settext(self, text: str) -> None: f'{self._cmd_syntax}.settext("{text}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -1405,5 +1405,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/node.py b/src/tm_devices/commands/gen_8ojdkz_smu/node.py index 335444a1..fc877b19 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/node.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -37,7 +37,7 @@ class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.setglobal()``: The ``node[N].setglobal()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "node[N]") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "node[N]") -> None: super().__init__(device, cmd_syntax) def execute(self, script_code: str) -> None: @@ -62,7 +62,7 @@ def execute(self, script_code: str) -> None: f'{self._cmd_syntax}.execute("{script_code}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getglobal(self, name: str) -> str: @@ -90,7 +90,7 @@ def getglobal(self, name: str) -> str: f'print({self._cmd_syntax}.getglobal("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setglobal(self, name: str, value: str) -> None: @@ -116,5 +116,5 @@ def setglobal(self, name: str, value: str) -> None: f'{self._cmd_syntax}.setglobal("{name}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py index dba2bb0b..85c63d5f 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py @@ -117,7 +117,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -173,7 +173,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -211,7 +211,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -246,7 +246,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -284,7 +284,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -319,7 +319,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -357,7 +357,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -393,7 +393,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -432,7 +432,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -459,7 +459,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -486,7 +486,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -511,7 +511,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -536,7 +536,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -565,7 +565,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -594,7 +594,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -620,7 +620,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -674,7 +674,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -712,7 +712,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -748,7 +748,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -787,7 +787,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -813,7 +813,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -840,7 +840,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -866,7 +866,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -892,7 +892,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -918,7 +918,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -944,7 +944,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -991,7 +991,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1029,7 +1029,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1078,7 +1078,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1116,7 +1116,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1152,7 +1152,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1191,7 +1191,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1217,7 +1217,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1266,7 +1266,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1304,7 +1304,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1340,7 +1340,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1379,7 +1379,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1405,7 +1405,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1452,7 +1452,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1529,7 +1529,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1567,7 +1567,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1600,7 +1600,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1636,7 +1636,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1733,7 +1733,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1805,7 +1805,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1844,7 +1844,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1880,7 +1880,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1919,7 +1919,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1951,7 +1951,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1985,7 +1985,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -2022,7 +2022,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2056,7 +2056,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2093,7 +2093,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2127,7 +2127,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -2164,7 +2164,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2198,7 +2198,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2235,7 +2235,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2269,7 +2269,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2306,7 +2306,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2340,7 +2340,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2377,7 +2377,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2411,7 +2411,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2448,7 +2448,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2482,7 +2482,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2519,7 +2519,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2555,7 +2555,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2594,7 +2594,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2630,7 +2630,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2669,7 +2669,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2704,7 +2704,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2742,7 +2742,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2778,7 +2778,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2817,7 +2817,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2853,7 +2853,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2892,7 +2892,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2927,7 +2927,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2965,7 +2965,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2999,7 +2999,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -3036,7 +3036,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3071,7 +3071,7 @@ def outputenableaction(self) -> str: f"print({self._cmd_syntax}.outputenableaction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @outputenableaction.setter @@ -3109,7 +3109,7 @@ def outputenableaction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.outputenableaction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3143,7 +3143,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -3180,7 +3180,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3214,7 +3214,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -3251,7 +3251,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3285,7 +3285,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -3322,7 +3322,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3363,7 +3363,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3404,7 +3404,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3458,7 +3458,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3496,7 +3496,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3531,7 +3531,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3569,7 +3569,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3604,7 +3604,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3642,7 +3642,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3677,7 +3677,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3715,7 +3715,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3751,7 +3751,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3790,7 +3790,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3825,7 +3825,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3863,7 +3863,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3899,7 +3899,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -3938,7 +3938,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3973,7 +3973,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -4011,7 +4011,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4061,7 +4061,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4100,7 +4100,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4135,7 +4135,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4173,7 +4173,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4209,7 +4209,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4248,7 +4248,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4290,7 +4290,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -4327,7 +4327,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4365,7 +4365,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4400,7 +4400,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4438,7 +4438,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4474,7 +4474,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4513,7 +4513,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4547,7 +4547,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4584,7 +4584,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4618,7 +4618,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4655,7 +4655,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4691,7 +4691,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4730,7 +4730,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4782,7 +4782,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4822,7 +4822,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4856,7 +4856,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -4893,7 +4893,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4929,7 +4929,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -4968,7 +4968,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5004,7 +5004,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -5043,7 +5043,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5077,7 +5077,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -5114,7 +5114,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5150,7 +5150,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -5189,7 +5189,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5225,7 +5225,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -5264,7 +5264,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5313,7 +5313,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -5353,7 +5353,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -5382,7 +5382,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5411,7 +5411,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5440,7 +5440,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5481,7 +5481,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5522,7 +5522,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5548,7 +5548,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5575,7 +5575,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5600,7 +5600,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5626,7 +5626,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5651,7 +5651,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5702,7 +5702,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5739,7 +5739,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5774,7 +5774,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5812,7 +5812,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -5845,7 +5845,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -5878,7 +5878,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -5904,7 +5904,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -5933,7 +5933,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5989,7 +5989,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -6027,7 +6027,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6061,7 +6061,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -6098,7 +6098,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6132,7 +6132,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -6169,7 +6169,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6224,7 +6224,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6258,7 +6258,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -6295,7 +6295,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6327,7 +6327,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -6353,7 +6353,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -6380,7 +6380,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -6406,7 +6406,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -6431,7 +6431,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6475,7 +6475,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6500,7 +6500,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6708,7 +6708,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -6954,7 +6954,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6986,7 +6986,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7020,7 +7020,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -7057,7 +7057,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7149,7 +7149,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -7177,7 +7177,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -7206,7 +7206,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -7235,7 +7235,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -7264,7 +7264,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -7293,7 +7293,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -7322,7 +7322,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7349,7 +7349,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -7375,5 +7375,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/status.py b/src/tm_devices/commands/gen_8ojdkz_smu/status.py index 73af6254..9c8e3cab 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/status.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -300,7 +300,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -332,7 +332,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -367,7 +367,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -396,7 +396,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -427,7 +427,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -461,7 +461,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -492,7 +492,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -526,7 +526,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -634,7 +634,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -666,7 +666,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -701,7 +701,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -730,7 +730,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -761,7 +761,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -795,7 +795,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -826,7 +826,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -860,7 +860,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -968,7 +968,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1000,7 +1000,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1035,7 +1035,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1064,7 +1064,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1095,7 +1095,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1129,7 +1129,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1160,7 +1160,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1194,7 +1194,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1302,7 +1302,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1334,7 +1334,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1369,7 +1369,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1398,7 +1398,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1429,7 +1429,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1463,7 +1463,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1494,7 +1494,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1528,7 +1528,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1636,7 +1636,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1668,7 +1668,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1703,7 +1703,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1732,7 +1732,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1763,7 +1763,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1797,7 +1797,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1828,7 +1828,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1862,7 +1862,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1963,7 +1963,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1994,7 +1994,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2028,7 +2028,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2056,7 +2056,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2087,7 +2087,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2121,7 +2121,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2152,7 +2152,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2186,7 +2186,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2238,7 +2238,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2270,7 +2270,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2305,7 +2305,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2334,7 +2334,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2366,7 +2366,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2401,7 +2401,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2433,7 +2433,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2468,7 +2468,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2518,7 +2518,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2550,7 +2550,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2585,7 +2585,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2614,7 +2614,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2646,7 +2646,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2681,7 +2681,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2713,7 +2713,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2748,7 +2748,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2795,7 +2795,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2836,7 +2836,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2868,7 +2868,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2903,7 +2903,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2932,7 +2932,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2964,7 +2964,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2999,7 +2999,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3031,7 +3031,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3066,7 +3066,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3093,7 +3093,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUB = "status.questionable.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits for the SMU B questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3125,7 +3125,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3157,7 +3157,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3192,7 +3192,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3221,7 +3221,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3253,7 +3253,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3288,7 +3288,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3320,7 +3320,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3355,7 +3355,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3436,7 +3436,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3468,7 +3468,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3503,7 +3503,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3532,7 +3532,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3564,7 +3564,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3599,7 +3599,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3631,7 +3631,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3666,7 +3666,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3720,7 +3720,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3777,7 +3777,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3808,7 +3808,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3842,7 +3842,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3870,7 +3870,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3921,7 +3921,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3955,7 +3955,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4005,7 +4005,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4039,7 +4039,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4150,7 +4150,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4185,7 +4185,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4216,7 +4216,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4250,7 +4250,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4278,7 +4278,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4309,7 +4309,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4343,7 +4343,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4374,7 +4374,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4408,7 +4408,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4492,7 +4492,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4524,7 +4524,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4559,7 +4559,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4588,7 +4588,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4620,7 +4620,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4655,7 +4655,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4687,7 +4687,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4722,7 +4722,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4772,7 +4772,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4804,7 +4804,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4839,7 +4839,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4868,7 +4868,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4899,7 +4899,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4933,7 +4933,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4964,7 +4964,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4998,7 +4998,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5055,7 +5055,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5086,7 +5086,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5120,7 +5120,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5148,7 +5148,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5179,7 +5179,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5213,7 +5213,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5244,7 +5244,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5278,7 +5278,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5330,7 +5330,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5362,7 +5362,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5397,7 +5397,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5426,7 +5426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5457,7 +5457,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5491,7 +5491,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5522,7 +5522,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5556,7 +5556,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5613,7 +5613,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5645,7 +5645,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5680,7 +5680,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5709,7 +5709,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5741,7 +5741,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5776,7 +5776,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5808,7 +5808,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5843,7 +5843,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5871,7 +5871,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5903,7 +5903,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5935,7 +5935,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5970,7 +5970,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5999,7 +5999,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6031,7 +6031,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6066,7 +6066,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6098,7 +6098,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6133,7 +6133,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6236,7 +6236,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6268,7 +6268,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6303,7 +6303,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6332,7 +6332,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6364,7 +6364,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6399,7 +6399,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6431,7 +6431,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6466,7 +6466,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6494,7 +6494,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6526,7 +6526,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6558,7 +6558,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6593,7 +6593,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6622,7 +6622,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6654,7 +6654,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6689,7 +6689,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6721,7 +6721,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6756,7 +6756,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6866,7 +6866,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6899,7 +6899,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6935,7 +6935,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6964,7 +6964,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6996,7 +6996,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7031,7 +7031,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7063,7 +7063,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7098,7 +7098,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7126,7 +7126,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7158,7 +7158,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7190,7 +7190,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7225,7 +7225,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7254,7 +7254,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7286,7 +7286,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7321,7 +7321,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7353,7 +7353,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7388,7 +7388,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7448,7 +7448,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7498,7 +7498,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7530,7 +7530,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7565,7 +7565,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7594,7 +7594,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7626,7 +7626,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7661,7 +7661,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7693,7 +7693,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7728,7 +7728,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7779,7 +7779,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7834,7 +7834,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7870,7 +7870,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7909,7 +7909,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7942,7 +7942,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7978,7 +7978,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8017,7 +8017,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8053,7 +8053,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8092,7 +8092,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8200,7 +8200,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8232,7 +8232,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8267,7 +8267,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8296,7 +8296,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8328,7 +8328,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8363,7 +8363,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8395,7 +8395,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8430,7 +8430,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8472,7 +8472,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8504,7 +8504,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8536,7 +8536,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8571,7 +8571,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8600,7 +8600,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8632,7 +8632,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8667,7 +8667,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8699,7 +8699,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8734,7 +8734,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8867,7 +8867,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8899,7 +8899,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8934,7 +8934,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8963,7 +8963,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8995,7 +8995,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9030,7 +9030,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9062,7 +9062,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9097,7 +9097,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9125,7 +9125,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9157,7 +9157,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9189,7 +9189,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9224,7 +9224,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9253,7 +9253,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9285,7 +9285,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9320,7 +9320,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9352,7 +9352,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9387,7 +9387,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9496,7 +9496,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9537,7 +9537,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9590,7 +9590,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9625,7 +9625,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9654,7 +9654,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9714,7 +9714,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9749,7 +9749,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9781,7 +9781,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9816,7 +9816,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9961,7 +9961,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9993,7 +9993,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10028,7 +10028,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10057,7 +10057,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10089,7 +10089,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10124,7 +10124,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10156,7 +10156,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10191,7 +10191,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10274,7 +10274,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10328,7 +10328,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10359,7 +10359,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10393,7 +10393,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10421,7 +10421,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10513,7 +10513,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10547,7 +10547,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10578,7 +10578,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10612,7 +10612,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10766,7 +10766,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10798,7 +10798,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10833,7 +10833,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10862,7 +10862,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10894,7 +10894,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10929,7 +10929,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10961,7 +10961,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10996,7 +10996,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11046,7 +11046,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11078,7 +11078,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11113,7 +11113,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11142,7 +11142,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11174,7 +11174,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11209,7 +11209,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11241,7 +11241,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11276,7 +11276,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11325,7 +11325,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11371,7 +11371,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11404,7 +11404,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11440,7 +11440,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11470,7 +11470,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11503,7 +11503,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11539,7 +11539,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11572,7 +11572,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11608,7 +11608,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11635,7 +11635,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUB = "status.measurement.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits of the measurement event SMU B summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11668,7 +11668,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11701,7 +11701,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11737,7 +11737,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11767,7 +11767,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11800,7 +11800,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11836,7 +11836,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11869,7 +11869,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11905,7 +11905,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11985,7 +11985,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12017,7 +12017,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12052,7 +12052,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12081,7 +12081,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12113,7 +12113,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12148,7 +12148,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12180,7 +12180,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12215,7 +12215,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12273,7 +12273,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12305,7 +12305,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12340,7 +12340,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12369,7 +12369,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12401,7 +12401,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12436,7 +12436,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12468,7 +12468,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12503,7 +12503,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12575,7 +12575,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12637,7 +12637,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12685,7 +12685,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12719,7 +12719,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12747,7 +12747,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12798,7 +12798,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12832,7 +12832,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12863,7 +12863,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12897,7 +12897,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13021,7 +13021,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13058,7 +13058,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13131,7 +13131,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13164,7 +13164,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13192,7 +13192,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13308,7 +13308,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13342,7 +13342,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13370,7 +13370,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13658,5 +13658,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_8wm55i_smu/smux.py b/src/tm_devices/commands/gen_8wm55i_smu/smux.py index 3fb098ab..6a65909d 100644 --- a/src/tm_devices/commands/gen_8wm55i_smu/smux.py +++ b/src/tm_devices/commands/gen_8wm55i_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -175,7 +175,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -213,7 +213,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -248,7 +248,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -286,7 +286,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -321,7 +321,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -359,7 +359,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -395,7 +395,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -434,7 +434,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -461,7 +461,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -488,7 +488,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -513,7 +513,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -538,7 +538,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -567,7 +567,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -596,7 +596,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -622,7 +622,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -676,7 +676,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -714,7 +714,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -750,7 +750,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -789,7 +789,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -815,7 +815,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -842,7 +842,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -868,7 +868,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -894,7 +894,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -920,7 +920,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -946,7 +946,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -993,7 +993,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1031,7 +1031,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1080,7 +1080,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1118,7 +1118,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1154,7 +1154,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1193,7 +1193,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1219,7 +1219,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1268,7 +1268,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1306,7 +1306,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1342,7 +1342,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1381,7 +1381,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1407,7 +1407,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1454,7 +1454,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1531,7 +1531,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1569,7 +1569,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1602,7 +1602,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1638,7 +1638,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1735,7 +1735,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1808,7 +1808,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1847,7 +1847,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1883,7 +1883,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1922,7 +1922,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1954,7 +1954,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1988,7 +1988,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -2025,7 +2025,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2059,7 +2059,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2096,7 +2096,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2130,7 +2130,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -2167,7 +2167,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2201,7 +2201,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2238,7 +2238,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2272,7 +2272,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2309,7 +2309,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2343,7 +2343,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2380,7 +2380,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2414,7 +2414,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2451,7 +2451,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2485,7 +2485,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2522,7 +2522,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2558,7 +2558,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2597,7 +2597,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2633,7 +2633,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2672,7 +2672,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2707,7 +2707,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2745,7 +2745,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2781,7 +2781,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2820,7 +2820,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2856,7 +2856,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2895,7 +2895,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2930,7 +2930,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2968,7 +2968,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3002,7 +3002,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -3039,7 +3039,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3074,7 +3074,7 @@ def outputenableaction(self) -> str: f"print({self._cmd_syntax}.outputenableaction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @outputenableaction.setter @@ -3112,7 +3112,7 @@ def outputenableaction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.outputenableaction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3146,7 +3146,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -3183,7 +3183,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3217,7 +3217,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -3254,7 +3254,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3288,7 +3288,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -3325,7 +3325,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3359,7 +3359,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3396,7 +3396,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3437,7 +3437,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3478,7 +3478,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3532,7 +3532,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3570,7 +3570,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3605,7 +3605,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3643,7 +3643,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3678,7 +3678,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3716,7 +3716,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3751,7 +3751,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3789,7 +3789,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3825,7 +3825,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3864,7 +3864,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3899,7 +3899,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3937,7 +3937,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3973,7 +3973,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -4012,7 +4012,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4047,7 +4047,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -4085,7 +4085,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4135,7 +4135,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4174,7 +4174,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4209,7 +4209,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4247,7 +4247,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4283,7 +4283,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4322,7 +4322,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4365,7 +4365,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -4403,7 +4403,7 @@ def analogfilter(self) -> str: f"print({self._cmd_syntax}.analogfilter)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @analogfilter.setter @@ -4442,7 +4442,7 @@ def analogfilter(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.analogfilter = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4477,7 +4477,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4515,7 +4515,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4550,7 +4550,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4588,7 +4588,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4624,7 +4624,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4663,7 +4663,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4697,7 +4697,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4734,7 +4734,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4768,7 +4768,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4805,7 +4805,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4841,7 +4841,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4880,7 +4880,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4932,7 +4932,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4972,7 +4972,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5006,7 +5006,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -5043,7 +5043,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5079,7 +5079,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -5118,7 +5118,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5154,7 +5154,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -5193,7 +5193,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5227,7 +5227,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -5264,7 +5264,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5300,7 +5300,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -5339,7 +5339,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5375,7 +5375,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -5414,7 +5414,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5463,7 +5463,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -5503,7 +5503,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -5532,7 +5532,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5561,7 +5561,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5590,7 +5590,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5631,7 +5631,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5672,7 +5672,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5698,7 +5698,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5725,7 +5725,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5750,7 +5750,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5776,7 +5776,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5801,7 +5801,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5853,7 +5853,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5891,7 +5891,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5927,7 +5927,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5966,7 +5966,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -6000,7 +6000,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -6034,7 +6034,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -6061,7 +6061,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -6091,7 +6091,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6147,7 +6147,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -6185,7 +6185,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6219,7 +6219,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -6256,7 +6256,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6290,7 +6290,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -6327,7 +6327,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6382,7 +6382,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6416,7 +6416,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -6453,7 +6453,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6485,7 +6485,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -6511,7 +6511,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -6538,7 +6538,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -6564,7 +6564,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -6589,7 +6589,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6633,7 +6633,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6658,7 +6658,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6866,7 +6866,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -7113,7 +7113,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7145,7 +7145,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7179,7 +7179,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -7216,7 +7216,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7309,7 +7309,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -7337,7 +7337,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -7366,7 +7366,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -7395,7 +7395,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -7424,7 +7424,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -7453,7 +7453,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -7482,7 +7482,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7509,7 +7509,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -7535,5 +7535,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9kezla_smu/smux.py b/src/tm_devices/commands/gen_9kezla_smu/smux.py index bd92b1b9..1535f383 100644 --- a/src/tm_devices/commands/gen_9kezla_smu/smux.py +++ b/src/tm_devices/commands/gen_9kezla_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -175,7 +175,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -213,7 +213,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -248,7 +248,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -286,7 +286,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -321,7 +321,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -359,7 +359,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -395,7 +395,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -434,7 +434,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -461,7 +461,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -488,7 +488,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -513,7 +513,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -538,7 +538,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -567,7 +567,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -596,7 +596,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -622,7 +622,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -676,7 +676,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -714,7 +714,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -750,7 +750,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -789,7 +789,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -815,7 +815,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -842,7 +842,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -868,7 +868,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -894,7 +894,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -920,7 +920,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -946,7 +946,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -993,7 +993,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1031,7 +1031,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1080,7 +1080,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1118,7 +1118,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1154,7 +1154,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1193,7 +1193,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1219,7 +1219,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1268,7 +1268,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1306,7 +1306,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1342,7 +1342,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1381,7 +1381,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1407,7 +1407,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1454,7 +1454,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1531,7 +1531,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1569,7 +1569,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1602,7 +1602,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1638,7 +1638,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1735,7 +1735,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1808,7 +1808,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1847,7 +1847,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1883,7 +1883,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1922,7 +1922,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1954,7 +1954,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1988,7 +1988,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -2025,7 +2025,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2059,7 +2059,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2096,7 +2096,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2130,7 +2130,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -2167,7 +2167,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2201,7 +2201,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2238,7 +2238,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2272,7 +2272,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2309,7 +2309,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2343,7 +2343,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2380,7 +2380,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2414,7 +2414,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2451,7 +2451,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2485,7 +2485,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2522,7 +2522,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2558,7 +2558,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2597,7 +2597,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2633,7 +2633,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2672,7 +2672,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2707,7 +2707,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2745,7 +2745,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2781,7 +2781,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2820,7 +2820,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2856,7 +2856,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2895,7 +2895,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2930,7 +2930,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2968,7 +2968,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3002,7 +3002,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -3039,7 +3039,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3074,7 +3074,7 @@ def outputenableaction(self) -> str: f"print({self._cmd_syntax}.outputenableaction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @outputenableaction.setter @@ -3112,7 +3112,7 @@ def outputenableaction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.outputenableaction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3146,7 +3146,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -3183,7 +3183,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3217,7 +3217,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -3254,7 +3254,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3288,7 +3288,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -3325,7 +3325,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3359,7 +3359,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3396,7 +3396,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3437,7 +3437,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3478,7 +3478,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3532,7 +3532,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3570,7 +3570,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3605,7 +3605,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3643,7 +3643,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3678,7 +3678,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3716,7 +3716,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3751,7 +3751,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3789,7 +3789,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3825,7 +3825,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3864,7 +3864,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3899,7 +3899,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3937,7 +3937,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3973,7 +3973,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -4012,7 +4012,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4047,7 +4047,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -4085,7 +4085,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4135,7 +4135,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4174,7 +4174,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4209,7 +4209,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4247,7 +4247,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4283,7 +4283,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4322,7 +4322,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4365,7 +4365,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -4403,7 +4403,7 @@ def analogfilter(self) -> str: f"print({self._cmd_syntax}.analogfilter)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @analogfilter.setter @@ -4442,7 +4442,7 @@ def analogfilter(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.analogfilter = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4477,7 +4477,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4515,7 +4515,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4550,7 +4550,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4588,7 +4588,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4624,7 +4624,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4663,7 +4663,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4697,7 +4697,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4734,7 +4734,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4768,7 +4768,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4805,7 +4805,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4841,7 +4841,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4880,7 +4880,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4932,7 +4932,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4972,7 +4972,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5006,7 +5006,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -5043,7 +5043,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5079,7 +5079,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -5118,7 +5118,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5154,7 +5154,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -5193,7 +5193,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5227,7 +5227,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -5264,7 +5264,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5300,7 +5300,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -5339,7 +5339,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5375,7 +5375,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -5414,7 +5414,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5463,7 +5463,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -5503,7 +5503,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -5532,7 +5532,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5561,7 +5561,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5590,7 +5590,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5631,7 +5631,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5672,7 +5672,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5698,7 +5698,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5725,7 +5725,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5750,7 +5750,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5776,7 +5776,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5801,7 +5801,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5853,7 +5853,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5891,7 +5891,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5927,7 +5927,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5966,7 +5966,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -6000,7 +6000,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -6034,7 +6034,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -6061,7 +6061,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -6091,7 +6091,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6147,7 +6147,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -6185,7 +6185,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6219,7 +6219,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -6256,7 +6256,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6290,7 +6290,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -6327,7 +6327,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6382,7 +6382,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6416,7 +6416,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -6453,7 +6453,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6485,7 +6485,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -6511,7 +6511,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -6538,7 +6538,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -6564,7 +6564,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -6589,7 +6589,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6633,7 +6633,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6658,7 +6658,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6860,7 +6860,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -7103,7 +7103,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7135,7 +7135,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7169,7 +7169,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -7206,7 +7206,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7299,7 +7299,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -7327,7 +7327,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -7356,7 +7356,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -7385,7 +7385,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -7414,7 +7414,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -7443,7 +7443,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -7472,7 +7472,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7499,7 +7499,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -7525,5 +7525,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py index 77c24481..0ae45358 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -65,7 +65,7 @@ class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "digio.trigger[N].EVENT_ID" """str: The trigger event generated by the digital I/O line N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -105,7 +105,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -144,7 +144,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -176,7 +176,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -212,7 +212,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -251,7 +251,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -286,7 +286,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -324,7 +324,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -350,7 +350,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -376,7 +376,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -402,7 +402,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -428,7 +428,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -457,7 +457,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -473,7 +473,7 @@ class Digio(BaseTSPCmd): - ``.writeprotect``: The ``digio.writeprotect`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, DigioTriggerItem] = DefaultDictPassKeyToFactory( lambda x: DigioTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -531,7 +531,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -566,7 +566,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -595,7 +595,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -621,7 +621,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -648,7 +648,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -674,5 +674,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/display.py b/src/tm_devices/commands/gen_9mzp2j_smu/display.py index 067f4581..ea5f69cc 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/display.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): @@ -91,7 +91,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -113,7 +113,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -141,7 +141,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -188,7 +188,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -226,7 +226,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -274,7 +274,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -313,7 +313,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -330,7 +330,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -367,7 +367,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -405,7 +405,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -477,7 +477,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -503,7 +503,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -768,7 +768,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( @@ -819,7 +819,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -858,7 +858,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -889,7 +889,7 @@ def numpad(self) -> str: f"print({self._cmd_syntax}.numpad)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @numpad.setter @@ -923,7 +923,7 @@ def numpad(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.numpad = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -953,7 +953,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -986,7 +986,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1038,7 +1038,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -1063,7 +1063,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -1088,7 +1088,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -1113,7 +1113,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -1164,7 +1164,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -1213,7 +1213,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -1242,7 +1242,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt( @@ -1299,7 +1299,7 @@ def prompt( f"print({self._cmd_syntax}.prompt({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -1325,7 +1325,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -1362,7 +1362,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext(self, text: str) -> None: @@ -1387,7 +1387,7 @@ def settext(self, text: str) -> None: f'{self._cmd_syntax}.settext("{text}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -1412,5 +1412,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py index ce020640..a888e8e5 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -70,7 +70,7 @@ class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "tsplink.trigger[N].EVENT_ID" """str: The number that is used for the trigger events.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -109,7 +109,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -147,7 +147,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -179,7 +179,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -215,7 +215,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -254,7 +254,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -289,7 +289,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -327,7 +327,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -353,7 +353,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -379,7 +379,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -405,7 +405,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -431,7 +431,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -460,7 +460,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -481,7 +481,7 @@ class Tsplink(BaseTSPCmd): - ``.writeprotect``: The ``tsplink.writeprotect`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, TsplinkTriggerItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -515,7 +515,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -549,7 +549,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -578,7 +578,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -609,7 +609,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -643,7 +643,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -672,7 +672,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -728,7 +728,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -764,7 +764,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -793,7 +793,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -819,7 +819,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, expected_nodes: Optional[int] = None) -> str: @@ -849,7 +849,7 @@ def reset(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.reset({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -876,7 +876,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -902,5 +902,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9ncc6e_smu/display.py b/src/tm_devices/commands/gen_9ncc6e_smu/display.py index 22dd79cd..7d6b2979 100644 --- a/src/tm_devices/commands/gen_9ncc6e_smu/display.py +++ b/src/tm_devices/commands/gen_9ncc6e_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): @@ -91,7 +91,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -113,7 +113,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -141,7 +141,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -188,7 +188,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -226,7 +226,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -274,7 +274,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -313,7 +313,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -330,7 +330,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -367,7 +367,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -405,7 +405,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -477,7 +477,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -503,7 +503,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -669,7 +669,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( @@ -720,7 +720,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -759,7 +759,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -790,7 +790,7 @@ def numpad(self) -> str: f"print({self._cmd_syntax}.numpad)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @numpad.setter @@ -824,7 +824,7 @@ def numpad(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.numpad = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -854,7 +854,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -887,7 +887,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -939,7 +939,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -964,7 +964,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -989,7 +989,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -1014,7 +1014,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -1065,7 +1065,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -1114,7 +1114,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -1143,7 +1143,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt( @@ -1200,7 +1200,7 @@ def prompt( f"print({self._cmd_syntax}.prompt({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -1226,7 +1226,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -1263,7 +1263,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext(self, text: str) -> None: @@ -1288,7 +1288,7 @@ def settext(self, text: str) -> None: f'{self._cmd_syntax}.settext("{text}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -1313,5 +1313,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9nnkq7_smu/status.py b/src/tm_devices/commands/gen_9nnkq7_smu/status.py index 7a8c45b3..b1410751 100644 --- a/src/tm_devices/commands/gen_9nnkq7_smu/status.py +++ b/src/tm_devices/commands/gen_9nnkq7_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -266,7 +266,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -299,7 +299,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -335,7 +335,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -365,7 +365,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -397,7 +397,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -432,7 +432,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -464,7 +464,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -499,7 +499,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -541,7 +541,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -574,7 +574,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -610,7 +610,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -640,7 +640,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -672,7 +672,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -707,7 +707,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -739,7 +739,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -774,7 +774,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -816,7 +816,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -849,7 +849,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -885,7 +885,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -915,7 +915,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -947,7 +947,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -982,7 +982,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1014,7 +1014,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1049,7 +1049,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1091,7 +1091,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1124,7 +1124,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1160,7 +1160,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1190,7 +1190,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1222,7 +1222,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1257,7 +1257,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1289,7 +1289,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1324,7 +1324,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1366,7 +1366,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1399,7 +1399,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1435,7 +1435,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1465,7 +1465,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1497,7 +1497,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1532,7 +1532,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1564,7 +1564,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1599,7 +1599,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1700,7 +1700,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1731,7 +1731,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1765,7 +1765,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1793,7 +1793,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1824,7 +1824,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1858,7 +1858,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1889,7 +1889,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1923,7 +1923,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1975,7 +1975,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2007,7 +2007,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2042,7 +2042,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2071,7 +2071,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2103,7 +2103,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2138,7 +2138,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2170,7 +2170,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2205,7 +2205,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2255,7 +2255,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2287,7 +2287,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2322,7 +2322,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2351,7 +2351,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2383,7 +2383,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2418,7 +2418,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2450,7 +2450,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2485,7 +2485,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2532,7 +2532,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2577,7 +2577,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2613,7 +2613,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2652,7 +2652,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2685,7 +2685,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2721,7 +2721,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2760,7 +2760,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2796,7 +2796,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2835,7 +2835,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2862,7 +2862,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUB = "status.questionable.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits for the SMU B questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -2894,7 +2894,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2926,7 +2926,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2961,7 +2961,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2990,7 +2990,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3022,7 +3022,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3057,7 +3057,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3089,7 +3089,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3124,7 +3124,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3205,7 +3205,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3237,7 +3237,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3272,7 +3272,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3301,7 +3301,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3333,7 +3333,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3368,7 +3368,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3400,7 +3400,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3435,7 +3435,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3495,7 +3495,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3552,7 +3552,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3583,7 +3583,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3617,7 +3617,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3645,7 +3645,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3696,7 +3696,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3730,7 +3730,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3780,7 +3780,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3814,7 +3814,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3925,7 +3925,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -3960,7 +3960,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3991,7 +3991,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4025,7 +4025,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4053,7 +4053,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4084,7 +4084,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4118,7 +4118,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4149,7 +4149,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4183,7 +4183,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4255,7 +4255,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4287,7 +4287,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4322,7 +4322,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4351,7 +4351,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4383,7 +4383,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4418,7 +4418,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4450,7 +4450,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4485,7 +4485,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4535,7 +4535,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4567,7 +4567,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4602,7 +4602,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4631,7 +4631,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4662,7 +4662,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4696,7 +4696,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4727,7 +4727,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4761,7 +4761,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4818,7 +4818,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4849,7 +4849,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4883,7 +4883,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4911,7 +4911,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4942,7 +4942,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4976,7 +4976,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5007,7 +5007,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5041,7 +5041,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5093,7 +5093,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5125,7 +5125,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5160,7 +5160,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5189,7 +5189,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5220,7 +5220,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5254,7 +5254,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5285,7 +5285,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5319,7 +5319,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5362,7 +5362,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5395,7 +5395,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5431,7 +5431,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5461,7 +5461,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5494,7 +5494,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5530,7 +5530,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5563,7 +5563,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5599,7 +5599,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5616,7 +5616,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5649,7 +5649,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5682,7 +5682,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5718,7 +5718,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5748,7 +5748,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5781,7 +5781,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5817,7 +5817,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5850,7 +5850,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5886,7 +5886,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5981,7 +5981,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6013,7 +6013,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6048,7 +6048,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6077,7 +6077,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6109,7 +6109,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6144,7 +6144,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6176,7 +6176,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6211,7 +6211,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6239,7 +6239,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6271,7 +6271,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6303,7 +6303,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6338,7 +6338,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6367,7 +6367,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6399,7 +6399,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6434,7 +6434,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6466,7 +6466,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6501,7 +6501,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6611,7 +6611,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6644,7 +6644,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6680,7 +6680,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6709,7 +6709,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6741,7 +6741,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6776,7 +6776,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6808,7 +6808,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6843,7 +6843,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6871,7 +6871,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6903,7 +6903,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6935,7 +6935,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6970,7 +6970,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6999,7 +6999,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7031,7 +7031,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7066,7 +7066,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7098,7 +7098,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7133,7 +7133,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7193,7 +7193,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7243,7 +7243,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7275,7 +7275,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7310,7 +7310,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7339,7 +7339,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7371,7 +7371,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7406,7 +7406,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7438,7 +7438,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7473,7 +7473,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7524,7 +7524,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7579,7 +7579,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7615,7 +7615,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7654,7 +7654,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7687,7 +7687,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7723,7 +7723,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7762,7 +7762,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7798,7 +7798,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7837,7 +7837,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7945,7 +7945,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7977,7 +7977,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8012,7 +8012,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8041,7 +8041,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8073,7 +8073,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8108,7 +8108,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8140,7 +8140,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8175,7 +8175,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8217,7 +8217,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8249,7 +8249,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8281,7 +8281,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8316,7 +8316,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8345,7 +8345,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8377,7 +8377,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8412,7 +8412,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8444,7 +8444,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8479,7 +8479,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8554,7 +8554,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8587,7 +8587,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8623,7 +8623,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8653,7 +8653,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8686,7 +8686,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8722,7 +8722,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8755,7 +8755,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8791,7 +8791,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8819,7 +8819,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8852,7 +8852,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8885,7 +8885,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8921,7 +8921,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8951,7 +8951,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8984,7 +8984,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9020,7 +9020,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9053,7 +9053,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9089,7 +9089,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9156,7 +9156,7 @@ class StatusOperationInstrument(BaseTSPCmd): TRIGGER_TIMER = "status.operation.instrument.TRIGGER_TIMER" """str: B11. Set bit indicates one or more enabled bits for the operation status trigger timer summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9197,7 +9197,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9250,7 +9250,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9285,7 +9285,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9314,7 +9314,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9374,7 +9374,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9409,7 +9409,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9441,7 +9441,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9476,7 +9476,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9615,7 +9615,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9647,7 +9647,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9682,7 +9682,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9711,7 +9711,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9743,7 +9743,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9778,7 +9778,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9810,7 +9810,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9845,7 +9845,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9928,7 +9928,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -9982,7 +9982,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10013,7 +10013,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10047,7 +10047,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10075,7 +10075,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10161,7 +10161,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10195,7 +10195,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10226,7 +10226,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10260,7 +10260,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10408,7 +10408,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10440,7 +10440,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10475,7 +10475,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10504,7 +10504,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10536,7 +10536,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10571,7 +10571,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10603,7 +10603,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10638,7 +10638,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10688,7 +10688,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10720,7 +10720,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10755,7 +10755,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10784,7 +10784,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10816,7 +10816,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10851,7 +10851,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10883,7 +10883,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10918,7 +10918,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10967,7 +10967,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11017,7 +11017,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11054,7 +11054,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11094,7 +11094,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11128,7 +11128,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11165,7 +11165,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11205,7 +11205,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11242,7 +11242,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11282,7 +11282,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11309,7 +11309,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUB = "status.measurement.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits of the measurement event SMU B summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11342,7 +11342,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11375,7 +11375,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11411,7 +11411,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11441,7 +11441,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11474,7 +11474,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11510,7 +11510,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11543,7 +11543,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11579,7 +11579,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11659,7 +11659,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11691,7 +11691,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11726,7 +11726,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11755,7 +11755,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11787,7 +11787,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11822,7 +11822,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11854,7 +11854,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11889,7 +11889,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11947,7 +11947,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11979,7 +11979,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12014,7 +12014,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12043,7 +12043,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12075,7 +12075,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12110,7 +12110,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12142,7 +12142,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12177,7 +12177,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12249,7 +12249,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12311,7 +12311,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12359,7 +12359,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12393,7 +12393,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12421,7 +12421,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12472,7 +12472,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12506,7 +12506,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12537,7 +12537,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12571,7 +12571,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12688,7 +12688,7 @@ class Status(BaseTSPCmd): QUESTIONABLE_SUMMARY_BIT = "status.QUESTIONABLE_SUMMARY_BIT" """str: B3. Set summary bit indicates that an enabled questionable event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -12725,7 +12725,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12799,7 +12799,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -12833,7 +12833,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12861,7 +12861,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12981,7 +12981,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13015,7 +13015,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13043,7 +13043,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13177,5 +13177,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_9slyux_smu/status.py b/src/tm_devices/commands/gen_9slyux_smu/status.py index 24b81e8c..1a1d6a43 100644 --- a/src/tm_devices/commands/gen_9slyux_smu/status.py +++ b/src/tm_devices/commands/gen_9slyux_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -301,7 +301,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -334,7 +334,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -370,7 +370,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -400,7 +400,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -432,7 +432,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -467,7 +467,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -499,7 +499,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -534,7 +534,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -643,7 +643,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -676,7 +676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -712,7 +712,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -742,7 +742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -774,7 +774,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -809,7 +809,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -841,7 +841,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -876,7 +876,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -985,7 +985,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1018,7 +1018,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1054,7 +1054,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1084,7 +1084,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1151,7 +1151,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1183,7 +1183,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1218,7 +1218,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1360,7 +1360,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1396,7 +1396,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1426,7 +1426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1458,7 +1458,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1493,7 +1493,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1525,7 +1525,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1560,7 +1560,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1669,7 +1669,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1738,7 +1738,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1768,7 +1768,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1800,7 +1800,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1835,7 +1835,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1867,7 +1867,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1902,7 +1902,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2003,7 +2003,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2034,7 +2034,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2068,7 +2068,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2096,7 +2096,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2127,7 +2127,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2161,7 +2161,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2192,7 +2192,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2226,7 +2226,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2267,7 +2267,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2299,7 +2299,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2334,7 +2334,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2363,7 +2363,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2395,7 +2395,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2430,7 +2430,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2462,7 +2462,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2497,7 +2497,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2538,7 +2538,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2570,7 +2570,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2605,7 +2605,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2634,7 +2634,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2666,7 +2666,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2701,7 +2701,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2733,7 +2733,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2768,7 +2768,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2815,7 +2815,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2860,7 +2860,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2896,7 +2896,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2935,7 +2935,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2968,7 +2968,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3004,7 +3004,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3043,7 +3043,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3079,7 +3079,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3118,7 +3118,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3141,7 +3141,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUA = "status.questionable.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits for the SMU A questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3173,7 +3173,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3205,7 +3205,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3240,7 +3240,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3269,7 +3269,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3301,7 +3301,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3336,7 +3336,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3368,7 +3368,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3403,7 +3403,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3480,7 +3480,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3512,7 +3512,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3547,7 +3547,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3576,7 +3576,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3608,7 +3608,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3643,7 +3643,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3675,7 +3675,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3710,7 +3710,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3746,7 +3746,7 @@ class StatusQuestionable(BaseTSPCmd): HIGHV_NOT_READY = "status.questionable.HIGHV_NOT_READY" """str: B10. Either the interlock is not engaged or the interlock was engaged recently and the high voltage supply is still stabilizing. If the interlock is engaged and this bit is set, attempting to turn on the output on the 200 V range results in error code 5052, 'Interlock engaged; system stabilizing.'.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3800,7 +3800,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3831,7 +3831,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3865,7 +3865,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3893,7 +3893,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3942,7 +3942,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3976,7 +3976,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4020,7 +4020,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4054,7 +4054,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4111,7 +4111,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4146,7 +4146,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4177,7 +4177,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4211,7 +4211,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4239,7 +4239,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4270,7 +4270,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4304,7 +4304,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4335,7 +4335,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4369,7 +4369,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4449,7 +4449,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4481,7 +4481,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4516,7 +4516,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4545,7 +4545,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4577,7 +4577,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4612,7 +4612,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4644,7 +4644,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4679,7 +4679,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4726,7 +4726,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4758,7 +4758,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4793,7 +4793,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4822,7 +4822,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4853,7 +4853,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4887,7 +4887,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4918,7 +4918,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4952,7 +4952,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5009,7 +5009,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5040,7 +5040,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5074,7 +5074,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5102,7 +5102,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5133,7 +5133,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5167,7 +5167,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5198,7 +5198,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5232,7 +5232,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5280,7 +5280,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5312,7 +5312,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5347,7 +5347,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5376,7 +5376,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5407,7 +5407,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5441,7 +5441,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5472,7 +5472,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5506,7 +5506,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5564,7 +5564,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5597,7 +5597,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5633,7 +5633,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5663,7 +5663,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5696,7 +5696,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5732,7 +5732,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5765,7 +5765,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5801,7 +5801,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5829,7 +5829,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5862,7 +5862,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5895,7 +5895,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5931,7 +5931,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5961,7 +5961,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5994,7 +5994,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6030,7 +6030,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6063,7 +6063,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6099,7 +6099,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6202,7 +6202,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6234,7 +6234,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6269,7 +6269,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6298,7 +6298,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6330,7 +6330,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6365,7 +6365,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6397,7 +6397,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6432,7 +6432,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6460,7 +6460,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6492,7 +6492,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6524,7 +6524,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6559,7 +6559,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6588,7 +6588,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6620,7 +6620,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6655,7 +6655,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6687,7 +6687,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6722,7 +6722,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6832,7 +6832,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6865,7 +6865,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6901,7 +6901,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6930,7 +6930,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6962,7 +6962,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6997,7 +6997,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7029,7 +7029,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7064,7 +7064,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7092,7 +7092,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7124,7 +7124,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7156,7 +7156,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7191,7 +7191,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7220,7 +7220,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7252,7 +7252,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7287,7 +7287,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7319,7 +7319,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7354,7 +7354,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7414,7 +7414,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7464,7 +7464,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7496,7 +7496,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7531,7 +7531,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7560,7 +7560,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7592,7 +7592,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7627,7 +7627,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7659,7 +7659,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7694,7 +7694,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7745,7 +7745,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7800,7 +7800,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7836,7 +7836,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7875,7 +7875,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7908,7 +7908,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7944,7 +7944,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7983,7 +7983,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8019,7 +8019,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8058,7 +8058,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8166,7 +8166,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8198,7 +8198,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8233,7 +8233,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8262,7 +8262,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8294,7 +8294,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8329,7 +8329,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8361,7 +8361,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8396,7 +8396,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8438,7 +8438,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8470,7 +8470,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8502,7 +8502,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8537,7 +8537,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8566,7 +8566,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8598,7 +8598,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8633,7 +8633,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8665,7 +8665,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8700,7 +8700,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8834,7 +8834,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8867,7 +8867,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8903,7 +8903,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8933,7 +8933,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8966,7 +8966,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9002,7 +9002,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9035,7 +9035,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9071,7 +9071,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9099,7 +9099,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9132,7 +9132,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9165,7 +9165,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9201,7 +9201,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9231,7 +9231,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9264,7 +9264,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9300,7 +9300,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9333,7 +9333,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9369,7 +9369,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9474,7 +9474,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9515,7 +9515,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9568,7 +9568,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9603,7 +9603,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9632,7 +9632,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9692,7 +9692,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9727,7 +9727,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9759,7 +9759,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9794,7 +9794,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9936,7 +9936,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9968,7 +9968,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10003,7 +10003,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10032,7 +10032,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10064,7 +10064,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10099,7 +10099,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10131,7 +10131,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10166,7 +10166,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10249,7 +10249,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10302,7 +10302,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10333,7 +10333,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10367,7 +10367,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10395,7 +10395,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10483,7 +10483,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10517,7 +10517,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10548,7 +10548,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10582,7 +10582,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10712,7 +10712,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10744,7 +10744,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10779,7 +10779,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10808,7 +10808,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10840,7 +10840,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10875,7 +10875,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10907,7 +10907,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10942,7 +10942,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10989,7 +10989,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11021,7 +11021,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11056,7 +11056,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11085,7 +11085,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11117,7 +11117,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11152,7 +11152,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11184,7 +11184,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11219,7 +11219,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11268,7 +11268,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11318,7 +11318,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11355,7 +11355,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11395,7 +11395,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11429,7 +11429,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11466,7 +11466,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11506,7 +11506,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11543,7 +11543,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11583,7 +11583,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11606,7 +11606,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUA = "status.measurement.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits of the measurement event SMU A summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11639,7 +11639,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11672,7 +11672,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11708,7 +11708,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11738,7 +11738,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11771,7 +11771,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11807,7 +11807,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11840,7 +11840,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11876,7 +11876,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11953,7 +11953,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11985,7 +11985,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12020,7 +12020,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12049,7 +12049,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12081,7 +12081,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12116,7 +12116,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12148,7 +12148,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12183,7 +12183,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12234,7 +12234,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12266,7 +12266,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12301,7 +12301,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12330,7 +12330,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12362,7 +12362,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12397,7 +12397,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12429,7 +12429,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12464,7 +12464,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12536,7 +12536,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12595,7 +12595,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12642,7 +12642,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12676,7 +12676,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12704,7 +12704,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12753,7 +12753,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12787,7 +12787,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12818,7 +12818,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12852,7 +12852,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12973,7 +12973,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13010,7 +13010,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13084,7 +13084,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13118,7 +13118,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13146,7 +13146,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13254,7 +13254,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13288,7 +13288,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13316,7 +13316,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13604,5 +13604,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py index dfee9ba8..405792f6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): @@ -42,7 +42,7 @@ class Beeper(BaseTSPCmd): ON = "beeper.ON" """str: This command turns the beeper on.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "beeper") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "beeper") -> None: super().__init__(device, cmd_syntax) @property @@ -72,7 +72,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -105,7 +105,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def beep(self, duration: float, frequency: float) -> None: @@ -131,5 +131,5 @@ def beep(self, duration: float, frequency: float) -> None: f"{self._cmd_syntax}.beep({duration}, {frequency})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py index 6fb91bae..7625276e 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py @@ -41,7 +41,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods @@ -76,7 +76,9 @@ class Buffervar(BaseTSPCmd): - ``.timestamps``: The ``bufferVar.timestamps[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._measurefunctions: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.measurefunctions[{{key}}]", @@ -156,7 +158,7 @@ def appendmode(self) -> str: f"print({self._cmd_syntax}.appendmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @appendmode.setter @@ -194,7 +196,7 @@ def appendmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.appendmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -227,7 +229,7 @@ def basetimestamp(self) -> str: f"print({self._cmd_syntax}.basetimestamp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.basetimestamp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.basetimestamp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -262,7 +264,7 @@ def cachemode(self) -> str: f"print({self._cmd_syntax}.cachemode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @cachemode.setter @@ -300,7 +302,7 @@ def cachemode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.cachemode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -332,7 +334,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -368,7 +370,7 @@ def collectsourcevalues(self) -> str: f"print({self._cmd_syntax}.collectsourcevalues)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collectsourcevalues`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collectsourcevalues`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @collectsourcevalues.setter @@ -407,7 +409,7 @@ def collectsourcevalues(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.collectsourcevalues = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collectsourcevalues`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collectsourcevalues`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -443,7 +445,7 @@ def collecttimestamps(self) -> str: f"print({self._cmd_syntax}.collecttimestamps)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @collecttimestamps.setter @@ -482,7 +484,7 @@ def collecttimestamps(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.collecttimestamps = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -517,7 +519,7 @@ def fillcount(self) -> str: f"print({self._cmd_syntax}.fillcount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillcount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillcount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillcount.setter @@ -555,7 +557,7 @@ def fillcount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillcount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillcount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillcount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -589,7 +591,7 @@ def fillmode(self) -> str: f"print({self._cmd_syntax}.fillmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillmode.setter @@ -626,7 +628,7 @@ def fillmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -712,7 +714,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -911,7 +913,7 @@ def timestampresolution(self) -> str: f"print({self._cmd_syntax}.timestampresolution)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timestampresolution.setter @@ -951,7 +953,7 @@ def timestampresolution(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timestampresolution = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1004,7 +1006,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clearcache(self) -> None: @@ -1030,5 +1032,5 @@ def clearcache(self) -> None: f"{self._cmd_syntax}.clearcache()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py index f46165bd..115fe0e0 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): @@ -56,7 +56,7 @@ class Eventlog(BaseTSPCmd): ENABLE = "eventlog.ENABLE" """str: Enable the event log.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "eventlog") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "eventlog") -> None: super().__init__(device, cmd_syntax) @property @@ -84,7 +84,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -114,7 +114,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -147,7 +147,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -184,7 +184,7 @@ def overwritemethod(self) -> str: f"print({self._cmd_syntax}.overwritemethod)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @overwritemethod.setter @@ -224,7 +224,7 @@ def overwritemethod(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.overwritemethod = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def all(self) -> str: @@ -250,7 +250,7 @@ def all(self) -> str: f"print({self._cmd_syntax}.all())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.all()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.all()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -272,7 +272,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def next(self) -> str: @@ -298,5 +298,5 @@ def next(self) -> str: f"print({self._cmd_syntax}.next())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/lan.py b/src/tm_devices/commands/gen_ahkybr_smu/lan.py index 2a9ee3b5..ba55bfb6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/lan.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/lan.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -100,7 +100,7 @@ class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "lan.trigger[N].EVENT_ID" """str: The event identifier used to route the LAN trigger to other subsystems (using stimulus properties).""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -135,7 +135,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -170,7 +170,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -208,7 +208,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -243,7 +243,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -281,7 +281,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -312,7 +312,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -346,7 +346,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -383,7 +383,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -417,7 +417,7 @@ def pseudostate(self) -> str: f"print({self._cmd_syntax}.pseudostate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pseudostate.setter @@ -454,7 +454,7 @@ def pseudostate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pseudostate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -489,7 +489,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -527,7 +527,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -553,7 +553,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -578,7 +578,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -603,7 +603,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -628,7 +628,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -656,7 +656,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -701,7 +701,7 @@ def dst(self) -> str: f"print({self._cmd_syntax}.dst)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -732,7 +732,7 @@ def rawsocket(self) -> str: f"print({self._cmd_syntax}.rawsocket)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rawsocket`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rawsocket`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -763,7 +763,7 @@ def telnet(self) -> str: f"print({self._cmd_syntax}.telnet)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.telnet`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.telnet`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -794,7 +794,7 @@ def vxi11(self) -> str: f"print({self._cmd_syntax}.vxi11)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.vxi11`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.vxi11`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -806,7 +806,7 @@ class LanStatusDns(BaseTSPCmd): - ``.name``: The ``lan.status.dns.name`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.address[{{key}}]", @@ -863,7 +863,7 @@ def name(self) -> str: f"print({self._cmd_syntax}.name)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -881,7 +881,7 @@ class LanStatus(BaseTSPCmd): - ``.subnetmask``: The ``lan.status.subnetmask`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dns = LanStatusDns(device, f"{self._cmd_syntax}.dns") self._port = LanStatusPort(device, f"{self._cmd_syntax}.port") @@ -921,7 +921,7 @@ def duplex(self) -> str: f"print({self._cmd_syntax}.duplex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -949,7 +949,7 @@ def gateway(self) -> str: f"print({self._cmd_syntax}.gateway)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -977,7 +977,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1005,7 +1005,7 @@ def macaddress(self) -> str: f"print({self._cmd_syntax}.macaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1048,7 +1048,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1080,7 +1080,7 @@ def subnetmask(self) -> str: f"print({self._cmd_syntax}.subnetmask)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1095,7 +1095,7 @@ class LanConfigDns(BaseTSPCmd): - ``.verify``: The ``lan.config.dns.verify`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.address[{{key}}]", @@ -1159,7 +1159,7 @@ def domain(self) -> str: f"print({self._cmd_syntax}.domain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @domain.setter @@ -1193,7 +1193,7 @@ def domain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.domain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1224,7 +1224,7 @@ def dynamic(self) -> str: f"print({self._cmd_syntax}.dynamic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dynamic.setter @@ -1258,7 +1258,7 @@ def dynamic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dynamic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1289,7 +1289,7 @@ def hostname(self) -> str: f"print({self._cmd_syntax}.hostname)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @hostname.setter @@ -1323,7 +1323,7 @@ def hostname(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.hostname = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1354,7 +1354,7 @@ def verify(self) -> str: f"print({self._cmd_syntax}.verify)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @verify.setter @@ -1388,7 +1388,7 @@ def verify(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.verify = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1405,7 +1405,7 @@ class LanConfig(BaseTSPCmd): - ``.subnetmask``: The ``lan.config.subnetmask`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dns = LanConfigDns(device, f"{self._cmd_syntax}.dns") @@ -1449,7 +1449,7 @@ def duplex(self) -> str: f"print({self._cmd_syntax}.duplex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @duplex.setter @@ -1482,7 +1482,7 @@ def duplex(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.duplex = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1512,7 +1512,7 @@ def gateway(self) -> str: f"print({self._cmd_syntax}.gateway)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @gateway.setter @@ -1545,7 +1545,7 @@ def gateway(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.gateway = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1576,7 +1576,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -1610,7 +1610,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1640,7 +1640,7 @@ def method(self) -> str: f"print({self._cmd_syntax}.method)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @method.setter @@ -1673,7 +1673,7 @@ def method(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.method = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1704,7 +1704,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -1738,7 +1738,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1773,7 +1773,7 @@ def subnetmask(self) -> str: f"print({self._cmd_syntax}.subnetmask)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @subnetmask.setter @@ -1811,7 +1811,7 @@ def subnetmask(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.subnetmask = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1894,7 +1894,7 @@ class Lan(BaseTSPCmd): UDP = "lan.UDP" """str: Use UDP protocol.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "lan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "lan") -> None: super().__init__(device, cmd_syntax) self._config = LanConfig(device, f"{self._cmd_syntax}.config") self._status = LanStatus(device, f"{self._cmd_syntax}.status") @@ -1929,7 +1929,7 @@ def autoconnect(self) -> str: f"print({self._cmd_syntax}.autoconnect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoconnect.setter @@ -1962,7 +1962,7 @@ def autoconnect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoconnect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2010,7 +2010,7 @@ def linktimeout(self) -> str: f"print({self._cmd_syntax}.linktimeout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linktimeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linktimeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linktimeout.setter @@ -2046,7 +2046,7 @@ def linktimeout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linktimeout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linktimeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linktimeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2079,7 +2079,7 @@ def lxidomain(self) -> str: f"print({self._cmd_syntax}.lxidomain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lxidomain.setter @@ -2115,7 +2115,7 @@ def lxidomain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lxidomain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2145,7 +2145,7 @@ def nagle(self) -> str: f"print({self._cmd_syntax}.nagle)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nagle.setter @@ -2178,7 +2178,7 @@ def nagle(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nagle = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2224,7 +2224,7 @@ def timedwait(self) -> str: f"print({self._cmd_syntax}.timedwait)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timedwait`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timedwait`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timedwait.setter @@ -2257,7 +2257,7 @@ def timedwait(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timedwait = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timedwait`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timedwait`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2306,7 +2306,7 @@ def applysettings(self) -> None: f"{self._cmd_syntax}.applysettings()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -2328,7 +2328,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restoredefaults(self) -> None: @@ -2350,5 +2350,5 @@ def restoredefaults(self) -> None: f"{self._cmd_syntax}.restoredefaults()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/os.py b/src/tm_devices/commands/gen_ahkybr_smu/os.py index 800eaefb..f0189cd7 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/os.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/os.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Os(BaseTSPCmd): @@ -35,7 +35,7 @@ class Os(BaseTSPCmd): - ``.time()``: The ``os.time()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "os") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "os") -> None: super().__init__(device, cmd_syntax) def remove(self, filename: str) -> str: @@ -63,7 +63,7 @@ def remove(self, filename: str) -> str: f'print({self._cmd_syntax}.remove("{filename}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.remove()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.remove()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rename(self, oldname: str, newname: str) -> str: @@ -92,7 +92,7 @@ def rename(self, oldname: str, newname: str) -> str: f'print({self._cmd_syntax}.rename("{oldname}", "{newname}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rename()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rename()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def time(self, timespec: Optional[str] = None) -> str: @@ -121,5 +121,5 @@ def time(self, timespec: Optional[str] = None) -> str: f"print({self._cmd_syntax}.time({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/script.py b/src/tm_devices/commands/gen_ahkybr_smu/script.py index 1f32a26c..d4ff7f86 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/script.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/script.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): @@ -43,7 +43,7 @@ class Script(BaseTSPCmd): - ``.run()``: The ``script.run()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "script") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "script") -> None: super().__init__(device, cmd_syntax) @property @@ -71,7 +71,7 @@ def anonymous(self) -> str: f"print({self._cmd_syntax}.anonymous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.anonymous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.anonymous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, script_name: str) -> None: @@ -96,7 +96,7 @@ def delete(self, script_name: str) -> None: f'{self._cmd_syntax}.delete("{script_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load(self, file: str, name: Optional[str] = None) -> str: @@ -133,7 +133,7 @@ def load(self, file: str, name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.load({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def new(self, code: str, name: Optional[str] = None) -> str: @@ -170,7 +170,7 @@ def new(self, code: str, name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.new({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.new()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.new()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def newautorun(self, code: str, name: Optional[str] = None) -> str: @@ -207,7 +207,7 @@ def newautorun(self, code: str, name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.newautorun({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.newautorun()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.newautorun()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, name: str) -> None: @@ -232,7 +232,7 @@ def restore(self, name: str) -> None: f"{self._cmd_syntax}.restore({name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -254,5 +254,5 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py index bfeb9c3a..0668b079 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): @@ -44,7 +44,9 @@ class Scriptvar(BaseTSPCmd): - ``.source``: The ``scriptVar.source`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scriptVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scriptVar" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -77,7 +79,7 @@ def autorun(self) -> str: f"print({self._cmd_syntax}.autorun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorun.setter @@ -113,7 +115,7 @@ def autorun(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorun = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -146,7 +148,7 @@ def name(self) -> str: f"print({self._cmd_syntax}.name)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @name.setter @@ -182,7 +184,7 @@ def name(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.name = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -216,7 +218,7 @@ def source(self) -> str: f"print({self._cmd_syntax}.source)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @source.setter @@ -253,7 +255,7 @@ def source(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.source = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def list(self) -> None: @@ -278,7 +280,7 @@ def list(self) -> None: f"{self._cmd_syntax}.list()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -303,7 +305,7 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, filename: Optional[str] = None) -> None: @@ -334,5 +336,5 @@ def save(self, filename: Optional[str] = None) -> None: f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py index f4375c2f..32f6c7e6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Setup(BaseTSPCmd): @@ -35,7 +35,7 @@ class Setup(BaseTSPCmd): - ``.save()``: The ``setup.save()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "setup") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "setup") -> None: super().__init__(device, cmd_syntax) @property @@ -65,7 +65,7 @@ def poweron(self) -> str: f"print({self._cmd_syntax}.poweron)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @poweron.setter @@ -98,7 +98,7 @@ def poweron(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.poweron = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall(self, id_: str) -> None: @@ -123,7 +123,7 @@ def recall(self, id_: str) -> None: f"{self._cmd_syntax}.recall({id_})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, id_: int) -> None: @@ -148,5 +148,5 @@ def save(self, id_: int) -> None: f"{self._cmd_syntax}.save({id_})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py index bfef495b..6b381e3d 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): @@ -76,7 +76,7 @@ def abortonconnect(self) -> str: f"print({self._cmd_syntax}.abortonconnect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @abortonconnect.setter @@ -110,7 +110,7 @@ def abortonconnect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.abortonconnect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def abort(self, connection_id: str) -> None: @@ -136,7 +136,7 @@ def abort(self, connection_id: str) -> None: f"{self._cmd_syntax}.abort({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rbtablecopy( @@ -184,7 +184,7 @@ def rbtablecopy( f"print({self._cmd_syntax}.rbtablecopy({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def runscript(self, connection_id: str, name: str, script: str) -> None: @@ -211,7 +211,7 @@ def runscript(self, connection_id: str, name: str, script: str) -> None: f'{self._cmd_syntax}.runscript({connection_id}, "{name}", "{script}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -248,7 +248,7 @@ class Tspnet(BaseTSPCmd): TERM_LFCR = "tspnet.TERM_LFCR" """str: Set the device line termination sequence to LFCR.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tspnet") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tspnet") -> None: super().__init__(device, cmd_syntax) self._tsp = TspnetTsp(device, f"{self._cmd_syntax}.tsp") @@ -280,7 +280,7 @@ def timeout(self) -> str: f"print({self._cmd_syntax}.timeout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timeout.setter @@ -314,7 +314,7 @@ def timeout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timeout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -351,7 +351,7 @@ def clear(self, connection_id: str) -> None: f"{self._cmd_syntax}.clear({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect( @@ -394,7 +394,7 @@ def connect( f"print({self._cmd_syntax}.connect({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self, connection_id: str) -> None: @@ -419,7 +419,7 @@ def disconnect(self, connection_id: str) -> None: f"{self._cmd_syntax}.disconnect({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def execute( @@ -460,7 +460,7 @@ def execute( f"print({self._cmd_syntax}.execute({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def idn(self, connection_id: str) -> str: @@ -488,7 +488,7 @@ def idn(self, connection_id: str) -> str: f"print({self._cmd_syntax}.idn({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, connection_id: str, format_string: Optional[str] = None) -> str: @@ -525,7 +525,7 @@ def read(self, connection_id: str, format_string: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readavailable(self, connection_id: str) -> str: @@ -553,7 +553,7 @@ def readavailable(self, connection_id: str) -> str: f"print({self._cmd_syntax}.readavailable({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -575,7 +575,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def termination(self, connection_id: str, term_sequence: Optional[str] = None) -> str: @@ -612,7 +612,7 @@ def termination(self, connection_id: str, term_sequence: Optional[str] = None) - f"print({self._cmd_syntax}.termination({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, connection_id: str, input_string: str) -> None: @@ -638,5 +638,5 @@ def write(self, connection_id: str, input_string: str) -> None: f'{self._cmd_syntax}.write({connection_id}, "{input_string}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py index 1ee07cd7..ad3d5659 100644 --- a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py +++ b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -70,7 +70,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.timer[N].EVENT_ID" """str: The trigger timer event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -109,7 +109,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -147,7 +147,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -181,7 +181,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -218,7 +218,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -252,7 +252,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -289,7 +289,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -320,7 +320,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -354,7 +354,7 @@ def passthrough(self) -> str: f"print({self._cmd_syntax}.passthrough)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passthrough.setter @@ -391,7 +391,7 @@ def passthrough(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passthrough = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -425,7 +425,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -462,7 +462,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -488,7 +488,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -513,7 +513,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -541,7 +541,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -561,7 +561,7 @@ class TriggerGeneratorItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.generator[N].EVENT_ID" """str: The trigger event generated by the trigger event generator.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -590,7 +590,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -615,7 +615,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.blender[N].EVENT_ID" """str: The trigger blender event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -659,7 +659,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -696,7 +696,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -728,7 +728,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -782,7 +782,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -807,7 +807,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -835,7 +835,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -856,7 +856,7 @@ class Trigger(BaseTSPCmd): EVENT_ID = "trigger.EVENT_ID" """str: The command interface trigger event number.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -945,7 +945,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -973,5 +973,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ak4990_smu/smux.py b/src/tm_devices/commands/gen_ak4990_smu/smux.py index efb7157f..e7576662 100644 --- a/src/tm_devices/commands/gen_ak4990_smu/smux.py +++ b/src/tm_devices/commands/gen_ak4990_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -175,7 +175,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -213,7 +213,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -248,7 +248,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -286,7 +286,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -321,7 +321,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -359,7 +359,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -395,7 +395,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -434,7 +434,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -461,7 +461,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -488,7 +488,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -513,7 +513,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -538,7 +538,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -567,7 +567,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -596,7 +596,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -622,7 +622,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -676,7 +676,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -714,7 +714,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -750,7 +750,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -789,7 +789,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -815,7 +815,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -842,7 +842,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -868,7 +868,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -894,7 +894,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -920,7 +920,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -946,7 +946,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -993,7 +993,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1031,7 +1031,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1080,7 +1080,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1118,7 +1118,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1154,7 +1154,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1193,7 +1193,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1219,7 +1219,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1268,7 +1268,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1306,7 +1306,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1342,7 +1342,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1381,7 +1381,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1407,7 +1407,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1454,7 +1454,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1531,7 +1531,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1569,7 +1569,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1602,7 +1602,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1638,7 +1638,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1735,7 +1735,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1808,7 +1808,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1847,7 +1847,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1883,7 +1883,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1922,7 +1922,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1954,7 +1954,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1988,7 +1988,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -2025,7 +2025,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2059,7 +2059,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2096,7 +2096,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2130,7 +2130,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -2167,7 +2167,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2201,7 +2201,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2238,7 +2238,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2272,7 +2272,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2309,7 +2309,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2343,7 +2343,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2380,7 +2380,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2414,7 +2414,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2451,7 +2451,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2485,7 +2485,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2522,7 +2522,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2558,7 +2558,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2597,7 +2597,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2633,7 +2633,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2672,7 +2672,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2707,7 +2707,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2745,7 +2745,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2781,7 +2781,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2820,7 +2820,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2856,7 +2856,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2895,7 +2895,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2930,7 +2930,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2968,7 +2968,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3002,7 +3002,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -3039,7 +3039,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3074,7 +3074,7 @@ def outputenableaction(self) -> str: f"print({self._cmd_syntax}.outputenableaction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @outputenableaction.setter @@ -3112,7 +3112,7 @@ def outputenableaction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.outputenableaction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3146,7 +3146,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -3183,7 +3183,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3217,7 +3217,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -3254,7 +3254,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3288,7 +3288,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -3325,7 +3325,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3359,7 +3359,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3396,7 +3396,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3437,7 +3437,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3478,7 +3478,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3532,7 +3532,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3570,7 +3570,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3605,7 +3605,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3643,7 +3643,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3678,7 +3678,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3716,7 +3716,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3751,7 +3751,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3789,7 +3789,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3825,7 +3825,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3864,7 +3864,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3899,7 +3899,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3937,7 +3937,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3973,7 +3973,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -4012,7 +4012,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4047,7 +4047,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -4085,7 +4085,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4135,7 +4135,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4174,7 +4174,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4209,7 +4209,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4247,7 +4247,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4283,7 +4283,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4322,7 +4322,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4365,7 +4365,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -4403,7 +4403,7 @@ def analogfilter(self) -> str: f"print({self._cmd_syntax}.analogfilter)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @analogfilter.setter @@ -4442,7 +4442,7 @@ def analogfilter(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.analogfilter = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.analogfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4477,7 +4477,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4515,7 +4515,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4550,7 +4550,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4588,7 +4588,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4624,7 +4624,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4663,7 +4663,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4697,7 +4697,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4734,7 +4734,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4768,7 +4768,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4805,7 +4805,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4841,7 +4841,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4880,7 +4880,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4932,7 +4932,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4972,7 +4972,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5006,7 +5006,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -5043,7 +5043,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5079,7 +5079,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -5118,7 +5118,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5154,7 +5154,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -5193,7 +5193,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5227,7 +5227,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -5264,7 +5264,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5300,7 +5300,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -5339,7 +5339,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5375,7 +5375,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -5414,7 +5414,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5463,7 +5463,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -5503,7 +5503,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -5532,7 +5532,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5561,7 +5561,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5590,7 +5590,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5631,7 +5631,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5672,7 +5672,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5698,7 +5698,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5725,7 +5725,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5750,7 +5750,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5776,7 +5776,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5801,7 +5801,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5853,7 +5853,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5891,7 +5891,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5927,7 +5927,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5966,7 +5966,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -6000,7 +6000,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -6034,7 +6034,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -6061,7 +6061,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -6091,7 +6091,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6147,7 +6147,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -6185,7 +6185,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6219,7 +6219,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -6256,7 +6256,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6290,7 +6290,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -6327,7 +6327,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6382,7 +6382,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6416,7 +6416,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -6453,7 +6453,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6485,7 +6485,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -6511,7 +6511,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -6538,7 +6538,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -6564,7 +6564,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -6589,7 +6589,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6633,7 +6633,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6658,7 +6658,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6863,7 +6863,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -7110,7 +7110,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7142,7 +7142,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7176,7 +7176,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -7213,7 +7213,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7306,7 +7306,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -7334,7 +7334,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -7363,7 +7363,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -7392,7 +7392,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -7421,7 +7421,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -7450,7 +7450,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -7479,7 +7479,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7506,7 +7506,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -7532,5 +7532,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_am6pcr_smu/smux.py b/src/tm_devices/commands/gen_am6pcr_smu/smux.py index f4986bcd..136eb092 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/smux.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -168,7 +168,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -202,7 +202,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -233,7 +233,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -267,7 +267,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -298,7 +298,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -332,7 +332,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -364,7 +364,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -399,7 +399,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -426,7 +426,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -453,7 +453,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -478,7 +478,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -503,7 +503,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -532,7 +532,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -561,7 +561,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -583,7 +583,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -629,7 +629,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -663,7 +663,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -695,7 +695,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -730,7 +730,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -756,7 +756,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -783,7 +783,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -809,7 +809,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -835,7 +835,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -861,7 +861,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -883,7 +883,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -922,7 +922,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -956,7 +956,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -997,7 +997,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1031,7 +1031,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1063,7 +1063,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1098,7 +1098,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1120,7 +1120,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1161,7 +1161,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1195,7 +1195,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1227,7 +1227,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1262,7 +1262,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1284,7 +1284,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1396,7 +1396,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1430,7 +1430,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1460,7 +1460,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1493,7 +1493,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1570,7 +1570,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1635,7 +1635,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1670,7 +1670,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1737,7 +1737,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1765,7 +1765,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1795,7 +1795,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1828,7 +1828,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1858,7 +1858,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1891,7 +1891,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1921,7 +1921,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1954,7 +1954,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1984,7 +1984,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2017,7 +2017,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2047,7 +2047,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2080,7 +2080,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2110,7 +2110,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2143,7 +2143,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2173,7 +2173,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2206,7 +2206,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2236,7 +2236,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2269,7 +2269,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2301,7 +2301,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2336,7 +2336,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2368,7 +2368,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2403,7 +2403,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2435,7 +2435,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2470,7 +2470,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2502,7 +2502,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2537,7 +2537,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2569,7 +2569,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2604,7 +2604,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2635,7 +2635,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2669,7 +2669,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2699,7 +2699,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -2732,7 +2732,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2763,7 +2763,7 @@ def outputenableaction(self) -> str: f"print({self._cmd_syntax}.outputenableaction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @outputenableaction.setter @@ -2797,7 +2797,7 @@ def outputenableaction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.outputenableaction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.outputenableaction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2827,7 +2827,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -2860,7 +2860,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2890,7 +2890,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -2923,7 +2923,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2954,7 +2954,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -2988,7 +2988,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3018,7 +3018,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3051,7 +3051,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3092,7 +3092,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3133,7 +3133,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3179,7 +3179,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3213,7 +3213,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3244,7 +3244,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3278,7 +3278,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3309,7 +3309,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3343,7 +3343,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3374,7 +3374,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3408,7 +3408,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3440,7 +3440,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3475,7 +3475,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3506,7 +3506,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3540,7 +3540,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3572,7 +3572,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -3607,7 +3607,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3638,7 +3638,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -3672,7 +3672,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3714,7 +3714,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3749,7 +3749,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3780,7 +3780,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3814,7 +3814,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3846,7 +3846,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -3881,7 +3881,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3920,7 +3920,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -3956,7 +3956,7 @@ def adc(self) -> str: f"print({self._cmd_syntax}.adc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adc.setter @@ -3993,7 +3993,7 @@ def adc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4024,7 +4024,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4058,7 +4058,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4089,7 +4089,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4123,7 +4123,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4155,7 +4155,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4190,7 +4190,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4220,7 +4220,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4253,7 +4253,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4283,7 +4283,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4316,7 +4316,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4348,7 +4348,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4383,7 +4383,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4427,7 +4427,7 @@ def highcrangedelayfactor(self) -> str: f"print({self._cmd_syntax}.highcrangedelayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highcrangedelayfactor.setter @@ -4463,7 +4463,7 @@ def highcrangedelayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highcrangedelayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highcrangedelayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4494,7 +4494,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -4528,7 +4528,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4560,7 +4560,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -4595,7 +4595,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4627,7 +4627,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -4662,7 +4662,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4692,7 +4692,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4725,7 +4725,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4757,7 +4757,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -4792,7 +4792,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4824,7 +4824,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -4859,7 +4859,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4904,7 +4904,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -4944,7 +4944,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -4973,7 +4973,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -5002,7 +5002,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -5031,7 +5031,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5072,7 +5072,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5113,7 +5113,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5139,7 +5139,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5166,7 +5166,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5191,7 +5191,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5217,7 +5217,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5242,7 +5242,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5285,7 +5285,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5318,7 +5318,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5349,7 +5349,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5383,7 +5383,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -5416,7 +5416,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -5449,7 +5449,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -5471,7 +5471,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -5496,7 +5496,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5545,7 +5545,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -5579,7 +5579,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5609,7 +5609,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -5642,7 +5642,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5672,7 +5672,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -5705,7 +5705,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5754,7 +5754,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5785,7 +5785,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -5819,7 +5819,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5847,7 +5847,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def fastadc(self) -> None: @@ -5869,7 +5869,7 @@ def fastadc(self) -> None: f"{self._cmd_syntax}.fastadc()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -5891,7 +5891,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -5918,7 +5918,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -5940,7 +5940,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -5965,7 +5965,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6005,7 +6005,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -6030,7 +6030,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6238,7 +6238,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -6466,7 +6466,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6494,7 +6494,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6524,7 +6524,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -6557,7 +6557,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6637,7 +6637,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -6665,7 +6665,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -6694,7 +6694,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -6723,7 +6723,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -6752,7 +6752,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -6781,7 +6781,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -6810,7 +6810,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -6833,7 +6833,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -6859,5 +6859,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_am6pcr_smu/status.py b/src/tm_devices/commands/gen_am6pcr_smu/status.py index 1c3c96d1..74ba056e 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/status.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/status.py @@ -230,7 +230,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -305,7 +305,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -337,7 +337,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -372,7 +372,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -401,7 +401,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -432,7 +432,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -466,7 +466,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -497,7 +497,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -531,7 +531,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -639,7 +639,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -671,7 +671,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -706,7 +706,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -735,7 +735,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -766,7 +766,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -800,7 +800,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -831,7 +831,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -865,7 +865,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -973,7 +973,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1005,7 +1005,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1040,7 +1040,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1069,7 +1069,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1100,7 +1100,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1134,7 +1134,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1165,7 +1165,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1199,7 +1199,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1307,7 +1307,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1339,7 +1339,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1374,7 +1374,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1403,7 +1403,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1434,7 +1434,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1468,7 +1468,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1499,7 +1499,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1533,7 +1533,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1641,7 +1641,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1673,7 +1673,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1708,7 +1708,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1737,7 +1737,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1768,7 +1768,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1802,7 +1802,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1833,7 +1833,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1867,7 +1867,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1968,7 +1968,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1999,7 +1999,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2033,7 +2033,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2061,7 +2061,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2092,7 +2092,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2126,7 +2126,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2157,7 +2157,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2191,7 +2191,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2240,7 +2240,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2272,7 +2272,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2307,7 +2307,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2336,7 +2336,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2368,7 +2368,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2403,7 +2403,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2435,7 +2435,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2470,7 +2470,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2517,7 +2517,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2549,7 +2549,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2584,7 +2584,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2613,7 +2613,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2645,7 +2645,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2680,7 +2680,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2712,7 +2712,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2747,7 +2747,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2794,7 +2794,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2835,7 +2835,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2867,7 +2867,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2902,7 +2902,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2931,7 +2931,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2963,7 +2963,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2998,7 +2998,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3030,7 +3030,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3065,7 +3065,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3088,7 +3088,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUA = "status.questionable.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits for the SMU A questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3120,7 +3120,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3152,7 +3152,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3187,7 +3187,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3216,7 +3216,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3248,7 +3248,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3283,7 +3283,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3315,7 +3315,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3350,7 +3350,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3427,7 +3427,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3459,7 +3459,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3494,7 +3494,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3523,7 +3523,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3555,7 +3555,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3590,7 +3590,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3622,7 +3622,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3657,7 +3657,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3711,7 +3711,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3765,7 +3765,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3796,7 +3796,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3830,7 +3830,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3858,7 +3858,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3907,7 +3907,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3941,7 +3941,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3989,7 +3989,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4023,7 +4023,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4132,7 +4132,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4167,7 +4167,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4198,7 +4198,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4232,7 +4232,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4260,7 +4260,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4291,7 +4291,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4325,7 +4325,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4356,7 +4356,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4390,7 +4390,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4470,7 +4470,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4502,7 +4502,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4537,7 +4537,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4566,7 +4566,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4598,7 +4598,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4633,7 +4633,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4665,7 +4665,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4700,7 +4700,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4747,7 +4747,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4779,7 +4779,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4814,7 +4814,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4843,7 +4843,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4874,7 +4874,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4908,7 +4908,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4939,7 +4939,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4973,7 +4973,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5030,7 +5030,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5061,7 +5061,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5095,7 +5095,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5123,7 +5123,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5154,7 +5154,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5188,7 +5188,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5219,7 +5219,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5253,7 +5253,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5301,7 +5301,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5333,7 +5333,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5368,7 +5368,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5397,7 +5397,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5428,7 +5428,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5462,7 +5462,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5493,7 +5493,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5527,7 +5527,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5584,7 +5584,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5616,7 +5616,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5651,7 +5651,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5680,7 +5680,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5712,7 +5712,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5747,7 +5747,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5779,7 +5779,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5814,7 +5814,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5842,7 +5842,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5874,7 +5874,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5906,7 +5906,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5941,7 +5941,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5970,7 +5970,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6002,7 +6002,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6037,7 +6037,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6069,7 +6069,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6104,7 +6104,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6207,7 +6207,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6239,7 +6239,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6274,7 +6274,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6303,7 +6303,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6335,7 +6335,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6370,7 +6370,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6402,7 +6402,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6437,7 +6437,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6465,7 +6465,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6497,7 +6497,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6529,7 +6529,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6564,7 +6564,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6593,7 +6593,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6625,7 +6625,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6660,7 +6660,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6692,7 +6692,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6727,7 +6727,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6837,7 +6837,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6870,7 +6870,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6906,7 +6906,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6935,7 +6935,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6967,7 +6967,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7002,7 +7002,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7034,7 +7034,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7069,7 +7069,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7097,7 +7097,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7129,7 +7129,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7161,7 +7161,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7196,7 +7196,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7225,7 +7225,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7257,7 +7257,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7292,7 +7292,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7324,7 +7324,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7359,7 +7359,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7419,7 +7419,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7469,7 +7469,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7501,7 +7501,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7536,7 +7536,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7565,7 +7565,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7597,7 +7597,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7632,7 +7632,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7664,7 +7664,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7699,7 +7699,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7750,7 +7750,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7801,7 +7801,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7833,7 +7833,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7868,7 +7868,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7897,7 +7897,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7929,7 +7929,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7964,7 +7964,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7996,7 +7996,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8031,7 +8031,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8139,7 +8139,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8171,7 +8171,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8206,7 +8206,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8235,7 +8235,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8267,7 +8267,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8302,7 +8302,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8334,7 +8334,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8369,7 +8369,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8411,7 +8411,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8443,7 +8443,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8475,7 +8475,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8510,7 +8510,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8539,7 +8539,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8571,7 +8571,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8606,7 +8606,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8638,7 +8638,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8673,7 +8673,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8806,7 +8806,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8838,7 +8838,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8873,7 +8873,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8902,7 +8902,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8934,7 +8934,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8969,7 +8969,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9001,7 +9001,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9036,7 +9036,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9064,7 +9064,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9096,7 +9096,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9128,7 +9128,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9163,7 +9163,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9192,7 +9192,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9224,7 +9224,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9259,7 +9259,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9291,7 +9291,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9326,7 +9326,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9431,7 +9431,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9472,7 +9472,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9525,7 +9525,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9560,7 +9560,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9589,7 +9589,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9649,7 +9649,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9684,7 +9684,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9716,7 +9716,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9751,7 +9751,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9893,7 +9893,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9925,7 +9925,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9960,7 +9960,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9989,7 +9989,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10021,7 +10021,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10056,7 +10056,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10088,7 +10088,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10123,7 +10123,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10206,7 +10206,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10259,7 +10259,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10290,7 +10290,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10324,7 +10324,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10352,7 +10352,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10440,7 +10440,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10474,7 +10474,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10505,7 +10505,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10539,7 +10539,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10686,7 +10686,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10718,7 +10718,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10753,7 +10753,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10782,7 +10782,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10814,7 +10814,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10849,7 +10849,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10881,7 +10881,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10916,7 +10916,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10957,7 +10957,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10989,7 +10989,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11024,7 +11024,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11053,7 +11053,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11085,7 +11085,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11120,7 +11120,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11152,7 +11152,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11187,7 +11187,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11234,7 +11234,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11266,7 +11266,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11301,7 +11301,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11330,7 +11330,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11362,7 +11362,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11397,7 +11397,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11429,7 +11429,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11464,7 +11464,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11513,7 +11513,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11559,7 +11559,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11592,7 +11592,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11628,7 +11628,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11658,7 +11658,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11691,7 +11691,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11727,7 +11727,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11760,7 +11760,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11796,7 +11796,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11819,7 +11819,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUA = "status.measurement.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits of the measurement event SMU A summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11852,7 +11852,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11885,7 +11885,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11921,7 +11921,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11951,7 +11951,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11984,7 +11984,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12020,7 +12020,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12053,7 +12053,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12089,7 +12089,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12166,7 +12166,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12198,7 +12198,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12233,7 +12233,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12262,7 +12262,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12294,7 +12294,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12329,7 +12329,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12361,7 +12361,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12396,7 +12396,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12447,7 +12447,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12479,7 +12479,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12514,7 +12514,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12543,7 +12543,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12575,7 +12575,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12610,7 +12610,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12642,7 +12642,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12677,7 +12677,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12750,7 +12750,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12810,7 +12810,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12857,7 +12857,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12891,7 +12891,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12919,7 +12919,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12968,7 +12968,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -13002,7 +13002,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13033,7 +13033,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -13067,7 +13067,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13201,7 +13201,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13238,7 +13238,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13312,7 +13312,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13345,7 +13345,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13373,7 +13373,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13489,7 +13489,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13523,7 +13523,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13551,7 +13551,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13839,5 +13839,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_amm5lc_smu/digio.py b/src/tm_devices/commands/gen_amm5lc_smu/digio.py index 76c1df29..3a48739c 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/digio.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -65,7 +65,7 @@ class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "digio.trigger[N].EVENT_ID" """str: The trigger event generated by the digital I/O line N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -105,7 +105,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -144,7 +144,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -176,7 +176,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -212,7 +212,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -251,7 +251,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -286,7 +286,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -324,7 +324,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -350,7 +350,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -376,7 +376,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -402,7 +402,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -428,7 +428,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -457,7 +457,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -525,7 +525,7 @@ class Digio(BaseTSPCmd): TRIG_SYNCHRONOUSM = "digio.TRIG_SYNCHRONOUSM" """str: Sets the mode in which the trigger event detector and the output trigger generator operate on the specified trigger line to detect rising-edge triggers as input and assert a TTL-low pulse for output.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, DigioTriggerItem] = DefaultDictPassKeyToFactory( lambda x: DigioTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -583,7 +583,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -618,7 +618,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -647,7 +647,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -673,7 +673,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -700,7 +700,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -726,5 +726,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py index 47f0ba2c..13cf96d3 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -71,7 +71,7 @@ class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "tsplink.trigger[N].EVENT_ID" """str: The number that is used for the trigger events.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -110,7 +110,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -148,7 +148,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -180,7 +180,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -216,7 +216,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -255,7 +255,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -290,7 +290,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -328,7 +328,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -354,7 +354,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -380,7 +380,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -406,7 +406,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -432,7 +432,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -461,7 +461,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -527,7 +527,7 @@ class Tsplink(BaseTSPCmd): TRIG_SYNCHRONOUSM = "tsplink.TRIG_SYNCHRONOUSM" """str: Detects rising-edge triggers as an input. Asserts a TTL-low pulse for output.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, TsplinkTriggerItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -561,7 +561,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -595,7 +595,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -624,7 +624,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -655,7 +655,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -689,7 +689,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -718,7 +718,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -774,7 +774,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -810,7 +810,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -839,7 +839,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -865,7 +865,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, expected_nodes: Optional[int] = None) -> str: @@ -895,7 +895,7 @@ def reset(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.reset({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -922,7 +922,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -948,5 +948,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_aostep_smu/serial.py b/src/tm_devices/commands/gen_aostep_smu/serial.py index c3033c63..48e5e4c1 100644 --- a/src/tm_devices/commands/gen_aostep_smu/serial.py +++ b/src/tm_devices/commands/gen_aostep_smu/serial.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Serial(BaseTSPCmd): @@ -59,7 +59,7 @@ class Serial(BaseTSPCmd): PARITY_ODD = "serial.PARITY_ODD" """str: Select odd parity.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "serial") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "serial") -> None: super().__init__(device, cmd_syntax) @property @@ -89,7 +89,7 @@ def baud(self) -> str: f"print({self._cmd_syntax}.baud)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @baud.setter @@ -122,7 +122,7 @@ def baud(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.baud = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -155,7 +155,7 @@ def databits(self) -> str: f"print({self._cmd_syntax}.databits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @databits.setter @@ -191,7 +191,7 @@ def databits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.databits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.databits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -221,7 +221,7 @@ def flowcontrol(self) -> str: f"print({self._cmd_syntax}.flowcontrol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.flowcontrol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.flowcontrol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @flowcontrol.setter @@ -254,7 +254,7 @@ def flowcontrol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.flowcontrol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.flowcontrol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.flowcontrol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -284,7 +284,7 @@ def parity(self) -> str: f"print({self._cmd_syntax}.parity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @parity.setter @@ -317,7 +317,7 @@ def parity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.parity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.parity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, maxchars: str) -> str: @@ -345,7 +345,7 @@ def read(self, maxchars: str) -> str: f"print({self._cmd_syntax}.read({maxchars}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, data: str) -> None: @@ -370,5 +370,5 @@ def write(self, data: str) -> None: f'{self._cmd_syntax}.write("{data}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py index 703d431b..6cdf2486 100644 --- a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py +++ b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -69,7 +69,9 @@ class Localnode(BaseTSPCmd): PASSWORD_WEB = "localnode.PASSWORD_WEB" """str: Use passwords on the web interface only.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -101,7 +103,7 @@ def autolinefreq(self) -> str: f"print({self._cmd_syntax}.autolinefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autolinefreq.setter @@ -136,7 +138,7 @@ def autolinefreq(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autolinefreq = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -168,7 +170,7 @@ def description(self) -> str: f"print({self._cmd_syntax}.description)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @description.setter @@ -203,7 +205,7 @@ def description(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.description = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -231,7 +233,7 @@ def license(self) -> str: f"print({self._cmd_syntax}.license)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -262,7 +264,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linefreq.setter @@ -296,7 +298,7 @@ def linefreq(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linefreq = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -324,7 +326,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -373,7 +375,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -407,7 +409,7 @@ def passwordmode(self) -> str: f"print({self._cmd_syntax}.passwordmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passwordmode.setter @@ -444,7 +446,7 @@ def passwordmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passwordmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -475,7 +477,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -509,7 +511,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -541,7 +543,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -576,7 +578,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -604,7 +606,7 @@ def revision(self) -> str: f"print({self._cmd_syntax}.revision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -632,7 +634,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -664,7 +666,7 @@ def showerrors(self) -> str: f"print({self._cmd_syntax}.showerrors)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showerrors.setter @@ -699,7 +701,7 @@ def showerrors(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showerrors = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -721,5 +723,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py index b1e215a0..3956a2c4 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -67,7 +67,9 @@ class Localnode(BaseTSPCmd): PASSWORD_WEB = "localnode.PASSWORD_WEB" """str: Use passwords on the web interface only.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -99,7 +101,7 @@ def description(self) -> str: f"print({self._cmd_syntax}.description)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @description.setter @@ -134,7 +136,7 @@ def description(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.description = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -162,7 +164,7 @@ def license(self) -> str: f"print({self._cmd_syntax}.license)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -193,7 +195,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linefreq.setter @@ -227,7 +229,7 @@ def linefreq(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linefreq = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -255,7 +257,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -304,7 +306,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -338,7 +340,7 @@ def passwordmode(self) -> str: f"print({self._cmd_syntax}.passwordmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passwordmode.setter @@ -375,7 +377,7 @@ def passwordmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passwordmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -406,7 +408,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -440,7 +442,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -472,7 +474,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -507,7 +509,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -535,7 +537,7 @@ def revision(self) -> str: f"print({self._cmd_syntax}.revision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -563,7 +565,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -595,7 +597,7 @@ def showerrors(self) -> str: f"print({self._cmd_syntax}.showerrors)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showerrors.setter @@ -630,7 +632,7 @@ def showerrors(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showerrors = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -652,5 +654,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_as1ejq_smu/smux.py b/src/tm_devices/commands/gen_as1ejq_smu/smux.py index afda8eea..526a42c3 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/smux.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): @@ -168,7 +168,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -202,7 +202,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -233,7 +233,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -267,7 +267,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -298,7 +298,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -332,7 +332,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -364,7 +364,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -399,7 +399,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lineari(self, start_value: float, end_value: float, points: int) -> None: @@ -426,7 +426,7 @@ def lineari(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.lineari({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lineari()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def linearv(self, start_value: float, end_value: float, points: int) -> None: @@ -453,7 +453,7 @@ def linearv(self, start_value: float, end_value: float, points: int) -> None: f"{self._cmd_syntax}.linearv({start_value}, {end_value}, {points})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.linearv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -478,7 +478,7 @@ def listi(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listi({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: @@ -503,7 +503,7 @@ def listv(self, sweep_list: Sequence[Union[str, float]]) -> None: f"{self._cmd_syntax}.listv({{{', '.join([str(x) for x in sweep_list])}}})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.listv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logi(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -532,7 +532,7 @@ def logi(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logi({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def logv(self, start_value: float, end_value: float, points: int, asymptote: str) -> None: @@ -561,7 +561,7 @@ def logv(self, start_value: float, end_value: float, points: int, asymptote: str f"{self._cmd_syntax}.logv({start_value}, {end_value}, {points}, {asymptote})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.logv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -583,7 +583,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -629,7 +629,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -663,7 +663,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -695,7 +695,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -730,7 +730,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def i(self, rbuffer: str) -> None: @@ -756,7 +756,7 @@ def i(self, rbuffer: str) -> None: f"{self._cmd_syntax}.i({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv(self, ibuffer: str, vbuffer: str) -> None: @@ -783,7 +783,7 @@ def iv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.iv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, rbuffer: str) -> None: @@ -809,7 +809,7 @@ def p(self, rbuffer: str) -> None: f"{self._cmd_syntax}.p({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, rbuffer: str) -> None: @@ -835,7 +835,7 @@ def r(self, rbuffer: str) -> None: f"{self._cmd_syntax}.r({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, rbuffer: str) -> None: @@ -861,7 +861,7 @@ def v(self, rbuffer: str) -> None: f"{self._cmd_syntax}.v({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -883,7 +883,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -922,7 +922,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -956,7 +956,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -997,7 +997,7 @@ def action(self) -> str: f"print({self._cmd_syntax}.action)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @action.setter @@ -1031,7 +1031,7 @@ def action(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.action = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.action`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1063,7 +1063,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1098,7 +1098,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1120,7 +1120,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1161,7 +1161,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1195,7 +1195,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1227,7 +1227,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -1262,7 +1262,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -1284,7 +1284,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ class SmuxItemTrigger(BaseTSPCmd): SWEEP_COMPLETE_EVENT_ID = "smuX.trigger.SWEEP_COMPLETE_EVENT_ID" """str: The sweep complete event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARMED_EVENT_ID = self.ARMED_EVENT_ID.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -1396,7 +1396,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1430,7 +1430,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1460,7 +1460,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1493,7 +1493,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1570,7 +1570,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1635,7 +1635,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -1670,7 +1670,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -1737,7 +1737,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1765,7 +1765,7 @@ def compliance(self) -> str: f"print({self._cmd_syntax}.compliance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.compliance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1795,7 +1795,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1828,7 +1828,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1858,7 +1858,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -1891,7 +1891,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1921,7 +1921,7 @@ def highc(self) -> str: f"print({self._cmd_syntax}.highc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highc.setter @@ -1954,7 +1954,7 @@ def highc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1984,7 +1984,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -2017,7 +2017,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2047,7 +2047,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -2080,7 +2080,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2110,7 +2110,7 @@ def limiti(self) -> str: f"print({self._cmd_syntax}.limiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limiti.setter @@ -2143,7 +2143,7 @@ def limiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2173,7 +2173,7 @@ def limitp(self) -> str: f"print({self._cmd_syntax}.limitp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitp.setter @@ -2206,7 +2206,7 @@ def limitp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2236,7 +2236,7 @@ def limitv(self) -> str: f"print({self._cmd_syntax}.limitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @limitv.setter @@ -2269,7 +2269,7 @@ def limitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.limitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.limitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2301,7 +2301,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -2336,7 +2336,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2368,7 +2368,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -2403,7 +2403,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2435,7 +2435,7 @@ def offfunc(self) -> str: f"print({self._cmd_syntax}.offfunc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offfunc.setter @@ -2470,7 +2470,7 @@ def offfunc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offfunc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offfunc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2502,7 +2502,7 @@ def offlimiti(self) -> str: f"print({self._cmd_syntax}.offlimiti)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimiti.setter @@ -2537,7 +2537,7 @@ def offlimiti(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimiti = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimiti`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2569,7 +2569,7 @@ def offlimitv(self) -> str: f"print({self._cmd_syntax}.offlimitv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offlimitv.setter @@ -2604,7 +2604,7 @@ def offlimitv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offlimitv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offlimitv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2635,7 +2635,7 @@ def offmode(self) -> str: f"print({self._cmd_syntax}.offmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offmode.setter @@ -2669,7 +2669,7 @@ def offmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2699,7 +2699,7 @@ def output(self) -> str: f"print({self._cmd_syntax}.output)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @output.setter @@ -2732,7 +2732,7 @@ def output(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.output = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.output`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2763,7 +2763,7 @@ def protectv(self) -> str: f"print({self._cmd_syntax}.protectv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protectv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protectv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protectv.setter @@ -2797,7 +2797,7 @@ def protectv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protectv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protectv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protectv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2827,7 +2827,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -2860,7 +2860,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2890,7 +2890,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -2923,7 +2923,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2954,7 +2954,7 @@ def settling(self) -> str: f"print({self._cmd_syntax}.settling)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @settling.setter @@ -2988,7 +2988,7 @@ def settling(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.settling = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.settling`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3018,7 +3018,7 @@ def sink(self) -> str: f"print({self._cmd_syntax}.sink)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sink.setter @@ -3051,7 +3051,7 @@ def sink(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sink = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -3092,7 +3092,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -3133,7 +3133,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3179,7 +3179,7 @@ def enablei(self) -> str: f"print({self._cmd_syntax}.enablei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablei.setter @@ -3213,7 +3213,7 @@ def enablei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3244,7 +3244,7 @@ def enablep(self) -> str: f"print({self._cmd_syntax}.enablep)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablep.setter @@ -3278,7 +3278,7 @@ def enablep(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablep = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablep`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3309,7 +3309,7 @@ def enabler(self) -> str: f"print({self._cmd_syntax}.enabler)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enabler.setter @@ -3343,7 +3343,7 @@ def enabler(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enabler = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enabler`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3374,7 +3374,7 @@ def enablev(self) -> str: f"print({self._cmd_syntax}.enablev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enablev.setter @@ -3408,7 +3408,7 @@ def enablev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enablev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enablev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3440,7 +3440,7 @@ def leveli(self) -> str: f"print({self._cmd_syntax}.leveli)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @leveli.setter @@ -3475,7 +3475,7 @@ def leveli(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.leveli = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.leveli`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3506,7 +3506,7 @@ def levelp(self) -> str: f"print({self._cmd_syntax}.levelp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelp.setter @@ -3540,7 +3540,7 @@ def levelp(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelp = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3572,7 +3572,7 @@ def levelr(self) -> str: f"print({self._cmd_syntax}.levelr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelr.setter @@ -3607,7 +3607,7 @@ def levelr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3638,7 +3638,7 @@ def levelv(self) -> str: f"print({self._cmd_syntax}.levelv)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelv.setter @@ -3672,7 +3672,7 @@ def levelv(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelv = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelv`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3714,7 +3714,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3749,7 +3749,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3780,7 +3780,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3814,7 +3814,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3846,7 +3846,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -3881,7 +3881,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3919,7 +3919,7 @@ class SmuxItemMeasure(BaseTSPCmd): - ``.rel``: The ``smuX.measure.rel`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = SmuxItemMeasureFilter(device, f"{self._cmd_syntax}.filter") self._rel = SmuxItemMeasureRel(device, f"{self._cmd_syntax}.rel") @@ -3955,7 +3955,7 @@ def adc(self) -> str: f"print({self._cmd_syntax}.adc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adc.setter @@ -3992,7 +3992,7 @@ def adc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4023,7 +4023,7 @@ def autorangei(self) -> str: f"print({self._cmd_syntax}.autorangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangei.setter @@ -4057,7 +4057,7 @@ def autorangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4088,7 +4088,7 @@ def autorangev(self) -> str: f"print({self._cmd_syntax}.autorangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorangev.setter @@ -4122,7 +4122,7 @@ def autorangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4154,7 +4154,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -4189,7 +4189,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4219,7 +4219,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -4252,7 +4252,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4282,7 +4282,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -4315,7 +4315,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4347,7 +4347,7 @@ def delayfactor(self) -> str: f"print({self._cmd_syntax}.delayfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delayfactor.setter @@ -4382,7 +4382,7 @@ def delayfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delayfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delayfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4424,7 +4424,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -4458,7 +4458,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4490,7 +4490,7 @@ def lowrangei(self) -> str: f"print({self._cmd_syntax}.lowrangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangei.setter @@ -4525,7 +4525,7 @@ def lowrangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4557,7 +4557,7 @@ def lowrangev(self) -> str: f"print({self._cmd_syntax}.lowrangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lowrangev.setter @@ -4592,7 +4592,7 @@ def lowrangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lowrangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lowrangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4622,7 +4622,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -4655,7 +4655,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4687,7 +4687,7 @@ def rangei(self) -> str: f"print({self._cmd_syntax}.rangei)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangei.setter @@ -4722,7 +4722,7 @@ def rangei(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangei = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangei`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4754,7 +4754,7 @@ def rangev(self) -> str: f"print({self._cmd_syntax}.rangev)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rangev.setter @@ -4789,7 +4789,7 @@ def rangev(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rangev = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rangev`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4834,7 +4834,7 @@ def i(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.i({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def iv( @@ -4874,7 +4874,7 @@ def iv( f"print({self._cmd_syntax}.iv({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.iv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def p(self, reading_buffer: Optional[str] = None) -> str: @@ -4903,7 +4903,7 @@ def p(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.p({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self, reading_buffer: Optional[str] = None) -> str: @@ -4932,7 +4932,7 @@ def r(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.r({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def v(self, reading_buffer: Optional[str] = None) -> str: @@ -4961,7 +4961,7 @@ def v(self, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.v({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratei( @@ -5002,7 +5002,7 @@ def calibratei( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratei()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratev( @@ -5043,7 +5043,7 @@ def calibratev( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratev()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedi(self, rbuffer: str) -> None: @@ -5069,7 +5069,7 @@ def overlappedi(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedi({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappediv(self, ibuffer: str, vbuffer: str) -> None: @@ -5096,7 +5096,7 @@ def overlappediv(self, ibuffer: str, vbuffer: str) -> None: f"{self._cmd_syntax}.overlappediv({ibuffer}, {vbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappediv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedp(self, rbuffer: str) -> None: @@ -5121,7 +5121,7 @@ def overlappedp(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedp({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedr(self, rbuffer: str) -> None: @@ -5147,7 +5147,7 @@ def overlappedr(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedr({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedr()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def overlappedv(self, rbuffer: str) -> None: @@ -5172,7 +5172,7 @@ def overlappedv(self, rbuffer: str) -> None: f"{self._cmd_syntax}.overlappedv({rbuffer})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.overlappedv()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5215,7 +5215,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @speed.setter @@ -5248,7 +5248,7 @@ def speed(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.speed = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5279,7 +5279,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -5313,7 +5313,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratehi( @@ -5346,7 +5346,7 @@ def calibratehi( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratehi()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def calibratelo( @@ -5379,7 +5379,7 @@ def calibratelo( f"{cp2_reference})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.calibratelo()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def check(self) -> None: @@ -5401,7 +5401,7 @@ def check(self) -> None: f"{self._cmd_syntax}.check()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def r(self) -> str: @@ -5426,7 +5426,7 @@ def r(self) -> str: f"print({self._cmd_syntax}.r())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5476,7 +5476,7 @@ def adjustdate(self) -> str: f"print({self._cmd_syntax}.adjustdate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @adjustdate.setter @@ -5510,7 +5510,7 @@ def adjustdate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.adjustdate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.adjustdate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5540,7 +5540,7 @@ def date(self) -> str: f"print({self._cmd_syntax}.date)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @date.setter @@ -5573,7 +5573,7 @@ def date(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.date = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5603,7 +5603,7 @@ def due(self) -> str: f"print({self._cmd_syntax}.due)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @due.setter @@ -5636,7 +5636,7 @@ def due(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.due = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5685,7 +5685,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5716,7 +5716,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -5750,7 +5750,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5778,7 +5778,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def fastadc(self) -> None: @@ -5800,7 +5800,7 @@ def fastadc(self) -> None: f"{self._cmd_syntax}.fastadc()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -5822,7 +5822,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def ovp(self) -> None: @@ -5844,7 +5844,7 @@ def ovp(self) -> None: f"{self._cmd_syntax}.ovp()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.ovp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.ovp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, calset: Optional[str] = None) -> None: @@ -5871,7 +5871,7 @@ def restore(self, calset: Optional[str] = None) -> None: f"{self._cmd_syntax}.restore({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -5893,7 +5893,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -5918,7 +5918,7 @@ def unlock(self, password: str) -> None: f"{self._cmd_syntax}.unlock({password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5958,7 +5958,7 @@ def getstats(self, buffer_var: str) -> Dict[Any, Any]: self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recalculatestats(self, buffer_var: str) -> None: @@ -5983,7 +5983,7 @@ def recalculatestats(self, buffer_var: str) -> None: f"{self._cmd_syntax}.recalculatestats({buffer_var})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recalculatestats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6191,7 +6191,7 @@ class SmuxItem(ValidatedChannel, BaseTSPCmd): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smuX" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smuX" ) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name @@ -6419,7 +6419,7 @@ def nvbuffer1(self) -> str: f"print({self._cmd_syntax}.nvbuffer1)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer1`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6447,7 +6447,7 @@ def nvbuffer2(self) -> str: f"print({self._cmd_syntax}.nvbuffer2)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nvbuffer2`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6477,7 +6477,7 @@ def sense(self) -> str: f"print({self._cmd_syntax}.sense)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @sense.setter @@ -6510,7 +6510,7 @@ def sense(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.sense = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.sense`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6590,7 +6590,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -6618,7 +6618,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureiandstep(self, source_value: float) -> str: @@ -6647,7 +6647,7 @@ def measureiandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureiandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureiandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measureivandstep(self, source_value: float) -> str: @@ -6676,7 +6676,7 @@ def measureivandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measureivandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measureivandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurepandstep(self, source_value: float) -> str: @@ -6705,7 +6705,7 @@ def measurepandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurepandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurepandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurerandstep(self, source_value: float) -> str: @@ -6734,7 +6734,7 @@ def measurerandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurerandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurerandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurevandstep(self, source_value: float) -> str: @@ -6763,7 +6763,7 @@ def measurevandstep(self, source_value: float) -> str: f"print({self._cmd_syntax}.measurevandstep({source_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurevandstep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -6786,7 +6786,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer(self, y: str) -> None: @@ -6812,5 +6812,5 @@ def savebuffer(self, y: str) -> None: f"{self._cmd_syntax}.savebuffer({y})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_as1ejq_smu/status.py b/src/tm_devices/commands/gen_as1ejq_smu/status.py index 256494cc..e88d2401 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/status.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/status.py @@ -235,7 +235,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -310,7 +310,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -342,7 +342,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -377,7 +377,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -406,7 +406,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -437,7 +437,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -471,7 +471,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -502,7 +502,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -536,7 +536,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -644,7 +644,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -676,7 +676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -711,7 +711,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -740,7 +740,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -771,7 +771,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -805,7 +805,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -836,7 +836,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -870,7 +870,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -978,7 +978,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1010,7 +1010,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1045,7 +1045,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1074,7 +1074,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1105,7 +1105,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1139,7 +1139,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1170,7 +1170,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1204,7 +1204,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1312,7 +1312,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1344,7 +1344,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1379,7 +1379,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1408,7 +1408,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1439,7 +1439,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1473,7 +1473,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1504,7 +1504,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1538,7 +1538,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1646,7 +1646,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1678,7 +1678,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1713,7 +1713,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1742,7 +1742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1773,7 +1773,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1807,7 +1807,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1838,7 +1838,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1872,7 +1872,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1973,7 +1973,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2004,7 +2004,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2038,7 +2038,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2066,7 +2066,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2097,7 +2097,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2131,7 +2131,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2162,7 +2162,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2196,7 +2196,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2245,7 +2245,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2277,7 +2277,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2312,7 +2312,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2341,7 +2341,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2373,7 +2373,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2408,7 +2408,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2440,7 +2440,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2475,7 +2475,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2522,7 +2522,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2554,7 +2554,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2589,7 +2589,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2618,7 +2618,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2650,7 +2650,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2685,7 +2685,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2717,7 +2717,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2752,7 +2752,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2799,7 +2799,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2840,7 +2840,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2872,7 +2872,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2907,7 +2907,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2936,7 +2936,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2968,7 +2968,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3003,7 +3003,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3035,7 +3035,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3070,7 +3070,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3093,7 +3093,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUA = "status.questionable.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits for the SMU A questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3125,7 +3125,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3157,7 +3157,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3192,7 +3192,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3221,7 +3221,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3253,7 +3253,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3288,7 +3288,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3320,7 +3320,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3355,7 +3355,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3432,7 +3432,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3464,7 +3464,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3499,7 +3499,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3528,7 +3528,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3560,7 +3560,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3595,7 +3595,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3627,7 +3627,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3662,7 +3662,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3716,7 +3716,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3770,7 +3770,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3801,7 +3801,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3835,7 +3835,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3863,7 +3863,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3912,7 +3912,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3946,7 +3946,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3994,7 +3994,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4028,7 +4028,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4137,7 +4137,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4172,7 +4172,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4203,7 +4203,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4237,7 +4237,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4265,7 +4265,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4296,7 +4296,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4330,7 +4330,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4361,7 +4361,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4395,7 +4395,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4475,7 +4475,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4507,7 +4507,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4542,7 +4542,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4571,7 +4571,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4603,7 +4603,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4638,7 +4638,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4670,7 +4670,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4705,7 +4705,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4752,7 +4752,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4784,7 +4784,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4819,7 +4819,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4848,7 +4848,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4879,7 +4879,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4913,7 +4913,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4944,7 +4944,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4978,7 +4978,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5035,7 +5035,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5066,7 +5066,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5100,7 +5100,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5128,7 +5128,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5159,7 +5159,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5193,7 +5193,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5224,7 +5224,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5258,7 +5258,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5306,7 +5306,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5338,7 +5338,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5373,7 +5373,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5402,7 +5402,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5433,7 +5433,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5467,7 +5467,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5498,7 +5498,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5532,7 +5532,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5589,7 +5589,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5621,7 +5621,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5656,7 +5656,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5685,7 +5685,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5717,7 +5717,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5752,7 +5752,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5784,7 +5784,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5819,7 +5819,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5847,7 +5847,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5879,7 +5879,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5911,7 +5911,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5946,7 +5946,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5975,7 +5975,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6007,7 +6007,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6042,7 +6042,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6074,7 +6074,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6109,7 +6109,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6212,7 +6212,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6244,7 +6244,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6279,7 +6279,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6308,7 +6308,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6340,7 +6340,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6375,7 +6375,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6407,7 +6407,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6442,7 +6442,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6470,7 +6470,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6502,7 +6502,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6534,7 +6534,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6569,7 +6569,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6598,7 +6598,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6630,7 +6630,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6665,7 +6665,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6697,7 +6697,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6732,7 +6732,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6842,7 +6842,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6875,7 +6875,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6911,7 +6911,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6940,7 +6940,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6972,7 +6972,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7007,7 +7007,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7039,7 +7039,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7074,7 +7074,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7102,7 +7102,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7134,7 +7134,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7166,7 +7166,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7201,7 +7201,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7230,7 +7230,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7262,7 +7262,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7297,7 +7297,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7329,7 +7329,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7364,7 +7364,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7424,7 +7424,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7474,7 +7474,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7506,7 +7506,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7541,7 +7541,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7570,7 +7570,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7602,7 +7602,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7637,7 +7637,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7669,7 +7669,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7704,7 +7704,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7755,7 +7755,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7806,7 +7806,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7838,7 +7838,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7873,7 +7873,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7902,7 +7902,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7934,7 +7934,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7969,7 +7969,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8001,7 +8001,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8036,7 +8036,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8144,7 +8144,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8176,7 +8176,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8211,7 +8211,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8240,7 +8240,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8272,7 +8272,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8307,7 +8307,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8339,7 +8339,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8374,7 +8374,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8416,7 +8416,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8448,7 +8448,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8480,7 +8480,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8515,7 +8515,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8544,7 +8544,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8576,7 +8576,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8611,7 +8611,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8643,7 +8643,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8678,7 +8678,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8811,7 +8811,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8843,7 +8843,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8878,7 +8878,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8907,7 +8907,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8939,7 +8939,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8974,7 +8974,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9006,7 +9006,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9041,7 +9041,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9069,7 +9069,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9101,7 +9101,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9133,7 +9133,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9168,7 +9168,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9197,7 +9197,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9229,7 +9229,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9264,7 +9264,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9296,7 +9296,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9331,7 +9331,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9436,7 +9436,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9477,7 +9477,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9530,7 +9530,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9565,7 +9565,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9594,7 +9594,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9654,7 +9654,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9689,7 +9689,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9721,7 +9721,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9756,7 +9756,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9898,7 +9898,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9930,7 +9930,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9965,7 +9965,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9994,7 +9994,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10026,7 +10026,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10061,7 +10061,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10093,7 +10093,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10128,7 +10128,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10211,7 +10211,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10264,7 +10264,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10295,7 +10295,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10329,7 +10329,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10357,7 +10357,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10445,7 +10445,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10479,7 +10479,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10510,7 +10510,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10544,7 +10544,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10691,7 +10691,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10723,7 +10723,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10758,7 +10758,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10787,7 +10787,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10819,7 +10819,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10854,7 +10854,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10886,7 +10886,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10921,7 +10921,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10962,7 +10962,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10994,7 +10994,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11029,7 +11029,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11058,7 +11058,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11090,7 +11090,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11125,7 +11125,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11157,7 +11157,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11192,7 +11192,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11239,7 +11239,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11271,7 +11271,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11306,7 +11306,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11335,7 +11335,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11367,7 +11367,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11402,7 +11402,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11434,7 +11434,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11469,7 +11469,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11510,7 +11510,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11542,7 +11542,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11577,7 +11577,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11606,7 +11606,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11638,7 +11638,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11673,7 +11673,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11705,7 +11705,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11740,7 +11740,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11789,7 +11789,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11835,7 +11835,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11868,7 +11868,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11904,7 +11904,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11934,7 +11934,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11967,7 +11967,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12003,7 +12003,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12036,7 +12036,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12072,7 +12072,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12095,7 +12095,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUA = "status.measurement.instrument.SMUA" """str: B1. Set bit indicates one or more enabled bits of the measurement event SMU A summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -12128,7 +12128,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12161,7 +12161,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12197,7 +12197,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12227,7 +12227,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12260,7 +12260,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12296,7 +12296,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12329,7 +12329,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12365,7 +12365,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12442,7 +12442,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12474,7 +12474,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12509,7 +12509,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12538,7 +12538,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12570,7 +12570,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12605,7 +12605,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12637,7 +12637,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12672,7 +12672,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12723,7 +12723,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12755,7 +12755,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12790,7 +12790,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12819,7 +12819,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12851,7 +12851,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12886,7 +12886,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12918,7 +12918,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12953,7 +12953,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13027,7 +13027,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -13088,7 +13088,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13135,7 +13135,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -13169,7 +13169,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13197,7 +13197,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13246,7 +13246,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -13280,7 +13280,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13324,7 +13324,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -13358,7 +13358,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13492,7 +13492,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13529,7 +13529,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13604,7 +13604,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13637,7 +13637,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13665,7 +13665,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13781,7 +13781,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13815,7 +13815,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13843,7 +13843,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -14131,5 +14131,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_at7jl1_smu/display.py b/src/tm_devices/commands/gen_at7jl1_smu/display.py index e56e6842..c58b94ca 100644 --- a/src/tm_devices/commands/gen_at7jl1_smu/display.py +++ b/src/tm_devices/commands/gen_at7jl1_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): @@ -91,7 +91,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -113,7 +113,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -141,7 +141,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -188,7 +188,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -226,7 +226,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -274,7 +274,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -313,7 +313,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -330,7 +330,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -367,7 +367,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -405,7 +405,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -477,7 +477,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -503,7 +503,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -774,7 +774,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( @@ -825,7 +825,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -864,7 +864,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -895,7 +895,7 @@ def numpad(self) -> str: f"print({self._cmd_syntax}.numpad)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @numpad.setter @@ -929,7 +929,7 @@ def numpad(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.numpad = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -959,7 +959,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -992,7 +992,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1044,7 +1044,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -1069,7 +1069,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -1094,7 +1094,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -1119,7 +1119,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -1170,7 +1170,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -1219,7 +1219,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -1248,7 +1248,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt( @@ -1305,7 +1305,7 @@ def prompt( f"print({self._cmd_syntax}.prompt({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -1331,7 +1331,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -1368,7 +1368,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext(self, text: str) -> None: @@ -1393,7 +1393,7 @@ def settext(self, text: str) -> None: f'{self._cmd_syntax}.settext("{text}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -1418,5 +1418,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_au597k_smu/digio.py b/src/tm_devices/commands/gen_au597k_smu/digio.py index 1db87c01..a5a4d622 100644 --- a/src/tm_devices/commands/gen_au597k_smu/digio.py +++ b/src/tm_devices/commands/gen_au597k_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -65,7 +65,7 @@ class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "digio.trigger[N].EVENT_ID" """str: The trigger event generated by the digital I/O line N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -104,7 +104,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -142,7 +142,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -173,7 +173,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -209,7 +209,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -248,7 +248,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -283,7 +283,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -321,7 +321,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -346,7 +346,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -371,7 +371,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -396,7 +396,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -421,7 +421,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -449,7 +449,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -517,7 +517,7 @@ class Digio(BaseTSPCmd): TRIG_SYNCHRONOUSM = "digio.TRIG_SYNCHRONOUSM" """str: Sets the mode in which the trigger event detector and the output trigger generator operate on the specified trigger line to detect rising-edge triggers as input and assert a TTL-low pulse for output.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, DigioTriggerItem] = DefaultDictPassKeyToFactory( lambda x: DigioTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -574,7 +574,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -608,7 +608,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -636,7 +636,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -661,7 +661,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -687,7 +687,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -712,5 +712,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_au597k_smu/format.py b/src/tm_devices/commands/gen_au597k_smu/format.py index 6a854cea..b9d2724d 100644 --- a/src/tm_devices/commands/gen_au597k_smu/format.py +++ b/src/tm_devices/commands/gen_au597k_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): @@ -97,7 +97,7 @@ class Format(BaseTSPCmd): """str: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be least significant byte first.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "format") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "format") -> None: super().__init__(device, cmd_syntax) @property @@ -134,7 +134,7 @@ def asciiprecision(self) -> str: f"print({self._cmd_syntax}.asciiprecision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @asciiprecision.setter @@ -174,7 +174,7 @@ def asciiprecision(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.asciiprecision = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -211,7 +211,7 @@ def byteorder(self) -> str: f"print({self._cmd_syntax}.byteorder)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @byteorder.setter @@ -251,7 +251,7 @@ def byteorder(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.byteorder = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -282,7 +282,7 @@ def data(self) -> str: f"print({self._cmd_syntax}.data)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @data.setter @@ -316,5 +316,5 @@ def data(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.data = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_au597k_smu/tsplink.py b/src/tm_devices/commands/gen_au597k_smu/tsplink.py index 8d7a0465..1fde4c3d 100644 --- a/src/tm_devices/commands/gen_au597k_smu/tsplink.py +++ b/src/tm_devices/commands/gen_au597k_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -71,7 +71,7 @@ class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "tsplink.trigger[N].EVENT_ID" """str: The number that is used for the trigger events.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -109,7 +109,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -146,7 +146,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -178,7 +178,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -214,7 +214,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -253,7 +253,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -288,7 +288,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -326,7 +326,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -352,7 +352,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -377,7 +377,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -402,7 +402,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -428,7 +428,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -456,7 +456,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -522,7 +522,7 @@ class Tsplink(BaseTSPCmd): TRIG_SYNCHRONOUSM = "tsplink.TRIG_SYNCHRONOUSM" """str: Detects rising-edge triggers as an input. Asserts a TTL-low pulse for output.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, TsplinkTriggerItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -555,7 +555,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -588,7 +588,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -616,7 +616,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -646,7 +646,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -679,7 +679,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -707,7 +707,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -762,7 +762,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -797,7 +797,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -825,7 +825,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -850,7 +850,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, expected_nodes: Optional[int] = None) -> str: @@ -879,7 +879,7 @@ def reset(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.reset({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -905,7 +905,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -930,5 +930,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_auyr50_smu/format.py b/src/tm_devices/commands/gen_auyr50_smu/format.py index 9c8efe7b..94230aa4 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/format.py +++ b/src/tm_devices/commands/gen_auyr50_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): @@ -85,7 +85,7 @@ class Format(BaseTSPCmd): """str: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be least significant byte first.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "format") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "format") -> None: super().__init__(device, cmd_syntax) @property @@ -122,7 +122,7 @@ def asciiprecision(self) -> str: f"print({self._cmd_syntax}.asciiprecision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @asciiprecision.setter @@ -162,7 +162,7 @@ def asciiprecision(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.asciiprecision = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -199,7 +199,7 @@ def byteorder(self) -> str: f"print({self._cmd_syntax}.byteorder)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @byteorder.setter @@ -239,7 +239,7 @@ def byteorder(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.byteorder = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -270,7 +270,7 @@ def data(self) -> str: f"print({self._cmd_syntax}.data)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @data.setter @@ -304,5 +304,5 @@ def data(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.data = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_auyr50_smu/localnode.py b/src/tm_devices/commands/gen_auyr50_smu/localnode.py index 51285959..df4e298c 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/localnode.py +++ b/src/tm_devices/commands/gen_auyr50_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -69,7 +69,9 @@ class Localnode(BaseTSPCmd): PASSWORD_WEB = "localnode.PASSWORD_WEB" """str: Use passwords on the web interface only.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -101,7 +103,7 @@ def autolinefreq(self) -> str: f"print({self._cmd_syntax}.autolinefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autolinefreq.setter @@ -136,7 +138,7 @@ def autolinefreq(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autolinefreq = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autolinefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -168,7 +170,7 @@ def description(self) -> str: f"print({self._cmd_syntax}.description)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @description.setter @@ -203,7 +205,7 @@ def description(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.description = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -231,7 +233,7 @@ def license(self) -> str: f"print({self._cmd_syntax}.license)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -262,7 +264,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linefreq.setter @@ -296,7 +298,7 @@ def linefreq(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linefreq = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -324,7 +326,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -373,7 +375,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -407,7 +409,7 @@ def passwordmode(self) -> str: f"print({self._cmd_syntax}.passwordmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passwordmode.setter @@ -444,7 +446,7 @@ def passwordmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passwordmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -475,7 +477,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -509,7 +511,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -541,7 +543,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -576,7 +578,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -604,7 +606,7 @@ def revision(self) -> str: f"print({self._cmd_syntax}.revision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -632,7 +634,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -664,7 +666,7 @@ def showerrors(self) -> str: f"print({self._cmd_syntax}.showerrors)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showerrors.setter @@ -699,7 +701,7 @@ def showerrors(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showerrors = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -721,5 +723,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_auyr50_smu/node.py b/src/tm_devices/commands/gen_auyr50_smu/node.py index 0e8d86e6..d064d969 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/node.py +++ b/src/tm_devices/commands/gen_auyr50_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -37,7 +37,7 @@ class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.setglobal()``: The ``node[N].setglobal()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "node[N]") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "node[N]") -> None: super().__init__(device, cmd_syntax) def execute(self, script_code: str) -> None: @@ -63,7 +63,7 @@ def execute(self, script_code: str) -> None: f'{self._cmd_syntax}.execute("{script_code}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getglobal(self, name: str) -> str: @@ -92,7 +92,7 @@ def getglobal(self, name: str) -> str: f'print({self._cmd_syntax}.getglobal("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setglobal(self, name: str, value: str) -> None: @@ -119,5 +119,5 @@ def setglobal(self, name: str, value: str) -> None: f'{self._cmd_syntax}.setglobal("{name}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_avh0iw_smu/display.py b/src/tm_devices/commands/gen_avh0iw_smu/display.py index 6f03b3bd..95ac3289 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/display.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): @@ -91,7 +91,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -113,7 +113,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -141,7 +141,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -180,7 +180,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -214,7 +214,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -253,7 +253,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -287,7 +287,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -300,7 +300,7 @@ class DisplaySmuxItem(ValidatedChannel, BaseTSPCmd): - ``.measure``: The ``display.smuX.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = DisplaySmuxItemLimit(device, f"{self._cmd_syntax}.limit") self._measure = DisplaySmuxItemMeasure(device, f"{self._cmd_syntax}.measure") @@ -333,7 +333,7 @@ def digits(self) -> str: f"print({self._cmd_syntax}.digits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @digits.setter @@ -367,7 +367,7 @@ def digits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.digits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -431,7 +431,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -457,7 +457,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -689,7 +689,7 @@ class Display(BaseTSPCmd): WHEEL_RIGHT = "display.WHEEL_RIGHT" """str: Represents turning the Navigation wheel right.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._smu: Dict[str, DisplaySmuxItem] = DefaultDictPassKeyToFactory( @@ -740,7 +740,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -779,7 +779,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -810,7 +810,7 @@ def numpad(self) -> str: f"print({self._cmd_syntax}.numpad)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @numpad.setter @@ -844,7 +844,7 @@ def numpad(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.numpad = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.numpad`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -874,7 +874,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -907,7 +907,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -955,7 +955,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -980,7 +980,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -1006,7 +1006,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -1031,7 +1031,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -1082,7 +1082,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -1131,7 +1131,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -1160,7 +1160,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt( @@ -1217,7 +1217,7 @@ def prompt( f"print({self._cmd_syntax}.prompt({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -1243,7 +1243,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -1280,7 +1280,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext(self, text: str) -> None: @@ -1305,7 +1305,7 @@ def settext(self, text: str) -> None: f'{self._cmd_syntax}.settext("{text}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -1330,5 +1330,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py index 159295cd..f19b2e50 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -69,7 +69,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.timer[N].EVENT_ID" """str: The trigger timer event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -108,7 +108,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -146,7 +146,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -180,7 +180,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -217,7 +217,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -251,7 +251,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -288,7 +288,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -319,7 +319,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -353,7 +353,7 @@ def passthrough(self) -> str: f"print({self._cmd_syntax}.passthrough)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passthrough.setter @@ -390,7 +390,7 @@ def passthrough(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passthrough = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -424,7 +424,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -461,7 +461,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -487,7 +487,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -512,7 +512,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -540,7 +540,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -555,7 +555,7 @@ class TriggerGeneratorItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.generator[N].EVENT_ID" """str: The trigger event generated by trigger event generator 1.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -584,7 +584,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.blender[N].EVENT_ID" """str: The trigger blender event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -628,7 +628,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -665,7 +665,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -697,7 +697,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -751,7 +751,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -776,7 +776,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -804,7 +804,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -825,7 +825,7 @@ class Trigger(BaseTSPCmd): EVENT_ID = "trigger.EVENT_ID" """str: The command interface trigger event number.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -908,7 +908,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -936,5 +936,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_awhjao_smu/status.py b/src/tm_devices/commands/gen_awhjao_smu/status.py index 402637fa..d778a331 100644 --- a/src/tm_devices/commands/gen_awhjao_smu/status.py +++ b/src/tm_devices/commands/gen_awhjao_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -301,7 +301,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -334,7 +334,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -370,7 +370,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -400,7 +400,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -432,7 +432,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -467,7 +467,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -499,7 +499,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -534,7 +534,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -643,7 +643,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -676,7 +676,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -712,7 +712,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -742,7 +742,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -774,7 +774,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -809,7 +809,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -841,7 +841,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -876,7 +876,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -985,7 +985,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1018,7 +1018,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1054,7 +1054,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1084,7 +1084,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1151,7 +1151,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1183,7 +1183,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1218,7 +1218,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1327,7 +1327,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1360,7 +1360,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1396,7 +1396,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1426,7 +1426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1458,7 +1458,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1493,7 +1493,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1525,7 +1525,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1560,7 +1560,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1669,7 +1669,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1702,7 +1702,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1738,7 +1738,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1768,7 +1768,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1800,7 +1800,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1835,7 +1835,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1867,7 +1867,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1902,7 +1902,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2003,7 +2003,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2034,7 +2034,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2068,7 +2068,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2096,7 +2096,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2127,7 +2127,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2161,7 +2161,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2192,7 +2192,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2226,7 +2226,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2278,7 +2278,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2310,7 +2310,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2345,7 +2345,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2374,7 +2374,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2406,7 +2406,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2441,7 +2441,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2473,7 +2473,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2508,7 +2508,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2558,7 +2558,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2590,7 +2590,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2625,7 +2625,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2654,7 +2654,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2686,7 +2686,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2721,7 +2721,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2753,7 +2753,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2788,7 +2788,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2835,7 +2835,7 @@ class StatusQuestionableInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): unstable output condition was detected.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -2880,7 +2880,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2916,7 +2916,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2955,7 +2955,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2988,7 +2988,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3024,7 +3024,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3063,7 +3063,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3099,7 +3099,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3138,7 +3138,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3165,7 +3165,7 @@ class StatusQuestionableInstrument(BaseTSPCmd): SMUB = "status.questionable.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits for the SMU B questionable register are set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusQuestionableInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusQuestionableInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -3197,7 +3197,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3229,7 +3229,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3264,7 +3264,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3293,7 +3293,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3325,7 +3325,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3360,7 +3360,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3392,7 +3392,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3427,7 +3427,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3508,7 +3508,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3540,7 +3540,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3575,7 +3575,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3604,7 +3604,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3636,7 +3636,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -3671,7 +3671,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3703,7 +3703,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -3738,7 +3738,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3798,7 +3798,7 @@ class StatusQuestionable(BaseTSPCmd): UO = "status.questionable.UO" """str: B9. An enabled bit in the questionable status unstable output summary event register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = StatusQuestionableCalibration(device, f"{self._cmd_syntax}.calibration") self._instrument = StatusQuestionableInstrument(device, f"{self._cmd_syntax}.instrument") @@ -3855,7 +3855,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3886,7 +3886,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -3920,7 +3920,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3948,7 +3948,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3999,7 +3999,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4033,7 +4033,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4083,7 +4083,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4117,7 +4117,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4228,7 +4228,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -4263,7 +4263,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4294,7 +4294,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4328,7 +4328,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4356,7 +4356,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4387,7 +4387,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4421,7 +4421,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4452,7 +4452,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4486,7 +4486,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4570,7 +4570,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4602,7 +4602,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4637,7 +4637,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4666,7 +4666,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4698,7 +4698,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -4733,7 +4733,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4765,7 +4765,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -4800,7 +4800,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4850,7 +4850,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4882,7 +4882,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4917,7 +4917,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4946,7 +4946,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4977,7 +4977,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5011,7 +5011,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5042,7 +5042,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5076,7 +5076,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5133,7 +5133,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5164,7 +5164,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5198,7 +5198,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5226,7 +5226,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5257,7 +5257,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5291,7 +5291,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5322,7 +5322,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5356,7 +5356,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5408,7 +5408,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5440,7 +5440,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5475,7 +5475,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5504,7 +5504,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5535,7 +5535,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5569,7 +5569,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5600,7 +5600,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5634,7 +5634,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5692,7 +5692,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5725,7 +5725,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5761,7 +5761,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5791,7 +5791,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5824,7 +5824,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -5860,7 +5860,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5893,7 +5893,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -5929,7 +5929,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5957,7 +5957,7 @@ class StatusOperationInstrumentTsplink(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.tsplink.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status TSP-Link overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTsplinkTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -5990,7 +5990,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6023,7 +6023,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6059,7 +6059,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6089,7 +6089,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6122,7 +6122,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6158,7 +6158,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6191,7 +6191,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6227,7 +6227,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6330,7 +6330,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6362,7 +6362,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6397,7 +6397,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6426,7 +6426,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6458,7 +6458,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6493,7 +6493,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6525,7 +6525,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6560,7 +6560,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6588,7 +6588,7 @@ class StatusOperationInstrumentTriggerTimer(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_timer.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status trigger timer overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerTimerTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -6620,7 +6620,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6652,7 +6652,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -6687,7 +6687,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6716,7 +6716,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6748,7 +6748,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -6783,7 +6783,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6815,7 +6815,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -6850,7 +6850,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6960,7 +6960,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6993,7 +6993,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7029,7 +7029,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7058,7 +7058,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7090,7 +7090,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7125,7 +7125,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7157,7 +7157,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7192,7 +7192,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7220,7 +7220,7 @@ class StatusOperationInstrumentTriggerBlender(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.trigger_blender.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for operation status trigger blender overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentTriggerBlenderTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -7252,7 +7252,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7284,7 +7284,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7319,7 +7319,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7348,7 +7348,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7380,7 +7380,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7415,7 +7415,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7447,7 +7447,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7482,7 +7482,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7542,7 +7542,7 @@ class StatusOperationInstrumentSmuxItemTriggerOverrun(BaseTSPCmd): SRC = "status.operation.instrument.smuX.trigger_overrun.SRC" """str: B2. Set bit indicates that the source event detector of the SMU was already in the detected state when a trigger was received.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.ARM = self.ARM.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7592,7 +7592,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7624,7 +7624,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -7659,7 +7659,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7688,7 +7688,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7720,7 +7720,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -7755,7 +7755,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7787,7 +7787,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -7822,7 +7822,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7873,7 +7873,7 @@ class StatusOperationInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.smuX.TRIGGER_OVERRUN" """str: Set bit B10 indicates an enabled bit has been set in the operation status smuX trigger overrun event register.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.CAL = self.CAL.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -7928,7 +7928,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -7964,7 +7964,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8003,7 +8003,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8036,7 +8036,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8072,7 +8072,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8111,7 +8111,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8147,7 +8147,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8186,7 +8186,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8294,7 +8294,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8326,7 +8326,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8361,7 +8361,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8390,7 +8390,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8422,7 +8422,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8457,7 +8457,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8489,7 +8489,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8524,7 +8524,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8566,7 +8566,7 @@ class StatusOperationInstrumentLan(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.lan.TRIGGER_OVERRUN" """str: B10. Set bit indicates one or more enabled bits for the operation status LAN trigger overrun register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentLanTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -8598,7 +8598,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8630,7 +8630,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -8665,7 +8665,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8694,7 +8694,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8726,7 +8726,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -8761,7 +8761,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8793,7 +8793,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -8828,7 +8828,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8962,7 +8962,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -8995,7 +8995,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9031,7 +9031,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9061,7 +9061,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9094,7 +9094,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9130,7 +9130,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9163,7 +9163,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9199,7 +9199,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9227,7 +9227,7 @@ class StatusOperationInstrumentDigio(BaseTSPCmd): TRIGGER_OVERRUN = "status.operation.instrument.digio.TRIGGER_OVERRUN" """str: B10. Set bit indicates an enabled bit in the Operation Status Digital I/O Overrun Register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._trigger_overrun = StatusOperationInstrumentDigioTriggerOverrun( device, f"{self._cmd_syntax}.trigger_overrun" @@ -9260,7 +9260,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9293,7 +9293,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9329,7 +9329,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9359,7 +9359,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9392,7 +9392,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9428,7 +9428,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9461,7 +9461,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9497,7 +9497,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9606,7 +9606,7 @@ class StatusOperationInstrument(BaseTSPCmd): TSPLINK = "status.operation.instrument.TSPLINK" """str: B13. Set bit indicates one or more enabled bits for the operation status TSP-Link summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digio = StatusOperationInstrumentDigio(device, f"{self._cmd_syntax}.digio") self._lan = StatusOperationInstrumentLan(device, f"{self._cmd_syntax}.lan") @@ -9647,7 +9647,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9700,7 +9700,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -9735,7 +9735,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9764,7 +9764,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9824,7 +9824,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -9859,7 +9859,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -9891,7 +9891,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -9926,7 +9926,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10071,7 +10071,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10103,7 +10103,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10138,7 +10138,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10167,7 +10167,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10199,7 +10199,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10234,7 +10234,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10266,7 +10266,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10301,7 +10301,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10384,7 +10384,7 @@ class StatusOperation(BaseTSPCmd): USER = "status.operation.USER" """str: B12. Set bit indicates that the summary bit from the status.operation.user register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibrating = StatusOperationCalibrating(device, f"{self._cmd_syntax}.calibrating") self._instrument = StatusOperationInstrument(device, f"{self._cmd_syntax}.instrument") @@ -10438,7 +10438,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10469,7 +10469,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10503,7 +10503,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10531,7 +10531,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10623,7 +10623,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -10657,7 +10657,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10688,7 +10688,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -10722,7 +10722,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10876,7 +10876,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10908,7 +10908,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -10943,7 +10943,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -10972,7 +10972,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11004,7 +11004,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11039,7 +11039,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11071,7 +11071,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11106,7 +11106,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11156,7 +11156,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11188,7 +11188,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11223,7 +11223,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11252,7 +11252,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11284,7 +11284,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11319,7 +11319,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11351,7 +11351,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11386,7 +11386,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11435,7 +11435,7 @@ class StatusMeasurementInstrumentSmuxItem(ValidatedChannel, BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.instrument.smuX.VOLTAGE_LIMIT" """str: B0. Set bit indicates that the voltage limit was exceeded. This bit is updated only when a measurement is made or smuX.source.compliance is invoked.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.BAV = self.BAV.replace("smuX", f"smu{self._cmd_syntax[3]}") @@ -11485,7 +11485,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11522,7 +11522,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11562,7 +11562,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11596,7 +11596,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11633,7 +11633,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11673,7 +11673,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11710,7 +11710,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -11750,7 +11750,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11777,7 +11777,7 @@ class StatusMeasurementInstrument(BaseTSPCmd): SMUB = "status.measurement.instrument.SMUB" """str: B2. Set bit indicates one or more enabled bits of the measurement event SMU B summary register is set.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._smu: Dict[str, StatusMeasurementInstrumentSmuxItem] = DefaultDictPassKeyToFactory( lambda x: StatusMeasurementInstrumentSmuxItem(device, f"{self._cmd_syntax}.smu{x}") @@ -11810,7 +11810,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11843,7 +11843,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -11879,7 +11879,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11909,7 +11909,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -11942,7 +11942,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -11978,7 +11978,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12011,7 +12011,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12047,7 +12047,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12127,7 +12127,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12159,7 +12159,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12194,7 +12194,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12223,7 +12223,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12255,7 +12255,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12290,7 +12290,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12322,7 +12322,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12357,7 +12357,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12415,7 +12415,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12447,7 +12447,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12482,7 +12482,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12511,7 +12511,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12543,7 +12543,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12578,7 +12578,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12610,7 +12610,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -12645,7 +12645,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12717,7 +12717,7 @@ class StatusMeasurement(BaseTSPCmd): VOLTAGE_LIMIT = "status.measurement.VOLTAGE_LIMIT" """str: B0. Set bit is a summary of the status.measurement.voltage_limit register.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._buffer_available = StatusMeasurementBufferAvailable( device, f"{self._cmd_syntax}.buffer_available" @@ -12779,7 +12779,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12827,7 +12827,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -12861,7 +12861,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12889,7 +12889,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -12940,7 +12940,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -12974,7 +12974,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13005,7 +13005,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -13039,7 +13039,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13163,7 +13163,7 @@ class Status(BaseTSPCmd): SYSTEM_SUMMARY_BIT = "status.SYSTEM_SUMMARY_BIT" """str: B1. Set summary bit indicates that an enabled system event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -13200,7 +13200,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13274,7 +13274,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -13308,7 +13308,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13336,7 +13336,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13456,7 +13456,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -13490,7 +13490,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13518,7 +13518,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -13806,5 +13806,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_by991s_smudaq/digio.py b/src/tm_devices/commands/gen_by991s_smudaq/digio.py index e0aaae73..5b035f46 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/digio.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -75,7 +75,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -112,7 +112,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -147,7 +147,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @state.setter @@ -185,7 +185,7 @@ def state(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.state = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -210,7 +210,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -256,7 +256,7 @@ class Digio(BaseTSPCmd): STATE_LOW = "digio.STATE_LOW" """str: Set the line low.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._line: Dict[int, DigioLineItem] = DefaultDictPassKeyToFactory( lambda x: DigioLineItem(device, f"{self._cmd_syntax}.line[{x}]") @@ -298,7 +298,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -323,5 +323,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_by991s_smudaq/status.py b/src/tm_devices/commands/gen_by991s_smudaq/status.py index 243ffc6d..302ea50e 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/status.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusStandard(BaseTSPCmd): @@ -91,7 +91,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -126,7 +126,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -155,7 +155,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -195,7 +195,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -227,7 +227,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -262,7 +262,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -290,7 +290,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmap(self, bit_number: int) -> str: @@ -319,7 +319,7 @@ def getmap(self, bit_number: int) -> str: f"print({self._cmd_syntax}.getmap({bit_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = None) -> None: @@ -357,7 +357,7 @@ def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = N f"{self._cmd_syntax}.setmap({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -397,7 +397,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -429,7 +429,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -464,7 +464,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -492,7 +492,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmap(self, bit_number: int) -> str: @@ -521,7 +521,7 @@ def getmap(self, bit_number: int) -> str: f"print({self._cmd_syntax}.getmap({bit_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = None) -> None: @@ -559,7 +559,7 @@ def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = N f"{self._cmd_syntax}.setmap({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -602,7 +602,7 @@ class Status(BaseTSPCmd): QSB = "status.QSB" """str: B3. Set summary bit indicates that an enabled questionable event has occurred.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") self._questionable = StatusQuestionable(device, f"{self._cmd_syntax}.questionable") @@ -633,7 +633,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -690,7 +690,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -724,7 +724,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -766,7 +766,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def preset(self) -> None: @@ -788,5 +788,5 @@ def preset(self) -> None: f"{self._cmd_syntax}.preset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py index 6340f0b2..c7833784 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventType(SCPICmdRead): @@ -149,7 +149,7 @@ class ActoneventTimerActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:TIMER:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTimerActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -229,7 +229,7 @@ class ActoneventTimerActionSavetable(SCPICmdRead): - ``.state``: The ``ACTONEVent:TIMER:ACTION:SAVETable:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTimerActionSavetableState(device, f"{self._cmd_syntax}:STATE") @@ -309,7 +309,7 @@ class ActoneventTimerActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:TIMER:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTimerActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -359,7 +359,7 @@ class ActoneventTimerAction(SCPICmdRead): - ``.savewaveform``: The ``ACTONEVent:TIMER:ACTION:SAVEWAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventTimerActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savetable = ActoneventTimerActionSavetable(device, f"{self._cmd_syntax}:SAVETable") @@ -428,7 +428,7 @@ class ActoneventTimer(SCPICmdRead): - ``.action``: The ``ACTONEVent:TIMER:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventTimerAction(device, f"{self._cmd_syntax}:ACTION") @@ -509,7 +509,9 @@ class Actonevent(SCPICmdRead): - ``.type``: The ``ACTONEVent:Type`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACTONEVent") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACTONEVent" + ) -> None: super().__init__(device, cmd_syntax) self._enable = ActoneventEnable(device, f"{self._cmd_syntax}:ENable") self._numsaves = ActoneventNumsaves(device, f"{self._cmd_syntax}:NUMSAVEs") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py index 68916342..1f840d9b 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py @@ -623,7 +623,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): @@ -787,7 +787,7 @@ class BusBItemUsbSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:USB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemUsbSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemUsbSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -1014,7 +1014,7 @@ class BusBItemUsb(SCPICmdRead): - ``.threshold``: The ``BUS:B:USB:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemUsbBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataminusthreshold = BusBItemUsbDataminusthreshold( @@ -1344,7 +1344,7 @@ class BusBItemSvidData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1480,7 +1480,7 @@ class BusBItemSvidClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1616,7 +1616,7 @@ class BusBItemSvidAlert(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:ALERT:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidAlertSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidAlertThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1697,7 +1697,7 @@ class BusBItemSvid(SCPICmdRead): - ``.data``: The ``BUS:B:SVID:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alert = BusBItemSvidAlert(device, f"{self._cmd_syntax}:ALERT") self._clock = BusBItemSvidClock(device, f"{self._cmd_syntax}:CLOCk") @@ -1832,7 +1832,7 @@ class BusBItemSpmiSdata(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPMI:SDATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpmiSdataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpmiSdataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1973,7 +1973,7 @@ class BusBItemSpmiSclk(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPMI:SCLk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpmiSclkSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpmiSclkThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -2056,7 +2056,7 @@ class BusBItemSpmi(SCPICmdRead): - ``.sdata``: The ``BUS:B:SPMI:SDATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sclk = BusBItemSpmiSclk(device, f"{self._cmd_syntax}:SCLk") self._sdata = BusBItemSpmiSdata(device, f"{self._cmd_syntax}:SDATa") @@ -2201,7 +2201,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:SELect:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2339,7 +2339,7 @@ class BusBItemSpiNumber(SCPICmdRead): - ``.inputs``: The ``BUS:B:SPI:NUMBer:INputs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputs = BusBItemSpiNumberInputs(device, f"{self._cmd_syntax}:INputs") @@ -2469,7 +2469,7 @@ class BusBItemSpiMosiData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MOSi:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMosiDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2520,7 +2520,7 @@ class BusBItemSpiMosi(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MOSi:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMosiData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMosiInput(device, f"{self._cmd_syntax}:INPut") @@ -2698,7 +2698,7 @@ class BusBItemSpiMisoData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MISo:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMisoDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2749,7 +2749,7 @@ class BusBItemSpiMiso(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MISo:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMisoData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMisoInput(device, f"{self._cmd_syntax}:INPut") @@ -3010,7 +3010,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -3238,7 +3238,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3387,7 +3387,7 @@ class BusBItemSpi(SCPICmdRead): - ``.select``: The ``BUS:B:SPI:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._clock = BusBItemSpiClock(device, f"{self._cmd_syntax}:CLOCk") @@ -3708,7 +3708,7 @@ class BusBItemSpacewireSync(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:SPACEWIRe:SYNC:VALUe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = BusBItemSpacewireSyncCount(device, f"{self._cmd_syntax}:COUnt") self._pattern = BusBItemSpacewireSyncPattern(device, f"{self._cmd_syntax}:PATTern") @@ -3872,7 +3872,7 @@ class BusBItemSpacewireStrobe(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPACEWIRe:STRobe:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpacewireStrobeSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpacewireStrobeThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3984,7 +3984,7 @@ class BusBItemSpacewireDecode(SCPICmdRead): - ``.type``: The ``BUS:B:SPACEWIRe:DECode:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = BusBItemSpacewireDecodeType(device, f"{self._cmd_syntax}:TYPe") @@ -4090,7 +4090,7 @@ class BusBItemSpacewireData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPACEWIRe:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpacewireDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpacewireDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4203,7 +4203,7 @@ class BusBItemSpacewire(SCPICmdRead): - ``.sync``: The ``BUS:B:SPACEWIRe:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemSpacewireBitrate(device, f"{self._cmd_syntax}:BITRate") self._data = BusBItemSpacewireData(device, f"{self._cmd_syntax}:DATa") @@ -4367,7 +4367,7 @@ class BusBItemSmbusPec(SCPICmdRead): - ``.value``: The ``BUS:B:SMBUS:PEC:VALUe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemSmbusPecValue(device, f"{self._cmd_syntax}:VALUe") @@ -4472,7 +4472,7 @@ class BusBItemSmbusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SMBUS:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSmbusDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSmbusDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4610,7 +4610,7 @@ class BusBItemSmbusClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SMBUS:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSmbusClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSmbusClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4692,7 +4692,7 @@ class BusBItemSmbus(SCPICmdRead): - ``.pec``: The ``BUS:B:SMBUS:PEC`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemSmbusClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemSmbusData(device, f"{self._cmd_syntax}:DATA") @@ -5042,7 +5042,7 @@ class BusBItemSent(SCPICmdRead): - ``.ticktolerance``: The ``BUS:B:SENT:TICKTOLerance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanwidth = BusBItemSentChanwidth(device, f"{self._cmd_syntax}:CHANWidth") self._nibblecount = BusBItemSentNibblecount(device, f"{self._cmd_syntax}:NIBBLECount") @@ -5457,7 +5457,7 @@ class BusBItemSdlcData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SDLC:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSdlcDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSdlcDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -5565,7 +5565,7 @@ class BusBItemSdlc(SCPICmdRead): - ``.modulo``: The ``BUS:B:SDLC:MODulo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemSdlcBitrate(device, f"{self._cmd_syntax}:BITRate") self._data = BusBItemSdlcData(device, f"{self._cmd_syntax}:DATA") @@ -5772,7 +5772,7 @@ class BusBItemS8b10b(SCPICmdRead): - ``.threshold``: The ``BUS:B:S8B10B:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS8b10bBitrate(device, f"{self._cmd_syntax}:BITRate") self._source = BusBItemS8b10bSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5926,7 +5926,7 @@ class BusBItemRs232cSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:RS232C:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemRs232cSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -6154,7 +6154,7 @@ class BusBItemRs232cBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:RS232C:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemRs232cBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -6207,7 +6207,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -6763,7 +6763,7 @@ class BusBItemPsifiveComm(SCPICmdRead): - ``.direction``: The ``BUS:B:PSIFIVe:COMM:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemPsifiveCommDirection(device, f"{self._cmd_syntax}:DIRection") @@ -6876,7 +6876,7 @@ class BusBItemPsifive(SCPICmdRead): - ``.threshold``: The ``BUS:B:PSIFIVe:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitperiod = BusBItemPsifiveBitperiod(device, f"{self._cmd_syntax}:BITPERiod") self._bitrate = BusBItemPsifiveBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -7329,7 +7329,7 @@ class BusBItemParallelClocksource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:PARallel:CLOCkSOUrce:THReshold`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelClocksourceThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -7436,7 +7436,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.isclocked``: The ``BUS:B:PARallel:CLOCk:ISCLOCKED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._isclocked = BusBItemParallelClockIsclocked(device, f"{self._cmd_syntax}:ISCLOCKED") @@ -7557,7 +7557,7 @@ class BusBItemParallelBitsourceItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCP - ``.threshold``: The ``BUS:B:PARallel:BITSOUrce:THReshold`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelBitsourceItemThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -7634,7 +7634,7 @@ class BusBItemParallelAllthresholds(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``BUS:B:PARallel:ALLTHResholds:APPly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = BusBItemParallelAllthresholdsApply(device, f"{self._cmd_syntax}:APPly") @@ -7679,7 +7679,7 @@ class BusBItemParallel(SCPICmdRead): - ``.clocksource``: The ``BUS:B:PARallel:CLOCkSOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allthresholds = BusBItemParallelAllthresholds( device, f"{self._cmd_syntax}:ALLTHResholds" @@ -7909,7 +7909,7 @@ class BusBItemOnewireData(SCPICmdRead): - ``.threshold``: The ``BUS:B:ONEWIRe:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemOnewireDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemOnewireDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -7990,7 +7990,7 @@ class BusBItemOnewire(SCPICmdRead): - ``.mode``: The ``BUS:B:ONEWIRe:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemOnewireData(device, f"{self._cmd_syntax}:DATA") self._mode = BusBItemOnewireMode(device, f"{self._cmd_syntax}:MODe") @@ -8111,7 +8111,7 @@ class BusBItemNrzSpmi(SCPICmdRead): - ``.version``: The ``BUS:B:NRZ:SPMI:VERsion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._version = BusBItemNrzSpmiVersion(device, f"{self._cmd_syntax}:VERsion") @@ -8271,7 +8271,7 @@ class BusBItemNrz(SCPICmdRead): - ``.threshold``: The ``BUS:B:NRZ:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemNrzBitorder(device, f"{self._cmd_syntax}:BITOrder") self._bitrate = BusBItemNrzBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -8568,7 +8568,7 @@ class BusBItemMil1553bResponsetime(SCPICmdRead): - ``.minimum``: The ``BUS:B:MIL1553B:RESPonsetime:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = BusBItemMil1553bResponsetimeMaximum(device, f"{self._cmd_syntax}:MAXimum") self._minimum = BusBItemMil1553bResponsetimeMinimum(device, f"{self._cmd_syntax}:MINimum") @@ -8706,7 +8706,7 @@ class BusBItemMil1553b(SCPICmdRead): - ``.threshold``: The ``BUS:B:MIL1553B:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusBItemMil1553bLowthreshold( device, f"{self._cmd_syntax}:LOWTHRESHold" @@ -8921,7 +8921,7 @@ class BusBItemMdioData(SCPICmdRead): - ``.threshold``: The ``BUS:B:MDIO:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMdioDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemMdioDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -9057,7 +9057,7 @@ class BusBItemMdioClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:MDIO:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMdioClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemMdioClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -9137,7 +9137,7 @@ class BusBItemMdio(SCPICmdRead): - ``.data``: The ``BUS:B:MDIO:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMdioClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemMdioData(device, f"{self._cmd_syntax}:DATA") @@ -9270,7 +9270,7 @@ class BusBItemManchesterWord(SCPICmdRead): - ``.count``: The ``BUS:B:MANChester:WORD:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = BusBItemManchesterWordCount(device, f"{self._cmd_syntax}:COUNt") @@ -9343,7 +9343,7 @@ class BusBItemManchesterTrailer(SCPICmdRead): - ``.length``: The ``BUS:B:MANChester:TRAiler:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = BusBItemManchesterTrailerLength(device, f"{self._cmd_syntax}:LENGth") @@ -9420,7 +9420,7 @@ class BusBItemManchesterTranstion(SCPICmdRead): - ``.zero``: The ``BUS:B:MANChester:TRANstion:ZERo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zero = BusBItemManchesterTranstionZero(device, f"{self._cmd_syntax}:ZERo") @@ -9549,7 +9549,7 @@ class BusBItemManchesterSync(SCPICmdRead): - ``.size``: The ``BUS:B:MANChester:SYNC:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemManchesterSyncSize(device, f"{self._cmd_syntax}:SIZe") @@ -9622,7 +9622,7 @@ class BusBItemManchesterStart(SCPICmdRead): - ``.index``: The ``BUS:B:MANChester:START:INDex`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._index = BusBItemManchesterStartIndex(device, f"{self._cmd_syntax}:INDex") @@ -9725,7 +9725,7 @@ class BusBItemManchesterIdle(SCPICmdRead): - ``.bits``: The ``BUS:B:MANChester:IDLE:BITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bits = BusBItemManchesterIdleBits(device, f"{self._cmd_syntax}:BITS") @@ -9798,7 +9798,7 @@ class BusBItemManchesterHeader(SCPICmdRead): - ``.length``: The ``BUS:B:MANChester:HEADer:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = BusBItemManchesterHeaderLength(device, f"{self._cmd_syntax}:LENGth") @@ -9941,7 +9941,7 @@ class BusBItemManchester(SCPICmdRead): - ``.parity``: The ``BUS:B:MANChester:parity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemManchesterBitorder(device, f"{self._cmd_syntax}:BITORDer") self._bitrate = BusBItemManchesterBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -10380,7 +10380,7 @@ class BusBItemLinSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:LIN:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemLinSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -10540,7 +10540,7 @@ class BusBItemLinBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:LIN:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemLinBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -10592,7 +10592,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -11011,7 +11011,7 @@ class BusBItemLabelFont(SCPICmdRead): - ``.underline``: The ``BUS:B:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = BusBItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = BusBItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -11213,7 +11213,7 @@ class BusBItemLabel(SCPICmdRead): - ``.name``: The ``BUS:B:LABel:name`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = BusBItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = BusBItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -11429,7 +11429,7 @@ class BusBItemI3cData(SCPICmdRead): - ``.threshold``: The ``BUS:B:I3C:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI3cDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI3cDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -11569,7 +11569,7 @@ class BusBItemI3cClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:I3C:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI3cClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI3cClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -11652,7 +11652,7 @@ class BusBItemI3c(SCPICmdRead): - ``.data``: The ``BUS:B:I3C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI3cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI3cData(device, f"{self._cmd_syntax}:DATa") @@ -11795,7 +11795,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -11936,7 +11936,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -12020,7 +12020,7 @@ class BusBItemI2c(SCPICmdRead): - ``.rwinaddr``: The ``BUS:B:I2C:RWINADDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI2cData(device, f"{self._cmd_syntax}:DATa") @@ -12207,7 +12207,7 @@ class BusBItemFlexraySource(SCPICmdWrite, SCPICmdRead): - ``.txrx``: The ``BUS:B:FLEXray:SOUrce:TXRX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._txrx = BusBItemFlexraySourceTxrx(device, f"{self._cmd_syntax}:TXRX") @@ -12379,7 +12379,7 @@ class BusBItemFlexrayBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:FLEXray:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemFlexrayBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -12433,7 +12433,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.txrxthreshold``: The ``BUS:B:FLEXray:TXRXTHRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHannel") @@ -12775,7 +12775,7 @@ class BusBItemEusbSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:EUSB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diff = BusBItemEusbSourceDiff(device, f"{self._cmd_syntax}:DIFF") self._dminus = BusBItemEusbSourceDminus(device, f"{self._cmd_syntax}:DMINus") @@ -12938,7 +12938,7 @@ class BusBItemEusbOperating(SCPICmdRead): - ``.mode``: The ``BUS:B:EUSB:OPERating:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = BusBItemEusbOperatingMode(device, f"{self._cmd_syntax}:MODe") @@ -13067,7 +13067,7 @@ class BusBItemEusbDataplusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:DATAPLUS:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemEusbDataplusDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -13117,7 +13117,7 @@ class BusBItemEusbDataplus(SCPICmdRead): - ``.data``: The ``BUS:B:EUSB:DATAPLUS:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemEusbDataplusData(device, f"{self._cmd_syntax}:DATA") @@ -13209,7 +13209,7 @@ class BusBItemEusbDataminusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:DATAMINUS:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemEusbDataminusDataThreshold( device, f"{self._cmd_syntax}:THRESHold" @@ -13261,7 +13261,7 @@ class BusBItemEusbDataminus(SCPICmdRead): - ``.data``: The ``BUS:B:EUSB:DATAMINUS:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemEusbDataminusData(device, f"{self._cmd_syntax}:DATA") @@ -13334,7 +13334,7 @@ class BusBItemEusb(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemEusbBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataminus = BusBItemEusbDataminus(device, f"{self._cmd_syntax}:DATAMINUS") @@ -13735,7 +13735,7 @@ class BusBItemEthernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemEthernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemEthernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -13993,7 +13993,7 @@ class BusBItemEthernet(SCPICmdRead): - ``.type``: The ``BUS:B:ETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemEthernetDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHold" @@ -14406,7 +14406,7 @@ class BusBItemEthercatSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERCAT:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diff = BusBItemEthercatSourceDiff(device, f"{self._cmd_syntax}:DIFF") self._dminus = BusBItemEthercatSourceDminus(device, f"{self._cmd_syntax}:DMINus") @@ -14605,7 +14605,7 @@ class BusBItemEthercat(SCPICmdRead): - ``.threshold``: The ``BUS:B:ETHERCAT:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemEthercatDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHold" @@ -14877,7 +14877,7 @@ class BusBItemEspiDatatwo(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:DATATWO:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiDatatwoPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiDatatwoSource(device, f"{self._cmd_syntax}:SOUrce") @@ -15069,7 +15069,7 @@ class BusBItemEspiDataone(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:DATAONE:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiDataonePolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiDataoneSource(device, f"{self._cmd_syntax}:SOUrce") @@ -15260,7 +15260,7 @@ class BusBItemEspiClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -15451,7 +15451,7 @@ class BusBItemEspiChipselect(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:CHIPSELect:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiChipselectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiChipselectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -15646,7 +15646,7 @@ class BusBItemEspiAlert(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:ALERt:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiAlertPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiAlertSource(device, f"{self._cmd_syntax}:SOUrce") @@ -15786,7 +15786,7 @@ class BusBItemEspi(SCPICmdRead): - ``.iomode``: The ``BUS:B:ESPI:IOMODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alertview = BusBItemEspiAlertview(device, f"{self._cmd_syntax}:ALERTVIEW") self._alert = BusBItemEspiAlert(device, f"{self._cmd_syntax}:ALERt") @@ -15990,7 +15990,7 @@ class BusBItemDphySignal(SCPICmdRead): - ``.encoding``: The ``BUS:B:DPHY:SIGNal:ENCoding`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._encoding = BusBItemDphySignalEncoding(device, f"{self._cmd_syntax}:ENCoding") @@ -16065,7 +16065,7 @@ class BusBItemDphyProtocol(SCPICmdRead): - ``.type``: The ``BUS:B:DPHY:PROTocol:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = BusBItemDphyProtocolType(device, f"{self._cmd_syntax}:TYPe") @@ -16140,7 +16140,7 @@ class BusBItemDphyLp(SCPICmdRead): - ``.direction``: The ``BUS:B:DPHY:LP:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemDphyLpDirection(device, f"{self._cmd_syntax}:DIRection") @@ -16274,7 +16274,7 @@ class BusBItemDphyDplus(SCPICmdRead): - ``.source``: The ``BUS:B:DPHY:DPlus:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._datathreshold = BusBItemDphyDplusDatathreshold( device, f"{self._cmd_syntax}:DATATHRESHold" @@ -16475,7 +16475,7 @@ class BusBItemDphyDminus(SCPICmdRead): - ``.source``: The ``BUS:B:DPHY:DMINus:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._datathreshold = BusBItemDphyDminusDatathreshold( device, f"{self._cmd_syntax}:DATATHRESHold" @@ -16646,7 +16646,7 @@ class BusBItemDphyClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:DPHY:CLOCk:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemDphyClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemDphyClockThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -16729,7 +16729,7 @@ class BusBItemDphy(SCPICmdRead): - ``.signal``: The ``BUS:B:DPHY:SIGNal`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemDphyClock(device, f"{self._cmd_syntax}:CLOCk") self._dminus = BusBItemDphyDminus(device, f"{self._cmd_syntax}:DMINus") @@ -16920,7 +16920,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.layout``: The ``BUS:B:DISplay:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemDisplayFormat(device, f"{self._cmd_syntax}:FORMat") self._layout = BusBItemDisplayLayout(device, f"{self._cmd_syntax}:LAYout") @@ -17055,7 +17055,7 @@ class BusBItemCxpiRec(SCPICmdRead): - ``.threshold``: The ``BUS:B:CXPI:REC:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCxpiRecThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -17126,7 +17126,7 @@ class BusBItemCxpi(SCPICmdRead): - ``.source``: The ``BUS:B:CXPI:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCxpiBitrate(device, f"{self._cmd_syntax}:BITRate") self._rec = BusBItemCxpiRec(device, f"{self._cmd_syntax}:REC") @@ -17302,7 +17302,7 @@ class BusBItemCphyLp(SCPICmdRead): - ``.direction``: The ``BUS:B:CPHY:LP:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemCphyLpDirection(device, f"{self._cmd_syntax}:DIRection") @@ -17408,7 +17408,7 @@ class BusBItemCphyCgnd(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:CGND:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyCgndSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyCgndThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -17544,7 +17544,7 @@ class BusBItemCphyCa(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:CA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyCaSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyCaThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -17678,7 +17678,7 @@ class BusBItemCphyCLp(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:C:LP:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyCLpThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -17753,7 +17753,7 @@ class BusBItemCphyCData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:C:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyCDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -17803,7 +17803,7 @@ class BusBItemCphyC(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyCData(device, f"{self._cmd_syntax}:DATA") self._lp = BusBItemCphyCLp(device, f"{self._cmd_syntax}:LP") @@ -17972,7 +17972,7 @@ class BusBItemCphyBc(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:BC:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyBcSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyBcThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18106,7 +18106,7 @@ class BusBItemCphyBData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:B:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyBDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -18155,7 +18155,7 @@ class BusBItemCphyB(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyBData(device, f"{self._cmd_syntax}:DATA") self._source = BusBItemCphyBSource(device, f"{self._cmd_syntax}:SOUrce") @@ -18280,7 +18280,7 @@ class BusBItemCphyAgnd(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:AGND:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyAgndSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyAgndThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18416,7 +18416,7 @@ class BusBItemCphyAb(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:AB:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyAbSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyAbThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18550,7 +18550,7 @@ class BusBItemCphyALp(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:A:LP:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyALpThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -18625,7 +18625,7 @@ class BusBItemCphyAData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:A:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyADataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -18675,7 +18675,7 @@ class BusBItemCphyA(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:A:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyAData(device, f"{self._cmd_syntax}:DATA") self._lp = BusBItemCphyALp(device, f"{self._cmd_syntax}:LP") @@ -18773,7 +18773,7 @@ class BusBItemCphy(SCPICmdRead): - ``.subtype``: The ``BUS:B:CPHY:SUBTYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = BusBItemCphyA(device, f"{self._cmd_syntax}:A") self._ab = BusBItemCphyAb(device, f"{self._cmd_syntax}:AB") @@ -19225,7 +19225,7 @@ class BusBItemCanFdBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:CAN:FD:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemCanFdBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -19272,7 +19272,7 @@ class BusBItemCanFd(SCPICmdRead): - ``.bitrate``: The ``BUS:B:CAN:FD:BITRate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanFdBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -19359,7 +19359,7 @@ class BusBItemCanBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:CAN:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemCanBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -19412,7 +19412,7 @@ class BusBItemCan(SCPICmdRead): - ``.threshold``: The ``BUS:B:CAN:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._fd = BusBItemCanFd(device, f"{self._cmd_syntax}:FD") @@ -19763,7 +19763,7 @@ class BusBItemAutoethernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:AUTOETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemAutoethernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemAutoethernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -20031,7 +20031,7 @@ class BusBItemAutoethernet(SCPICmdRead): - ``.type``: The ``BUS:B:AUTOETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemAutoethernetDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHOLD" @@ -20436,7 +20436,7 @@ class BusBItemAudioWordsel(SCPICmdRead): - ``.threshold``: The ``BUS:B:AUDio:WORDSel:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioWordselPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioWordselSource(device, f"{self._cmd_syntax}:SOUrce") @@ -20633,7 +20633,7 @@ class BusBItemAudioFrame(SCPICmdRead): - ``.size``: The ``BUS:B:AUDio:FRAME:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clockbitsperchannel = BusBItemAudioFrameClockbitsperchannel( device, f"{self._cmd_syntax}:CLOCKBITSPERCHANNEL" @@ -20854,7 +20854,7 @@ class BusBItemAudioData(SCPICmdRead): - ``.wordsize``: The ``BUS:B:AUDio:DATa:WORDSize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemAudioDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -21112,7 +21112,7 @@ class BusBItemAudioClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:AUDio:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -21283,7 +21283,7 @@ class BusBItemAudio(SCPICmdRead): - ``.wordsel``: The ``BUS:B:AUDio:WORDSel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitdelay = BusBItemAudioBitdelay(device, f"{self._cmd_syntax}:BITDelay") self._bitorder = BusBItemAudioBitorder(device, f"{self._cmd_syntax}:BITOrder") @@ -21624,7 +21624,7 @@ class BusBItemArinc429aBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:ARINC429A:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemArinc429aBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -21677,7 +21677,7 @@ class BusBItemArinc429a(SCPICmdRead): - ``.threshold``: The ``BUS:B:ARINC429A:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemArinc429aBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataformat = BusBItemArinc429aDataformat(device, f"{self._cmd_syntax}:DATAFORmat") @@ -21885,7 +21885,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = BusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = BusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -22750,7 +22750,7 @@ class Bus(SCPICmdRead): - ``.list``: The ``BUS:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._addnew = BusAddnew(device, f"{self._cmd_syntax}:ADDNew") self._b: Dict[int, BusBItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py index 05418596..54a349e2 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): @@ -247,7 +247,7 @@ class CalloutsCalloutItemFont(SCPICmdRead): - ``.underline``: The ``CALLOUTS:CALLOUT:FONT:UNDERLine`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = CalloutsCalloutItemFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = CalloutsCalloutItemFontItalic(device, f"{self._cmd_syntax}:ITALIC") @@ -455,7 +455,7 @@ class CalloutsCalloutItemDisplayposition(SCPICmdRead): - ``.y``: The ``CALLOUTS:CALLOUT:DISPLAYPOSition:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CalloutsCalloutItemDisplaypositionX(device, f"{self._cmd_syntax}:X") self._y = CalloutsCalloutItemDisplaypositionY(device, f"{self._cmd_syntax}:Y") @@ -606,7 +606,7 @@ class CalloutsCalloutItemBookmark(SCPICmdRead): - ``.xpos``: The ``CALLOUTS:CALLOUT:BOOKMark:XPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = CalloutsCalloutItemBookmarkSource(device, f"{self._cmd_syntax}:SOURCE") self._xpos = CalloutsCalloutItemBookmarkXpos(device, f"{self._cmd_syntax}:XPOS") @@ -694,7 +694,7 @@ class CalloutsCalloutItem(ValidatedDynamicNumberCmd, SCPICmdWriteNoArguments, SC - ``.type``: The ``CALLOUTS:CALLOUT:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bookmark = CalloutsCalloutItemBookmark(device, f"{self._cmd_syntax}:BOOKMark") self._color = CalloutsCalloutItemColor(device, f"{self._cmd_syntax}:COLOR") @@ -846,7 +846,7 @@ class Callouts(SCPICmdRead): - ``.callout``: The ``CALLOUTS:CALLOUT`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALLOUTS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALLOUTS") -> None: super().__init__(device, cmd_syntax) self._callout: Dict[int, CalloutsCalloutItem] = DefaultDictPassKeyToFactory( lambda x: CalloutsCalloutItem(device, f"{self._cmd_syntax}:CALLOUT{x}") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py index a7f79055..8abf76b1 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py @@ -107,7 +107,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): @@ -294,7 +294,7 @@ class ChannelDallLabelFont(SCPICmdRead): - ``.underline``: The ``CH_DALL:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelDallLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelDallLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -490,7 +490,7 @@ class ChannelDallLabel(SCPICmdRead): - ``.name``: The ``CH_DALL:LABel:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelDallLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelDallLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -588,7 +588,7 @@ class ChannelDall(SCPICmdRead): - ``.label``: The ``CH_DALL:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = ChannelDallLabel(device, f"{self._cmd_syntax}:LABel") @@ -795,7 +795,7 @@ class ChannelDigitalBitLabelFont(SCPICmdRead): - ``.underline``: The ``CH_D:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelDigitalBitLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelDigitalBitLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -993,7 +993,7 @@ class ChannelDigitalBitLabel(SCPICmdRead): - ``.name``: The ``CH_D:LABel:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelDigitalBitLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelDigitalBitLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1090,7 +1090,7 @@ class ChannelDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.label``: The ``CH_D:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = ChannelDigitalBitLabel(device, f"{self._cmd_syntax}:LABel") @@ -1154,7 +1154,7 @@ class ChannelVterm(SCPICmdRead): - ``.bias``: The ``CH:VTERm:BIAS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bias = ChannelVtermBias(device, f"{self._cmd_syntax}:BIAS") @@ -1271,7 +1271,7 @@ class ChannelSv(SCPICmdRead): - ``.spanbelowdc``: The ``CH:SV:SPANBELowdc`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._spanabovebw = ChannelSvSpanabovebw(device, f"{self._cmd_syntax}:SPANABovebw") self._spanbelowdc = ChannelSvSpanbelowdc(device, f"{self._cmd_syntax}:SPANBELowdc") @@ -1451,7 +1451,7 @@ class ChannelProbeSelfcal(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:SELFCal:State`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeSelfcalState(device, f"{self._cmd_syntax}:State") @@ -1633,7 +1633,7 @@ class ChannelProbeInputmode(SCPICmdWrite, SCPICmdRead): - ``.doffset``: The ``CH:PRObe:INPUTMode:DOFFSet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aoffset = ChannelProbeInputmodeAoffset(device, f"{self._cmd_syntax}:AOFFSet") self._boffset = ChannelProbeInputmodeBoffset(device, f"{self._cmd_syntax}:BOFFSet") @@ -1809,7 +1809,7 @@ class ChannelProbeId(SCPICmdRead): - ``.type``: The ``CH:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = ChannelProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = ChannelProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -1945,7 +1945,7 @@ class ChannelProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:DEGAUSS:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -2042,7 +2042,7 @@ class ChannelProbe(SCPICmdRead): - ``.units``: The ``CH:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = ChannelProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._compensate = ChannelProbeCompensate(device, f"{self._cmd_syntax}:COMPensate") @@ -2400,7 +2400,7 @@ class ChannelProbefuncExtunits(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbefuncExtunitsState(device, f"{self._cmd_syntax}:STATE") @@ -2504,7 +2504,7 @@ class ChannelProbefunc(SCPICmdRead): - ``.extunits``: The ``CH:PROBEFunc:EXTUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._extatten = ChannelProbefuncExtatten(device, f"{self._cmd_syntax}:EXTAtten") self._extdbatten = ChannelProbefuncExtdbatten(device, f"{self._cmd_syntax}:EXTDBatten") @@ -2742,7 +2742,7 @@ class ChannelBandwidthFilter(SCPICmdRead): - ``.optimization``: The ``CH:BANdwidth:FILTer:OPTIMIZation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._optimization = ChannelBandwidthFilterOptimization( device, f"{self._cmd_syntax}:OPTIMIZation" @@ -2813,7 +2813,7 @@ class ChannelBandwidth(SCPICmdWrite, SCPICmdRead): - ``.filter``: The ``CH:BANdwidth:FILTer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = ChannelBandwidthFilter(device, f"{self._cmd_syntax}:FILTer") @@ -2869,7 +2869,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.dall``: The ``CH_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._bandwidth = ChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._ditherrange = ChannelDitherrange(device, f"{self._cmd_syntax}:DITHERrange") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py index c2631887..c9ec4ab6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py @@ -409,7 +409,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): @@ -509,7 +509,7 @@ class DisplayWaveviewCursorCursor1(SCPICmdRead): - ``.rolocation``: The ``DISplay:WAVEView:CURSor:CURSOR1:ROLOCATION`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rolocation = DisplayWaveviewCursorCursor1Rolocation( device, f"{self._cmd_syntax}:ROLOCATION" @@ -559,7 +559,7 @@ class DisplayWaveviewCursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView:CURSor:CURSOR1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor1 = DisplayWaveviewCursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -656,7 +656,7 @@ class DisplayWaveview1ZoomZoom1Vertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical:SCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1VerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -862,7 +862,7 @@ class DisplayWaveview1ZoomZoom1Horizontal(SCPICmdRead): - ``.winscale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:HORizontal:WINSCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1HorizontalPosition( device, f"{self._cmd_syntax}:POSition" @@ -990,7 +990,7 @@ class DisplayWaveview1ZoomZoom1(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = DisplayWaveview1ZoomZoom1Horizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -1085,7 +1085,7 @@ class DisplayWaveview1Zoom(SCPICmdRead): - ``.zoom1``: The ``DISplay:WAVEView1:ZOOM:ZOOM1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zoom1 = DisplayWaveview1ZoomZoom1(device, f"{self._cmd_syntax}:ZOOM1") @@ -1244,7 +1244,7 @@ class DisplayWaveview1RfPhaseItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_PHASe:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfPhaseItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1328,7 +1328,7 @@ class DisplayWaveview1RfPhaseItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_PHASe:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfPhaseItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1433,7 +1433,7 @@ class DisplayWaveview1RfMagnitudeItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_MAGnitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfMagnitudeItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1522,7 +1522,7 @@ class DisplayWaveview1RfMagnitudeItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_MAGnitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfMagnitudeItemVertical( device, f"{self._cmd_syntax}:VERTical" @@ -1626,7 +1626,7 @@ class DisplayWaveview1RfFrequencyItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_FREQuency:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfFrequencyItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1712,7 +1712,7 @@ class DisplayWaveview1RfFrequencyItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_FREQuency:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfFrequencyItemVertical( device, f"{self._cmd_syntax}:VERTical" @@ -1777,7 +1777,7 @@ class DisplayWaveview1RefItemDall(SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF_DALL:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frame = DisplayWaveview1RefItemDallFrame(device, f"{self._cmd_syntax}:FRAMe") @@ -1822,7 +1822,7 @@ class DisplayWaveview1RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:REF_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = DisplayWaveview1RefItemDall(device, f"{self._cmd_syntax}_DALL") @@ -1910,7 +1910,7 @@ class DisplayWaveview1RefRefItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:REF:REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RefRefItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2041,7 +2041,7 @@ class DisplayWaveview1RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF:REF:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1RefRefItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1RefRefItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2136,7 +2136,7 @@ class DisplayWaveview1Ref(SCPICmdRead): - ``.ref``: The ``DISplay:WAVEView1:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayWaveview1RefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1RefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -2228,7 +2228,7 @@ class DisplayWaveview1PlotPlotItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:PLOT:PLOT:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1PlotPlotItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2366,7 +2366,7 @@ class DisplayWaveview1PlotPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:PLOT:PLOT:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayWaveview1PlotPlotItemAutoscale( device, f"{self._cmd_syntax}:AUTOScale" @@ -2468,7 +2468,7 @@ class DisplayWaveview1Plot(SCPICmdRead): - ``.plot``: The ``DISplay:WAVEView1:PLOT:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._plot: Dict[int, DisplayWaveview1PlotPlotItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1PlotPlotItem(device, f"{self._cmd_syntax}:PLOT{x}") @@ -2560,7 +2560,7 @@ class DisplayWaveview1MathMathItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:MATH:MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1MathMathItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2698,7 +2698,7 @@ class DisplayWaveview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:MATH:MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayWaveview1MathMathItemAutoscale( device, f"{self._cmd_syntax}:AUTOScale" @@ -2800,7 +2800,7 @@ class DisplayWaveview1Math(SCPICmdRead): - ``.math``: The ``DISplay:WAVEView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayWaveview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -2888,7 +2888,7 @@ class DisplayWaveview1Intensity(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._graticule = DisplayWaveview1IntensityGraticule( device, f"{self._cmd_syntax}:GRATicule" @@ -3088,7 +3088,7 @@ class DisplayWaveview1CursorCursorWaveformAll(SCPICmdRead): - ``.values``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform:ALL:Values`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._values = DisplayWaveview1CursorCursorWaveformAllValues( device, f"{self._cmd_syntax}:Values" @@ -3133,7 +3133,7 @@ class DisplayWaveview1CursorCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = DisplayWaveview1CursorCursorWaveformAll(device, f"{self._cmd_syntax}:ALL") self._avposition = DisplayWaveview1CursorCursorWaveformAvposition( @@ -3283,7 +3283,7 @@ class DisplayWaveview1CursorCursor1Waveform(SCPICmdRead): - ``.bposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1WaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3466,7 +3466,7 @@ class DisplayWaveview1CursorCursor1Vbars(SCPICmdRead): - ``.units``: The ``DISplay:WAVEView1:CURSor:CURSOR1:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1VbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3766,7 +3766,7 @@ class DisplayWaveview1CursorCursor1Screen(SCPICmdRead): - ``.byposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayWaveview1CursorCursor1ScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -4085,7 +4085,7 @@ class DisplayWaveview1CursorCursor1Hbars(SCPICmdRead): - ``.delta``: The ``DISplay:WAVEView1:CURSor:CURSOR1:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1HbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -4384,7 +4384,7 @@ class DisplayWaveview1CursorCursor1(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayWaveview1CursorCursor1Asource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayWaveview1CursorCursor1Bsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -4724,7 +4724,7 @@ class DisplayWaveview1CursorCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveform = DisplayWaveview1CursorCursorWaveform( device, f"{self._cmd_syntax}:WAVEform" @@ -4770,7 +4770,7 @@ class DisplayWaveview1Cursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView1:CURSor:CURSOR1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveview1CursorCursor(device, f"{self._cmd_syntax}:CURSOR") self._cursor1 = DisplayWaveview1CursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -4870,7 +4870,7 @@ class DisplayWaveview1ChannelDallVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:CH_DALL:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ChannelDallVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -4948,7 +4948,7 @@ class DisplayWaveview1ChannelDall(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:CH_DALL:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelDallState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1ChannelDallVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5041,7 +5041,7 @@ class DisplayWaveview1ChannelDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.state``: The ``DISplay:WAVEView1:CH_D:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelDigitalBitState(device, f"{self._cmd_syntax}:STATE") @@ -5146,7 +5146,7 @@ class DisplayWaveview1ChannelVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:CH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ChannelVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -5254,7 +5254,7 @@ class DisplayWaveview1Channel(ValidatedChannel, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:CH_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1ChannelVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5377,7 +5377,7 @@ class DisplayWaveview1BusBItemVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:BUS:B:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1BusBItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -5452,7 +5452,7 @@ class DisplayWaveview1BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:BUS:B:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1BusBItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1BusBItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5516,7 +5516,7 @@ class DisplayWaveview1Bus(SCPICmdRead): - ``.b``: The ``DISplay:WAVEView1:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayWaveview1BusBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1BusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -5566,7 +5566,7 @@ class DisplayWaveview1(SCPICmdRead): - ``.refx``: The ``DISplay:WAVEView1:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplayWaveview1Bus(device, f"{self._cmd_syntax}:BUS") self._ch: Dict[int, DisplayWaveview1Channel] = DefaultDictPassKeyToFactory( @@ -5928,7 +5928,7 @@ class DisplayWaveview(SCPICmdRead): - ``.gridtype``: The ``DISplay:WAVEView:GRIDTYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveviewCursor(device, f"{self._cmd_syntax}:CURSor") self._gridtype = DisplayWaveviewGridtype(device, f"{self._cmd_syntax}:GRIDTYPE") @@ -6099,7 +6099,7 @@ class DisplaySpecview1Intensity(SCPICmdRead): - ``.waveform``: The ``DISplay:SPECView1:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._graticule = DisplaySpecview1IntensityGraticule( device, f"{self._cmd_syntax}:GRATicule" @@ -6296,7 +6296,7 @@ class DisplaySpecview1CursorCursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:SPECView1:CURSor:CURSOR:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6465,7 +6465,7 @@ class DisplaySpecview1CursorCursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:SPECView1:CURSor:CURSOR:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6760,7 +6760,7 @@ class DisplaySpecview1CursorCursorHbars(SCPICmdRead): - ``.bunits``: The ``DISplay:SPECView1:CURSor:CURSOR:HBArs:BUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6991,7 +6991,7 @@ class DisplaySpecview1CursorCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:SPECView1:CURSor:CURSOR:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._anoisedensity = DisplaySpecview1CursorCursorAnoisedensity( device, f"{self._cmd_syntax}:ANOISEDensity" @@ -7267,7 +7267,7 @@ class DisplaySpecview1Cursor(SCPICmdRead): - ``.cursor``: The ``DISplay:SPECView1:CURSor:CURSOR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplaySpecview1CursorCursor(device, f"{self._cmd_syntax}:CURSOR") @@ -7312,7 +7312,7 @@ class DisplaySpecview1(SCPICmdRead): - ``.viewstyle``: The ``DISplay:SPECView1:VIEWStyle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplaySpecview1Cursor(device, f"{self._cmd_syntax}:CURSor") self._graticule = DisplaySpecview1Graticule(device, f"{self._cmd_syntax}:GRAticule") @@ -7480,7 +7480,7 @@ class DisplaySelectWaveview1(SCPICmdRead): - ``.source``: The ``DISplay:SELect:WAVEView1:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = DisplaySelectWaveview1Source(device, f"{self._cmd_syntax}:SOUrce") @@ -7580,7 +7580,7 @@ class DisplaySelectSpecview1(SCPICmdRead): - ``.source``: The ``DISplay:SELect:SPECView1:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = DisplaySelectSpecview1Source(device, f"{self._cmd_syntax}:SOUrce") @@ -7736,7 +7736,7 @@ class DisplaySelect(SCPICmdRead): - ``.waveview1``: The ``DISplay:SELect:WAVEView1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplaySelectBus(device, f"{self._cmd_syntax}:BUS") self._math = DisplaySelectMath(device, f"{self._cmd_syntax}:MATH") @@ -7978,7 +7978,7 @@ class DisplayReffftviewItemZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8104,7 +8104,7 @@ class DisplayReffftviewItemZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8179,7 +8179,7 @@ class DisplayReffftviewItemZoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:REFFFTView:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayReffftviewItemZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayReffftviewItemZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -8256,7 +8256,7 @@ class DisplayReffftviewItemXaxis(SCPICmdRead): - ``.scale``: The ``DISplay:REFFFTView:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayReffftviewItemXaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -8330,7 +8330,7 @@ class DisplayReffftviewItemRefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:REFFFTView:REF:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayReffftviewItemRefRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -8377,7 +8377,7 @@ class DisplayReffftviewItemRef(SCPICmdRead): - ``.ref``: The ``DISplay:REFFFTView:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayReffftviewItemRefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayReffftviewItemRefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -8595,7 +8595,7 @@ class DisplayReffftviewItemCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:REFFFTView:CURSor:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ahposition = DisplayReffftviewItemCursorWaveformAhposition( device, f"{self._cmd_syntax}:AHPOSition" @@ -8893,7 +8893,7 @@ class DisplayReffftviewItemCursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:REFFFTView:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -9205,7 +9205,7 @@ class DisplayReffftviewItemCursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:REFFFTView:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayReffftviewItemCursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -9572,7 +9572,7 @@ class DisplayReffftviewItemCursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:REFFFTView:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -9852,7 +9852,7 @@ class DisplayReffftviewItemCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:REFFFTView:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayReffftviewItemCursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayReffftviewItemCursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -10274,7 +10274,7 @@ class DisplayReffftviewItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.zoom``: The ``DISplay:REFFFTView:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayReffftviewItemAutoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayReffftviewItemCursor(device, f"{self._cmd_syntax}:CURSor") @@ -10491,7 +10491,7 @@ class DisplayRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:REF:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayRefItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayRefItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -10623,7 +10623,7 @@ class DisplayPlotview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10749,7 +10749,7 @@ class DisplayPlotview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10823,7 +10823,7 @@ class DisplayPlotview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:PLOTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayPlotview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayPlotview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -10957,7 +10957,7 @@ class DisplayPlotview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:PLOTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11144,7 +11144,7 @@ class DisplayPlotview1CursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:PLOTView1:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11445,7 +11445,7 @@ class DisplayPlotview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:PLOTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayPlotview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -11795,7 +11795,7 @@ class DisplayPlotview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:PLOTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -12056,7 +12056,7 @@ class DisplayPlotview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:PLOTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rolocation = DisplayPlotview1CursorRolocation( device, f"{self._cmd_syntax}:ROLOCATION" @@ -12440,7 +12440,7 @@ class DisplayPlotview1(SCPICmdRead): - ``.zoom``: The ``DISplay:PLOTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayPlotview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayPlotview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -12587,7 +12587,7 @@ class DisplayPlotviewItemYaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTVIEW:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotviewItemYaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -12660,7 +12660,7 @@ class DisplayPlotviewItemXaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTVIEW:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotviewItemXaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -12707,7 +12707,7 @@ class DisplayPlotviewItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.yaxis``: The ``DISplay:PLOTVIEW:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayPlotviewItemXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayPlotviewItemYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -12791,7 +12791,7 @@ class DisplayPersistence(SCPICmdWrite, SCPICmdRead): - ``.reset``: The ``DISplay:PERSistence:RESET`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = DisplayPersistenceReset(device, f"{self._cmd_syntax}:RESET") @@ -12881,7 +12881,7 @@ class DisplayMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:Math:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayMathItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayMathItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -13012,7 +13012,7 @@ class DisplayMathfftview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -13139,7 +13139,7 @@ class DisplayMathfftview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -13211,7 +13211,7 @@ class DisplayMathfftview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayMathfftview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayMathfftview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -13288,7 +13288,7 @@ class DisplayMathfftview1Yaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1YaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -13362,7 +13362,7 @@ class DisplayMathfftview1Xaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1XaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -13440,7 +13440,7 @@ class DisplayMathfftview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:MATHFFTView1:MATH:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayMathfftview1MathMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -13489,7 +13489,7 @@ class DisplayMathfftview1Math(SCPICmdRead): - ``.math``: The ``DISplay:MATHFFTView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayMathfftview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayMathfftview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -13610,7 +13610,7 @@ class DisplayMathfftview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:MATHFFTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -13822,7 +13822,7 @@ class DisplayMathfftview1CursorVbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:VBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -14125,7 +14125,7 @@ class DisplayMathfftview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:MATHFFTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayMathfftview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -14485,7 +14485,7 @@ class DisplayMathfftview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -14755,7 +14755,7 @@ class DisplayMathfftview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:MATHFFTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rolocation = DisplayMathfftview1CursorRolocation( device, f"{self._cmd_syntax}:ROLOCATION" @@ -15125,7 +15125,7 @@ class DisplayMathfftview1(SCPICmdRead): - ``.zoom``: The ``DISplay:MATHFFTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayMathfftview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayMathfftview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -15348,7 +15348,7 @@ class DisplayIntensityBacklightAutodim(SCPICmdRead): - ``.time``: The ``DISplay:INTENSITy:BACKLight:AUTODim:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = DisplayIntensityBacklightAutodimEnable(device, f"{self._cmd_syntax}:ENAble") self._time = DisplayIntensityBacklightAutodimTime(device, f"{self._cmd_syntax}:TIMe") @@ -15442,7 +15442,7 @@ class DisplayIntensityBacklight(SCPICmdWrite, SCPICmdRead): - ``.autodim``: The ``DISplay:INTENSITy:BACKLight:AUTODim`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodim = DisplayIntensityBacklightAutodim(device, f"{self._cmd_syntax}:AUTODim") @@ -15484,7 +15484,7 @@ class DisplayIntensity(SCPICmdRead): - ``.backlight``: The ``DISplay:INTENSITy:BACKLight`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") @@ -15566,7 +15566,7 @@ class DisplayGlobalRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -15650,7 +15650,7 @@ class DisplayGlobalPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:PLOT:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalPlotItemState(device, f"{self._cmd_syntax}:STATE") @@ -15730,7 +15730,7 @@ class DisplayGlobalMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -15810,7 +15810,7 @@ class DisplayGlobalChannel(ValidatedChannel, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:CH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalChannelState(device, f"{self._cmd_syntax}:STATE") @@ -15889,7 +15889,7 @@ class DisplayGlobalBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:B:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalBItemState(device, f"{self._cmd_syntax}:STATE") @@ -15941,7 +15941,7 @@ class DisplayGlobal(SCPICmdRead): - ``.ref``: The ``DISplay:GLObal:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayGlobalBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayGlobalBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16135,7 +16135,7 @@ class DisplayChannel(ValidatedChannel, SCPICmdRead): - ``.normalcolor``: The ``DISplay:CH:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayChannelInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayChannelNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -16240,7 +16240,7 @@ class Display(SCPICmdRead): - ``.ref``: The ``DISplay:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._colors = DisplayColors(device, f"{self._cmd_syntax}:COLors") self._global = DisplayGlobal(device, f"{self._cmd_syntax}:GLObal") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py index ae858745..1ab35b4e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesysCollectlogfiles(SCPICmdWrite): @@ -56,7 +56,7 @@ class Filesys(SCPICmdRead): - ``.collectlogfiles``: The ``FILESYS:COLLECTLOGFILES`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILESYS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILESYS") -> None: super().__init__(device, cmd_syntax) self._collectlogfiles = FilesysCollectlogfiles( device, f"{self._cmd_syntax}:COLLECTLOGFILES" diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py index 1d86786a..d4b7abc0 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramList(SCPICmdRead): @@ -680,7 +680,7 @@ class HistogramHistogramItemMeasurement(SCPICmdRead): - ``.twosigma``: The ``HISTogram:HISTogram:MEASurement:TWOSigma`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = HistogramHistogramItemMeasurementCount(device, f"{self._cmd_syntax}:COUNt") self._hits = HistogramHistogramItemMeasurementHits(device, f"{self._cmd_syntax}:HITS") @@ -1297,7 +1297,7 @@ class HistogramHistogramItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.transparency``: The ``HISTogram:HISTogram:TRANsparency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._box = HistogramHistogramItemBox(device, f"{self._cmd_syntax}:BOX") self._bstate = HistogramHistogramItemBstate(device, f"{self._cmd_syntax}:BSTate") @@ -1694,7 +1694,7 @@ class Histogram(SCPICmdRead): - ``.list``: The ``HISTogram:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HISTogram") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HISTogram") -> None: super().__init__(device, cmd_syntax) self._addnew = HistogramAddnew(device, f"{self._cmd_syntax}:ADDNew") self._deleteall = HistogramDeleteall(device, f"{self._cmd_syntax}:DELETEALL") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py index 8d918ab2..93dfebb0 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): @@ -147,7 +147,7 @@ class HorizontalModeManual(SCPICmdRead): - ``.configure``: The ``HORizontal:MODe:MANual:CONFIGure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configure = HorizontalModeManualConfigure(device, f"{self._cmd_syntax}:CONFIGure") @@ -213,7 +213,7 @@ class HorizontalMode(SCPICmdWrite, SCPICmdRead): - ``.manual``: The ``HORizontal:MODe:MANual`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._manual = HorizontalModeManual(device, f"{self._cmd_syntax}:MANual") @@ -295,7 +295,7 @@ class HorizontalDelay(SCPICmdRead): - ``.time``: The ``HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalDelayMode(device, f"{self._cmd_syntax}:MODe") self._time = HorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -373,7 +373,9 @@ class Horizontal(SCPICmdRead): - ``.scale``: The ``HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._delay = HorizontalDelay(device, f"{self._cmd_syntax}:DELay") self._mode = HorizontalMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py index feec2af3..258623f6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): @@ -95,7 +95,7 @@ class MaskTest(SCPICmdRead): - ``.waveforms``: The ``MASK:TESt:WAVEforms`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveforms = MaskTestWaveforms(device, f"{self._cmd_syntax}:WAVEforms") @@ -306,7 +306,7 @@ class MaskMaskItemTolerance(SCPICmdRead): - ``.vertical``: The ``MASK:MASK:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._habsolute = MaskMaskItemToleranceHabsolute(device, f"{self._cmd_syntax}:HABSolute") self._horizontal = MaskMaskItemToleranceHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -574,7 +574,7 @@ class MaskMaskItemTest(SCPICmdRead): - ``.threshold``: The ``MASK:MASK:TESt:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cthreshold = MaskMaskItemTestCthreshold(device, f"{self._cmd_syntax}:CTHReshold") self._state = MaskMaskItemTestState(device, f"{self._cmd_syntax}:STATE") @@ -781,7 +781,7 @@ class MaskMaskItemSegItemCount(SCPICmdRead): - ``.hits``: The ``MASK:MASK:SEG:COUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemSegItemCountHits(device, f"{self._cmd_syntax}:HITS") @@ -827,7 +827,7 @@ class MaskMaskItemSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.points``: The ``MASK:MASK:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MaskMaskItemSegItemCount(device, f"{self._cmd_syntax}:COUNT") self._points = MaskMaskItemSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -1000,7 +1000,7 @@ class MaskMaskItemCount(SCPICmdRead): - ``.hits``: The ``MASK:MASK:COUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemCountHits(device, f"{self._cmd_syntax}:HITS") @@ -1052,7 +1052,7 @@ class MaskMaskItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.ttype``: The ``MASK:MASK:TTYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MaskMaskItemCount(device, f"{self._cmd_syntax}:COUNT") self._definedby = MaskMaskItemDefinedby(device, f"{self._cmd_syntax}:DEFinedby") @@ -1330,7 +1330,7 @@ class Mask(SCPICmdRead): - ``.test``: The ``MASK:TESt`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._delete = MaskDelete(device, f"{self._cmd_syntax}:DELete") self._mask: Dict[int, MaskMaskItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py index 67024bdd..42464b92 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py @@ -162,7 +162,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): @@ -224,7 +224,7 @@ class MathMathItemUsb(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:USB:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemUsbSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -322,7 +322,7 @@ class MathMathItemSvid(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SVID:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSvidSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -397,7 +397,7 @@ class MathMathItemSpmi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPMI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpmiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -475,7 +475,7 @@ class MathMathItemSpi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -612,7 +612,7 @@ class MathMathItemSpectralUnwrap(SCPICmdWrite, SCPICmdRead): - ``.degrees``: The ``MATH:MATH:SPECTral:UNWRap:DEGrees`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = MathMathItemSpectralUnwrapDegrees(device, f"{self._cmd_syntax}:DEGrees") @@ -733,7 +733,7 @@ class MathMathItemSpectralSuppress(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``MATH:MATH:SPECTral:SUPPress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = MathMathItemSpectralSuppressValue(device, f"{self._cmd_syntax}:VALue") @@ -899,7 +899,7 @@ class MathMathItemSpectral(SCPICmdRead): - ``.window``: The ``MATH:MATH:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horz = MathMathItemSpectralHorz(device, f"{self._cmd_syntax}:HORZ") self._mag = MathMathItemSpectralMag(device, f"{self._cmd_syntax}:MAG") @@ -1200,7 +1200,7 @@ class MathMathItemSpacewire(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPACEWIRe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpacewireSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1299,7 +1299,7 @@ class MathMathItemSmbus(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SMBUS:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSmbusSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1404,7 +1404,7 @@ class MathMathItemSent(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SENT:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSentSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1481,7 +1481,7 @@ class MathMathItemSdlc(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SDLC:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSdlcSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1558,7 +1558,7 @@ class MathMathItemRs232c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:RS232C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemRs232cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1639,7 +1639,7 @@ class MathMathItemPsifive(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:PSIFIVe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemPsifiveSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1716,7 +1716,7 @@ class MathMathItemParallel(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:PARallel:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemParallelSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1790,7 +1790,7 @@ class MathMathItemOnewire(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ONEWIRe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemOnewireSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1865,7 +1865,7 @@ class MathMathItemMil1553b(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:MIL1553B:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemMil1553bSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1938,7 +1938,7 @@ class MathMathItemMdio(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:MDIO:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemMdioSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2010,7 +2010,7 @@ class MathMathItemLin(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:LIN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemLinSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2254,7 +2254,7 @@ class MathMathItemLabelFont(SCPICmdRead): - ``.underline``: The ``MATH:MATH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = MathMathItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = MathMathItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -2419,7 +2419,7 @@ class MathMathItemLabel(SCPICmdRead): - ``.ypos``: The ``MATH:MATH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = MathMathItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = MathMathItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -2610,7 +2610,7 @@ class MathMathItemI3c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:I3C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemI3cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2682,7 +2682,7 @@ class MathMathItemI2c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:I2C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemI2cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2806,7 +2806,7 @@ class MathMathItemFlexray(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:FLEXray:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemFlexraySupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -3052,7 +3052,7 @@ class MathMathItemFilterSave(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = MathMathItemFilterSaveResponse(device, f"{self._cmd_syntax}:RESPonse") @@ -3262,7 +3262,7 @@ class MathMathItemFilterLoad(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = MathMathItemFilterLoadResponse(device, f"{self._cmd_syntax}:RESPonse") @@ -3469,7 +3469,7 @@ class MathMathItemFilter(SCPICmdRead): - ``.type``: The ``MATH:MATH:FILTer:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cfreq = MathMathItemFilterCfreq(device, f"{self._cmd_syntax}:CFReq") self._delay = MathMathItemFilterDelay(device, f"{self._cmd_syntax}:DELay") @@ -4030,7 +4030,7 @@ class MathMathItemEusb(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:EUSB:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEusbSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4108,7 +4108,7 @@ class MathMathItemEthernet(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ETHERnet:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEthernetSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4186,7 +4186,7 @@ class MathMathItemEthercat(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ETHERCAT:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEthercatSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4262,7 +4262,7 @@ class MathMathItemEspi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ESPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEspiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4372,7 +4372,7 @@ class MathMathItemCxpi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:CXPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemCxpiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4444,7 +4444,7 @@ class MathMathItemCan(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:CAN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemCanSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4536,7 +4536,7 @@ class MathMathItemAvg(SCPICmdRead): - ``.weight``: The ``MATH:MATH:AVG:WEIGht`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MathMathItemAvgMode(device, f"{self._cmd_syntax}:MODE") self._weight = MathMathItemAvgWeight(device, f"{self._cmd_syntax}:WEIGht") @@ -4630,7 +4630,7 @@ class MathMathItemAutoethernet(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:AUTOETHERnet:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemAutoethernetSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4706,7 +4706,7 @@ class MathMathItemAudio(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:AUDIO:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemAudioSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4782,7 +4782,7 @@ class MathMathItemArinc429a(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ARINC429A:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemArinc429aSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4868,7 +4868,7 @@ class MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vunit``: The ``MATH:MATH:VUNIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = MathMathItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = MathMathItemAudio(device, f"{self._cmd_syntax}:AUDIO") @@ -5672,7 +5672,7 @@ class Math(SCPICmdRead): - ``.math``: The ``MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH") -> None: super().__init__(device, cmd_syntax) self._addnew = MathAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = MathDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py index 5b58b6c5..a3bac7af 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasuMeas1SubgroupResultsCurrentacqStddev(SCPICmdReadWithArguments): @@ -263,7 +263,7 @@ class MeasuMeas1SubgroupResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASU:MEAS1:SUBGROUP:RESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasuMeas1SubgroupResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -700,7 +700,7 @@ class MeasuMeas1SubgroupResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASU:MEAS1:SUBGROUP:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasuMeas1SubgroupResultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -915,7 +915,7 @@ class MeasuMeas1SubgroupResults(SCPICmdRead): - ``.currentacq``: The ``MEASU:MEAS1:SUBGROUP:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasuMeas1SubgroupResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasuMeas1SubgroupResultsCurrentacq( @@ -977,7 +977,7 @@ class MeasuMeas1Subgroup(SCPICmdRead): - ``.results``: The ``MEASU:MEAS1:SUBGROUP:RESUlts`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._results = MeasuMeas1SubgroupResults(device, f"{self._cmd_syntax}:RESUlts") @@ -1009,7 +1009,7 @@ class MeasuMeas1(SCPICmdRead): - ``.subgroup``: The ``MEASU:MEAS1:SUBGROUP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._subgroup = MeasuMeas1Subgroup(device, f"{self._cmd_syntax}:SUBGROUP") @@ -1040,7 +1040,7 @@ class Measu(SCPICmdRead): - ``.meas1``: The ``MEASU:MEAS1`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASU") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASU") -> None: super().__init__(device, cmd_syntax) self._meas1 = MeasuMeas1(device, f"{self._cmd_syntax}:MEAS1") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py index fe73c42b..a5f07b73 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py @@ -755,7 +755,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): @@ -795,7 +795,7 @@ class MeasurementWbg(SCPICmdRead): - ``.pdevice``: The ``MEASUrement:WBG:PDEVice`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pdevice = MeasurementWbgPdevice(device, f"{self._cmd_syntax}:PDEVice") @@ -868,7 +868,7 @@ class MeasurementStatistics(SCPICmdRead): - ``.cyclemode``: The ``MEASUrement:STATIstics:CYCLEMode`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cyclemode = MeasurementStatisticsCyclemode(device, f"{self._cmd_syntax}:CYCLEMode") @@ -974,7 +974,7 @@ class MeasurementResultsHistory(SCPICmdRead): - ``.stop``: The ``MEASUrement:RESUlts:HISTory:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = MeasurementResultsHistoryStart(device, f"{self._cmd_syntax}:STARt") self._stop = MeasurementResultsHistoryStop(device, f"{self._cmd_syntax}:STOP") @@ -1053,7 +1053,7 @@ class MeasurementResults(SCPICmdRead): - ``.history``: The ``MEASUrement:RESUlts:HISTory`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._history = MeasurementResultsHistory(device, f"{self._cmd_syntax}:HISTory") @@ -1343,7 +1343,7 @@ class MeasurementReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsPercentFallhigh(device, f"{self._cmd_syntax}:FALLHigh") self._falllow = MeasurementReflevelsPercentFalllow(device, f"{self._cmd_syntax}:FALLLow") @@ -1947,7 +1947,7 @@ class MeasurementReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2208,7 +2208,7 @@ class MeasurementReflevels(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -2656,7 +2656,7 @@ class MeasurementRefItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -3225,7 +3225,7 @@ class MeasurementRefItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -3497,7 +3497,7 @@ class MeasurementRefItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:REF:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementRefItemReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementRefItemReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -3626,7 +3626,7 @@ class MeasurementRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:REF:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementRefItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -3712,7 +3712,7 @@ class MeasurementPopulationLimit(SCPICmdRead): - ``.value``: The ``MEASUrement:POPUlation:LIMIT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementPopulationLimitState(device, f"{self._cmd_syntax}:STATE") self._value = MeasurementPopulationLimitValue(device, f"{self._cmd_syntax}:VALue") @@ -3787,7 +3787,7 @@ class MeasurementPopulation(SCPICmdRead): - ``.limit``: The ``MEASUrement:POPUlation:LIMIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = MeasurementPopulationLimit(device, f"{self._cmd_syntax}:LIMIT") @@ -4032,7 +4032,7 @@ class MeasurementMech(SCPICmdRead): - ``.stype``: The ``MEASUrement:MECH:STYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eindexz = MeasurementMechEindexz(device, f"{self._cmd_syntax}:EINDexz") self._gratio = MeasurementMechGratio(device, f"{self._cmd_syntax}:GRATio") @@ -4326,7 +4326,7 @@ class MeasurementMeasrange(SCPICmdRead): - ``.state``: The ``MEASUrement:MEASRange:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = MeasurementMeasrangeMax(device, f"{self._cmd_syntax}:MAX") self._min = MeasurementMeasrangeMin(device, f"{self._cmd_syntax}:MIN") @@ -5039,7 +5039,7 @@ class MeasurementMeasItemTosymbol(SCPICmdRead): - ``.measureat``: The ``MEASUrement:MEAS:TOSYmbol:MEASUREAT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic2source = MeasurementMeasItemTosymbolLogic2source( device, f"{self._cmd_syntax}:LOGIC2SOUrce" @@ -5583,7 +5583,7 @@ class MeasurementMeasItemSscNominalfreq(SCPICmdWrite, SCPICmdRead): - ``.selectiontype``: The ``MEASUrement:MEAS:SSC:NOMinalfreq:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementMeasItemSscNominalfreqSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -5635,7 +5635,7 @@ class MeasurementMeasItemSsc(SCPICmdRead): - ``.nominalfreq``: The ``MEASUrement:MEAS:SSC:NOMinalfreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nominalfreq = MeasurementMeasItemSscNominalfreq( device, f"{self._cmd_syntax}:NOMinalfreq" @@ -6091,7 +6091,7 @@ class MeasurementMeasItemResultsHistory(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:HISTory:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsHistoryMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -6386,7 +6386,7 @@ class MeasurementMeasItemResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -6680,7 +6680,7 @@ class MeasurementMeasItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -6841,7 +6841,7 @@ class MeasurementMeasItemResults(SCPICmdRead): - ``.history``: The ``MEASUrement:MEAS:RESUlts:HISTory`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemResultsCurrentacq( @@ -7040,7 +7040,7 @@ class MeasurementMeasItemReflevelsAbsolute(SCPICmdRead): - ``.fallhigh``: The ``MEASUrement:MEAS:REFLevels:ABSolute:FALLHigh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7343,7 +7343,7 @@ class MeasurementMeasItemReflevels1Percent(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevels1PercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7921,7 +7921,7 @@ class MeasurementMeasItemReflevels1Absolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._falllow = MeasurementMeasItemReflevels1AbsoluteFalllow( device, f"{self._cmd_syntax}:FALLLow" @@ -8175,7 +8175,7 @@ class MeasurementMeasItemReflevels1(SCPICmdRead): - ``.percent``: The ``MEASUrement:MEAS:REFLevels1:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevels1Absolute( device, f"{self._cmd_syntax}:ABSolute" @@ -8323,7 +8323,7 @@ class MeasurementMeasItemReflevels(SCPICmdRead): - ``.absolute``: The ``MEASUrement:MEAS:REFLevels:ABSolute`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -8529,7 +8529,7 @@ class MeasurementMeasItemPopulationLimit(SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:POPUlation:LIMIT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementMeasItemPopulationLimitState(device, f"{self._cmd_syntax}:STATE") self._value = MeasurementMeasItemPopulationLimitValue(device, f"{self._cmd_syntax}:VALue") @@ -8646,7 +8646,7 @@ class MeasurementMeasItemPopulation(SCPICmdRead): - ``.limit``: The ``MEASUrement:MEAS:POPUlation:LIMIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = MeasurementMeasItemPopulationGlobal(device, f"{self._cmd_syntax}:GLOBal") self._limit = MeasurementMeasItemPopulationLimit(device, f"{self._cmd_syntax}:LIMIT") @@ -8775,7 +8775,7 @@ class MeasurementMeasItemPerfreq(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:PERFREQ:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = MeasurementMeasItemPerfreqEdge(device, f"{self._cmd_syntax}:EDGE") @@ -9191,7 +9191,7 @@ class MeasurementMeasItemOutfiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:OUTFILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemOutfiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemOutfiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -9274,7 +9274,7 @@ class MeasurementMeasItemOutfilters(SCPICmdRead): - ``.lowpass``: The ``MEASUrement:MEAS:OUTFILTers:LOWPass`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpass = MeasurementMeasItemOutfiltersLowpass(device, f"{self._cmd_syntax}:LOWPass") @@ -9432,7 +9432,7 @@ class MeasurementMeasItemOfiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:OFILters:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemOfiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemOfiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -9515,7 +9515,7 @@ class MeasurementMeasItemOfilters(SCPICmdRead): - ``.lowpass``: The ``MEASUrement:MEAS:OFILters:LOWPass`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpass = MeasurementMeasItemOfiltersLowpass(device, f"{self._cmd_syntax}:LOWPass") @@ -9772,7 +9772,7 @@ class MeasurementMeasItemMech(SCPICmdRead): - ``.stype``: The ``MEASUrement:MEAS:MECH:STYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eindexz = MeasurementMeasItemMechEindexz(device, f"{self._cmd_syntax}:EINDexz") self._gratio = MeasurementMeasItemMechGratio(device, f"{self._cmd_syntax}:GRATio") @@ -10092,7 +10092,7 @@ class MeasurementMeasItemMeasrange(SCPICmdRead): - ``.state``: The ``MEASUrement:MEAS:MEASRange:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = MeasurementMeasItemMeasrangeGlobal(device, f"{self._cmd_syntax}:GLOBal") self._max = MeasurementMeasItemMeasrangeMax(device, f"{self._cmd_syntax}:MAX") @@ -10787,7 +10787,7 @@ class MeasurementMeasItemJittersummary(SCPICmdRead): - ``.tjber``: The ``MEASUrement:MEAS:JITTERSummary:TJBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcd = MeasurementMeasItemJittersummaryDcd(device, f"{self._cmd_syntax}:DCD") self._ddj = MeasurementMeasItemJittersummaryDdj(device, f"{self._cmd_syntax}:DDJ") @@ -11240,7 +11240,7 @@ class MeasurementMeasItemHlevelOutput(SCPICmdRead): - ``.uglobal``: The ``MEASUrement:MEAS:HLEVel:OUTPut:UGLobal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._uglobal = MeasurementMeasItemHlevelOutputUglobal( device, f"{self._cmd_syntax}:UGLobal" @@ -11288,7 +11288,7 @@ class MeasurementMeasItemHlevel(SCPICmdRead): - ``.output``: The ``MEASUrement:MEAS:HLEVel:OUTPut`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._output = MeasurementMeasItemHlevelOutput(device, f"{self._cmd_syntax}:OUTPut") @@ -11587,7 +11587,7 @@ class MeasurementMeasItemHighlevel(SCPICmdRead): - ``.wiring``: The ``MEASUrement:MEAS:HIGHLEVel:WIRing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configuration = MeasurementMeasItemHighlevelConfiguration( device, f"{self._cmd_syntax}:CONFIGuration" @@ -12247,7 +12247,7 @@ class MeasurementMeasItemGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:MEAS:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementMeasItemGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementMeasItemGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -12714,7 +12714,7 @@ class MeasurementMeasItemFromsymbol(SCPICmdRead): - ``.measureat``: The ``MEASUrement:MEAS:FROMSymbol:MEASUREAT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic2source = MeasurementMeasItemFromsymbolLogic2source( device, f"{self._cmd_syntax}:LOGIC2SOUrce" @@ -13044,7 +13044,7 @@ class MeasurementMeasItemFiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:FILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemFiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemFiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -13189,7 +13189,7 @@ class MeasurementMeasItemFiltersHighpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:FILTers:HIGHPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemFiltersHighpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemFiltersHighpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -13333,7 +13333,7 @@ class MeasurementMeasItemFilters(SCPICmdRead): - ``.ramptime``: The ``MEASUrement:MEAS:FILTers:RAMPtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blankingtime = MeasurementMeasItemFiltersBlankingtime( device, f"{self._cmd_syntax}:BLANKingtime" @@ -13790,7 +13790,7 @@ class MeasurementMeasItemEdges(SCPICmdRead): - ``.upperfrequency``: The ``MEASUrement:MEAS:EDGES:UPPERFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fromlevel = MeasurementMeasItemEdgesFromlevel(device, f"{self._cmd_syntax}:FROMLevel") self._level = MeasurementMeasItemEdgesLevel(device, f"{self._cmd_syntax}:LEVel") @@ -14192,7 +14192,7 @@ class MeasurementMeasItemDisplaystat(SCPICmdRead): - ``.enable``: The ``MEASUrement:MEAS:DISPlaystat:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = MeasurementMeasItemDisplaystatEnable(device, f"{self._cmd_syntax}:ENABle") @@ -14276,7 +14276,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementMeasItemDelayEdgeItem(device, f"{self._cmd_syntax}:EDGE{x}") @@ -14475,7 +14475,7 @@ class MeasurementMeasItemCommonmodeFilters(SCPICmdRead): - ``.state``: The ``MEASUrement:MEAS:COMMONMode:FILTers:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementMeasItemCommonmodeFiltersState(device, f"{self._cmd_syntax}:STATE") @@ -14528,7 +14528,7 @@ class MeasurementMeasItemCommonmode(SCPICmdRead): - ``.sources``: The ``MEASUrement:MEAS:COMMONMode:SOURCEs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filters = MeasurementMeasItemCommonmodeFilters(device, f"{self._cmd_syntax}:FILTers") self._sources = MeasurementMeasItemCommonmodeSources(device, f"{self._cmd_syntax}:SOURCEs") @@ -14664,7 +14664,7 @@ class MeasurementMeasItemClockrecoveryNominaloffset(SCPICmdWrite, SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementMeasItemClockrecoveryNominaloffsetSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -15122,7 +15122,7 @@ class MeasurementMeasItemClockrecoveryAdvanced(SCPICmdRead): - ``.method``: The ``MEASUrement:MEAS:CLOCKRecovery:ADVanced:METHod`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._method = MeasurementMeasItemClockrecoveryAdvancedMethod( device, f"{self._cmd_syntax}:METHod" @@ -15193,7 +15193,7 @@ class MeasurementMeasItemClockrecovery(SCPICmdRead): - ``.standard``: The ``MEASUrement:MEAS:CLOCKRecovery:STAndard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanced = MeasurementMeasItemClockrecoveryAdvanced( device, f"{self._cmd_syntax}:ADVanced" @@ -15845,7 +15845,7 @@ class MeasurementMeasItemCcresultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -16143,7 +16143,7 @@ class MeasurementMeasItemCcresultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -16307,7 +16307,7 @@ class MeasurementMeasItemCcresults(SCPICmdRead): - ``.currentacq``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemCcresultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemCcresultsCurrentacq( @@ -16599,7 +16599,7 @@ class MeasurementMeasItemBer(SCPICmdWrite, SCPICmdRead): - ``.targetber``: The ``MEASUrement:MEAS:BER:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._targetber = MeasurementMeasItemBerTargetber(device, f"{self._cmd_syntax}:TARGETBER") @@ -16770,7 +16770,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["PIDevice"], cmd_syntax: str + self, device: Optional["PIControl"], cmd_syntax: str ) -> None: super().__init__(device, cmd_syntax) self._ber = MeasurementMeasItemBer(device, f"{self._cmd_syntax}:BER") @@ -20766,7 +20766,7 @@ class MeasurementMathItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -21372,7 +21372,7 @@ class MeasurementMathItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -21662,7 +21662,7 @@ class MeasurementMathItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:MATH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMathItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -21810,7 +21810,7 @@ class MeasurementMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:MATH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementMathItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -22144,7 +22144,7 @@ class MeasurementHighlevelOutlowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:HIGHLEVel:OUTLOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementHighlevelOutlowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementHighlevelOutlowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -22408,7 +22408,7 @@ class MeasurementHighlevelInlowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:HIGHLEVel:INLOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementHighlevelInlowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementHighlevelInlowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -22551,7 +22551,7 @@ class MeasurementHighlevel(SCPICmdRead): - ``.wiring``: The ``MEASUrement:HIGHLEVel:WIRing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configuration = MeasurementHighlevelConfiguration( device, f"{self._cmd_syntax}:CONFIGuration" @@ -23148,7 +23148,7 @@ class MeasurementGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -23430,7 +23430,7 @@ class MeasurementFiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:FILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementFiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementFiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -23558,7 +23558,7 @@ class MeasurementFiltersHighpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:FILTers:HIGHPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementFiltersHighpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementFiltersHighpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -23661,7 +23661,7 @@ class MeasurementFilters(SCPICmdRead): - ``.ramptime``: The ``MEASUrement:FILTers:RAMPtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blankingtime = MeasurementFiltersBlankingtime( device, f"{self._cmd_syntax}:BLANKingtime" @@ -24016,7 +24016,7 @@ class MeasurementClockrecoveryNominaloffset(SCPICmdWrite, SCPICmdRead): - ``.selectiontype``: The ``MEASUrement:CLOCKRecovery:NOMINALOFFset:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementClockrecoveryNominaloffsetSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -24431,7 +24431,7 @@ class MeasurementClockrecoveryAdvanced(SCPICmdRead): - ``.method``: The ``MEASUrement:CLOCKRecovery:ADVanced:METHod`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._method = MeasurementClockrecoveryAdvancedMethod(device, f"{self._cmd_syntax}:METHod") @@ -24494,7 +24494,7 @@ class MeasurementClockrecovery(SCPICmdRead): - ``.standard``: The ``MEASUrement:CLOCKRecovery:STAndard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanced = MeasurementClockrecoveryAdvanced(device, f"{self._cmd_syntax}:ADVanced") self._clockfrequency = MeasurementClockrecoveryClockfrequency( @@ -25256,7 +25256,7 @@ class MeasurementChannelReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -25828,7 +25828,7 @@ class MeasurementChannelReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -26108,7 +26108,7 @@ class MeasurementChannelReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:CH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementChannelReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementChannelReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -26239,7 +26239,7 @@ class MeasurementChannel(ValidatedChannel, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:CH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementChannelReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -26717,7 +26717,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._addmeas = MeasurementAddmeas(device, f"{self._cmd_syntax}:ADDMEAS") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py index 8699961d..f8e37eb3 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): @@ -187,7 +187,7 @@ class PlotPlotItemSpectrum(SCPICmdRead): - ``.dynrange``: The ``PLOT:PLOT:SPECtrum:DYNRange`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._base = PlotPlotItemSpectrumBase(device, f"{self._cmd_syntax}:BASE") self._dynrange = PlotPlotItemSpectrumDynrange(device, f"{self._cmd_syntax}:DYNRange") @@ -416,7 +416,7 @@ class PlotPlotItemMaskoffsetPercentui(SCPICmdRead): - ``.to``: The ``PLOT:PLOT:MASKOffset:PERCENTui:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = PlotPlotItemMaskoffsetPercentuiFrom(device, f"{self._cmd_syntax}:FROM") self._to = PlotPlotItemMaskoffsetPercentuiTo(device, f"{self._cmd_syntax}:TO") @@ -525,7 +525,7 @@ class PlotPlotItemMaskoffsetHorizontal(SCPICmdRead): - ``.autofit``: The ``PLOT:PLOT:MASKOffset:HORizontal:AUTOfit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autofit = PlotPlotItemMaskoffsetHorizontalAutofit( device, f"{self._cmd_syntax}:AUTOfit" @@ -577,7 +577,7 @@ class PlotPlotItemMaskoffset(SCPICmdRead): - ``.percentui``: The ``PLOT:PLOT:MASKOffset:PERCENTui`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = PlotPlotItemMaskoffsetHorizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -876,7 +876,7 @@ class PlotPlotItemLabelFont(SCPICmdRead): - ``.underline``: The ``PLOT:PLOT:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = PlotPlotItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = PlotPlotItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -1069,7 +1069,7 @@ class PlotPlotItemLabel(SCPICmdRead): - ``.ypos``: The ``PLOT:PLOT:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = PlotPlotItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = PlotPlotItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1303,7 +1303,7 @@ class PlotPlotItemImda(SCPICmdRead): - ``.meas``: The ``PLOT:PLOT:IMDA:MEAS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._meas = PlotPlotItemImdaMeas(device, f"{self._cmd_syntax}:MEAS") @@ -1517,7 +1517,7 @@ class PlotPlotItemBathtub(SCPICmdRead): - ``.xaxisunits``: The ``PLOT:PLOT:BATHtub:XAXISUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = PlotPlotItemBathtubBer(device, f"{self._cmd_syntax}:BER") self._xaxisunits = PlotPlotItemBathtubXaxisunits(device, f"{self._cmd_syntax}:XAXISUnits") @@ -1603,7 +1603,7 @@ class PlotPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``PLOT:PLOT:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bathtub = PlotPlotItemBathtub(device, f"{self._cmd_syntax}:BATHtub") self._bittype = PlotPlotItemBittype(device, f"{self._cmd_syntax}:BITType") @@ -2109,7 +2109,7 @@ class Plot(SCPICmdRead): - ``.plot``: The ``PLOT:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PLOT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PLOT") -> None: super().__init__(device, cmd_syntax) self._addnew = PlotAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PlotDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py index def16d80..85fb7375 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py @@ -629,7 +629,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemType(SCPICmdWrite, SCPICmdRead): @@ -1347,7 +1347,7 @@ class PowerPowerItemTurnontime(SCPICmdRead): - ``.type``: The ``POWer:POWer:TURNONtime:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = PowerPowerItemTurnontimeFrequency(device, f"{self._cmd_syntax}:FREQuency") self._inputlevel = PowerPowerItemTurnontimeInputlevel( @@ -2764,7 +2764,7 @@ class PowerPowerItemTurnofftime(SCPICmdRead): - ``.type``: The ``POWer:POWer:TURNOFFtime:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = PowerPowerItemTurnofftimeFrequency( device, f"{self._cmd_syntax}:FREQuency" @@ -3575,7 +3575,7 @@ class PowerPowerItemSwitchingripple(SCPICmdRead): - ``.lfrequency``: The ``POWer:POWer:SWITCHINGRIPPLE:LFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemSwitchingrippleInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -4065,7 +4065,7 @@ class PowerPowerItemSwitchingloss(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:SWITCHINGLOSS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._devicetype = PowerPowerItemSwitchinglossDevicetype( device, f"{self._cmd_syntax}:DEVICEType" @@ -4635,7 +4635,7 @@ class PowerPowerItemSoaSavemask(SCPICmdWriteNoArguments, SCPICmdRead): - ``.folder``: The ``POWer:POWer:SOA:SAVemask:FOLDer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoincrement = PowerPowerItemSoaSavemaskAutoincrement( device, f"{self._cmd_syntax}:AUTOINCrement" @@ -4767,7 +4767,7 @@ class PowerPowerItemSoaRecallmask(SCPICmdWriteNoArguments, SCPICmdRead): - ``.filename``: The ``POWer:POWer:SOA:RECAllmask:FILEName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = PowerPowerItemSoaRecallmaskFilename(device, f"{self._cmd_syntax}:FILEName") @@ -4877,7 +4877,7 @@ class PowerPowerItemSoa(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:SOA:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemSoaIsource(device, f"{self._cmd_syntax}:ISOURce") self._point = PowerPowerItemSoaPoint(device, f"{self._cmd_syntax}:POINT") @@ -5612,7 +5612,7 @@ class PowerPowerItemResultsCurrentacq(SCPICmdRead): - ``.vrms``: The ``POWer:POWer:RESUlts:CURRentacq:VRMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._f1mag = PowerPowerItemResultsCurrentacqF1mag(device, f"{self._cmd_syntax}:F1MAG") self._f3mag = PowerPowerItemResultsCurrentacqF3mag(device, f"{self._cmd_syntax}:F3MAG") @@ -6340,7 +6340,7 @@ class PowerPowerItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``POWer:POWer:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = PowerPowerItemResultsAllacqsMaximum(device, f"{self._cmd_syntax}:MAXimum") self._mean = PowerPowerItemResultsAllacqsMean(device, f"{self._cmd_syntax}:MEAN") @@ -6541,7 +6541,7 @@ class PowerPowerItemResults(SCPICmdRead): - ``.currentacq``: The ``POWer:POWer:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = PowerPowerItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = PowerPowerItemResultsCurrentacq(device, f"{self._cmd_syntax}:CURRentacq") @@ -6855,7 +6855,7 @@ class PowerPowerItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``POWer:POWer:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = PowerPowerItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7423,7 +7423,7 @@ class PowerPowerItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``POWer:POWer:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = PowerPowerItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7706,7 +7706,7 @@ class PowerPowerItemReflevels(SCPICmdRead): - ``.percent``: The ``POWer:POWer:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = PowerPowerItemReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = PowerPowerItemReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -7921,7 +7921,7 @@ class PowerPowerItemRdson(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:RDSON:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._devicetype = PowerPowerItemRdsonDevicetype(device, f"{self._cmd_syntax}:DEVICEType") self._isource = PowerPowerItemRdsonIsource(device, f"{self._cmd_syntax}:ISOURce") @@ -9073,7 +9073,7 @@ class PowerPowerItemPsrr(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:PSRR:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampmode = PowerPowerItemPsrrAmpmode(device, f"{self._cmd_syntax}:AMPMode") self._amp1val = PowerPowerItemPsrrAmp1val(device, f"{self._cmd_syntax}:AMP1Val") @@ -10249,7 +10249,7 @@ class PowerPowerItemPpulsewidth(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PPULSEWIDTH:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemPpulsewidthInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -10451,7 +10451,7 @@ class PowerPowerItemPowerquality(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:POWERQUALITY:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ccycles = PowerPowerItemPowerqualityCcycles(device, f"{self._cmd_syntax}:CCYCles") self._freference = PowerPowerItemPowerqualityFreference( @@ -10684,7 +10684,7 @@ class PowerPowerItemPeriod(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PERIOD:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = PowerPowerItemPeriodEdge(device, f"{self._cmd_syntax}:EDGe") self._inputsource = PowerPowerItemPeriodInputsource( @@ -10823,7 +10823,7 @@ class PowerPowerItemPdutycycle(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PDUTYCYCLE:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgetype = PowerPowerItemPdutycycleEdgetype(device, f"{self._cmd_syntax}:EDGEType") self._inputsource = PowerPowerItemPdutycycleInputsource( @@ -10942,7 +10942,7 @@ class PowerPowerItemNpulsewidth(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:NPULSEWIDTH:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemNpulsewidthInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -11051,7 +11051,7 @@ class PowerPowerItemNdutycycle(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:NDUTYCYCLE:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgetype = PowerPowerItemNdutycycleEdgetype(device, f"{self._cmd_syntax}:EDGEType") self._inputsource = PowerPowerItemNdutycycleInputsource( @@ -11819,7 +11819,7 @@ class PowerPowerItemMagproperty(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:MAGPROPERTY:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._areaofcrosssection = PowerPowerItemMagpropertyAreaofcrosssection( device, f"{self._cmd_syntax}:AREAofcrosssection" @@ -12660,7 +12660,7 @@ class PowerPowerItemMagneticloss(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:MAGNETICLOSS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemMagneticlossIsource(device, f"{self._cmd_syntax}:ISOURce") self._vsource = PowerPowerItemMagneticlossVsource(device, f"{self._cmd_syntax}:VSOURce") @@ -12804,7 +12804,7 @@ class PowerPowerItemLineripple(SCPICmdRead): - ``.lfrequency``: The ``POWer:POWer:LINERIPPLE:LFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemLinerippleInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -12974,7 +12974,7 @@ class PowerPowerItemIvsintegralv(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:IVSINTEGRALV:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemIvsintegralvIsource(device, f"{self._cmd_syntax}:ISOURce") self._vsource = PowerPowerItemIvsintegralvVsource(device, f"{self._cmd_syntax}:VSOURce") @@ -13124,7 +13124,7 @@ class PowerPowerItemInrushcurrent(SCPICmdRead): - ``.peakcurrent``: The ``POWer:POWer:INRUSHcurrent:PEAKCURRent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemInrushcurrentInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -13337,7 +13337,7 @@ class PowerPowerItemInputcap(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:INPUTCAP:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemInputcapIsource(device, f"{self._cmd_syntax}:ISOURce") self._peakcurrent = PowerPowerItemInputcapPeakcurrent( @@ -13586,7 +13586,7 @@ class PowerPowerItemInductance(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:INDUCTANCE:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgesource = PowerPowerItemInductanceEdgesource( device, f"{self._cmd_syntax}:EDGESource" @@ -14735,7 +14735,7 @@ class PowerPowerItemImpedance(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:IMPEDANCE:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampmode = PowerPowerItemImpedanceAmpmode(device, f"{self._cmd_syntax}:AMPMode") self._amp1val = PowerPowerItemImpedanceAmp1val(device, f"{self._cmd_syntax}:AMP1Val") @@ -16367,7 +16367,7 @@ class PowerPowerItemHarmonics(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:HARMONICS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = PowerPowerItemHarmonicsClass(device, f"{self._cmd_syntax}:CLASs") self._clfile = PowerPowerItemHarmonicsClfile(device, f"{self._cmd_syntax}:CLFile") @@ -16964,7 +16964,7 @@ class PowerPowerItemGating(SCPICmdWrite, SCPICmdRead): - ``.global``: The ``POWer:POWer:GATing:GLOBal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = PowerPowerItemGatingGlobal(device, f"{self._cmd_syntax}:GLOBal") @@ -17072,7 +17072,7 @@ class PowerPowerItemFrequency(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:FREQUENCY:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = PowerPowerItemFrequencyEdge(device, f"{self._cmd_syntax}:EDGe") self._inputsource = PowerPowerItemFrequencyInputsource( @@ -17604,7 +17604,7 @@ class PowerPowerItemEfficiency(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:EFFICIENCY:VSOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputtype = PowerPowerItemEfficiencyInputtype(device, f"{self._cmd_syntax}:INPUTType") self._iout1source = PowerPowerItemEfficiencyIout1source( @@ -18169,7 +18169,7 @@ class PowerPowerItemDvdt(SCPICmdRead): - ``.sourceedgetype``: The ``POWer:POWer:DVDT:SOURCEEDGEType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemDvdtInputsource(device, f"{self._cmd_syntax}:INPUTSOurce") self._sourceedgetype = PowerPowerItemDvdtSourceedgetype( @@ -18301,7 +18301,7 @@ class PowerPowerItemDidt(SCPICmdRead): - ``.sourceedgetype``: The ``POWer:POWer:DIDT:SOURCEEDGEType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemDidtInputsource(device, f"{self._cmd_syntax}:INPUTSOurce") self._sourceedgetype = PowerPowerItemDidtSourceedgetype( @@ -18411,7 +18411,7 @@ class PowerPowerItemCycletop(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLETop:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycletopInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -18497,7 +18497,7 @@ class PowerPowerItemCyclepkpk(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEPKPK:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclepkpkInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -18582,7 +18582,7 @@ class PowerPowerItemCyclemin(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEMin:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycleminInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -18667,7 +18667,7 @@ class PowerPowerItemCyclemax(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEMAX:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclemaxInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -18753,7 +18753,7 @@ class PowerPowerItemCyclebase(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEBase:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclebaseInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -18838,7 +18838,7 @@ class PowerPowerItemCycleamp(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEAmp:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycleampInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -19979,7 +19979,7 @@ class PowerPowerItemClresponse(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:CLRESPONSE:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampmode = PowerPowerItemClresponseAmpmode(device, f"{self._cmd_syntax}:AMPMode") self._amp1val = PowerPowerItemClresponseAmp1val(device, f"{self._cmd_syntax}:AMP1Val") @@ -21248,7 +21248,7 @@ class PowerPowerItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``POWer:POWer:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoset = PowerPowerItemAutoset(device, f"{self._cmd_syntax}:AUTOSet") self._clresponse = PowerPowerItemClresponse(device, f"{self._cmd_syntax}:CLRESPONSE") @@ -22273,7 +22273,7 @@ class Power(SCPICmdRead): - ``.power``: The ``POWer:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "POWer") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "POWer") -> None: super().__init__(device, cmd_syntax) self._addnew = PowerAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PowerDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py index a543981b..910d9e7d 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): @@ -272,7 +272,7 @@ class RefRefItemLabelFont(SCPICmdRead): - ``.underline``: The ``REF:REF:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = RefRefItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = RefRefItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -431,7 +431,7 @@ class RefRefItemLabel(SCPICmdRead): - ``.ypos``: The ``REF:REF:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = RefRefItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = RefRefItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -596,7 +596,7 @@ class RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.source``: The ``REF:REF:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deskew = RefRefItemDeskew(device, f"{self._cmd_syntax}:DESKew") self._label = RefRefItemLabel(device, f"{self._cmd_syntax}:LABel") @@ -743,7 +743,7 @@ class Ref(SCPICmdRead): - ``.ref``: The ``REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._addnew = RefAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = RefDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py index 61826f04..c6fd09ff 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py @@ -96,7 +96,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RemoteUsbdescriptors(SCPICmdWrite, SCPICmdRead): @@ -289,7 +289,7 @@ class RemoteSv(SCPICmdRead): - ``.window``: The ``REMOTE:SV:WINDOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rbw = RemoteSvRbw(device, f"{self._cmd_syntax}:RBW") self._rbwmode = RemoteSvRbwmode(device, f"{self._cmd_syntax}:RBWMode") @@ -511,7 +511,7 @@ class RemoteSequence(SCPICmdRead): - ``.numsequence``: The ``REMOTE:SEQuence:NUMSEQuence`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._current = RemoteSequenceCurrent(device, f"{self._cmd_syntax}:CURrent") self._numsequence = RemoteSequenceNumsequence(device, f"{self._cmd_syntax}:NUMSEQuence") @@ -759,7 +759,7 @@ class RemoteScopeItemHorizontalFastframeSumframe(SCPICmdRead): - ``.state``: The ``REMOTE:SCOPe:HORizontal:FASTframe:SUMFrame:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RemoteScopeItemHorizontalFastframeSumframeState( device, f"{self._cmd_syntax}:STATE" @@ -915,7 +915,7 @@ class RemoteScopeItemHorizontalFastframe(SCPICmdRead): - ``.sumframe``: The ``REMOTE:SCOPe:HORizontal:FASTframe:SUMFrame`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = RemoteScopeItemHorizontalFastframeCount(device, f"{self._cmd_syntax}:COUNt") self._maxframes = RemoteScopeItemHorizontalFastframeMaxframes( @@ -1080,7 +1080,7 @@ class RemoteScopeItemHorizontal(SCPICmdRead): - ``.fastframe``: The ``REMOTE:SCOPe:HORizontal:FASTframe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fastframe = RemoteScopeItemHorizontalFastframe( device, f"{self._cmd_syntax}:FASTframe" @@ -1241,7 +1241,7 @@ class RemoteScopeItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.visaconnectiontype``: The ``REMOTE:SCOPe:VISACONNectiontype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = RemoteScopeItemBandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._connect = RemoteScopeItemConnect(device, f"{self._cmd_syntax}:CONNECT") @@ -1577,7 +1577,7 @@ class RemoteSItemDchItemSelect(SCPICmdRead): - ``.dall``: The ``REMOTE:S_DCH:SELect:DAll`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = RemoteSItemDchItemSelectDall(device, f"{self._cmd_syntax}:DAll") @@ -1663,7 +1663,7 @@ class RemoteSItemDchItemDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.threshold``: The ``REMOTE:S_DCH:D:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = RemoteSItemDchItemDigitalBitThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -1709,7 +1709,7 @@ class RemoteSItemDchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.select``: The ``REMOTE:S_DCH:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, RemoteSItemDchItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: RemoteSItemDchItemDigitalBit(device, f"{self._cmd_syntax}:D{x}") @@ -1914,7 +1914,7 @@ class RemoteSItemChannelSv(SCPICmdRead): - ``.stopfrequency``: The ``REMOTE:S_CH:SV:STOPFrequency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._centerfrequency = RemoteSItemChannelSvCenterfrequency( device, f"{self._cmd_syntax}:CENTERFrequency" @@ -2130,7 +2130,7 @@ class RemoteSItemChannelSelectDiggrp(SCPICmdRead): - ``.dall``: The ``REMOTE:S_CH:SELect:DIGGRP:Dall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = RemoteSItemChannelSelectDiggrpDall(device, f"{self._cmd_syntax}:Dall") @@ -2178,7 +2178,7 @@ class RemoteSItemChannelSelect(SCPICmdRead): - ``.diggrp``: The ``REMOTE:S_CH:SELect:DIGGRP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diggrp = RemoteSItemChannelSelectDiggrp(device, f"{self._cmd_syntax}:DIGGRP") @@ -2282,7 +2282,7 @@ class RemoteSItemChannelDiggrpDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.threshold``: The ``REMOTE:S_CH:DIGGRP:D:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = RemoteSItemChannelDiggrpDigitalBitThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -2331,7 +2331,7 @@ class RemoteSItemChannelDiggrp(SCPICmdRead): - ``.threshold``: The ``REMOTE:S_CH:DIGGRP:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, RemoteSItemChannelDiggrpDigitalBit] = DefaultDictPassKeyToFactory( lambda x: RemoteSItemChannelDiggrpDigitalBit(device, f"{self._cmd_syntax}:D{x}") @@ -2398,7 +2398,7 @@ class RemoteSItemChannel(ValidatedChannel, SCPICmdRead): - ``.sv``: The ``REMOTE:S_CH:SV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diggrp = RemoteSItemChannelDiggrp(device, f"{self._cmd_syntax}:DIGGRP") self._probetype = RemoteSItemChannelProbetype(device, f"{self._cmd_syntax}:PROBETYPE") @@ -2516,7 +2516,7 @@ class RemoteSItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dch``: The ``REMOTE:S_DCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, RemoteSItemChannel] = DefaultDictPassKeyToFactory( lambda x: RemoteSItemChannel(device, f"{self._cmd_syntax}_CH{x}") @@ -2785,7 +2785,7 @@ class Remote(SCPICmdRead): - ``.usbdescriptors``: The ``REMOTE:USBDEscriptors`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REMOTE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REMOTE") -> None: super().__init__(device, cmd_syntax) self._acqmethod = RemoteAcqmethod(device, f"{self._cmd_syntax}:ACQMethod") self._acqstatus = RemoteAcqstatus(device, f"{self._cmd_syntax}:ACQStatus") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py index 8dcce7ce..4ae87650 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SItemChannelScale(SCPICmdWrite): @@ -319,7 +319,7 @@ class SItemChannelLabelFont(SCPICmdRead): - ``.underline``: The ``S_CH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = SItemChannelLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = SItemChannelLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -484,7 +484,7 @@ class SItemChannelLabel(SCPICmdRead): - ``.ypos``: The ``S_CH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = SItemChannelLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = SItemChannelLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -717,7 +717,7 @@ class SItemChannelBandwidth(SCPICmdRead): - ``.actual``: The ``S_CH:BANdwidth:ACTUal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = SItemChannelBandwidthActual(device, f"{self._cmd_syntax}:ACTUal") @@ -762,7 +762,7 @@ class SItemChannel(ValidatedChannel, SCPICmdRead): - ``.scale``: The ``S_CH:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = SItemChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._clipping = SItemChannelClipping(device, f"{self._cmd_syntax}:CLIPping") @@ -962,7 +962,7 @@ class SItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.ch``: The ``S_CH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "S") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "S") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SItemChannel] = DefaultDictPassKeyToFactory( lambda x: SItemChannel(device, f"{self._cmd_syntax}_CH{x}") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py index d0cae747..5e889d13 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): @@ -128,7 +128,7 @@ class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): - ``.resamplerate``: The ``SAVe:WAVEform:GATing:RESAMPLErate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resamplerate = SaveWaveformGatingResamplerate( device, f"{self._cmd_syntax}:RESAMPLErate" @@ -201,7 +201,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.sourcelist``: The ``SAVe:WAVEform:SOURCELIst`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gating = SaveWaveformGating(device, f"{self._cmd_syntax}:GATing") self._sourcelist = SaveWaveformSourcelist(device, f"{self._cmd_syntax}:SOURCELIst") @@ -318,7 +318,7 @@ class SaveSetup(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._includerefs = SaveSetupIncluderefs(device, f"{self._cmd_syntax}:INCLUDEREFs") @@ -425,7 +425,7 @@ class SaveReport(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._comments = SaveReportComments(device, f"{self._cmd_syntax}:COMMents") @@ -555,7 +555,7 @@ class SaveImage(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._composition = SaveImageComposition(device, f"{self._cmd_syntax}:COMPosition") self._viewtype = SaveImageViewtype(device, f"{self._cmd_syntax}:VIEWTYpe") @@ -791,7 +791,7 @@ class SaveEventtableCustom(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._comments = SaveEventtableCustomComments(device, f"{self._cmd_syntax}:COMMents") self._dataformat = SaveEventtableCustomDataformat(device, f"{self._cmd_syntax}:DATAFormat") @@ -927,7 +927,7 @@ class SaveEventtable(SCPICmdRead): - ``.searchtable``: The ``SAVe:EVENTtable:SEARCHTable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SaveEventtableBus(device, f"{self._cmd_syntax}:BUS") self._custom = SaveEventtableCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -1074,7 +1074,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") self._image = SaveImage(device, f"{self._cmd_syntax}:IMAGe") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py index efebad95..caf3e53c 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): @@ -102,7 +102,7 @@ class SaveoneventWaveform(SCPICmdRead): - ``.source``: The ``SAVEONEVent:WAVEform:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._source = SaveoneventWaveformSource(device, f"{self._cmd_syntax}:SOUrce") @@ -210,7 +210,7 @@ class SaveoneventImage(SCPICmdRead): - ``.fileformat``: The ``SAVEONEVent:IMAGe:FILEFormat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -312,7 +312,7 @@ class Saveonevent(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEONEVent" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEONEVent" ) -> None: super().__init__(device, cmd_syntax) self._filedest = SaveoneventFiledest(device, f"{self._cmd_syntax}:FILEDest") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py index 4975a874..2c247d1e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py @@ -1232,7 +1232,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite): @@ -1382,7 +1382,7 @@ class SearchSearchItemTriggerAWindowThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerAWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerAWindowThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -1605,7 +1605,7 @@ class SearchSearchItemTriggerAWindow(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crossing = SearchSearchItemTriggerAWindowCrossing( device, f"{self._cmd_syntax}:CROSSIng" @@ -2002,7 +2002,7 @@ class SearchSearchItemTriggerATransitionThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerATransitionThresholdHigh( device, f"{self._cmd_syntax}:HIGH" @@ -2202,7 +2202,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTATime" @@ -2557,7 +2557,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerATimeoutLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -2938,7 +2938,7 @@ class SearchSearchItemTriggerASetholdLogicpatternChannel( - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:CH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerASetholdLogicpatternChannelDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -2998,7 +2998,7 @@ class SearchSearchItemTriggerASetholdLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -3226,7 +3226,7 @@ class SearchSearchItemTriggerASetholdLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -3470,7 +3470,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -3591,7 +3591,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.settime``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = SearchSearchItemTriggerASetholdHoldtime( @@ -3850,7 +3850,7 @@ class SearchSearchItemTriggerARuntThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerARuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerARuntThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -4011,7 +4011,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerARuntLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -4433,7 +4433,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -4898,7 +4898,7 @@ class SearchSearchItemTriggerALogicLogicpatternChannel(ValidatedChannel, SCPICmd - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:CH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerALogicLogicpatternChannelDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -4957,7 +4957,7 @@ class SearchSearchItemTriggerALogicLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -5182,7 +5182,7 @@ class SearchSearchItemTriggerALogicLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -5343,7 +5343,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerALogicInputClockSource( device, f"{self._cmd_syntax}:SOUrce" @@ -5403,7 +5403,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.clock``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCK") @@ -5527,7 +5527,7 @@ class SearchSearchItemTriggerALogicClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = SearchSearchItemTriggerALogicClockThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -5583,7 +5583,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicClock(device, f"{self._cmd_syntax}:CLOCk") self._deltatime = SearchSearchItemTriggerALogicDeltatime( @@ -5940,7 +5940,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -6233,7 +6233,7 @@ class SearchSearchItemTriggerADdrwriteReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrwriteReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -6427,7 +6427,7 @@ class SearchSearchItemTriggerADdrwriteReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrwriteReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -6539,7 +6539,7 @@ class SearchSearchItemTriggerADdrwriteReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrwriteReflevelData( device, f"{self._cmd_syntax}:DATA" @@ -6656,7 +6656,7 @@ class SearchSearchItemTriggerADdrwritePreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrwritePreambleType( device, f"{self._cmd_syntax}:TYPE" @@ -6735,7 +6735,7 @@ class SearchSearchItemTriggerADdrwritePostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrwritePostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -6901,7 +6901,7 @@ class SearchSearchItemTriggerADdrwriteLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -6984,7 +6984,7 @@ class SearchSearchItemTriggerADdrwriteLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7067,7 +7067,7 @@ class SearchSearchItemTriggerADdrwriteLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7150,7 +7150,7 @@ class SearchSearchItemTriggerADdrwriteLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7527,7 +7527,7 @@ class SearchSearchItemTriggerADdrwrite(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrwriteBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -8430,7 +8430,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadwriteReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -8624,7 +8624,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadwriteReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -8736,7 +8736,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrreadwriteReflevelData( device, f"{self._cmd_syntax}:DATA" @@ -8854,7 +8854,7 @@ class SearchSearchItemTriggerADdrreadwritePreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrreadwritePreambleType( device, f"{self._cmd_syntax}:TYPE" @@ -8933,7 +8933,7 @@ class SearchSearchItemTriggerADdrreadwritePostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrreadwritePostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -9099,7 +9099,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9182,7 +9182,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9265,7 +9265,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9348,7 +9348,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9732,7 +9732,7 @@ class SearchSearchItemTriggerADdrreadwrite(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrreadwriteBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -10649,7 +10649,7 @@ class SearchSearchItemTriggerADdrreadReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -10843,7 +10843,7 @@ class SearchSearchItemTriggerADdrreadReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -10955,7 +10955,7 @@ class SearchSearchItemTriggerADdrreadReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrreadReflevelData(device, f"{self._cmd_syntax}:DATA") self._strobe = SearchSearchItemTriggerADdrreadReflevelStrobe( @@ -11069,7 +11069,7 @@ class SearchSearchItemTriggerADdrreadPreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrreadPreambleType(device, f"{self._cmd_syntax}:TYPE") @@ -11146,7 +11146,7 @@ class SearchSearchItemTriggerADdrreadPostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrreadPostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -11310,7 +11310,7 @@ class SearchSearchItemTriggerADdrreadLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11393,7 +11393,7 @@ class SearchSearchItemTriggerADdrreadLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11476,7 +11476,7 @@ class SearchSearchItemTriggerADdrreadLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11559,7 +11559,7 @@ class SearchSearchItemTriggerADdrreadLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11935,7 +11935,7 @@ class SearchSearchItemTriggerADdrread(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrreadBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -12730,7 +12730,7 @@ class SearchSearchItemTriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -12818,7 +12818,7 @@ class SearchSearchItemTriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -12900,7 +12900,7 @@ class SearchSearchItemTriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -12981,7 +12981,7 @@ class SearchSearchItemTriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -13063,7 +13063,7 @@ class SearchSearchItemTriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -13121,7 +13121,7 @@ class SearchSearchItemTriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -13380,7 +13380,7 @@ class SearchSearchItemTriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -13613,7 +13613,7 @@ class SearchSearchItemTriggerABusUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13925,7 +13925,7 @@ class SearchSearchItemTriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14020,7 +14020,7 @@ class SearchSearchItemTriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = SearchSearchItemTriggerABusUsbCondition( @@ -14360,7 +14360,7 @@ class SearchSearchItemTriggerABusSvidSlave(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:SLAVE:ADDRESS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSvidSlaveAddress( device, f"{self._cmd_syntax}:ADDRESS" @@ -14472,7 +14472,7 @@ class SearchSearchItemTriggerABusSvidPayload(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSvidPayloadType(device, f"{self._cmd_syntax}:TYPe") self._value = SearchSearchItemTriggerABusSvidPayloadValue( @@ -14585,7 +14585,7 @@ class SearchSearchItemTriggerABusSvidError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSvidErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -14746,7 +14746,7 @@ class SearchSearchItemTriggerABusSvidCommand(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:COMMand:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = SearchSearchItemTriggerABusSvidCommandResponse( device, f"{self._cmd_syntax}:RESPonse" @@ -14850,7 +14850,7 @@ class SearchSearchItemTriggerABusSvid(SCPICmdRead): - ``.slave``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:SLAVE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusSvidCommand( device, f"{self._cmd_syntax}:COMMand" @@ -15009,7 +15009,7 @@ class SearchSearchItemTriggerABusSpmiSlaveaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:SLAVEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiSlaveaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15092,7 +15092,7 @@ class SearchSearchItemTriggerABusSpmiRegisteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:REGISTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiRegisteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15202,7 +15202,7 @@ class SearchSearchItemTriggerABusSpmiMasteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:MASTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiMasteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15313,7 +15313,7 @@ class SearchSearchItemTriggerABusSpmiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpmiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSpmiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -15449,7 +15449,7 @@ class SearchSearchItemTriggerABusSpmi(SCPICmdRead): - ``.slaveaddress``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:SLAVEADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpmiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15716,7 +15716,7 @@ class SearchSearchItemTriggerABusSpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -15825,7 +15825,7 @@ class SearchSearchItemTriggerABusSpi(SCPICmdRead): - ``.sourcetype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:SOURCETYpe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15955,7 +15955,7 @@ class SearchSearchItemTriggerABusSpacewireTimecode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:TIMECode:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpacewireTimecodeValue( device, f"{self._cmd_syntax}:VALue" @@ -16095,7 +16095,7 @@ class SearchSearchItemTriggerABusSpacewireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpacewireDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -16279,7 +16279,7 @@ class SearchSearchItemTriggerABusSpacewire(SCPICmdRead): - ``.timecode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:TIMECode`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpacewireCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16529,7 +16529,7 @@ class SearchSearchItemTriggerABusSmbusUdiddata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:UDIDDATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusUdiddataValue( device, f"{self._cmd_syntax}:VALue" @@ -16640,7 +16640,7 @@ class SearchSearchItemTriggerABusSmbusError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:ERROr:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSmbusErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -16719,7 +16719,7 @@ class SearchSearchItemTriggerABusSmbusDeviceaddr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:DEVICEADDR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusDeviceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -16828,7 +16828,7 @@ class SearchSearchItemTriggerABusSmbusData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSmbusDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSmbusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -16974,7 +16974,7 @@ class SearchSearchItemTriggerABusSmbusCommand(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:COMMand:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusCommandValue( device, f"{self._cmd_syntax}:VALue" @@ -17054,7 +17054,7 @@ class SearchSearchItemTriggerABusSmbusAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -17113,7 +17113,7 @@ class SearchSearchItemTriggerABusSmbus(SCPICmdRead): - ``.udiddata``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:UDIDDATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSmbusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -17345,7 +17345,7 @@ class SearchSearchItemTriggerABusSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentSlowIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -17490,7 +17490,7 @@ class SearchSearchItemTriggerABusSentSlowData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentSlowDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -17612,7 +17612,7 @@ class SearchSearchItemTriggerABusSentSlow(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = SearchSearchItemTriggerABusSentSlowIdentifier( @@ -17726,7 +17726,7 @@ class SearchSearchItemTriggerABusSentPauseTicks(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentPauseTicksHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -17843,7 +17843,7 @@ class SearchSearchItemTriggerABusSentPause(SCPICmdRead): - ``.ticks``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -17946,7 +17946,7 @@ class SearchSearchItemTriggerABusSentFastStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -18024,7 +18024,7 @@ class SearchSearchItemTriggerABusSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastInvertnibbleValue( device, f"{self._cmd_syntax}:VALue" @@ -18170,7 +18170,7 @@ class SearchSearchItemTriggerABusSentFastCounter(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18386,7 +18386,7 @@ class SearchSearchItemTriggerABusSentFastChan2b(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan2bHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18602,7 +18602,7 @@ class SearchSearchItemTriggerABusSentFastChan1a(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan1aHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18728,7 +18728,7 @@ class SearchSearchItemTriggerABusSentFast(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = SearchSearchItemTriggerABusSentFastChan1a( device, f"{self._cmd_syntax}:CHAN1A" @@ -18896,7 +18896,7 @@ class SearchSearchItemTriggerABusSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -18979,7 +18979,7 @@ class SearchSearchItemTriggerABusSent(SCPICmdRead): - ``.slow``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSentCondition( device, f"{self._cmd_syntax}:CONDition" @@ -19165,7 +19165,7 @@ class SearchSearchItemTriggerABusSdlcUnnumbered(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:UNNumbered:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frametype = SearchSearchItemTriggerABusSdlcUnnumberedFrametype( device, f"{self._cmd_syntax}:FRAMETYPe" @@ -19255,7 +19255,7 @@ class SearchSearchItemTriggerABusSdlcSupervisory(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:SUPervisory:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frametype = SearchSearchItemTriggerABusSdlcSupervisoryFrametype( device, f"{self._cmd_syntax}:FRAMETYPe" @@ -19335,7 +19335,7 @@ class SearchSearchItemTriggerABusSdlcStaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:STADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSdlcStaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -19414,7 +19414,7 @@ class SearchSearchItemTriggerABusSdlcFrame(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:FRAMe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcFrameType(device, f"{self._cmd_syntax}:TYPe") @@ -19492,7 +19492,7 @@ class SearchSearchItemTriggerABusSdlcError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:ERROR:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -19599,7 +19599,7 @@ class SearchSearchItemTriggerABusSdlcData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSdlcDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSdlcDataValue(device, f"{self._cmd_syntax}:VALue") @@ -19743,7 +19743,7 @@ class SearchSearchItemTriggerABusSdlcAddress(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:ADDRess:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -19801,7 +19801,7 @@ class SearchSearchItemTriggerABusSdlc(SCPICmdRead): - ``.unnumbered``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:UNNumbered`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSdlcAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -20211,7 +20211,7 @@ class SearchSearchItemTriggerABusS8b10bSymbol(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:SYMbol:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._csymvalue = SearchSearchItemTriggerABusS8b10bSymbolCsymvalue( device, f"{self._cmd_syntax}:CSYMVALue" @@ -20520,7 +20520,7 @@ class SearchSearchItemTriggerABusS8b10b(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._disparity = SearchSearchItemTriggerABusS8b10bDisparity( device, f"{self._cmd_syntax}:DISParity" @@ -20691,7 +20691,7 @@ class SearchSearchItemTriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusRs232cDataValue( @@ -20804,7 +20804,7 @@ class SearchSearchItemTriggerABusRs232c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -20903,7 +20903,7 @@ class SearchSearchItemTriggerABusParallelData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusParallelDataValue( device, f"{self._cmd_syntax}:VALue" @@ -20952,7 +20952,7 @@ class SearchSearchItemTriggerABusParallel(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusParallelData(device, f"{self._cmd_syntax}:DATa") @@ -21019,7 +21019,7 @@ class SearchSearchItemTriggerABusOnewireSearchrom(SCPICmdRead): - ``.romcode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:SEARCHROM:ROMCODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._romcode = SearchSearchItemTriggerABusOnewireSearchromRomcode( device, f"{self._cmd_syntax}:ROMCODe" @@ -21137,7 +21137,7 @@ class SearchSearchItemTriggerABusOnewireReadrom(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireReadromFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -21288,7 +21288,7 @@ class SearchSearchItemTriggerABusOnewireOverdrive(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireOverdriveFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -21439,7 +21439,7 @@ class SearchSearchItemTriggerABusOnewireMatchrom(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireMatchromFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -21585,7 +21585,7 @@ class SearchSearchItemTriggerABusOnewireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusOnewireDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusOnewireDataValue( @@ -21737,7 +21737,7 @@ class SearchSearchItemTriggerABusOnewireCommand(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:COMMand:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusOnewireCommandValue( device, f"{self._cmd_syntax}:VALue" @@ -21794,7 +21794,7 @@ class SearchSearchItemTriggerABusOnewire(SCPICmdRead): - ``.searchrom``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:SEARCHROM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusOnewireCommand( device, f"{self._cmd_syntax}:COMMand" @@ -22040,7 +22040,7 @@ class SearchSearchItemTriggerABusNrzData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:NRZ:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusNrzDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusNrzDataValue(device, f"{self._cmd_syntax}:VALue") @@ -22118,7 +22118,7 @@ class SearchSearchItemTriggerABusNrz(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:NRZ:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusNrzData(device, f"{self._cmd_syntax}:DATa") @@ -22432,7 +22432,7 @@ class SearchSearchItemTriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -22819,7 +22819,7 @@ class SearchSearchItemTriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -22942,7 +22942,7 @@ class SearchSearchItemTriggerABusMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -23134,7 +23134,7 @@ class SearchSearchItemTriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -23467,7 +23467,7 @@ class SearchSearchItemTriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -23594,7 +23594,7 @@ class SearchSearchItemTriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -23774,7 +23774,7 @@ class SearchSearchItemTriggerABusMil1553b(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -23956,7 +23956,7 @@ class SearchSearchItemTriggerABusMdioRegisteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:REGisteraddress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioRegisteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -24034,7 +24034,7 @@ class SearchSearchItemTriggerABusMdioPhysicaladdress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:PHYSicaladdress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioPhysicaladdressValue( device, f"{self._cmd_syntax}:VALue" @@ -24112,7 +24112,7 @@ class SearchSearchItemTriggerABusMdioOpcode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:OPCode:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioOpcodeValue( device, f"{self._cmd_syntax}:VALue" @@ -24221,7 +24221,7 @@ class SearchSearchItemTriggerABusMdioDevicetype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:DEVicetype:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioDevicetypeValue( device, f"{self._cmd_syntax}:VALue" @@ -24299,7 +24299,7 @@ class SearchSearchItemTriggerABusMdioData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioDataValue(device, f"{self._cmd_syntax}:VALue") @@ -24411,7 +24411,7 @@ class SearchSearchItemTriggerABusMdioAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -24469,7 +24469,7 @@ class SearchSearchItemTriggerABusMdio(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMdioAddress( device, f"{self._cmd_syntax}:ADDress" @@ -24699,7 +24699,7 @@ class SearchSearchItemTriggerABusManchesterPacketoffdata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:packetOffData:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterPacketoffdataValue( device, f"{self._cmd_syntax}:VALue" @@ -24778,7 +24778,7 @@ class SearchSearchItemTriggerABusManchesterTrailer(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:TRAILER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterTrailerValue( device, f"{self._cmd_syntax}:VALue" @@ -24858,7 +24858,7 @@ class SearchSearchItemTriggerABusManchesterSync(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:SYNC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterSyncValue( device, f"{self._cmd_syntax}:VALue" @@ -24938,7 +24938,7 @@ class SearchSearchItemTriggerABusManchesterHeader(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:HEADER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterHeaderValue( device, f"{self._cmd_syntax}:VALue" @@ -25017,7 +25017,7 @@ class SearchSearchItemTriggerABusManchesterError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusManchesterErrorType( device, f"{self._cmd_syntax}:TYPe" @@ -25128,7 +25128,7 @@ class SearchSearchItemTriggerABusManchesterData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusManchesterDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -25253,7 +25253,7 @@ class SearchSearchItemTriggerABusManchester(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusManchesterCondition( device, f"{self._cmd_syntax}:CONDition" @@ -25453,7 +25453,7 @@ class SearchSearchItemTriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -25656,7 +25656,7 @@ class SearchSearchItemTriggerABusLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -25838,7 +25838,7 @@ class SearchSearchItemTriggerABusLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -25992,7 +25992,7 @@ class SearchSearchItemTriggerABusI3cTestmode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:TESTMODe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cTestmodeValue( device, f"{self._cmd_syntax}:VALue" @@ -26072,7 +26072,7 @@ class SearchSearchItemTriggerABusI3cSupportbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:SUPPORTBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cSupportbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -26153,7 +26153,7 @@ class SearchSearchItemTriggerABusI3cStatic(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:STATic:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI3cStaticAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -26234,7 +26234,7 @@ class SearchSearchItemTriggerABusI3cStatebyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:STATEBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cStatebyteValue( device, f"{self._cmd_syntax}:VALue" @@ -26372,7 +26372,7 @@ class SearchSearchItemTriggerABusI3cSdr(SCPICmdRead): - ``.directpacket``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:SDR:DIRECTPacket`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._broadcastpacket = SearchSearchItemTriggerABusI3cSdrBroadcastpacket( device, f"{self._cmd_syntax}:BROADCASTPacket" @@ -26514,7 +26514,7 @@ class SearchSearchItemTriggerABusI3cSaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:SADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cSaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -26623,7 +26623,7 @@ class SearchSearchItemTriggerABusI3cMaxwrite(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXWRITe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxwriteValue( device, f"{self._cmd_syntax}:VALue" @@ -26703,7 +26703,7 @@ class SearchSearchItemTriggerABusI3cMaxrturn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXRTURN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxrturnValue( device, f"{self._cmd_syntax}:VALue" @@ -26783,7 +26783,7 @@ class SearchSearchItemTriggerABusI3cMaxread(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXREAD:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxreadValue( device, f"{self._cmd_syntax}:VALue" @@ -26863,7 +26863,7 @@ class SearchSearchItemTriggerABusI3cInaccbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:INACCBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cInaccbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -26944,7 +26944,7 @@ class SearchSearchItemTriggerABusI3cId(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:ID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cIdValue(device, f"{self._cmd_syntax}:VALue") @@ -27023,7 +27023,7 @@ class SearchSearchItemTriggerABusI3cGsmsb(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:GSMSb:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cGsmsbValue(device, f"{self._cmd_syntax}:VALue") @@ -27101,7 +27101,7 @@ class SearchSearchItemTriggerABusI3cGslsb(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:GSLSb:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cGslsbValue(device, f"{self._cmd_syntax}:VALue") @@ -27179,7 +27179,7 @@ class SearchSearchItemTriggerABusI3cFreqbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:FREQBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cFreqbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -27260,7 +27260,7 @@ class SearchSearchItemTriggerABusI3cEventbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:EVENTBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cEventbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -27374,7 +27374,7 @@ class SearchSearchItemTriggerABusI3cDword(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DWORd:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDwordValue(device, f"{self._cmd_syntax}:VALue") @@ -27452,7 +27452,7 @@ class SearchSearchItemTriggerABusI3cDcrtype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DCRType:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDcrtypeValue( device, f"{self._cmd_syntax}:VALue" @@ -27532,7 +27532,7 @@ class SearchSearchItemTriggerABusI3cDcr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DCR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDcrValue(device, f"{self._cmd_syntax}:VALue") @@ -27672,7 +27672,7 @@ class SearchSearchItemTriggerABusI3cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI3cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -27859,7 +27859,7 @@ class SearchSearchItemTriggerABusI3cCcode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:CCODe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cCcodeValue(device, f"{self._cmd_syntax}:VALue") @@ -27939,7 +27939,7 @@ class SearchSearchItemTriggerABusI3cBrgtid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BRGTID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBrgtidValue(device, f"{self._cmd_syntax}:VALue") @@ -28047,7 +28047,7 @@ class SearchSearchItemTriggerABusI3cBcrtype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BCRType:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBcrtypeValue( device, f"{self._cmd_syntax}:VALue" @@ -28127,7 +28127,7 @@ class SearchSearchItemTriggerABusI3cBcr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BCR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBcrValue(device, f"{self._cmd_syntax}:VALue") @@ -28238,7 +28238,7 @@ class SearchSearchItemTriggerABusI3cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusI3cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = SearchSearchItemTriggerABusI3cAddressValue( @@ -28349,7 +28349,7 @@ class SearchSearchItemTriggerABusI3c(SCPICmdRead): - ``.testmode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:TESTMODe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI3cAddress(device, f"{self._cmd_syntax}:ADDRess") self._bcr = SearchSearchItemTriggerABusI3cBcr(device, f"{self._cmd_syntax}:BCR") @@ -29038,7 +29038,7 @@ class SearchSearchItemTriggerABusI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -29244,7 +29244,7 @@ class SearchSearchItemTriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = SearchSearchItemTriggerABusI2cAddressValue( @@ -29326,7 +29326,7 @@ class SearchSearchItemTriggerABusI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = SearchSearchItemTriggerABusI2cCondition( @@ -29571,7 +29571,7 @@ class SearchSearchItemTriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = SearchSearchItemTriggerABusFlexrayHeaderCyclecount( @@ -29872,7 +29872,7 @@ class SearchSearchItemTriggerABusFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -30207,7 +30207,7 @@ class SearchSearchItemTriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -30488,7 +30488,7 @@ class SearchSearchItemTriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -30652,7 +30652,7 @@ class SearchSearchItemTriggerABusFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -30992,7 +30992,7 @@ class SearchSearchItemTriggerABusEusbSyncbitsMin(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MIN:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbSyncbitsMinSize( device, f"{self._cmd_syntax}:SIZe" @@ -31071,7 +31071,7 @@ class SearchSearchItemTriggerABusEusbSyncbitsMax(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MAX:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbSyncbitsMaxSize( device, f"{self._cmd_syntax}:SIZe" @@ -31123,7 +31123,7 @@ class SearchSearchItemTriggerABusEusbSyncbits(SCPICmdRead): - ``.min``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MIN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SearchSearchItemTriggerABusEusbSyncbitsMax(device, f"{self._cmd_syntax}:MAX") self._min = SearchSearchItemTriggerABusEusbSyncbitsMin(device, f"{self._cmd_syntax}:MIN") @@ -31209,7 +31209,7 @@ class SearchSearchItemTriggerABusEusbSync(SCPICmdRead): - ``.qualifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNC:QUAlifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusEusbSyncQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -31298,7 +31298,7 @@ class SearchSearchItemTriggerABusEusbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -31383,7 +31383,7 @@ class SearchSearchItemTriggerABusEusbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -31466,7 +31466,7 @@ class SearchSearchItemTriggerABusEusbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -31548,7 +31548,7 @@ class SearchSearchItemTriggerABusEusbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -31630,7 +31630,7 @@ class SearchSearchItemTriggerABusEusbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -31687,7 +31687,7 @@ class SearchSearchItemTriggerABusEusbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusEusbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusEusbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -31912,7 +31912,7 @@ class SearchSearchItemTriggerABusEusbRapData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbRapDataValue( device, f"{self._cmd_syntax}:VALue" @@ -32025,7 +32025,7 @@ class SearchSearchItemTriggerABusEusbRapAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbRapAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -32079,7 +32079,7 @@ class SearchSearchItemTriggerABusEusbRap(SCPICmdRead): - ``.option``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:OPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEusbRapAddress( device, f"{self._cmd_syntax}:ADDress" @@ -32291,7 +32291,7 @@ class SearchSearchItemTriggerABusEusbEopbitsMin(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MIN:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopbitsMinSize( device, f"{self._cmd_syntax}:SIZe" @@ -32369,7 +32369,7 @@ class SearchSearchItemTriggerABusEusbEopbitsMax(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MAX:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopbitsMaxSize( device, f"{self._cmd_syntax}:SIZe" @@ -32420,7 +32420,7 @@ class SearchSearchItemTriggerABusEusbEopbits(SCPICmdRead): - ``.min``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MIN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SearchSearchItemTriggerABusEusbEopbitsMax(device, f"{self._cmd_syntax}:MAX") self._min = SearchSearchItemTriggerABusEusbEopbitsMin(device, f"{self._cmd_syntax}:MIN") @@ -32534,7 +32534,7 @@ class SearchSearchItemTriggerABusEusbEopDatabits(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOP:DATABITS:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopDatabitsSize( device, f"{self._cmd_syntax}:SIZe" @@ -32586,7 +32586,7 @@ class SearchSearchItemTriggerABusEusbEop(SCPICmdRead): - ``.qualifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOP:QUAlifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._databits = SearchSearchItemTriggerABusEusbEopDatabits( device, f"{self._cmd_syntax}:DATABITS" @@ -32719,7 +32719,7 @@ class SearchSearchItemTriggerABusEusbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -32958,7 +32958,7 @@ class SearchSearchItemTriggerABusEusbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEusbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -33205,7 +33205,7 @@ class SearchSearchItemTriggerABusEusbDatabits(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:DATABITS:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbDatabitsSize(device, f"{self._cmd_syntax}:SIZe") @@ -33358,7 +33358,7 @@ class SearchSearchItemTriggerABusEusbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEusbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -33458,7 +33458,7 @@ class SearchSearchItemTriggerABusEusb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEusbAddress( device, f"{self._cmd_syntax}:ADDress" @@ -33990,7 +33990,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSourceport(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -34075,7 +34075,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -34160,7 +34160,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderDestinationport(SCPICmdRead): ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -34246,7 +34246,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -34305,7 +34305,7 @@ class SearchSearchItemTriggerABusEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -34435,7 +34435,7 @@ class SearchSearchItemTriggerABusEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -34552,7 +34552,7 @@ class SearchSearchItemTriggerABusEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -34671,7 +34671,7 @@ class SearchSearchItemTriggerABusEthernetMacAddressSource(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -34756,7 +34756,7 @@ class SearchSearchItemTriggerABusEthernetMacAddressDestination(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -34812,7 +34812,7 @@ class SearchSearchItemTriggerABusEthernetMacAddress(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -34871,7 +34871,7 @@ class SearchSearchItemTriggerABusEthernetMac(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthernetMacAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -34965,7 +34965,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -35050,7 +35050,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -35135,7 +35135,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderDestinationaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -35193,7 +35193,7 @@ class SearchSearchItemTriggerABusEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = SearchSearchItemTriggerABusEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -35430,7 +35430,7 @@ class SearchSearchItemTriggerABusEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEthernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -35660,7 +35660,7 @@ class SearchSearchItemTriggerABusEthernet(SCPICmdRead): - ``.tcpheader``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -35857,7 +35857,7 @@ class SearchSearchItemTriggerABusEthercatWkc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:WKC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatWkcValue( device, f"{self._cmd_syntax}:VALue" @@ -35938,7 +35938,7 @@ class SearchSearchItemTriggerABusEthercatTci(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:TCI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatTciValue( device, f"{self._cmd_syntax}:VALue" @@ -36020,7 +36020,7 @@ class SearchSearchItemTriggerABusEthercatSrcPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SRC:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatSrcPortValue( device, f"{self._cmd_syntax}:VALue" @@ -36071,7 +36071,7 @@ class SearchSearchItemTriggerABusEthercatSrc(SCPICmdRead): - ``.port``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SRC:PORT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._port = SearchSearchItemTriggerABusEthercatSrcPort(device, f"{self._cmd_syntax}:PORT") @@ -36137,7 +36137,7 @@ class SearchSearchItemTriggerABusEthercatSourceaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SOURCEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatSourceaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -36279,7 +36279,7 @@ class SearchSearchItemTriggerABusEthercatServiceData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SERVice:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatServiceDataLength( device, f"{self._cmd_syntax}:LENGth" @@ -36394,7 +36394,7 @@ class SearchSearchItemTriggerABusEthercatService(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SERVice:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatServiceData( device, f"{self._cmd_syntax}:DATa" @@ -36466,7 +36466,7 @@ class SearchSearchItemTriggerABusEthercatQuality(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:QUALity:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatQualityValue( device, f"{self._cmd_syntax}:VALue" @@ -36548,7 +36548,7 @@ class SearchSearchItemTriggerABusEthercatPubid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:PUBID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatPubidValue( device, f"{self._cmd_syntax}:VALue" @@ -36659,7 +36659,7 @@ class SearchSearchItemTriggerABusEthercatPosition(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:POSition:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatPositionValue( device, f"{self._cmd_syntax}:VALue" @@ -36741,7 +36741,7 @@ class SearchSearchItemTriggerABusEthercatOffset(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:OFFSet:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatOffsetValue( device, f"{self._cmd_syntax}:VALue" @@ -36840,7 +36840,7 @@ class SearchSearchItemTriggerABusEthercatNetworkVariable(SCPICmdWrite, SCPICmdRe command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._header = SearchSearchItemTriggerABusEthercatNetworkVariableHeader( device, f"{self._cmd_syntax}:HEADer" @@ -36893,7 +36893,7 @@ class SearchSearchItemTriggerABusEthercatNetwork(SCPICmdRead): - ``.variable``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:NETWork:VARiable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._variable = SearchSearchItemTriggerABusEthercatNetworkVariable( device, f"{self._cmd_syntax}:VARiable" @@ -37009,7 +37009,7 @@ class SearchSearchItemTriggerABusEthercatNetworkvariableData(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEthercatNetworkvariableDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -37092,7 +37092,7 @@ class SearchSearchItemTriggerABusEthercatNetworkvariable(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatNetworkvariableData( device, f"{self._cmd_syntax}:DATa" @@ -37229,7 +37229,7 @@ class SearchSearchItemTriggerABusEthercatMailboxCnt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:CNT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatMailboxCntValue( device, f"{self._cmd_syntax}:VALue" @@ -37310,7 +37310,7 @@ class SearchSearchItemTriggerABusEthercatMailboxAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatMailboxAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -37383,7 +37383,7 @@ class SearchSearchItemTriggerABusEthercatMailbox(SCPICmdWrite, SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:HEADer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatMailboxAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -37578,7 +37578,7 @@ class SearchSearchItemTriggerABusEthercatLogicaladdress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:LOGICALADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatLogicaladdressValue( device, f"{self._cmd_syntax}:VALue" @@ -37659,7 +37659,7 @@ class SearchSearchItemTriggerABusEthercatLen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:LEN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatLenValue( device, f"{self._cmd_syntax}:VALue" @@ -37741,7 +37741,7 @@ class SearchSearchItemTriggerABusEthercatIrq(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IRQ:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIrqValue( device, f"{self._cmd_syntax}:VALue" @@ -37824,7 +37824,7 @@ class SearchSearchItemTriggerABusEthercatIpsourceAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIpsourceAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -37876,7 +37876,7 @@ class SearchSearchItemTriggerABusEthercatIpsource(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatIpsourceAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -37946,7 +37946,7 @@ class SearchSearchItemTriggerABusEthercatIpdestinationAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIpdestinationAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -37998,7 +37998,7 @@ class SearchSearchItemTriggerABusEthercatIpdestination(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatIpdestinationAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -38066,7 +38066,7 @@ class SearchSearchItemTriggerABusEthercatIndex(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:INDex:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIndexValue( device, f"{self._cmd_syntax}:VALue" @@ -38146,7 +38146,7 @@ class SearchSearchItemTriggerABusEthercatIdx(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IDX:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIdxValue( device, f"{self._cmd_syntax}:VALue" @@ -38227,7 +38227,7 @@ class SearchSearchItemTriggerABusEthercatIdentification(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IDENtification:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIdentificationValue( device, f"{self._cmd_syntax}:VALue" @@ -38308,7 +38308,7 @@ class SearchSearchItemTriggerABusEthercatHeader(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:HEADer:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatHeaderLength( device, f"{self._cmd_syntax}:LENGth" @@ -38390,7 +38390,7 @@ class SearchSearchItemTriggerABusEthercatHash(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:HASH:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatHashValue( device, f"{self._cmd_syntax}:VALue" @@ -38498,7 +38498,7 @@ class SearchSearchItemTriggerABusEthercatErrorReplyService(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatErrorReplyServiceData( device, f"{self._cmd_syntax}:DATa" @@ -38549,7 +38549,7 @@ class SearchSearchItemTriggerABusEthercatErrorReply(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._service = SearchSearchItemTriggerABusEthercatErrorReplyService( device, f"{self._cmd_syntax}:SERVice" @@ -38587,7 +38587,7 @@ class SearchSearchItemTriggerABusEthercatError(SCPICmdRead): - ``.reply``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:ERRor:REPLy`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reply = SearchSearchItemTriggerABusEthercatErrorReply( device, f"{self._cmd_syntax}:REPLy" @@ -38685,7 +38685,7 @@ class SearchSearchItemTriggerABusEthercatDestinationaddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatDestinationaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -38795,7 +38795,7 @@ class SearchSearchItemTriggerABusEthercatData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEthercatDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusEthercatDataValue( @@ -38927,7 +38927,7 @@ class SearchSearchItemTriggerABusEthercatDatagramheader(SCPICmdWrite, SCPICmdRea command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatDatagramheaderLength( device, f"{self._cmd_syntax}:LENGth" @@ -39038,7 +39038,7 @@ class SearchSearchItemTriggerABusEthercatCyc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:CYC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatCycValue( device, f"{self._cmd_syntax}:VALue" @@ -39203,7 +39203,7 @@ class SearchSearchItemTriggerABusEthercatCntnv(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:CNTNV:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatCntnvValue( device, f"{self._cmd_syntax}:VALue" @@ -39325,7 +39325,7 @@ class SearchSearchItemTriggerABusEthercat(SCPICmdRead): - ``.wkc``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:WKC`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addressmode = SearchSearchItemTriggerABusEthercatAddressmode( device, f"{self._cmd_syntax}:ADDRESSMODe" @@ -40223,7 +40223,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -40302,7 +40302,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireResponse(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireResponseValue( device, f"{self._cmd_syntax}:VALue" @@ -40380,7 +40380,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireIndex(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:INDex:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireIndexValue( device, f"{self._cmd_syntax}:VALue" @@ -40458,7 +40458,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireDataValue( device, f"{self._cmd_syntax}:VALue" @@ -40536,7 +40536,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireCount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:COUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireCountValue( device, f"{self._cmd_syntax}:VALue" @@ -40590,7 +40590,7 @@ class SearchSearchItemTriggerABusEspiVirtualwire(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = SearchSearchItemTriggerABusEspiVirtualwireCount( device, f"{self._cmd_syntax}:COUNt" @@ -40737,7 +40737,7 @@ class SearchSearchItemTriggerABusEspiTag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:TAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiTagValue(device, f"{self._cmd_syntax}:VALue") @@ -40813,7 +40813,7 @@ class SearchSearchItemTriggerABusEspiSmbusSlave(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:SMBUS:SLAVe:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiSmbusSlaveAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -40892,7 +40892,7 @@ class SearchSearchItemTriggerABusEspiSmbusDestination(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiSmbusDestinationAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -40943,7 +40943,7 @@ class SearchSearchItemTriggerABusEspiSmbus(SCPICmdRead): - ``.slave``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:SMBUS:SLAVe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusEspiSmbusDestination( device, f"{self._cmd_syntax}:DESTination" @@ -41035,7 +41035,7 @@ class SearchSearchItemTriggerABusEspiRespcycle(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:RESPCYCLE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusEspiRespcycleType( device, f"{self._cmd_syntax}:TYPe" @@ -41153,7 +41153,7 @@ class SearchSearchItemTriggerABusEspiLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:LENGth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiLengthValue( device, f"{self._cmd_syntax}:VALue" @@ -41235,7 +41235,7 @@ class SearchSearchItemTriggerABusEspiError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusEspiErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -41347,7 +41347,7 @@ class SearchSearchItemTriggerABusEspiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEspiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusEspiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -41553,7 +41553,7 @@ class SearchSearchItemTriggerABusEspiCommand(SCPICmdRead): - ``.opcode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:COMMAND:OPCode`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._opcode = SearchSearchItemTriggerABusEspiCommandOpcode( device, f"{self._cmd_syntax}:OPCode" @@ -41655,7 +41655,7 @@ class SearchSearchItemTriggerABusEspiAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -41715,7 +41715,7 @@ class SearchSearchItemTriggerABusEspi(SCPICmdRead): - ``.virtualwire``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -42117,7 +42117,7 @@ class SearchSearchItemTriggerABusDphyYuv(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YUV:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._u = SearchSearchItemTriggerABusDphyYuvU(device, f"{self._cmd_syntax}:U") self._v = SearchSearchItemTriggerABusDphyYuvV(device, f"{self._cmd_syntax}:V") @@ -42311,7 +42311,7 @@ class SearchSearchItemTriggerABusDphyYcbcr(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YCBCR:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cb = SearchSearchItemTriggerABusDphyYcbcrCb(device, f"{self._cmd_syntax}:CB") self._cr = SearchSearchItemTriggerABusDphyYcbcrCr(device, f"{self._cmd_syntax}:CR") @@ -42448,7 +42448,7 @@ class SearchSearchItemTriggerABusDphyWordcount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:WORDCOUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyWordcountValue( device, f"{self._cmd_syntax}:VALue" @@ -42527,7 +42527,7 @@ class SearchSearchItemTriggerABusDphyRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyRedValue(device, f"{self._cmd_syntax}:VALue") @@ -42630,7 +42630,7 @@ class SearchSearchItemTriggerABusDphyPixel(SCPICmdRead): - ``.searchoption``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:PIXel:SEARCHOPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._number = SearchSearchItemTriggerABusDphyPixelNumber( device, f"{self._cmd_syntax}:NUMBer" @@ -42833,7 +42833,7 @@ class SearchSearchItemTriggerABusDphyPackets(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:PACKets:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSearchItemTriggerABusDphyPacketsList(device, f"{self._cmd_syntax}:LIST") self._type = SearchSearchItemTriggerABusDphyPacketsType(device, f"{self._cmd_syntax}:TYPe") @@ -43006,7 +43006,7 @@ class SearchSearchItemTriggerABusDphyMode(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:MODe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusDphyModeType(device, f"{self._cmd_syntax}:TYPe") @@ -43084,7 +43084,7 @@ class SearchSearchItemTriggerABusDphyGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyGreenValue(device, f"{self._cmd_syntax}:VALue") @@ -43161,7 +43161,7 @@ class SearchSearchItemTriggerABusDphyEscapemode(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:ESCAPEMODe:COMMand`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusDphyEscapemodeCommand( device, f"{self._cmd_syntax}:COMMand" @@ -43242,7 +43242,7 @@ class SearchSearchItemTriggerABusDphyError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusDphyErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -43349,7 +43349,7 @@ class SearchSearchItemTriggerABusDphyData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusDphyDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusDphyDataValue(device, f"{self._cmd_syntax}:VALue") @@ -43494,7 +43494,7 @@ class SearchSearchItemTriggerABusDphyBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyBlueValue(device, f"{self._cmd_syntax}:VALue") @@ -43553,7 +43553,7 @@ class SearchSearchItemTriggerABusDphy(SCPICmdRead): - ``.yuv``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YUV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusDphyBlue(device, f"{self._cmd_syntax}:BLUe") self._condition = SearchSearchItemTriggerABusDphyCondition( @@ -43893,7 +43893,7 @@ class SearchSearchItemTriggerABusCxpiNetmn(SCPICmdRead): - ``.wakeupind``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:NETMN:WAKEUPIND`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sleepind = SearchSearchItemTriggerABusCxpiNetmnSleepind( device, f"{self._cmd_syntax}:SLEEPIND" @@ -44009,7 +44009,7 @@ class SearchSearchItemTriggerABusCxpiFrame(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:FRAMe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCxpiFrameType(device, f"{self._cmd_syntax}:TYPe") @@ -44091,7 +44091,7 @@ class SearchSearchItemTriggerABusCxpiFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiFrameidValue( device, f"{self._cmd_syntax}:VALue" @@ -44171,7 +44171,7 @@ class SearchSearchItemTriggerABusCxpiExtdlc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:EXTDLC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiExtdlcValue( device, f"{self._cmd_syntax}:VALue" @@ -44253,7 +44253,7 @@ class SearchSearchItemTriggerABusCxpiError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:ERROR:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCxpiErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -44335,7 +44335,7 @@ class SearchSearchItemTriggerABusCxpiDlc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:DLC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiDlcValue(device, f"{self._cmd_syntax}:VALue") @@ -44442,7 +44442,7 @@ class SearchSearchItemTriggerABusCxpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCxpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCxpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -44548,7 +44548,7 @@ class SearchSearchItemTriggerABusCxpiCounter(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:COUNter:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiCounterValue( device, f"{self._cmd_syntax}:VALue" @@ -44643,7 +44643,7 @@ class SearchSearchItemTriggerABusCxpi(SCPICmdRead): - ``.netmn``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:NETMN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCxpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -44933,7 +44933,7 @@ class SearchSearchItemTriggerABusCphyYuv(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YUV:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._u = SearchSearchItemTriggerABusCphyYuvU(device, f"{self._cmd_syntax}:U") self._v = SearchSearchItemTriggerABusCphyYuvV(device, f"{self._cmd_syntax}:V") @@ -45127,7 +45127,7 @@ class SearchSearchItemTriggerABusCphyYcbcr(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YCBCR:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cb = SearchSearchItemTriggerABusCphyYcbcrCb(device, f"{self._cmd_syntax}:CB") self._cr = SearchSearchItemTriggerABusCphyYcbcrCr(device, f"{self._cmd_syntax}:CR") @@ -45265,7 +45265,7 @@ class SearchSearchItemTriggerABusCphyWordcount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:WORDCOUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyWordcountValue( device, f"{self._cmd_syntax}:VALue" @@ -45375,7 +45375,7 @@ class SearchSearchItemTriggerABusCphyWord(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:WORD:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphyWordSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphyWordValue(device, f"{self._cmd_syntax}:VALue") @@ -45511,7 +45511,7 @@ class SearchSearchItemTriggerABusCphySymbol(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:SYMBol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphySymbolSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphySymbolValue( @@ -45619,7 +45619,7 @@ class SearchSearchItemTriggerABusCphyRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyRedValue(device, f"{self._cmd_syntax}:VALue") @@ -45722,7 +45722,7 @@ class SearchSearchItemTriggerABusCphyPixel(SCPICmdRead): - ``.searchoption``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:PIXel:SEARCHOPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._number = SearchSearchItemTriggerABusCphyPixelNumber( device, f"{self._cmd_syntax}:NUMBer" @@ -45924,7 +45924,7 @@ class SearchSearchItemTriggerABusCphyPackets(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:PACKets:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSearchItemTriggerABusCphyPacketsList(device, f"{self._cmd_syntax}:LIST") self._type = SearchSearchItemTriggerABusCphyPacketsType(device, f"{self._cmd_syntax}:TYPe") @@ -46095,7 +46095,7 @@ class SearchSearchItemTriggerABusCphyMode(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:MODe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCphyModeType(device, f"{self._cmd_syntax}:TYPe") @@ -46172,7 +46172,7 @@ class SearchSearchItemTriggerABusCphyGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyGreenValue(device, f"{self._cmd_syntax}:VALue") @@ -46249,7 +46249,7 @@ class SearchSearchItemTriggerABusCphyEscapemode(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:ESCAPEMODe:COMMand`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusCphyEscapemodeCommand( device, f"{self._cmd_syntax}:COMMand" @@ -46330,7 +46330,7 @@ class SearchSearchItemTriggerABusCphyError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCphyErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -46437,7 +46437,7 @@ class SearchSearchItemTriggerABusCphyData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphyDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphyDataValue(device, f"{self._cmd_syntax}:VALue") @@ -46584,7 +46584,7 @@ class SearchSearchItemTriggerABusCphyBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyBlueValue(device, f"{self._cmd_syntax}:VALue") @@ -46645,7 +46645,7 @@ class SearchSearchItemTriggerABusCphy(SCPICmdRead): - ``.yuv``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YUV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusCphyBlue(device, f"{self._cmd_syntax}:BLUe") self._condition = SearchSearchItemTriggerABusCphyCondition( @@ -47024,7 +47024,7 @@ class SearchSearchItemTriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -47203,7 +47203,7 @@ class SearchSearchItemTriggerABusCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = SearchSearchItemTriggerABusCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -47470,7 +47470,7 @@ class SearchSearchItemTriggerABusCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -47685,7 +47685,7 @@ class SearchSearchItemTriggerABusCan(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -47896,7 +47896,7 @@ class SearchSearchItemTriggerABusBS8b10b(SCPICmdRead): - ``.condition``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:S8B10B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBS8b10bCondition( device, f"{self._cmd_syntax}:CONDition" @@ -47977,7 +47977,7 @@ class SearchSearchItemTriggerABusBPsifiveStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -48058,7 +48058,7 @@ class SearchSearchItemTriggerABusBPsifiveSensorAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:SENSor:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveSensorAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -48110,7 +48110,7 @@ class SearchSearchItemTriggerABusBPsifiveSensor(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBPsifiveSensorAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -48178,7 +48178,7 @@ class SearchSearchItemTriggerABusBPsifiveSensorstatus(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:SENSORSTATus:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusBPsifiveSensorstatusType( device, f"{self._cmd_syntax}:TYPe" @@ -48261,7 +48261,7 @@ class SearchSearchItemTriggerABusBPsifiveRegisterAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveRegisterAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -48314,7 +48314,7 @@ class SearchSearchItemTriggerABusBPsifiveRegister(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBPsifiveRegisterAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -48471,7 +48471,7 @@ class SearchSearchItemTriggerABusBPsifiveDataRegionB(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATa:REGion:B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveDataRegionBValue( device, f"{self._cmd_syntax}:VALue" @@ -48552,7 +48552,7 @@ class SearchSearchItemTriggerABusBPsifiveDataRegionA(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATa:REGion:A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveDataRegionAValue( device, f"{self._cmd_syntax}:VALue" @@ -48604,7 +48604,7 @@ class SearchSearchItemTriggerABusBPsifiveDataRegion(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATa:REGion:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerABusBPsifiveDataRegionA(device, f"{self._cmd_syntax}:A") self._b = SearchSearchItemTriggerABusBPsifiveDataRegionB(device, f"{self._cmd_syntax}:B") @@ -48690,7 +48690,7 @@ class SearchSearchItemTriggerABusBPsifiveDataEcuSensor(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveDataEcuSensorValue( device, f"{self._cmd_syntax}:VALue" @@ -48743,7 +48743,7 @@ class SearchSearchItemTriggerABusBPsifiveDataEcu(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sensor = SearchSearchItemTriggerABusBPsifiveDataEcuSensor( device, f"{self._cmd_syntax}:SENSor" @@ -48782,7 +48782,7 @@ class SearchSearchItemTriggerABusBPsifiveData(SCPICmdRead): - ``.region``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATa:REGion`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ecu = SearchSearchItemTriggerABusBPsifiveDataEcu(device, f"{self._cmd_syntax}:ECU") self._region = SearchSearchItemTriggerABusBPsifiveDataRegion( @@ -48936,7 +48936,7 @@ class SearchSearchItemTriggerABusBPsifiveBlockdata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:BLOCKDATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBPsifiveBlockdataValue( device, f"{self._cmd_syntax}:VALue" @@ -48999,7 +48999,7 @@ class SearchSearchItemTriggerABusBPsifive(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockdata = SearchSearchItemTriggerABusBPsifiveBlockdata( device, f"{self._cmd_syntax}:BLOCKDATa" @@ -49338,7 +49338,7 @@ class SearchSearchItemTriggerABusBNrz(SCPICmdRead): - ``.condition``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:NRZ:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBNrzCondition( device, f"{self._cmd_syntax}:CONDition" @@ -49388,7 +49388,7 @@ class SearchSearchItemTriggerABusB(SCPICmdRead): - ``.s8b10b``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:S8B10B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = SearchSearchItemTriggerABusBNrz(device, f"{self._cmd_syntax}:NRZ") self._psifive = SearchSearchItemTriggerABusBPsifive(device, f"{self._cmd_syntax}:PSIFIVe") @@ -49504,7 +49504,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderSourceport(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -49591,7 +49591,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -49681,7 +49681,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderDestinationport(SCPICmdRea ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -49770,7 +49770,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -49830,7 +49830,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusAutoethernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -49996,7 +49996,7 @@ class SearchSearchItemTriggerABusAutoethernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -50114,7 +50114,7 @@ class SearchSearchItemTriggerABusAutoethernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusAutoethernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -50233,7 +50233,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddressSource(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -50321,7 +50321,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddressDestination(SCPICmdRead): ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -50378,7 +50378,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddress(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusAutoethernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -50438,7 +50438,7 @@ class SearchSearchItemTriggerABusAutoethernetMac(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusAutoethernetMacAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -50533,7 +50533,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -50619,7 +50619,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -50707,7 +50707,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddr(SCPICmdRead ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -50767,7 +50767,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -50973,7 +50973,7 @@ class SearchSearchItemTriggerABusAutoethernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusAutoethernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -51171,7 +51171,7 @@ class SearchSearchItemTriggerABusAutoethernet(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusAutoethernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -51604,7 +51604,7 @@ class SearchSearchItemTriggerABusAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitdmvalue = SearchSearchItemTriggerABusAudioDataHitdmvalue( device, f"{self._cmd_syntax}:HITDMVALue" @@ -51887,7 +51887,7 @@ class SearchSearchItemTriggerABusAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -51992,7 +51992,7 @@ class SearchSearchItemTriggerABusArinc429aSsm(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SSM:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusArinc429aSsmValue( device, f"{self._cmd_syntax}:VALue" @@ -52072,7 +52072,7 @@ class SearchSearchItemTriggerABusArinc429aSdi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SDI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusArinc429aSdiValue( device, f"{self._cmd_syntax}:VALue" @@ -52213,7 +52213,7 @@ class SearchSearchItemTriggerABusArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -52457,7 +52457,7 @@ class SearchSearchItemTriggerABusArinc429aData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusArinc429aDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -52616,7 +52616,7 @@ class SearchSearchItemTriggerABusArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SSM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -52813,7 +52813,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -53680,7 +53680,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.window``: The ``SEARCH:SEARCH:TRIGger:A:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._ddrread = SearchSearchItemTriggerADdrread(device, f"{self._cmd_syntax}:DDRREAD") @@ -54180,7 +54180,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -54295,7 +54295,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._navigate = SearchSearchItemNavigate(device, f"{self._cmd_syntax}:NAVigate") @@ -54486,7 +54486,7 @@ class Search(SCPICmdRead): - ``.selected``: The ``SEARCH:SELected`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._addnew = SearchAddnew(device, f"{self._cmd_syntax}:ADDNew") self._deleteall = SearchDeleteall(device, f"{self._cmd_syntax}:DELETEALL") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py index 0f0926c7..47e3e707 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Searchtable(SCPICmdWrite): @@ -43,6 +43,6 @@ class Searchtable(SCPICmdWrite): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCHTABle" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCHTABle" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py index d240496e..5d896926 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py @@ -93,7 +93,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SvSpectrogramCursorB(SCPICmdWrite, SCPICmdRead): @@ -165,7 +165,7 @@ class SvSpectrogramCursor(SCPICmdRead): - ``.b``: The ``SV:SPECtrogram:CURSor:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SvSpectrogramCursorA(device, f"{self._cmd_syntax}:A") self._b = SvSpectrogramCursorB(device, f"{self._cmd_syntax}:B") @@ -296,7 +296,7 @@ class SvSpectrogramCscale(SCPICmdRead): - ``.min``: The ``SV:SPECtrogram:CSCale:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SvSpectrogramCscaleMax(device, f"{self._cmd_syntax}:MAX") self._min = SvSpectrogramCscaleMin(device, f"{self._cmd_syntax}:MIN") @@ -371,7 +371,7 @@ class SvSpectrogram(SCPICmdRead): - ``.cursor``: The ``SV:SPECtrogram:CURSor`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cscale = SvSpectrogramCscale(device, f"{self._cmd_syntax}:CSCale") self._cursor = SvSpectrogramCursor(device, f"{self._cmd_syntax}:CURSor") @@ -511,7 +511,7 @@ class SvSItemChannelSquelch(SCPICmdRead): - ``.threshold``: The ``SV:S_CH:SQUELCH:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SvSItemChannelSquelchState(device, f"{self._cmd_syntax}:STATE") self._threshold = SvSItemChannelSquelchThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -823,7 +823,7 @@ class SvSItemChannelSelectRf(SCPICmdRead): - ``.phase``: The ``SV:S_CH:SELect:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._average = SvSItemChannelSelectRfAverage(device, f"{self._cmd_syntax}_AVErage") self._frequency = SvSItemChannelSelectRfFrequency(device, f"{self._cmd_syntax}_FREQuency") @@ -1058,7 +1058,7 @@ class SvSItemChannelSelect(SCPICmdRead): - ``.spectrogram``: The ``SV:S_CH:SELect:SPECtrogram`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = SvSItemChannelSelectRf(device, f"{self._cmd_syntax}:RF") self._spectrogram = SvSItemChannelSelectSpectrogram( @@ -1223,7 +1223,7 @@ class SvSItemChannelRfPhaseWrap(SCPICmdRead): - ``.state``: The ``SV:S_CH:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = SvSItemChannelRfPhaseWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = SvSItemChannelRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -1399,7 +1399,7 @@ class SvSItemChannelRfPhaseReference(SCPICmdRead): - ``.time``: The ``SV:S_CH:RF_PHASe:REFerence:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = SvSItemChannelRfPhaseReferenceDegrees(device, f"{self._cmd_syntax}:DEGrees") self._position = SvSItemChannelRfPhaseReferencePosition( @@ -1519,7 +1519,7 @@ class SvSItemChannelRfPhase(SCPICmdRead): - ``.wrap``: The ``SV:S_CH:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reference = SvSItemChannelRfPhaseReference(device, f"{self._cmd_syntax}:REFerence") self._wrap = SvSItemChannelRfPhaseWrap(device, f"{self._cmd_syntax}:WRAP") @@ -1604,7 +1604,7 @@ class SvSItemChannelRfMagnitude(SCPICmdRead): - ``.format``: The ``SV:S_CH:RF_MAGnitude:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SvSItemChannelRfMagnitudeFormat(device, f"{self._cmd_syntax}:FORMat") @@ -1684,7 +1684,7 @@ class SvSItemChannelRfAverage(SCPICmdRead): - ``.numavg``: The ``SV:S_CH:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numavg = SvSItemChannelRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -1734,7 +1734,7 @@ class SvSItemChannelRf(SCPICmdRead): - ``.phase``: The ``SV:S_CH:RF_PHASe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._average = SvSItemChannelRfAverage(device, f"{self._cmd_syntax}_AVErage") self._magnitude = SvSItemChannelRfMagnitude(device, f"{self._cmd_syntax}_MAGnitude") @@ -1800,7 +1800,7 @@ class SvSItemChannel(ValidatedChannel, SCPICmdRead): - ``.units``: The ``SV:S_CH:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = SvSItemChannelRf(device, f"{self._cmd_syntax}:RF") self._seltrace = SvSItemChannelSeltrace(device, f"{self._cmd_syntax}:SELTrace") @@ -1940,7 +1940,7 @@ class SvSItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.ch``: The ``SV:S_CH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SvSItemChannel] = DefaultDictPassKeyToFactory( lambda x: SvSItemChannel(device, f"{self._cmd_syntax}_CH{x}") @@ -2002,7 +2002,7 @@ class SvRfPhaseReference(SCPICmdRead): - ``.master``: The ``SV:RF_PHASe:REFerence:MASTer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._master = SvRfPhaseReferenceMaster(device, f"{self._cmd_syntax}:MASTer") @@ -2045,7 +2045,7 @@ class SvRfPhase(SCPICmdRead): - ``.reference``: The ``SV:RF_PHASe:REFerence`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reference = SvRfPhaseReference(device, f"{self._cmd_syntax}:REFerence") @@ -2156,7 +2156,7 @@ class SvMarkerReference(SCPICmdWriteNoArguments, SCPICmdRead): - ``.frequency``: The ``SV:MARKER:REFERence:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SvMarkerReferenceAmplitude(device, f"{self._cmd_syntax}:AMPLITUDE") self._frequency = SvMarkerReferenceFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -2252,7 +2252,7 @@ class SvMarkerPeaks(SCPICmdRead): - ``.frequency``: The ``SV:MARKER:PEAKS:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SvMarkerPeaksAmplitude(device, f"{self._cmd_syntax}:AMPLITUDE") self._frequency = SvMarkerPeaksFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -2427,7 +2427,7 @@ class SvMarkerPeak(SCPICmdRead): - ``.threshold``: The ``SV:MARKER:PEAK:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._excursion = SvMarkerPeakExcursion(device, f"{self._cmd_syntax}:EXCURsion") self._maximum = SvMarkerPeakMaximum(device, f"{self._cmd_syntax}:MAXimum") @@ -2575,7 +2575,7 @@ class SvMarker(SCPICmdRead): - ``.type``: The ``SV:MARKER:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._peak = SvMarkerPeak(device, f"{self._cmd_syntax}:PEAK") self._peaks = SvMarkerPeaks(device, f"{self._cmd_syntax}:PEAKS") @@ -2775,7 +2775,7 @@ class SvChannelSelect(SCPICmdRead): - ``.spectrogram``: The ``SV:CH:SELect:SPECtrogram`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._spectrogram = SvChannelSelectSpectrogram(device, f"{self._cmd_syntax}:SPECtrogram") @@ -2819,7 +2819,7 @@ class SvChannel(ValidatedChannel, SCPICmdRead): - ``.select``: The ``SV:CH:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._select = SvChannelSelect(device, f"{self._cmd_syntax}:SELect") @@ -2856,7 +2856,7 @@ class Sv(SCPICmdRead): - ``.spectrogram``: The ``SV:SPECtrogram`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SV") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SV") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SvChannel] = DefaultDictPassKeyToFactory( lambda x: SvChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py index 8cedbefb..858a16f5 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py @@ -37,7 +37,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerBType(SCPICmdWrite, SCPICmdRead): @@ -116,7 +116,7 @@ class TriggerBLevel(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -253,7 +253,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -368,7 +368,7 @@ class TriggerB(SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLevel(device, f"{self._cmd_syntax}:LEVel") @@ -521,7 +521,7 @@ class TriggerALevel(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -658,7 +658,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -773,7 +773,7 @@ class TriggerA(SCPICmdRead): - ``.type``: The ``TRIGger:A:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerAEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALevel(device, f"{self._cmd_syntax}:LEVel") @@ -863,7 +863,7 @@ class Trigger(SCPICmdRead): - ``.b``: The ``TRIGger:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py index 52ea46f1..d49b0102 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicUninstall(SCPICmdReadWithArguments): @@ -58,7 +58,7 @@ class Lic(SCPICmdRead): - ``.uninstall``: The ``LIC:UNINSTALL`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LIC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LIC") -> None: super().__init__(device, cmd_syntax) self._uninstall = LicUninstall(device, f"{self._cmd_syntax}:UNINSTALL") diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py index c4e262a3..9e400fd0 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): @@ -236,7 +236,7 @@ class License(SCPICmdRead): - ``.validate``: The ``LICense:VALidate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LICense") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LICense") -> None: super().__init__(device, cmd_syntax) self._appid = LicenseAppid(device, f"{self._cmd_syntax}:APPID") self._count = LicenseCount(device, f"{self._cmd_syntax}:COUNt") diff --git a/src/tm_devices/commands/gen_canxny_daq/buffer.py b/src/tm_devices/commands/gen_canxny_daq/buffer.py index 1364537f..0d4c5da9 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffer.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffer.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -88,7 +88,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -144,7 +144,7 @@ def reading( f"{self._cmd_syntax}.reading({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reading()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -456,7 +456,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -534,7 +534,7 @@ def channelmath( f"{self._cmd_syntax}.channelmath({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.channelmath()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.channelmath()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clearstats(self, buffer_var: Optional[str] = None) -> None: @@ -562,7 +562,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -587,7 +587,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstats( @@ -645,7 +645,7 @@ def getstats( self._device.write("tempvar = nil") # type: ignore[union-attr] return retval # noqa: TRY300 except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -683,7 +683,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -732,7 +732,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -783,5 +783,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/buffervar.py b/src/tm_devices/commands/gen_canxny_daq/buffervar.py index 18c27ace..2ee4d00c 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffervar.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods @@ -75,7 +75,9 @@ class Buffervar(BaseTSPCmd): - ``.units``: The ``bufferVar.units[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._channels: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.channels[{{key}}]", @@ -179,7 +181,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @capacity.setter @@ -216,7 +218,7 @@ def capacity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.capacity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -303,7 +305,7 @@ def endindex(self) -> str: f"print({self._cmd_syntax}.endindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -420,7 +422,7 @@ def fillmode(self) -> str: f"print({self._cmd_syntax}.fillmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillmode.setter @@ -458,7 +460,7 @@ def fillmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -548,7 +550,7 @@ def logstate(self) -> str: f"print({self._cmd_syntax}.logstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logstate.setter @@ -586,7 +588,7 @@ def logstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -618,7 +620,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -732,7 +734,7 @@ def startindex(self) -> str: f"print({self._cmd_syntax}.startindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -868,5 +870,5 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/channel.py b/src/tm_devices/commands/gen_canxny_daq/channel.py index ffa054d7..5a8d29df 100644 --- a/src/tm_devices/commands/gen_canxny_daq/channel.py +++ b/src/tm_devices/commands/gen_canxny_daq/channel.py @@ -47,7 +47,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelMultiple(BaseTSPCmd): @@ -80,7 +80,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -105,7 +105,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -232,7 +232,7 @@ class Channel(BaseTSPCmd): TYPE_TOTALIZER = "channel.TYPE_TOTALIZER" """str: Totalizer channel.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "channel") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "channel") -> None: super().__init__(device, cmd_syntax) self._multiple = ChannelMultiple(device, f"{self._cmd_syntax}.multiple") @@ -269,7 +269,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getclose(self, channel_list: Optional[str] = None) -> str: @@ -304,7 +304,7 @@ def getclose(self, channel_list: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getclose({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcommonside(self, slot: str) -> str: @@ -332,7 +332,7 @@ def getcommonside(self, slot: str) -> str: f'print({self._cmd_syntax}.getcommonside("{slot}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcommonside()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcommonside()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcount(self, channel_list: str) -> str: @@ -361,7 +361,7 @@ def getcount(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getcount("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcountinterval(self) -> str: @@ -387,7 +387,7 @@ def getcountinterval(self) -> str: f"print({self._cmd_syntax}.getcountinterval())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcountinterval()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcountinterval()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getdelay(self, channel_list: str) -> str: @@ -416,7 +416,7 @@ def getdelay(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getdelay("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getdmm(self, channel_list: str, setting: str) -> str: @@ -445,7 +445,7 @@ def getdmm(self, channel_list: str, setting: str) -> str: f'print({self._cmd_syntax}.getdmm("{channel_list}", {setting}))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getdmm()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getdmm()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlabel(self, channel_number: str) -> str: @@ -473,7 +473,7 @@ def getlabel(self, channel_number: str) -> str: f'print({self._cmd_syntax}.getlabel("{channel_number}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmatch(self, channel_list: str) -> str: @@ -502,7 +502,7 @@ def getmatch(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmatch("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmatchtype(self, channel_list: str) -> str: @@ -531,7 +531,7 @@ def getmatchtype(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmatchtype("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmatchtype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmatchtype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmode(self, channel_list: str) -> str: @@ -560,7 +560,7 @@ def getmode(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmode("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmode()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmode()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstate(self, channel_list: Optional[str] = None) -> str: @@ -594,7 +594,7 @@ def getstate(self, channel_list: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getstate({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettype(self, channel_list: str) -> str: @@ -622,7 +622,7 @@ def gettype(self, channel_list: str) -> str: f'print({self._cmd_syntax}.gettype("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getwidth(self, channel_number: int) -> str: @@ -650,7 +650,7 @@ def getwidth(self, channel_number: int) -> str: f'print({self._cmd_syntax}.getwidth("{channel_number}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getwidth()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getwidth()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -677,7 +677,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, channel_list: str, reading_buffer: Optional[str] = None) -> str: @@ -714,7 +714,7 @@ def read(self, channel_list: str, reading_buffer: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcommonside(self, slot: str, state: str) -> None: @@ -740,7 +740,7 @@ def setcommonside(self, slot: str, state: str) -> None: f'{self._cmd_syntax}.setcommonside("{slot}", {state})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcommonside()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcommonside()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcountinterval(self, interval: str) -> None: @@ -766,7 +766,7 @@ def setcountinterval(self, interval: str) -> None: f"{self._cmd_syntax}.setcountinterval({interval})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcountinterval()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcountinterval()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setdelay(self, channel_list: str, delay: float) -> None: @@ -792,7 +792,7 @@ def setdelay(self, channel_list: str, delay: float) -> None: f'{self._cmd_syntax}.setdelay("{channel_list}", {delay})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setdmm(self, channel_list: str, setting: str, value: str) -> None: @@ -820,7 +820,7 @@ def setdmm(self, channel_list: str, setting: str, value: str) -> None: f'{self._cmd_syntax}.setdmm("{channel_list}", {setting}, {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setdmm()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setdmm()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setlabel(self, channel_number: str, labelname: str) -> None: @@ -847,7 +847,7 @@ def setlabel(self, channel_number: str, labelname: str) -> None: f'{self._cmd_syntax}.setlabel("{channel_number}", "{labelname}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmatch(self, channel_list: str, match_value: str, mask: Optional[str] = None) -> None: @@ -884,7 +884,7 @@ def setmatch(self, channel_list: str, match_value: str, mask: Optional[str] = No f"{self._cmd_syntax}.setmatch({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmatchtype(self, channel_list: str, type_: str) -> None: @@ -910,7 +910,7 @@ def setmatchtype(self, channel_list: str, type_: str) -> None: f'{self._cmd_syntax}.setmatchtype("{channel_list}", {type_})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmatchtype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmatchtype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmode(self, channel_list: str, mode: str) -> None: @@ -936,7 +936,7 @@ def setmode(self, channel_list: str, mode: str) -> None: f'{self._cmd_syntax}.setmode("{channel_list}", {mode})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmode()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmode()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setwidth(self, channel_number: int, width: int) -> None: @@ -962,7 +962,7 @@ def setwidth(self, channel_number: int, width: int) -> None: f'{self._cmd_syntax}.setwidth("{channel_number}", {width})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setwidth()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setwidth()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, channel_list: str, value: str) -> None: @@ -988,5 +988,5 @@ def write(self, channel_list: str, value: str) -> None: f'{self._cmd_syntax}.write("{channel_list}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/display.py b/src/tm_devices/commands/gen_canxny_daq/display.py index f263aef0..0fa2b587 100644 --- a/src/tm_devices/commands/gen_canxny_daq/display.py +++ b/src/tm_devices/commands/gen_canxny_daq/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): @@ -95,7 +95,7 @@ def number( f"print({self._cmd_syntax}.number({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def option(self, dialog_title: str, button_title1: str, button_title2: str) -> str: @@ -130,7 +130,7 @@ def option(self, dialog_title: str, button_title1: str, button_title2: str) -> s f'"{button_title2}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_set: str, dialog_title: str) -> str: @@ -161,7 +161,7 @@ def prompt(self, button_set: str, dialog_title: str) -> str: f'print({self._cmd_syntax}.prompt({button_set}, "{dialog_title}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: @@ -200,7 +200,7 @@ def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: f"print({self._cmd_syntax}.string({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -377,7 +377,7 @@ class Display(BaseTSPCmd): STATE_LCD_OFF = "display.STATE_LCD_OFF" """str: Set display to off.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._input = DisplayInput(device, f"{self._cmd_syntax}.input") @@ -410,7 +410,7 @@ def activebuffer(self) -> str: f"print({self._cmd_syntax}.activebuffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @activebuffer.setter @@ -445,7 +445,7 @@ def activebuffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.activebuffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -487,7 +487,7 @@ def lightstate(self) -> str: f"print({self._cmd_syntax}.lightstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lightstate.setter @@ -520,7 +520,7 @@ def lightstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lightstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -556,7 +556,7 @@ def readingformat(self) -> str: f"print({self._cmd_syntax}.readingformat)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readingformat.setter @@ -595,7 +595,7 @@ def readingformat(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readingformat = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -627,7 +627,7 @@ def watchchannels(self) -> str: f"print({self._cmd_syntax}.watchchannels)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @watchchannels.setter @@ -662,7 +662,7 @@ def watchchannels(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.watchchannels = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def changescreen(self, screen_name: str) -> None: @@ -687,7 +687,7 @@ def changescreen(self, screen_name: str) -> None: f"{self._cmd_syntax}.changescreen({screen_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -709,7 +709,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, prompt_id: str) -> None: @@ -735,7 +735,7 @@ def delete(self, prompt_id: str) -> None: f"{self._cmd_syntax}.delete({prompt_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_id: str, prompt_text: str) -> str: @@ -765,7 +765,7 @@ def prompt(self, button_id: str, prompt_text: str) -> str: f'print({self._cmd_syntax}.prompt({button_id}, "{prompt_text}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext( @@ -803,7 +803,7 @@ def settext( f"{self._cmd_syntax}.settext({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitevent(self, timeout: Optional[float] = None) -> str: @@ -834,5 +834,5 @@ def waitevent(self, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.waitevent({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/dmm.py b/src/tm_devices/commands/gen_canxny_daq/dmm.py index 37e0b72e..6df4d237 100644 --- a/src/tm_devices/commands/gen_canxny_daq/dmm.py +++ b/src/tm_devices/commands/gen_canxny_daq/dmm.py @@ -131,7 +131,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): @@ -171,7 +171,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -206,7 +206,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -237,7 +237,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -271,7 +271,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -308,7 +308,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -337,7 +337,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -379,7 +379,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -414,7 +414,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -445,7 +445,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -479,7 +479,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -511,7 +511,7 @@ def method(self) -> str: f"print({self._cmd_syntax}.method)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @method.setter @@ -546,7 +546,7 @@ def method(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.method = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -586,7 +586,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -621,7 +621,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -661,7 +661,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -695,7 +695,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -726,7 +726,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -760,7 +760,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -774,7 +774,7 @@ class DmmMeasureMath(BaseTSPCmd): - ``.percent``: The ``dmm.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = DmmMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -807,7 +807,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -842,7 +842,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -874,7 +874,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -909,7 +909,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -951,7 +951,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -986,7 +986,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1025,7 +1025,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1059,7 +1059,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1099,7 +1099,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1134,7 +1134,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1150,7 +1150,7 @@ class DmmMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``dmm.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DmmMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = DmmMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -1184,7 +1184,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -1219,7 +1219,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1251,7 +1251,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1286,7 +1286,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1318,7 +1318,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1353,7 +1353,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1381,7 +1381,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1442,7 +1442,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1477,7 +1477,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1509,7 +1509,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1544,7 +1544,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1576,7 +1576,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -1611,7 +1611,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1643,7 +1643,7 @@ def window(self) -> str: f"print({self._cmd_syntax}.window)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @window.setter @@ -1678,7 +1678,7 @@ def window(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.window = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1719,7 +1719,7 @@ def catalog(self) -> str: f"print({self._cmd_syntax}.catalog())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.catalog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, list_name: str) -> None: @@ -1744,7 +1744,7 @@ def create(self, list_name: str) -> None: f'{self._cmd_syntax}.create("{list_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, list_name: str, index: Optional[int] = None) -> None: @@ -1779,7 +1779,7 @@ def delete(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.delete({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, list_name: str, index: int, field_separator: Optional[str] = None) -> str: @@ -1820,7 +1820,7 @@ def query(self, list_name: str, index: int, field_separator: Optional[str] = Non f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall(self, list_name: str, index: Optional[int] = None) -> None: @@ -1855,7 +1855,7 @@ def recall(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.recall({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def size(self, list_name: str) -> str: @@ -1884,7 +1884,7 @@ def size(self, list_name: str) -> str: f'print({self._cmd_syntax}.size("{list_name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.size()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def store(self, list_name: str, index: Optional[int] = None) -> None: @@ -1920,7 +1920,7 @@ def store(self, list_name: str, index: Optional[int] = None) -> None: f"{self._cmd_syntax}.store({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.store()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def storefunc(self, list_name: str, function: str, index: Optional[int] = None) -> None: @@ -1959,7 +1959,7 @@ def storefunc(self, list_name: str, function: str, index: Optional[int] = None) f"{self._cmd_syntax}.storefunc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.storefunc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1999,7 +1999,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2034,7 +2034,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2074,7 +2074,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2109,7 +2109,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2152,7 +2152,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -2188,7 +2188,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2220,7 +2220,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -2255,7 +2255,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2287,7 +2287,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -2322,7 +2322,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2364,7 +2364,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2400,7 +2400,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2432,7 +2432,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -2467,7 +2467,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2480,7 +2480,7 @@ class DmmMeasureAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.measure.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmMeasureAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._window = DmmMeasureAnalogtriggerWindow(device, f"{self._cmd_syntax}.window") @@ -2524,7 +2524,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -2559,7 +2559,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2624,7 +2624,7 @@ class DmmMeasure(BaseTSPCmd): - ``.userdelay``: The ``dmm.measure.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmMeasureAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") self._autozero = DmmMeasureAutozero(device, f"{self._cmd_syntax}.autozero") @@ -2687,7 +2687,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -2721,7 +2721,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2753,7 +2753,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -2788,7 +2788,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2820,7 +2820,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -2855,7 +2855,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2920,7 +2920,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -2954,7 +2954,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2985,7 +2985,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -3019,7 +3019,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3050,7 +3050,7 @@ def dbreference(self) -> str: f"print({self._cmd_syntax}.dbreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbreference.setter @@ -3084,7 +3084,7 @@ def dbreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3116,7 +3116,7 @@ def detectorbandwidth(self) -> str: f"print({self._cmd_syntax}.detectorbandwidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @detectorbandwidth.setter @@ -3151,7 +3151,7 @@ def detectorbandwidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.detectorbandwidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3183,7 +3183,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -3218,7 +3218,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3261,7 +3261,7 @@ def fourrtd(self) -> str: f"print({self._cmd_syntax}.fourrtd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fourrtd.setter @@ -3295,7 +3295,7 @@ def fourrtd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fourrtd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3325,7 +3325,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -3358,7 +3358,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3389,7 +3389,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -3423,7 +3423,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3468,7 +3468,7 @@ def linesync(self) -> str: f"print({self._cmd_syntax}.linesync)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linesync.setter @@ -3502,7 +3502,7 @@ def linesync(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linesync = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3545,7 +3545,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -3579,7 +3579,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3619,7 +3619,7 @@ def opendetector(self) -> str: f"print({self._cmd_syntax}.opendetector)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @opendetector.setter @@ -3653,7 +3653,7 @@ def opendetector(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.opendetector = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3683,7 +3683,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -3716,7 +3716,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3747,7 +3747,7 @@ def refjunction(self) -> str: f"print({self._cmd_syntax}.refjunction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @refjunction.setter @@ -3781,7 +3781,7 @@ def refjunction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.refjunction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3823,7 +3823,7 @@ def rtdalpha(self) -> str: f"print({self._cmd_syntax}.rtdalpha)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdalpha.setter @@ -3857,7 +3857,7 @@ def rtdalpha(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdalpha = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3888,7 +3888,7 @@ def rtdbeta(self) -> str: f"print({self._cmd_syntax}.rtdbeta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdbeta.setter @@ -3922,7 +3922,7 @@ def rtdbeta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdbeta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3953,7 +3953,7 @@ def rtddelta(self) -> str: f"print({self._cmd_syntax}.rtddelta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtddelta.setter @@ -3987,7 +3987,7 @@ def rtddelta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtddelta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4018,7 +4018,7 @@ def rtdzero(self) -> str: f"print({self._cmd_syntax}.rtdzero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdzero.setter @@ -4052,7 +4052,7 @@ def rtdzero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdzero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4094,7 +4094,7 @@ def simreftemperature(self) -> str: f"print({self._cmd_syntax}.simreftemperature)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @simreftemperature.setter @@ -4129,7 +4129,7 @@ def simreftemperature(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.simreftemperature = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4160,7 +4160,7 @@ def thermistor(self) -> str: f"print({self._cmd_syntax}.thermistor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermistor.setter @@ -4194,7 +4194,7 @@ def thermistor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermistor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4225,7 +4225,7 @@ def thermocouple(self) -> str: f"print({self._cmd_syntax}.thermocouple)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermocouple.setter @@ -4259,7 +4259,7 @@ def thermocouple(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermocouple = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4290,7 +4290,7 @@ def threertd(self) -> str: f"print({self._cmd_syntax}.threertd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threertd.setter @@ -4324,7 +4324,7 @@ def threertd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threertd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4365,7 +4365,7 @@ def transducer(self) -> str: f"print({self._cmd_syntax}.transducer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @transducer.setter @@ -4399,7 +4399,7 @@ def transducer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.transducer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4429,7 +4429,7 @@ def twortd(self) -> str: f"print({self._cmd_syntax}.twortd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @twortd.setter @@ -4462,7 +4462,7 @@ def twortd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.twortd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4493,7 +4493,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4527,7 +4527,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4584,7 +4584,7 @@ def getattribute(self, function: str, setting: str) -> str: f"print({self._cmd_syntax}.getattribute({function}, {setting}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4616,7 +4616,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -4648,7 +4648,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4677,7 +4677,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4719,7 +4719,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -4754,7 +4754,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4785,7 +4785,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -4819,7 +4819,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -4845,7 +4845,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4885,7 +4885,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -4919,7 +4919,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4950,7 +4950,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -4984,7 +4984,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4998,7 +4998,7 @@ class DmmDigitizeMath(BaseTSPCmd): - ``.percent``: The ``dmm.digitize.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = DmmDigitizeMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -5031,7 +5031,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5066,7 +5066,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5098,7 +5098,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -5133,7 +5133,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5175,7 +5175,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -5210,7 +5210,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5250,7 +5250,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -5285,7 +5285,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5325,7 +5325,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -5360,7 +5360,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5376,7 +5376,7 @@ class DmmDigitizeLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``dmm.digitize.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DmmDigitizeLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = DmmDigitizeLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -5410,7 +5410,7 @@ def audible(self) -> str: f"print({self._cmd_syntax}.audible)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @audible.setter @@ -5445,7 +5445,7 @@ def audible(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.audible = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.audible`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5478,7 +5478,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -5514,7 +5514,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5546,7 +5546,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -5581,7 +5581,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5609,7 +5609,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5670,7 +5670,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -5706,7 +5706,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5738,7 +5738,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -5773,7 +5773,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5805,7 +5805,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -5840,7 +5840,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5882,7 +5882,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -5918,7 +5918,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5950,7 +5950,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -5985,7 +5985,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5998,7 +5998,7 @@ class DmmDigitizeAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.digitize.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmDigitizeAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._window = DmmDigitizeAnalogtriggerWindow(device, f"{self._cmd_syntax}.window") @@ -6043,7 +6043,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -6079,7 +6079,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6117,7 +6117,7 @@ class DmmDigitize(BaseTSPCmd): - ``.userdelay``: The ``dmm.digitize.userdelay[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmDigitizeAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") self._limit: Dict[int, DmmDigitizeLimitItem] = DefaultDictPassKeyToFactory( @@ -6171,7 +6171,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -6205,7 +6205,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6236,7 +6236,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -6270,7 +6270,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6301,7 +6301,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -6335,7 +6335,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6366,7 +6366,7 @@ def dbreference(self) -> str: f"print({self._cmd_syntax}.dbreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbreference.setter @@ -6400,7 +6400,7 @@ def dbreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6432,7 +6432,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -6467,7 +6467,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6497,7 +6497,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -6530,7 +6530,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6561,7 +6561,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -6595,7 +6595,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6652,7 +6652,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -6686,7 +6686,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6729,7 +6729,7 @@ def samplerate(self) -> str: f"print({self._cmd_syntax}.samplerate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @samplerate.setter @@ -6764,7 +6764,7 @@ def samplerate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.samplerate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.samplerate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6795,7 +6795,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -6829,7 +6829,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6888,7 +6888,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readwithtime(self, buffer_name: Optional[str] = None) -> str: @@ -6920,7 +6920,7 @@ def readwithtime(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.readwithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readwithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7536,7 +7536,7 @@ class Dmm(BaseTSPCmd): UNIT_VOLT = "dmm.UNIT_VOLT" """str: Display voltage as units for the voltage function.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dmm") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dmm") -> None: super().__init__(device, cmd_syntax) self._digitize = DmmDigitize(device, f"{self._cmd_syntax}.digitize") self._measure = DmmMeasure(device, f"{self._cmd_syntax}.measure") @@ -7643,7 +7643,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -7665,5 +7665,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/scan.py b/src/tm_devices/commands/gen_canxny_daq/scan.py index a2e256b7..9eb937e9 100644 --- a/src/tm_devices/commands/gen_canxny_daq/scan.py +++ b/src/tm_devices/commands/gen_canxny_daq/scan.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanStart(BaseTSPCmd): @@ -80,7 +80,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -114,7 +114,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -153,7 +153,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -187,7 +187,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -226,7 +226,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -260,7 +260,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -272,7 +272,7 @@ class ScanMonitorLimit(BaseTSPCmd): - ``.low``: The ``scan.monitor.limit.low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = ScanMonitorLimitHigh(device, f"{self._cmd_syntax}.high") self._low = ScanMonitorLimitLow(device, f"{self._cmd_syntax}.low") @@ -305,7 +305,7 @@ class ScanMonitor(BaseTSPCmd): - ``.mode``: The ``scan.monitor.mode`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = ScanMonitorLimit(device, f"{self._cmd_syntax}.limit") @@ -338,7 +338,7 @@ def channel(self) -> str: f"print({self._cmd_syntax}.channel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @channel.setter @@ -373,7 +373,7 @@ def channel(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.channel = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -414,7 +414,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -448,7 +448,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -488,7 +488,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -522,7 +522,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -553,7 +553,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -587,7 +587,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -626,7 +626,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -660,7 +660,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -771,7 +771,7 @@ class Scan(BaseTSPCmd): WRITE_NEVER = "scan.WRITE_NEVER" """str: Do not write data to a file.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scan") -> None: super().__init__(device, cmd_syntax) self._channel = ScanChannel(device, f"{self._cmd_syntax}.channel") self._measure = ScanMeasure(device, f"{self._cmd_syntax}.measure") @@ -805,7 +805,7 @@ def buffer(self) -> str: f"print({self._cmd_syntax}.buffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @buffer.setter @@ -838,7 +838,7 @@ def buffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.buffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -869,7 +869,7 @@ def bypass(self) -> str: f"print({self._cmd_syntax}.bypass)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bypass.setter @@ -903,7 +903,7 @@ def bypass(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bypass = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -952,7 +952,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -985,7 +985,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1027,7 +1027,7 @@ def restart(self) -> str: f"print({self._cmd_syntax}.restart)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @restart.setter @@ -1061,7 +1061,7 @@ def restart(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.restart = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1091,7 +1091,7 @@ def scancount(self) -> str: f"print({self._cmd_syntax}.scancount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @scancount.setter @@ -1124,7 +1124,7 @@ def scancount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.scancount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1155,7 +1155,7 @@ def scaninterval(self) -> str: f"print({self._cmd_syntax}.scaninterval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @scaninterval.setter @@ -1189,7 +1189,7 @@ def scaninterval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.scaninterval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1226,7 +1226,7 @@ def stepcount(self) -> str: f"print({self._cmd_syntax}.stepcount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def add( @@ -1265,7 +1265,7 @@ def add( f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def addsinglestep( @@ -1304,7 +1304,7 @@ def addsinglestep( f"{self._cmd_syntax}.addsinglestep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.addsinglestep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.addsinglestep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def addwrite(self, channel_list: str, write_value: str) -> None: @@ -1330,7 +1330,7 @@ def addwrite(self, channel_list: str, write_value: str) -> None: f'{self._cmd_syntax}.addwrite("{channel_list}", {write_value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.addwrite()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.addwrite()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create( @@ -1372,7 +1372,7 @@ def create( f"{self._cmd_syntax}.create({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def export(self, filename: str, when: str, what: Optional[str] = None) -> None: @@ -1408,7 +1408,7 @@ def export(self, filename: str, when: str, what: Optional[str] = None) -> None: f"{self._cmd_syntax}.export({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.export()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.export()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def learnlimits(self, window: str, iterations: Optional[str] = None) -> None: @@ -1443,7 +1443,7 @@ def learnlimits(self, window: str, iterations: Optional[str] = None) -> None: f"{self._cmd_syntax}.learnlimits({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.learnlimits()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.learnlimits()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def list(self) -> str: @@ -1469,7 +1469,7 @@ def list(self) -> str: f"print({self._cmd_syntax}.list())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def state(self) -> str: @@ -1494,5 +1494,5 @@ def state(self) -> str: f"print({self._cmd_syntax}.state())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/slot.py b/src/tm_devices/commands/gen_canxny_daq/slot.py index d1e561ef..798b32e3 100644 --- a/src/tm_devices/commands/gen_canxny_daq/slot.py +++ b/src/tm_devices/commands/gen_canxny_daq/slot.py @@ -38,7 +38,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemVoltage(BaseTSPCmd): @@ -81,7 +81,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -114,7 +114,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -158,7 +158,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -190,7 +190,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -234,7 +234,7 @@ def columns(self) -> str: f"print({self._cmd_syntax}.columns)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.columns`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.columns`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -266,7 +266,7 @@ def rows(self) -> str: f"print({self._cmd_syntax}.rows)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rows`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rows`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -310,7 +310,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -343,7 +343,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -388,7 +388,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -421,7 +421,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -466,7 +466,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -499,7 +499,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -543,7 +543,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -575,7 +575,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -601,7 +601,7 @@ class SlotItem(ValidatedDynamicNumberCmd, BaseTSPCmd): """ def __init__( - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "slot[slot]" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "slot[slot]" ) -> None: super().__init__(device, cmd_syntax) self._amps = SlotItemAmps(device, f"{self._cmd_syntax}.amps") @@ -667,7 +667,7 @@ def commonsideohms(self) -> str: f"print({self._cmd_syntax}.commonsideohms)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.commonsideohms`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.commonsideohms`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -711,7 +711,7 @@ def idn(self) -> str: f"print({self._cmd_syntax}.idn)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -769,7 +769,7 @@ def maxvoltage(self) -> str: f"print({self._cmd_syntax}.maxvoltage)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -803,7 +803,7 @@ def pseudocard(self) -> str: f"print({self._cmd_syntax}.pseudocard)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pseudocard.setter @@ -840,7 +840,7 @@ def pseudocard(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pseudocard = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -872,7 +872,7 @@ def tempsensor(self) -> str: f"print({self._cmd_syntax}.tempsensor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tempsensor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tempsensor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -913,5 +913,5 @@ class Slot(BaseTSPCmd): PSEUDO_NONE = "slot.PSEUDO_NONE" """str: No pseudocard.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "slot") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "slot") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_canxny_daq/trigger.py b/src/tm_devices/commands/gen_canxny_daq/trigger.py index 70b0efdb..538902af 100644 --- a/src/tm_devices/commands/gen_canxny_daq/trigger.py +++ b/src/tm_devices/commands/gen_canxny_daq/trigger.py @@ -118,7 +118,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -166,7 +166,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -203,7 +203,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -240,7 +240,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -280,7 +280,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -315,7 +315,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -353,7 +353,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -379,7 +379,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -404,7 +404,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -453,7 +453,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -491,7 +491,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -523,7 +523,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -548,7 +548,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -576,7 +576,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -627,7 +627,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -666,7 +666,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -701,7 +701,7 @@ def generate(self) -> str: f"print({self._cmd_syntax}.generate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @generate.setter @@ -739,7 +739,7 @@ def generate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.generate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -770,7 +770,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -805,7 +805,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -843,7 +843,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -878,7 +878,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -916,7 +916,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -937,7 +937,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.timer[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = TriggerTimerItemStart(device, f"{self._cmd_syntax}.start") @@ -973,7 +973,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1011,7 +1011,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1045,7 +1045,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1082,7 +1082,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1116,7 +1116,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -1153,7 +1153,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1187,7 +1187,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1224,7 +1224,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1266,7 +1266,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1291,7 +1291,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -1319,7 +1319,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1404,7 +1404,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getblocklist(self) -> str: @@ -1429,7 +1429,7 @@ def getblocklist(self) -> str: f"print({self._cmd_syntax}.getblocklist())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbranchcount(self, block_number: int) -> str: @@ -1457,7 +1457,7 @@ def getbranchcount(self, block_number: int) -> str: f"print({self._cmd_syntax}.getbranchcount({block_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate(self) -> None: @@ -1479,7 +1479,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_config_list( @@ -1525,7 +1525,7 @@ def load_config_list( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_duration_loop( @@ -1567,7 +1567,7 @@ def load_duration_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_empty(self) -> None: @@ -1589,7 +1589,7 @@ def load_empty(self) -> None: f"{self._cmd_syntax}.load()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_logic_trigger( @@ -1644,7 +1644,7 @@ def load_logic_trigger( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_loop_until_event( @@ -1698,7 +1698,7 @@ def load_loop_until_event( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_simple_loop( @@ -1741,7 +1741,7 @@ def load_simple_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pause(self) -> None: @@ -1763,7 +1763,7 @@ def pause(self) -> None: f"{self._cmd_syntax}.pause()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resume(self) -> None: @@ -1785,7 +1785,7 @@ def resume(self) -> None: f"{self._cmd_syntax}.resume()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_always(self, block_number: int, branch_to_block: str) -> None: @@ -1814,7 +1814,7 @@ def setblock_trigger_block_branch_always(self, block_number: int, branch_to_bloc f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_counter( @@ -1848,7 +1848,7 @@ def setblock_trigger_block_branch_counter( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_delta( @@ -1898,7 +1898,7 @@ def setblock_trigger_block_branch_delta( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_constant( @@ -1953,7 +1953,7 @@ def setblock_trigger_block_branch_limit_constant( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_dynamic( @@ -2005,7 +2005,7 @@ def setblock_trigger_block_branch_limit_dynamic( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: str) -> None: @@ -2035,7 +2035,7 @@ def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once_excluded( @@ -2068,7 +2068,7 @@ def setblock_trigger_block_branch_once_excluded( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_on_event( @@ -2101,7 +2101,7 @@ def setblock_trigger_block_branch_on_event( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_buffer_clear( @@ -2139,7 +2139,7 @@ def setblock_trigger_block_buffer_clear( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_next( @@ -2169,7 +2169,7 @@ def setblock_trigger_block_config_next( f'"{configuration_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_prev( @@ -2200,7 +2200,7 @@ def setblock_trigger_block_config_prev( f'"{configuration_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_config_recall( @@ -2239,7 +2239,7 @@ def setblock_trigger_block_config_recall( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> None: @@ -2265,7 +2265,7 @@ def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_CONSTANT, {time})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> None: @@ -2292,7 +2292,7 @@ def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> Non f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_DYNAMIC, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_digital_io( @@ -2328,7 +2328,7 @@ def setblock_trigger_block_digital_io( f"{bit_mask})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_log_event( @@ -2361,7 +2361,7 @@ def setblock_trigger_block_log_event( f'"{message}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_measure_digitize( @@ -2402,7 +2402,7 @@ def setblock_trigger_block_measure_digitize( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_nop(self, block_number: int) -> None: @@ -2428,7 +2428,7 @@ def setblock_trigger_block_nop(self, block_number: int) -> None: f"{self._cmd_syntax}.setblock({block_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: @@ -2455,7 +2455,7 @@ def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_NOTIFY, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: str) -> None: @@ -2483,7 +2483,7 @@ def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: f"{counter})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_wait( @@ -2539,7 +2539,7 @@ def setblock_trigger_block_wait( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def state(self) -> str: @@ -2564,7 +2564,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2613,7 +2613,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2648,7 +2648,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -2686,7 +2686,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2721,7 +2721,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -2759,7 +2759,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2793,7 +2793,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -2830,7 +2830,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2865,7 +2865,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -2903,7 +2903,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -2929,7 +2929,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -2954,7 +2954,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -2979,7 +2979,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3028,7 +3028,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3066,7 +3066,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3097,7 +3097,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3122,7 +3122,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3150,7 +3150,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3192,7 +3192,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3227,7 +3227,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3259,7 +3259,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3294,7 +3294,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3316,7 +3316,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3358,7 +3358,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3392,7 +3392,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3420,7 +3420,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3442,7 +3442,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3470,7 +3470,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3501,7 +3501,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3551,7 +3551,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3589,7 +3589,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3628,7 +3628,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -3670,7 +3670,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3705,7 +3705,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3743,7 +3743,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3768,7 +3768,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -3793,7 +3793,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3842,7 +3842,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3880,7 +3880,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3911,7 +3911,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3940,7 +3940,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3968,7 +3968,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3987,7 +3987,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.blender[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._stimulus: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.stimulus[{{key}}]", @@ -4027,7 +4027,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -4064,7 +4064,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4096,7 +4096,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4150,7 +4150,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -4175,7 +4175,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4203,7 +4203,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4524,7 +4524,7 @@ class Trigger(BaseTSPCmd): WAIT_OR = "trigger.WAIT_OR" """str: At least one of the events must occur before the trigger model continues.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -4599,7 +4599,7 @@ def continuous(self) -> str: f"print({self._cmd_syntax}.continuous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @continuous.setter @@ -4632,7 +4632,7 @@ def continuous(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.continuous = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4864,7 +4864,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4892,5 +4892,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/tsplink.py b/src/tm_devices/commands/gen_canxny_daq/tsplink.py index 4104bddb..70b5c84f 100644 --- a/src/tm_devices/commands/gen_canxny_daq/tsplink.py +++ b/src/tm_devices/commands/gen_canxny_daq/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -78,7 +78,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @state.setter @@ -115,7 +115,7 @@ def state(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.state = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -141,7 +141,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -180,7 +180,7 @@ class Tsplink(BaseTSPCmd): STATE_LOW = "tsplink.STATE_LOW" """str: Low state of the synchronization line.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._line: Dict[int, TsplinkLineItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkLineItem(device, f"{self._cmd_syntax}.line[{x}]") @@ -213,7 +213,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -246,7 +246,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -287,7 +287,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -317,7 +317,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -350,7 +350,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -378,7 +378,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initialize(self, expected_nodes: Optional[int] = None) -> str: @@ -407,7 +407,7 @@ def initialize(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.initialize({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -432,7 +432,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -457,5 +457,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_canxny_daq/upgrade.py b/src/tm_devices/commands/gen_canxny_daq/upgrade.py index 04bc053e..d899ff1c 100644 --- a/src/tm_devices/commands/gen_canxny_daq/upgrade.py +++ b/src/tm_devices/commands/gen_canxny_daq/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/acal.py b/src/tm_devices/commands/gen_d6b496_dmm/acal.py index 9246c144..02bf6737 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/acal.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/acal.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class AcalNextrun(BaseTSPCmd): @@ -63,7 +63,7 @@ def time(self) -> str: f"print({self._cmd_syntax}.time)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -102,7 +102,7 @@ def internaltemp(self) -> str: f"print({self._cmd_syntax}.internaltemp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -131,7 +131,7 @@ def tempdiff(self) -> str: f"print({self._cmd_syntax}.tempdiff)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tempdiff`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tempdiff`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -159,7 +159,7 @@ def time(self) -> str: f"print({self._cmd_syntax}.time)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -175,7 +175,7 @@ class Acal(BaseTSPCmd): - ``.schedule()``: The ``acal.schedule()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "acal") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "acal") -> None: super().__init__(device, cmd_syntax) self._lastrun = AcalLastrun(device, f"{self._cmd_syntax}.lastrun") self._nextrun = AcalNextrun(device, f"{self._cmd_syntax}.nextrun") @@ -205,7 +205,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -250,7 +250,7 @@ def revert(self) -> str: f"print({self._cmd_syntax}.revert())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.revert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.revert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -272,7 +272,7 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def schedule( @@ -319,5 +319,5 @@ def schedule( f"print({self._cmd_syntax}.schedule({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.schedule()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.schedule()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py index f4f2d0bf..0c6e3b7f 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -84,7 +84,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -387,7 +387,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -425,7 +425,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -450,7 +450,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -488,7 +488,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -537,7 +537,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -588,5 +588,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py index de8cb5c2..18081c05 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py @@ -39,7 +39,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes @@ -73,7 +73,9 @@ class Buffervar(BaseTSPCmd): - ``.units``: The ``bufferVar.units`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._dates: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.dates[{{key}}]", @@ -167,7 +169,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @capacity.setter @@ -204,7 +206,7 @@ def capacity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.capacity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -262,7 +264,7 @@ def endindex(self) -> str: f"print({self._cmd_syntax}.endindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -379,7 +381,7 @@ def fillmode(self) -> str: f"print({self._cmd_syntax}.fillmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillmode.setter @@ -417,7 +419,7 @@ def fillmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -506,7 +508,7 @@ def logstate(self) -> str: f"print({self._cmd_syntax}.logstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logstate.setter @@ -544,7 +546,7 @@ def logstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -576,7 +578,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -687,7 +689,7 @@ def startindex(self) -> str: f"print({self._cmd_syntax}.startindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -798,7 +800,7 @@ def units(self) -> str: f"print({self._cmd_syntax}.units)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -824,5 +826,5 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/display.py b/src/tm_devices/commands/gen_d6b496_dmm/display.py index dc0b1047..e1691d81 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/display.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): @@ -94,7 +94,7 @@ def number( f"print({self._cmd_syntax}.number({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def option(self, dialog_title: str, button_title1: str, button_title2: str) -> str: @@ -129,7 +129,7 @@ def option(self, dialog_title: str, button_title1: str, button_title2: str) -> s f'"{button_title2}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_set: str, dialog_title: str) -> str: @@ -160,7 +160,7 @@ def prompt(self, button_set: str, dialog_title: str) -> str: f'print({self._cmd_syntax}.prompt({button_set}, "{dialog_title}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: @@ -199,7 +199,7 @@ def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: f"print({self._cmd_syntax}.string({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -348,7 +348,7 @@ class Display(BaseTSPCmd): STATE_LCD_OFF = "display.STATE_LCD_OFF" """str: Set display to off.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._input = DisplayInput(device, f"{self._cmd_syntax}.input") @@ -381,7 +381,7 @@ def activebuffer(self) -> str: f"print({self._cmd_syntax}.activebuffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @activebuffer.setter @@ -416,7 +416,7 @@ def activebuffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.activebuffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -458,7 +458,7 @@ def lightstate(self) -> str: f"print({self._cmd_syntax}.lightstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lightstate.setter @@ -491,7 +491,7 @@ def lightstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lightstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -527,7 +527,7 @@ def readingformat(self) -> str: f"print({self._cmd_syntax}.readingformat)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readingformat.setter @@ -566,7 +566,7 @@ def readingformat(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readingformat = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def changescreen(self, screen_name: str) -> None: @@ -591,7 +591,7 @@ def changescreen(self, screen_name: str) -> None: f"{self._cmd_syntax}.changescreen({screen_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -613,7 +613,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, prompt_id: str) -> None: @@ -639,7 +639,7 @@ def delete(self, prompt_id: str) -> None: f"{self._cmd_syntax}.delete({prompt_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_id: str, prompt_text: str) -> str: @@ -669,7 +669,7 @@ def prompt(self, button_id: str, prompt_text: str) -> str: f'print({self._cmd_syntax}.prompt({button_id}, "{prompt_text}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext( @@ -707,7 +707,7 @@ def settext( f"{self._cmd_syntax}.settext({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitevent(self, timeout: Optional[float] = None) -> str: @@ -738,5 +738,5 @@ def waitevent(self, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.waitevent({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py index 7a92ccbf..efbdb7a8 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py @@ -108,7 +108,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmTriggerMeasure(BaseTSPCmd): @@ -147,7 +147,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -182,7 +182,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -222,7 +222,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -257,7 +257,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -269,7 +269,7 @@ class DmmTrigger(BaseTSPCmd): - ``.measure``: The ``dmm.trigger.measure`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._digitize = DmmTriggerDigitize(device, f"{self._cmd_syntax}.digitize") self._measure = DmmTriggerMeasure(device, f"{self._cmd_syntax}.measure") @@ -331,7 +331,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -366,7 +366,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -398,7 +398,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -433,7 +433,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -464,7 +464,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -498,7 +498,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -538,7 +538,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -572,7 +572,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -603,7 +603,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -637,7 +637,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -679,7 +679,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -714,7 +714,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -745,7 +745,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -779,7 +779,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -811,7 +811,7 @@ def method(self) -> str: f"print({self._cmd_syntax}.method)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @method.setter @@ -846,7 +846,7 @@ def method(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.method = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -886,7 +886,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -921,7 +921,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -961,7 +961,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -995,7 +995,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1026,7 +1026,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -1060,7 +1060,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1074,7 +1074,7 @@ class DmmMeasureMath(BaseTSPCmd): - ``.percent``: The ``dmm.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = DmmMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -1107,7 +1107,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1142,7 +1142,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1174,7 +1174,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -1209,7 +1209,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1251,7 +1251,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -1286,7 +1286,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1325,7 +1325,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1359,7 +1359,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1399,7 +1399,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1434,7 +1434,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1449,7 +1449,7 @@ class DmmMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``dmm.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DmmMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = DmmMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -1483,7 +1483,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1518,7 +1518,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1550,7 +1550,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1585,7 +1585,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1613,7 +1613,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1674,7 +1674,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1709,7 +1709,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1741,7 +1741,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1776,7 +1776,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1808,7 +1808,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -1843,7 +1843,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1875,7 +1875,7 @@ def window(self) -> str: f"print({self._cmd_syntax}.window)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @window.setter @@ -1910,7 +1910,7 @@ def window(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.window = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1948,7 +1948,7 @@ def actual(self) -> str: f"print({self._cmd_syntax}.actual)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.actual`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.actual`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1980,7 +1980,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2015,7 +2015,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2055,7 +2055,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2090,7 +2090,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2133,7 +2133,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -2169,7 +2169,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2201,7 +2201,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -2236,7 +2236,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2268,7 +2268,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -2303,7 +2303,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2348,7 +2348,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -2385,7 +2385,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2417,7 +2417,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2452,7 +2452,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2485,7 +2485,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -2521,7 +2521,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2553,7 +2553,7 @@ def width(self) -> str: f"print({self._cmd_syntax}.width)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @width.setter @@ -2588,7 +2588,7 @@ def width(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.width = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2630,7 +2630,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2666,7 +2666,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2698,7 +2698,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -2733,7 +2733,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2748,7 +2748,7 @@ class DmmMeasureAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.measure.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmMeasureAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._pulse = DmmMeasureAnalogtriggerPulse(device, f"{self._cmd_syntax}.pulse") @@ -2793,7 +2793,7 @@ def highfreqreject(self) -> str: f"print({self._cmd_syntax}.highfreqreject)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highfreqreject.setter @@ -2828,7 +2828,7 @@ def highfreqreject(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highfreqreject = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2860,7 +2860,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -2895,7 +2895,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2965,7 +2965,7 @@ class DmmMeasure(BaseTSPCmd): - ``.unit``: The ``dmm.measure.unit`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmMeasureAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") self._autozero = DmmMeasureAutozero(device, f"{self._cmd_syntax}.autozero") @@ -3023,7 +3023,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -3057,7 +3057,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3089,7 +3089,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -3124,7 +3124,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3156,7 +3156,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -3191,7 +3191,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3241,7 +3241,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -3275,7 +3275,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3306,7 +3306,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -3340,7 +3340,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3372,7 +3372,7 @@ def detectorbandwidth(self) -> str: f"print({self._cmd_syntax}.detectorbandwidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @detectorbandwidth.setter @@ -3407,7 +3407,7 @@ def detectorbandwidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.detectorbandwidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3439,7 +3439,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -3474,7 +3474,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3506,7 +3506,7 @@ def drycircuit(self) -> str: f"print({self._cmd_syntax}.drycircuit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @drycircuit.setter @@ -3541,7 +3541,7 @@ def drycircuit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.drycircuit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3584,7 +3584,7 @@ def fourrtd(self) -> str: f"print({self._cmd_syntax}.fourrtd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fourrtd.setter @@ -3618,7 +3618,7 @@ def fourrtd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fourrtd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3648,7 +3648,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -3681,7 +3681,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3712,7 +3712,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -3746,7 +3746,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3790,7 +3790,7 @@ def linesync(self) -> str: f"print({self._cmd_syntax}.linesync)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linesync.setter @@ -3824,7 +3824,7 @@ def linesync(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linesync = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3867,7 +3867,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -3901,7 +3901,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3941,7 +3941,7 @@ def opendetector(self) -> str: f"print({self._cmd_syntax}.opendetector)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @opendetector.setter @@ -3975,7 +3975,7 @@ def opendetector(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.opendetector = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4005,7 +4005,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -4038,7 +4038,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4080,7 +4080,7 @@ def rtdalpha(self) -> str: f"print({self._cmd_syntax}.rtdalpha)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdalpha.setter @@ -4114,7 +4114,7 @@ def rtdalpha(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdalpha = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4145,7 +4145,7 @@ def rtdbeta(self) -> str: f"print({self._cmd_syntax}.rtdbeta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdbeta.setter @@ -4179,7 +4179,7 @@ def rtdbeta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdbeta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4210,7 +4210,7 @@ def rtddelta(self) -> str: f"print({self._cmd_syntax}.rtddelta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtddelta.setter @@ -4244,7 +4244,7 @@ def rtddelta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtddelta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4275,7 +4275,7 @@ def rtdzero(self) -> str: f"print({self._cmd_syntax}.rtdzero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdzero.setter @@ -4309,7 +4309,7 @@ def rtdzero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdzero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4350,7 +4350,7 @@ def thermistor(self) -> str: f"print({self._cmd_syntax}.thermistor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermistor.setter @@ -4384,7 +4384,7 @@ def thermistor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermistor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4415,7 +4415,7 @@ def thermocouple(self) -> str: f"print({self._cmd_syntax}.thermocouple)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermocouple.setter @@ -4449,7 +4449,7 @@ def thermocouple(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermocouple = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4480,7 +4480,7 @@ def threertd(self) -> str: f"print({self._cmd_syntax}.threertd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threertd.setter @@ -4514,7 +4514,7 @@ def threertd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threertd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4556,7 +4556,7 @@ def transducer(self) -> str: f"print({self._cmd_syntax}.transducer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @transducer.setter @@ -4590,7 +4590,7 @@ def transducer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.transducer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4621,7 +4621,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -4655,7 +4655,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4687,7 +4687,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4716,7 +4716,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4757,7 +4757,7 @@ def acfilter(self) -> str: f"print({self._cmd_syntax}.acfilter)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.acfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.acfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @acfilter.setter @@ -4791,7 +4791,7 @@ def acfilter(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.acfilter = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.acfilter`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.acfilter`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4824,7 +4824,7 @@ def acfrequency(self) -> str: f"print({self._cmd_syntax}.acfrequency)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.acfrequency`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.acfrequency`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @acfrequency.setter @@ -4860,7 +4860,7 @@ def acfrequency(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.acfrequency = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.acfrequency`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.acfrequency`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4891,7 +4891,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -4925,7 +4925,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4968,7 +4968,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -5004,7 +5004,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5036,7 +5036,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -5071,7 +5071,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5103,7 +5103,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -5138,7 +5138,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5183,7 +5183,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -5220,7 +5220,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5252,7 +5252,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -5287,7 +5287,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5320,7 +5320,7 @@ def polarity(self) -> str: f"print({self._cmd_syntax}.polarity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @polarity.setter @@ -5356,7 +5356,7 @@ def polarity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.polarity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.polarity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5388,7 +5388,7 @@ def width(self) -> str: f"print({self._cmd_syntax}.width)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @width.setter @@ -5423,7 +5423,7 @@ def width(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.width = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.width`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5465,7 +5465,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -5501,7 +5501,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5533,7 +5533,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -5568,7 +5568,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5583,7 +5583,7 @@ class DmmDigitizeAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.digitize.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmDigitizeAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._pulse = DmmDigitizeAnalogtriggerPulse(device, f"{self._cmd_syntax}.pulse") @@ -5628,7 +5628,7 @@ def highfreqreject(self) -> str: f"print({self._cmd_syntax}.highfreqreject)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @highfreqreject.setter @@ -5663,7 +5663,7 @@ def highfreqreject(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.highfreqreject = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.highfreqreject`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5696,7 +5696,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -5732,7 +5732,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5770,7 +5770,7 @@ class DmmDigitize(BaseTSPCmd): - ``.inputimpedance``: The ``dmm.digitize.inputimpedance`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmDigitizeAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") self._coupling = DmmDigitizeCoupling(device, f"{self._cmd_syntax}.coupling") @@ -5827,7 +5827,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -5861,7 +5861,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5892,7 +5892,7 @@ def dbreference(self) -> str: f"print({self._cmd_syntax}.dbreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbreference.setter @@ -5926,7 +5926,7 @@ def dbreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -5957,7 +5957,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -5991,7 +5991,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6015,7 +6015,7 @@ class Dmm(BaseTSPCmd): ON = "dmm.ON" """str: Set the threshold range automatically.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dmm") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dmm") -> None: super().__init__(device, cmd_syntax) self._digitize = DmmDigitize(device, f"{self._cmd_syntax}.digitize") self._measure = DmmMeasure(device, f"{self._cmd_syntax}.measure") @@ -6104,7 +6104,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -6141,5 +6141,5 @@ def reset(self, scope: str) -> None: f"{self._cmd_syntax}.reset({scope})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/fan.py b/src/tm_devices/commands/gen_d6b496_dmm/fan.py index ad1cbc3c..b1faaf00 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/fan.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/fan.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Fan(BaseTSPCmd): @@ -30,7 +30,7 @@ class Fan(BaseTSPCmd): - ``.level``: The ``fan.level`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "fan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "fan") -> None: super().__init__(device, cmd_syntax) @property @@ -60,7 +60,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -93,5 +93,5 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py index a517da6d..528bf716 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -76,7 +76,9 @@ class Localnode(BaseTSPCmd): ENABLE = "localnode.ENABLE" """str: Generate prompts in response to command messages.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -107,7 +109,7 @@ def access(self) -> str: f"print({self._cmd_syntax}.access)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @access.setter @@ -141,7 +143,7 @@ def access(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.access = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -169,7 +171,7 @@ def internaltemp(self) -> str: f"print({self._cmd_syntax}.internaltemp)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.internaltemp`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -198,7 +200,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -226,7 +228,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -275,7 +277,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -306,7 +308,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -340,7 +342,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -372,7 +374,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -407,7 +409,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -435,7 +437,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -467,7 +469,7 @@ def showevents(self) -> str: f"print({self._cmd_syntax}.showevents)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showevents.setter @@ -502,7 +504,7 @@ def showevents(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showevents = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -530,7 +532,7 @@ def version(self) -> str: f"print({self._cmd_syntax}.version)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.version`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.version`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettime(self) -> None: @@ -552,7 +554,7 @@ def gettime(self) -> None: f"{self._cmd_syntax}.gettime()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settime( @@ -602,5 +604,5 @@ def settime( f"{self._cmd_syntax}.settime({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py index a4f7747b..484ceba3 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py @@ -114,7 +114,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -162,7 +162,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -199,7 +199,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -236,7 +236,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -276,7 +276,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -311,7 +311,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -349,7 +349,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -375,7 +375,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -400,7 +400,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -449,7 +449,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -487,7 +487,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -519,7 +519,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -544,7 +544,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -572,7 +572,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -623,7 +623,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -662,7 +662,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -697,7 +697,7 @@ def generate(self) -> str: f"print({self._cmd_syntax}.generate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @generate.setter @@ -735,7 +735,7 @@ def generate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.generate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -766,7 +766,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -801,7 +801,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -839,7 +839,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -874,7 +874,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -912,7 +912,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -933,7 +933,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.timer[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = TriggerTimerItemStart(device, f"{self._cmd_syntax}.start") @@ -969,7 +969,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1007,7 +1007,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1041,7 +1041,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1078,7 +1078,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1112,7 +1112,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -1149,7 +1149,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1183,7 +1183,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1220,7 +1220,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1262,7 +1262,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1287,7 +1287,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -1315,7 +1315,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1393,7 +1393,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getblocklist(self) -> str: @@ -1418,7 +1418,7 @@ def getblocklist(self) -> str: f"print({self._cmd_syntax}.getblocklist())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbranchcount(self, block_number: int) -> str: @@ -1446,7 +1446,7 @@ def getbranchcount(self, block_number: int) -> str: f"print({self._cmd_syntax}.getbranchcount({block_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate(self) -> None: @@ -1468,7 +1468,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_duration_loop( @@ -1510,7 +1510,7 @@ def load_duration_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_empty(self) -> None: @@ -1532,7 +1532,7 @@ def load_empty(self) -> None: f"{self._cmd_syntax}.load()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -1595,7 +1595,7 @@ def load_keithley2001( f"{trig_delay})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_logic_trigger( @@ -1650,7 +1650,7 @@ def load_logic_trigger( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_loop_until_event( @@ -1704,7 +1704,7 @@ def load_loop_until_event( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_simple_loop( @@ -1747,7 +1747,7 @@ def load_simple_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pause(self) -> None: @@ -1769,7 +1769,7 @@ def pause(self) -> None: f"{self._cmd_syntax}.pause()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resume(self) -> None: @@ -1791,7 +1791,7 @@ def resume(self) -> None: f"{self._cmd_syntax}.resume()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_always(self, block_number: int, branch_to_block: str) -> None: @@ -1820,7 +1820,7 @@ def setblock_trigger_block_branch_always(self, block_number: int, branch_to_bloc f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_counter( @@ -1854,7 +1854,7 @@ def setblock_trigger_block_branch_counter( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_delta( @@ -1904,7 +1904,7 @@ def setblock_trigger_block_branch_delta( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_constant( @@ -1959,7 +1959,7 @@ def setblock_trigger_block_branch_limit_constant( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_dynamic( @@ -2011,7 +2011,7 @@ def setblock_trigger_block_branch_limit_dynamic( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: str) -> None: @@ -2041,7 +2041,7 @@ def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once_excluded( @@ -2074,7 +2074,7 @@ def setblock_trigger_block_branch_once_excluded( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_on_event( @@ -2107,7 +2107,7 @@ def setblock_trigger_block_branch_on_event( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_buffer_clear( @@ -2145,7 +2145,7 @@ def setblock_trigger_block_buffer_clear( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> None: @@ -2171,7 +2171,7 @@ def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_CONSTANT, {time})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> None: @@ -2198,7 +2198,7 @@ def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> Non f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_DYNAMIC, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_digital_io( @@ -2234,7 +2234,7 @@ def setblock_trigger_block_digital_io( f"{bit_mask})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_log_event( @@ -2267,7 +2267,7 @@ def setblock_trigger_block_log_event( f'"{message}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_measure_digitize( @@ -2308,7 +2308,7 @@ def setblock_trigger_block_measure_digitize( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_nop(self, block_number: int) -> None: @@ -2334,7 +2334,7 @@ def setblock_trigger_block_nop(self, block_number: int) -> None: f"{self._cmd_syntax}.setblock({block_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: @@ -2361,7 +2361,7 @@ def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_NOTIFY, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: str) -> None: @@ -2389,7 +2389,7 @@ def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: f"{counter})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_wait( @@ -2445,7 +2445,7 @@ def setblock_trigger_block_wait( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2494,7 +2494,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2529,7 +2529,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -2567,7 +2567,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2602,7 +2602,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -2640,7 +2640,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2674,7 +2674,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -2711,7 +2711,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2746,7 +2746,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -2784,7 +2784,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -2810,7 +2810,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -2835,7 +2835,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -2860,7 +2860,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2909,7 +2909,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -2947,7 +2947,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2978,7 +2978,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3003,7 +3003,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3031,7 +3031,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3073,7 +3073,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3108,7 +3108,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3140,7 +3140,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3175,7 +3175,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3197,7 +3197,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3239,7 +3239,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3273,7 +3273,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3301,7 +3301,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3324,7 +3324,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3352,7 +3352,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3383,7 +3383,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3433,7 +3433,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3471,7 +3471,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3510,7 +3510,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -3552,7 +3552,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3587,7 +3587,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3625,7 +3625,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3650,7 +3650,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -3675,7 +3675,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3724,7 +3724,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3762,7 +3762,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3793,7 +3793,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3822,7 +3822,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3850,7 +3850,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3869,7 +3869,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.blender[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._stimulus: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.stimulus[{{key}}]", @@ -3909,7 +3909,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -3946,7 +3946,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3978,7 +3978,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4032,7 +4032,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -4057,7 +4057,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4085,7 +4085,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4382,7 +4382,7 @@ class Trigger(BaseTSPCmd): WAIT_OR = "trigger.WAIT_OR" """str: At least one of the events must occur before the trigger model continues.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -4457,7 +4457,7 @@ def continuous(self) -> str: f"print({self._cmd_syntax}.continuous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @continuous.setter @@ -4490,7 +4490,7 @@ def continuous(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.continuous = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4715,7 +4715,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4743,5 +4743,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py index 7a14baf6..44bbe778 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): @@ -85,7 +85,7 @@ def format( f"{self._cmd_syntax}.format({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.format()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -396,7 +396,7 @@ class Buffer(BaseTSPCmd): UNIT_X = "buffer.UNIT_X" """str: Set units of measure to buffer.UNIT_X.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "buffer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "buffer") -> None: super().__init__(device, cmd_syntax) self._write = BufferWrite(device, f"{self._cmd_syntax}.write") @@ -473,7 +473,7 @@ def channelmath( f"{self._cmd_syntax}.channelmath({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.channelmath()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.channelmath()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clearstats(self, buffer_var: Optional[str] = None) -> None: @@ -501,7 +501,7 @@ def clearstats(self, buffer_var: Optional[str] = None) -> None: f"{self._cmd_syntax}.clearstats({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearstats()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, buffer_name: str) -> None: @@ -526,7 +526,7 @@ def delete(self, buffer_name: str) -> None: f"{self._cmd_syntax}.delete({buffer_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def make(self, buffer_size: int, style: Optional[str] = None) -> str: @@ -564,7 +564,7 @@ def make(self, buffer_size: int, style: Optional[str] = None) -> str: f"print({self._cmd_syntax}.make({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.make()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save( @@ -613,7 +613,7 @@ def save( f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def saveappend( @@ -664,5 +664,5 @@ def saveappend( f"{self._cmd_syntax}.saveappend({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.saveappend()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py index bc710b67..cfd56d47 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods @@ -75,7 +75,9 @@ class Buffervar(BaseTSPCmd): - ``.units``: The ``bufferVar.units`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._channels: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.channels[{{key}}]", @@ -174,7 +176,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @capacity.setter @@ -211,7 +213,7 @@ def capacity(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.capacity = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -297,7 +299,7 @@ def endindex(self) -> str: f"print({self._cmd_syntax}.endindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -414,7 +416,7 @@ def fillmode(self) -> str: f"print({self._cmd_syntax}.fillmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fillmode.setter @@ -452,7 +454,7 @@ def fillmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fillmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fillmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -541,7 +543,7 @@ def logstate(self) -> str: f"print({self._cmd_syntax}.logstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logstate.setter @@ -579,7 +581,7 @@ def logstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -611,7 +613,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -722,7 +724,7 @@ def startindex(self) -> str: f"print({self._cmd_syntax}.startindex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startindex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -833,7 +835,7 @@ def units(self) -> str: f"print({self._cmd_syntax}.units)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -859,5 +861,5 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py index 5a51f9b0..35e24e6b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelMultiple(BaseTSPCmd): @@ -66,7 +66,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -91,7 +91,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -114,7 +114,7 @@ class Channel(BaseTSPCmd): - ``.setlabel()``: The ``channel.setlabel()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "channel") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "channel") -> None: super().__init__(device, cmd_syntax) self._multiple = ChannelMultiple(device, f"{self._cmd_syntax}.multiple") @@ -151,7 +151,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getclose(self, channel_list: Optional[str] = None) -> str: @@ -185,7 +185,7 @@ def getclose(self, channel_list: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getclose({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcount(self, channel_list: Optional[str] = None) -> str: @@ -219,7 +219,7 @@ def getcount(self, channel_list: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getcount({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getdelay(self, channel_list: str) -> str: @@ -248,7 +248,7 @@ def getdelay(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getdelay("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getdmm(self, channel_list: str, setting: str) -> str: @@ -277,7 +277,7 @@ def getdmm(self, channel_list: str, setting: str) -> str: f'print({self._cmd_syntax}.getdmm("{channel_list}", {setting}))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getdmm()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getdmm()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlabel(self, channel_number: str) -> str: @@ -305,7 +305,7 @@ def getlabel(self, channel_number: str) -> str: f'print({self._cmd_syntax}.getlabel("{channel_number}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstate(self, channel_list: Optional[str] = None) -> str: @@ -340,7 +340,7 @@ def getstate(self, channel_list: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getstate({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettype(self, channel_list: str) -> str: @@ -368,7 +368,7 @@ def gettype(self, channel_list: str) -> str: f'print({self._cmd_syntax}.gettype("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -395,7 +395,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setdelay(self, channel_list: str, delay: float) -> None: @@ -421,7 +421,7 @@ def setdelay(self, channel_list: str, delay: float) -> None: f'{self._cmd_syntax}.setdelay("{channel_list}", {delay})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setdmm(self, channel_list: str, setting: str, value: str) -> None: @@ -449,7 +449,7 @@ def setdmm(self, channel_list: str, setting: str, value: str) -> None: f'{self._cmd_syntax}.setdmm("{channel_list}", {setting}, {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setdmm()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setdmm()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setlabel(self, channel_number: str, labelname: str) -> None: @@ -476,5 +476,5 @@ def setlabel(self, channel_number: str, labelname: str) -> None: f'{self._cmd_syntax}.setlabel("{channel_number}", "{labelname}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/display.py b/src/tm_devices/commands/gen_d83qe0_dmm/display.py index f8c1f090..22b6aa5a 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/display.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): @@ -95,7 +95,7 @@ def number( f"print({self._cmd_syntax}.number({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.number()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def option(self, dialog_title: str, button_title1: str, button_title2: str) -> str: @@ -130,7 +130,7 @@ def option(self, dialog_title: str, button_title1: str, button_title2: str) -> s f'"{button_title2}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.option()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_set: str, dialog_title: str) -> str: @@ -161,7 +161,7 @@ def prompt(self, button_set: str, dialog_title: str) -> str: f'print({self._cmd_syntax}.prompt({button_set}, "{dialog_title}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: @@ -200,7 +200,7 @@ def string(self, dialog_title: str, text_format: Optional[str] = None) -> str: f"print({self._cmd_syntax}.string({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.string()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +350,7 @@ class Display(BaseTSPCmd): STATE_LCD_OFF = "display.STATE_LCD_OFF" """str: Set display to off.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._input = DisplayInput(device, f"{self._cmd_syntax}.input") @@ -383,7 +383,7 @@ def activebuffer(self) -> str: f"print({self._cmd_syntax}.activebuffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @activebuffer.setter @@ -418,7 +418,7 @@ def activebuffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.activebuffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.activebuffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -460,7 +460,7 @@ def lightstate(self) -> str: f"print({self._cmd_syntax}.lightstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lightstate.setter @@ -493,7 +493,7 @@ def lightstate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lightstate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lightstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -529,7 +529,7 @@ def readingformat(self) -> str: f"print({self._cmd_syntax}.readingformat)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @readingformat.setter @@ -568,7 +568,7 @@ def readingformat(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.readingformat = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.readingformat`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -600,7 +600,7 @@ def watchchannels(self) -> str: f"print({self._cmd_syntax}.watchchannels)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @watchchannels.setter @@ -635,7 +635,7 @@ def watchchannels(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.watchchannels = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.watchchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def changescreen(self, screen_name: str) -> None: @@ -660,7 +660,7 @@ def changescreen(self, screen_name: str) -> None: f"{self._cmd_syntax}.changescreen({screen_name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.changescreen()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -682,7 +682,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, prompt_id: str) -> None: @@ -708,7 +708,7 @@ def delete(self, prompt_id: str) -> None: f"{self._cmd_syntax}.delete({prompt_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_id: str, prompt_text: str) -> str: @@ -738,7 +738,7 @@ def prompt(self, button_id: str, prompt_text: str) -> str: f'print({self._cmd_syntax}.prompt({button_id}, "{prompt_text}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext( @@ -776,7 +776,7 @@ def settext( f"{self._cmd_syntax}.settext({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitevent(self, timeout: Optional[float] = None) -> str: @@ -807,5 +807,5 @@ def waitevent(self, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.waitevent({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitevent()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py index b476f8af..7edb2d0b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py @@ -92,7 +92,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): @@ -132,7 +132,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -167,7 +167,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -198,7 +198,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -232,7 +232,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -269,7 +269,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -298,7 +298,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -340,7 +340,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -375,7 +375,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -406,7 +406,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -440,7 +440,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -472,7 +472,7 @@ def method(self) -> str: f"print({self._cmd_syntax}.method)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @method.setter @@ -507,7 +507,7 @@ def method(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.method = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -547,7 +547,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -582,7 +582,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -622,7 +622,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -656,7 +656,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -687,7 +687,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -721,7 +721,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -735,7 +735,7 @@ class DmmMeasureMath(BaseTSPCmd): - ``.percent``: The ``dmm.measure.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = DmmMeasureMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -768,7 +768,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -803,7 +803,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -835,7 +835,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -870,7 +870,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -912,7 +912,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -947,7 +947,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -986,7 +986,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1020,7 +1020,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1060,7 +1060,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -1095,7 +1095,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1110,7 +1110,7 @@ class DmmMeasureLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.low``: The ``dmm.measure.limit[r].low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DmmMeasureLimitItemHigh(device, f"{self._cmd_syntax}.high") self._low = DmmMeasureLimitItemLow(device, f"{self._cmd_syntax}.low") @@ -1144,7 +1144,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -1179,7 +1179,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1211,7 +1211,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1246,7 +1246,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1274,7 +1274,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1335,7 +1335,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1370,7 +1370,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1402,7 +1402,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1437,7 +1437,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1469,7 +1469,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -1504,7 +1504,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1536,7 +1536,7 @@ def window(self) -> str: f"print({self._cmd_syntax}.window)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @window.setter @@ -1571,7 +1571,7 @@ def window(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.window = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1611,7 +1611,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -1646,7 +1646,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1686,7 +1686,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1721,7 +1721,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1764,7 +1764,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -1800,7 +1800,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1832,7 +1832,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -1867,7 +1867,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1899,7 +1899,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -1934,7 +1934,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1976,7 +1976,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -2012,7 +2012,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2044,7 +2044,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -2079,7 +2079,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2092,7 +2092,7 @@ class DmmMeasureAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.measure.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmMeasureAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._window = DmmMeasureAnalogtriggerWindow(device, f"{self._cmd_syntax}.window") @@ -2136,7 +2136,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -2171,7 +2171,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2230,7 +2230,7 @@ class DmmMeasure(BaseTSPCmd): - ``.unit``: The ``dmm.measure.unit`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmMeasureAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") self._autozero = DmmMeasureAutozero(device, f"{self._cmd_syntax}.autozero") @@ -2286,7 +2286,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -2320,7 +2320,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2352,7 +2352,7 @@ def autodelay(self) -> str: f"print({self._cmd_syntax}.autodelay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autodelay.setter @@ -2387,7 +2387,7 @@ def autodelay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autodelay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autodelay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2419,7 +2419,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -2454,7 +2454,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2503,7 +2503,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -2537,7 +2537,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2568,7 +2568,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -2602,7 +2602,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2634,7 +2634,7 @@ def detectorbandwidth(self) -> str: f"print({self._cmd_syntax}.detectorbandwidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @detectorbandwidth.setter @@ -2669,7 +2669,7 @@ def detectorbandwidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.detectorbandwidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2701,7 +2701,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -2736,7 +2736,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2779,7 +2779,7 @@ def fourrtd(self) -> str: f"print({self._cmd_syntax}.fourrtd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fourrtd.setter @@ -2813,7 +2813,7 @@ def fourrtd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fourrtd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2843,7 +2843,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2876,7 +2876,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2907,7 +2907,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -2941,7 +2941,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2985,7 +2985,7 @@ def linesync(self) -> str: f"print({self._cmd_syntax}.linesync)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linesync.setter @@ -3019,7 +3019,7 @@ def linesync(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linesync = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3062,7 +3062,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -3096,7 +3096,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3136,7 +3136,7 @@ def opendetector(self) -> str: f"print({self._cmd_syntax}.opendetector)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @opendetector.setter @@ -3170,7 +3170,7 @@ def opendetector(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.opendetector = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3200,7 +3200,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -3233,7 +3233,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3264,7 +3264,7 @@ def refjunction(self) -> str: f"print({self._cmd_syntax}.refjunction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @refjunction.setter @@ -3298,7 +3298,7 @@ def refjunction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.refjunction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3340,7 +3340,7 @@ def rtdalpha(self) -> str: f"print({self._cmd_syntax}.rtdalpha)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdalpha.setter @@ -3374,7 +3374,7 @@ def rtdalpha(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdalpha = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3405,7 +3405,7 @@ def rtdbeta(self) -> str: f"print({self._cmd_syntax}.rtdbeta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdbeta.setter @@ -3439,7 +3439,7 @@ def rtdbeta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdbeta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3470,7 +3470,7 @@ def rtddelta(self) -> str: f"print({self._cmd_syntax}.rtddelta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtddelta.setter @@ -3504,7 +3504,7 @@ def rtddelta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtddelta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3535,7 +3535,7 @@ def rtdzero(self) -> str: f"print({self._cmd_syntax}.rtdzero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdzero.setter @@ -3569,7 +3569,7 @@ def rtdzero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdzero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3610,7 +3610,7 @@ def thermistor(self) -> str: f"print({self._cmd_syntax}.thermistor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermistor.setter @@ -3644,7 +3644,7 @@ def thermistor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermistor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermistor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3675,7 +3675,7 @@ def thermocouple(self) -> str: f"print({self._cmd_syntax}.thermocouple)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermocouple.setter @@ -3709,7 +3709,7 @@ def thermocouple(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermocouple = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3740,7 +3740,7 @@ def threertd(self) -> str: f"print({self._cmd_syntax}.threertd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threertd.setter @@ -3774,7 +3774,7 @@ def threertd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threertd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3815,7 +3815,7 @@ def transducer(self) -> str: f"print({self._cmd_syntax}.transducer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @transducer.setter @@ -3849,7 +3849,7 @@ def transducer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.transducer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3879,7 +3879,7 @@ def twortd(self) -> str: f"print({self._cmd_syntax}.twortd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @twortd.setter @@ -3912,7 +3912,7 @@ def twortd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.twortd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.twortd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3943,7 +3943,7 @@ def unit(self) -> str: f"print({self._cmd_syntax}.unit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @unit.setter @@ -3977,7 +3977,7 @@ def unit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.unit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, buffer_name: Optional[str] = None) -> str: @@ -4009,7 +4009,7 @@ def read(self, buffer_name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setattribute(self, function: str, setting: str, value: str) -> None: @@ -4038,7 +4038,7 @@ def setattribute(self, function: str, setting: str, value: str) -> None: f"{self._cmd_syntax}.setattribute({function}, {setting}, {value})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setattribute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4081,7 +4081,7 @@ def direction(self) -> str: f"print({self._cmd_syntax}.direction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @direction.setter @@ -4117,7 +4117,7 @@ def direction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.direction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.direction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4149,7 +4149,7 @@ def levelhigh(self) -> str: f"print({self._cmd_syntax}.levelhigh)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levelhigh.setter @@ -4184,7 +4184,7 @@ def levelhigh(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levelhigh = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levelhigh`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4216,7 +4216,7 @@ def levellow(self) -> str: f"print({self._cmd_syntax}.levellow)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @levellow.setter @@ -4251,7 +4251,7 @@ def levellow(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.levellow = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.levellow`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4293,7 +4293,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -4329,7 +4329,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4361,7 +4361,7 @@ def slope(self) -> str: f"print({self._cmd_syntax}.slope)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slope.setter @@ -4396,7 +4396,7 @@ def slope(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slope = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slope`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4409,7 +4409,7 @@ class DmmDigitizeAnalogtrigger(BaseTSPCmd): - ``.window``: The ``dmm.digitize.analogtrigger.window`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = DmmDigitizeAnalogtriggerEdge(device, f"{self._cmd_syntax}.edge") self._window = DmmDigitizeAnalogtriggerWindow(device, f"{self._cmd_syntax}.window") @@ -4454,7 +4454,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -4490,7 +4490,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4515,7 +4515,7 @@ class DmmDigitize(BaseTSPCmd): - ``.inputimpedance``: The ``dmm.digitize.inputimpedance`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analogtrigger = DmmDigitizeAnalogtrigger(device, f"{self._cmd_syntax}.analogtrigger") @@ -4558,7 +4558,7 @@ def dbmreference(self) -> str: f"print({self._cmd_syntax}.dbmreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbmreference.setter @@ -4592,7 +4592,7 @@ def dbmreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbmreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbmreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4623,7 +4623,7 @@ def dbreference(self) -> str: f"print({self._cmd_syntax}.dbreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbreference.setter @@ -4657,7 +4657,7 @@ def dbreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4688,7 +4688,7 @@ def inputimpedance(self) -> str: f"print({self._cmd_syntax}.inputimpedance)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputimpedance.setter @@ -4722,7 +4722,7 @@ def inputimpedance(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputimpedance = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputimpedance`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4736,7 +4736,7 @@ class Dmm(BaseTSPCmd): - ``.terminals``: The ``dmm.terminals`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dmm") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dmm") -> None: super().__init__(device, cmd_syntax) self._digitize = DmmDigitize(device, f"{self._cmd_syntax}.digitize") self._measure = DmmMeasure(device, f"{self._cmd_syntax}.measure") @@ -4824,7 +4824,7 @@ def terminals(self) -> str: f"print({self._cmd_syntax}.terminals)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.terminals`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, scope: str) -> None: @@ -4851,5 +4851,5 @@ def reset(self, scope: str) -> None: f"{self._cmd_syntax}.reset({scope})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py index 0cec8184..db40bc1f 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanStart(BaseTSPCmd): @@ -78,7 +78,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -112,7 +112,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -151,7 +151,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -185,7 +185,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -224,7 +224,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -258,7 +258,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -270,7 +270,7 @@ class ScanMonitorLimit(BaseTSPCmd): - ``.low``: The ``scan.monitor.limit.low`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = ScanMonitorLimitHigh(device, f"{self._cmd_syntax}.high") self._low = ScanMonitorLimitLow(device, f"{self._cmd_syntax}.low") @@ -303,7 +303,7 @@ class ScanMonitor(BaseTSPCmd): - ``.mode``: The ``scan.monitor.mode`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = ScanMonitorLimit(device, f"{self._cmd_syntax}.limit") @@ -336,7 +336,7 @@ def channel(self) -> str: f"print({self._cmd_syntax}.channel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @channel.setter @@ -371,7 +371,7 @@ def channel(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.channel = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.channel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -412,7 +412,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -446,7 +446,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -486,7 +486,7 @@ def interval(self) -> str: f"print({self._cmd_syntax}.interval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @interval.setter @@ -520,7 +520,7 @@ def interval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.interval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.interval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -551,7 +551,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -585,7 +585,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -624,7 +624,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -658,7 +658,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -685,7 +685,7 @@ class Scan(BaseTSPCmd): - ``.stepcount``: The ``scan.stepcount`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scan") -> None: super().__init__(device, cmd_syntax) self._channel = ScanChannel(device, f"{self._cmd_syntax}.channel") self._measure = ScanMeasure(device, f"{self._cmd_syntax}.measure") @@ -719,7 +719,7 @@ def buffer(self) -> str: f"print({self._cmd_syntax}.buffer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @buffer.setter @@ -752,7 +752,7 @@ def buffer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.buffer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.buffer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -783,7 +783,7 @@ def bypass(self) -> str: f"print({self._cmd_syntax}.bypass)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bypass.setter @@ -817,7 +817,7 @@ def bypass(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bypass = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -866,7 +866,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -899,7 +899,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -941,7 +941,7 @@ def restart(self) -> str: f"print({self._cmd_syntax}.restart)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @restart.setter @@ -975,7 +975,7 @@ def restart(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.restart = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.restart`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1005,7 +1005,7 @@ def scancount(self) -> str: f"print({self._cmd_syntax}.scancount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @scancount.setter @@ -1038,7 +1038,7 @@ def scancount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.scancount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1069,7 +1069,7 @@ def scaninterval(self) -> str: f"print({self._cmd_syntax}.scaninterval)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @scaninterval.setter @@ -1103,7 +1103,7 @@ def scaninterval(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.scaninterval = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scaninterval`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1140,7 +1140,7 @@ def stepcount(self) -> str: f"print({self._cmd_syntax}.stepcount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def add( @@ -1180,7 +1180,7 @@ def add( f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def addsinglestep( @@ -1220,7 +1220,7 @@ def addsinglestep( f"{self._cmd_syntax}.addsinglestep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.addsinglestep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.addsinglestep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create( @@ -1263,7 +1263,7 @@ def create( f"{self._cmd_syntax}.create({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def export(self, filename: str, when: str, what: Optional[str] = None) -> None: @@ -1299,7 +1299,7 @@ def export(self, filename: str, when: str, what: Optional[str] = None) -> None: f"{self._cmd_syntax}.export({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.export()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.export()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def learnlimits(self, window: str, iterations: Optional[str] = None) -> None: @@ -1334,7 +1334,7 @@ def learnlimits(self, window: str, iterations: Optional[str] = None) -> None: f"{self._cmd_syntax}.learnlimits({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.learnlimits()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.learnlimits()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def list(self) -> str: @@ -1359,5 +1359,5 @@ def list(self) -> str: f"print({self._cmd_syntax}.list())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py index 4c4fc7bb..b39ca8f8 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemVoltage(BaseTSPCmd): @@ -60,7 +60,7 @@ def endchannel(self) -> str: f"print({self._cmd_syntax}.endchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.endchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -89,7 +89,7 @@ def startchannel(self) -> str: f"print({self._cmd_syntax}.startchannel)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.startchannel`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -103,7 +103,7 @@ class SlotItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.voltage``: The ``slot[1].voltage`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "slot[1]") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "slot[1]") -> None: super().__init__(device, cmd_syntax) self._voltage = SlotItemVoltage(device, f"{self._cmd_syntax}.voltage") @@ -132,7 +132,7 @@ def idn(self) -> str: f"print({self._cmd_syntax}.idn)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -161,7 +161,7 @@ def maxvoltage(self) -> str: f"print({self._cmd_syntax}.maxvoltage)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -191,7 +191,7 @@ def pseudocard(self) -> str: f"print({self._cmd_syntax}.pseudocard)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pseudocard.setter @@ -224,7 +224,7 @@ def pseudocard(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pseudocard = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py index 35d56293..1dbeca1d 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -161,7 +161,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -198,7 +198,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -235,7 +235,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -275,7 +275,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -310,7 +310,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -348,7 +348,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -374,7 +374,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -399,7 +399,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -448,7 +448,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -486,7 +486,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -518,7 +518,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -543,7 +543,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -571,7 +571,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -622,7 +622,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -661,7 +661,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -696,7 +696,7 @@ def generate(self) -> str: f"print({self._cmd_syntax}.generate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @generate.setter @@ -734,7 +734,7 @@ def generate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.generate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.generate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -765,7 +765,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -800,7 +800,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -838,7 +838,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -873,7 +873,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -911,7 +911,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -932,7 +932,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.timer[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = TriggerTimerItemStart(device, f"{self._cmd_syntax}.start") @@ -968,7 +968,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1006,7 +1006,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1040,7 +1040,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -1077,7 +1077,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1111,7 +1111,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -1148,7 +1148,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1182,7 +1182,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1219,7 +1219,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1261,7 +1261,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1286,7 +1286,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -1314,7 +1314,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1391,7 +1391,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getblocklist(self) -> str: @@ -1416,7 +1416,7 @@ def getblocklist(self) -> str: f"print({self._cmd_syntax}.getblocklist())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getblocklist()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbranchcount(self, block_number: int) -> str: @@ -1444,7 +1444,7 @@ def getbranchcount(self, block_number: int) -> str: f"print({self._cmd_syntax}.getbranchcount({block_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbranchcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate(self) -> None: @@ -1466,7 +1466,7 @@ def initiate(self) -> None: f"{self._cmd_syntax}.initiate()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_duration_loop( @@ -1508,7 +1508,7 @@ def load_duration_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_empty(self) -> None: @@ -1530,7 +1530,7 @@ def load_empty(self) -> None: f"{self._cmd_syntax}.load()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_logic_trigger( @@ -1585,7 +1585,7 @@ def load_logic_trigger( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_loop_until_event( @@ -1639,7 +1639,7 @@ def load_loop_until_event( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load_simple_loop( @@ -1682,7 +1682,7 @@ def load_simple_loop( f"{self._cmd_syntax}.load({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pause(self) -> None: @@ -1704,7 +1704,7 @@ def pause(self) -> None: f"{self._cmd_syntax}.pause()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resume(self) -> None: @@ -1726,7 +1726,7 @@ def resume(self) -> None: f"{self._cmd_syntax}.resume()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_always(self, block_number: int, branch_to_block: str) -> None: @@ -1755,7 +1755,7 @@ def setblock_trigger_block_branch_always(self, block_number: int, branch_to_bloc f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_counter( @@ -1789,7 +1789,7 @@ def setblock_trigger_block_branch_counter( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_delta( @@ -1839,7 +1839,7 @@ def setblock_trigger_block_branch_delta( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_constant( @@ -1894,7 +1894,7 @@ def setblock_trigger_block_branch_limit_constant( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_limit_dynamic( @@ -1946,7 +1946,7 @@ def setblock_trigger_block_branch_limit_dynamic( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: str) -> None: @@ -1976,7 +1976,7 @@ def setblock_trigger_block_branch_once(self, block_number: int, branch_to_block: f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_once_excluded( @@ -2009,7 +2009,7 @@ def setblock_trigger_block_branch_once_excluded( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_branch_on_event( @@ -2042,7 +2042,7 @@ def setblock_trigger_block_branch_on_event( f"{branch_to_block})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_buffer_clear( @@ -2080,7 +2080,7 @@ def setblock_trigger_block_buffer_clear( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> None: @@ -2106,7 +2106,7 @@ def setblock_trigger_block_delay_constant(self, block_number: int, time: str) -> f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_CONSTANT, {time})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> None: @@ -2133,7 +2133,7 @@ def setblock_trigger_block_delay_dynamic(self, block_number: int, n: int) -> Non f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_DELAY_DYNAMIC, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_digital_io( @@ -2169,7 +2169,7 @@ def setblock_trigger_block_digital_io( f"{bit_mask})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_log_event( @@ -2202,7 +2202,7 @@ def setblock_trigger_block_log_event( f'"{message}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_measure_digitize( @@ -2243,7 +2243,7 @@ def setblock_trigger_block_measure_digitize( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_nop(self, block_number: int) -> None: @@ -2269,7 +2269,7 @@ def setblock_trigger_block_nop(self, block_number: int) -> None: f"{self._cmd_syntax}.setblock({block_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: @@ -2296,7 +2296,7 @@ def setblock_trigger_block_notify(self, block_number: int, n: str) -> None: f"{self._cmd_syntax}.setblock({block_number}, trigger.BLOCK_NOTIFY, {n})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: str) -> None: @@ -2324,7 +2324,7 @@ def setblock_trigger_block_reset_branch_count(self, block_number: int, counter: f"{counter})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setblock_trigger_block_wait( @@ -2380,7 +2380,7 @@ def setblock_trigger_block_wait( f"{self._cmd_syntax}.setblock({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setblock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2429,7 +2429,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2464,7 +2464,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -2502,7 +2502,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2537,7 +2537,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -2575,7 +2575,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2609,7 +2609,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -2646,7 +2646,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2681,7 +2681,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -2719,7 +2719,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -2745,7 +2745,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -2770,7 +2770,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -2795,7 +2795,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2844,7 +2844,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -2882,7 +2882,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2913,7 +2913,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -2938,7 +2938,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -2966,7 +2966,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3008,7 +3008,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3043,7 +3043,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3075,7 +3075,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3110,7 +3110,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3132,7 +3132,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3174,7 +3174,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3208,7 +3208,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3236,7 +3236,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3259,7 +3259,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3287,7 +3287,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3318,7 +3318,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3368,7 +3368,7 @@ def logic(self) -> str: f"print({self._cmd_syntax}.logic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @logic.setter @@ -3406,7 +3406,7 @@ def logic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.logic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.logic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3445,7 +3445,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -3487,7 +3487,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3522,7 +3522,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -3560,7 +3560,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -3585,7 +3585,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -3610,7 +3610,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3659,7 +3659,7 @@ def edge(self) -> str: f"print({self._cmd_syntax}.edge)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @edge.setter @@ -3697,7 +3697,7 @@ def edge(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.edge = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3728,7 +3728,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -3757,7 +3757,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -3785,7 +3785,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3804,7 +3804,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.wait()``: The ``trigger.blender[N].wait()`` function. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._stimulus: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.stimulus[{{key}}]", @@ -3844,7 +3844,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -3881,7 +3881,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3913,7 +3913,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3967,7 +3967,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -3992,7 +3992,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4020,7 +4020,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4317,7 +4317,7 @@ class Trigger(BaseTSPCmd): WAIT_OR = "trigger.WAIT_OR" """str: At least one of the events must occur before the trigger model continues.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -4392,7 +4392,7 @@ def continuous(self) -> str: f"print({self._cmd_syntax}.continuous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @continuous.setter @@ -4425,7 +4425,7 @@ def continuous(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.continuous = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.continuous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -4649,7 +4649,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -4677,5 +4677,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py index a9255bcc..1b9e5427 100644 --- a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py +++ b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -74,7 +74,9 @@ class Localnode(BaseTSPCmd): ENABLE = "localnode.ENABLE" """str: Generate prompts in response to command messages.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -105,7 +107,7 @@ def access(self) -> str: f"print({self._cmd_syntax}.access)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @access.setter @@ -139,7 +141,7 @@ def access(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.access = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.access`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -168,7 +170,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -196,7 +198,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -245,7 +247,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -276,7 +278,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -310,7 +312,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -342,7 +344,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -377,7 +379,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -405,7 +407,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -437,7 +439,7 @@ def showevents(self) -> str: f"print({self._cmd_syntax}.showevents)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showevents.setter @@ -472,7 +474,7 @@ def showevents(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showevents = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showevents`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -500,7 +502,7 @@ def version(self) -> str: f"print({self._cmd_syntax}.version)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.version`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.version`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettime(self) -> None: @@ -522,7 +524,7 @@ def gettime(self) -> None: f"{self._cmd_syntax}.gettime()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settime( @@ -572,5 +574,5 @@ def settime( f"{self._cmd_syntax}.settime({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py index 04b04da4..d9ad08f3 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): @@ -30,7 +30,7 @@ class Beeper(BaseTSPCmd): - ``.beep()``: The ``beeper.beep()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "beeper") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "beeper") -> None: super().__init__(device, cmd_syntax) def beep(self, duration: float, frequency: float) -> None: @@ -56,5 +56,5 @@ def beep(self, duration: float, frequency: float) -> None: f"{self._cmd_syntax}.beep({duration}, {frequency})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py index dce24042..c262cba9 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): @@ -53,7 +53,7 @@ class Eventlog(BaseTSPCmd): SEV_WARN = "eventlog.SEV_WARN" """str: Returns the number of warnings in the event log.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "eventlog") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "eventlog") -> None: super().__init__(device, cmd_syntax) def clear(self) -> None: @@ -75,7 +75,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcount(self, event_type: Optional[str] = None) -> str: @@ -105,7 +105,7 @@ def getcount(self, event_type: Optional[str] = None) -> str: f"print({self._cmd_syntax}.getcount({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def next(self, event_type: Optional[str] = None) -> str: @@ -135,7 +135,7 @@ def next(self, event_type: Optional[str] = None) -> str: f"print({self._cmd_syntax}.next({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def post(self, message: str, event_type: Optional[str] = None) -> None: @@ -170,7 +170,7 @@ def post(self, message: str, event_type: Optional[str] = None) -> None: f"{self._cmd_syntax}.post({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.post()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.post()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, filename: str, event_type: Optional[str] = None) -> None: @@ -205,5 +205,5 @@ def save(self, filename: str, event_type: Optional[str] = None) -> None: f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py index e8b4793d..30aa99be 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class File(BaseTSPCmd): @@ -67,7 +67,7 @@ class File(BaseTSPCmd): READ_NUMBER = "file.READ_NUMBER" """str: Return a string that represents the number found; returns an event string if no number was found; returns nil if the current file position is at the end of file.""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "file") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "file") -> None: super().__init__(device, cmd_syntax) def close(self, file_number: int) -> None: @@ -92,7 +92,7 @@ def close(self, file_number: int) -> None: f"{self._cmd_syntax}.close({file_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def flush(self, file_number: int) -> None: @@ -117,7 +117,7 @@ def flush(self, file_number: int) -> None: f"{self._cmd_syntax}.flush({file_number})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.flush()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.flush()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def mkdir(self, path: str) -> None: @@ -142,7 +142,7 @@ def mkdir(self, path: str) -> None: f'{self._cmd_syntax}.mkdir("{path}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.mkdir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.mkdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, file_name: str, access_type: str) -> str: @@ -172,7 +172,7 @@ def open(self, file_name: str, access_type: str) -> str: f'print({self._cmd_syntax}.open("{file_name}", {access_type}))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, file_number: int, read_action: str) -> str: @@ -201,7 +201,7 @@ def read(self, file_number: int, read_action: str) -> str: f"print({self._cmd_syntax}.read({file_number}, {read_action}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def usbdriveexists(self) -> str: @@ -226,7 +226,7 @@ def usbdriveexists(self) -> str: f"print({self._cmd_syntax}.usbdriveexists())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.usbdriveexists()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.usbdriveexists()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, file_number: int, string: str) -> None: @@ -252,5 +252,5 @@ def write(self, file_number: int, string: str) -> None: f'{self._cmd_syntax}.write({file_number}, "{string}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py index 96843316..8098d86a 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): @@ -64,7 +64,7 @@ class Format(BaseTSPCmd): """str: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be double-precision IEEE Std 754 binary format.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "format") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "format") -> None: super().__init__(device, cmd_syntax) @property @@ -102,7 +102,7 @@ def asciiprecision(self) -> str: f"print({self._cmd_syntax}.asciiprecision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @asciiprecision.setter @@ -143,7 +143,7 @@ def asciiprecision(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.asciiprecision = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -180,7 +180,7 @@ def byteorder(self) -> str: f"print({self._cmd_syntax}.byteorder)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @byteorder.setter @@ -220,7 +220,7 @@ def byteorder(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.byteorder = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -251,7 +251,7 @@ def data(self) -> str: f"print({self._cmd_syntax}.data)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @data.setter @@ -285,5 +285,5 @@ def data(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.data = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py index d36be4ca..bed99145 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Lan(BaseTSPCmd): @@ -62,7 +62,7 @@ class Lan(BaseTSPCmd): PROTOCOL_UDP = "lan.PROTOCOL_UDP" """str: Sets the LAN protocol to use for sending trigger messages to UDP.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "lan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "lan") -> None: super().__init__(device, cmd_syntax) @property @@ -95,7 +95,7 @@ def lxidomain(self) -> str: f"print({self._cmd_syntax}.lxidomain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lxidomain.setter @@ -131,7 +131,7 @@ def lxidomain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lxidomain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -159,7 +159,7 @@ def macaddress(self) -> str: f"print({self._cmd_syntax}.macaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def ipconfig( @@ -210,5 +210,5 @@ def ipconfig( f"print({self._cmd_syntax}.ipconfig({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.ipconfig()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.ipconfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py index a41bac1d..d817ebe6 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): @@ -37,7 +37,9 @@ class Scriptvar(BaseTSPCmd): - ``.source``: The ``scriptVar.source`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scriptVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scriptVar" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -69,7 +71,7 @@ def source(self) -> str: f"print({self._cmd_syntax}.source)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -94,7 +96,7 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, filename: Optional[str] = None) -> None: @@ -125,5 +127,5 @@ def save(self, filename: Optional[str] = None) -> None: f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py index 94396e22..c1a8bb2f 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Timer(BaseTSPCmd): @@ -32,7 +32,7 @@ class Timer(BaseTSPCmd): - ``.gettime()``: The ``timer.gettime()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "timer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "timer") -> None: super().__init__(device, cmd_syntax) def cleartime(self) -> None: @@ -54,7 +54,7 @@ def cleartime(self) -> None: f"{self._cmd_syntax}.cleartime()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.cleartime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.cleartime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettime(self) -> str: @@ -79,5 +79,5 @@ def gettime(self) -> str: f"print({self._cmd_syntax}.gettime())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py index 03684052..dac52ff6 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -74,7 +74,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -110,7 +110,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -145,7 +145,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @state.setter @@ -183,7 +183,7 @@ def state(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.state = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -208,7 +208,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -254,7 +254,7 @@ class Digio(BaseTSPCmd): STATE_LOW = "digio.STATE_LOW" """str: Set the line low.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._line: Dict[int, DigioLineItem] = DefaultDictPassKeyToFactory( lambda x: DigioLineItem(device, f"{self._cmd_syntax}.line[{x}]") @@ -296,7 +296,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -321,5 +321,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py index 6efe1281..e64e7ce0 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -37,7 +37,7 @@ class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.setglobal()``: The ``node[N].setglobal()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "node[N]") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "node[N]") -> None: super().__init__(device, cmd_syntax) def execute(self, script_code: str) -> None: @@ -62,7 +62,7 @@ def execute(self, script_code: str) -> None: f'{self._cmd_syntax}.execute("{script_code}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getglobal(self, name: str) -> str: @@ -90,7 +90,7 @@ def getglobal(self, name: str) -> str: f'print({self._cmd_syntax}.getglobal("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setglobal(self, name: str, value: str) -> None: @@ -116,5 +116,5 @@ def setglobal(self, name: str, value: str) -> None: f'{self._cmd_syntax}.setglobal("{name}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py index a3ad628c..8d5a2036 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusStandard(BaseTSPCmd): @@ -75,7 +75,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -110,7 +110,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -139,7 +139,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -179,7 +179,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -211,7 +211,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -246,7 +246,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -274,7 +274,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmap(self, bit_number: int) -> str: @@ -303,7 +303,7 @@ def getmap(self, bit_number: int) -> str: f"print({self._cmd_syntax}.getmap({bit_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = None) -> None: @@ -341,7 +341,7 @@ def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = N f"{self._cmd_syntax}.setmap({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -381,7 +381,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -413,7 +413,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -448,7 +448,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -476,7 +476,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmap(self, bit_number: int) -> str: @@ -505,7 +505,7 @@ def getmap(self, bit_number: int) -> str: f"print({self._cmd_syntax}.getmap({bit_number}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = None) -> None: @@ -543,7 +543,7 @@ def setmap(self, bit_number: int, set_event: int, clear_event: Optional[int] = N f"{self._cmd_syntax}.setmap({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmap()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -560,7 +560,7 @@ class Status(BaseTSPCmd): - ``.standard``: The ``status.standard`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") self._questionable = StatusQuestionable(device, f"{self._cmd_syntax}.questionable") @@ -591,7 +591,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -648,7 +648,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -682,7 +682,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -714,7 +714,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def preset(self) -> None: @@ -736,5 +736,5 @@ def preset(self) -> None: f"{self._cmd_syntax}.preset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py index d012ed65..98ee61e5 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -78,7 +78,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @state.setter @@ -115,7 +115,7 @@ def state(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.state = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -141,7 +141,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -180,7 +180,7 @@ class Tsplink(BaseTSPCmd): STATE_LOW = "tsplink.STATE_LOW" """str: Low state of the synchronization line.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._line: Dict[int, TsplinkLineItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkLineItem(device, f"{self._cmd_syntax}.line[{x}]") @@ -213,7 +213,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -246,7 +246,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -287,7 +287,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -317,7 +317,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -350,7 +350,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -378,7 +378,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initialize(self, expected_nodes: Optional[int] = None) -> str: @@ -407,7 +407,7 @@ def initialize(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.initialize({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.initialize()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -432,7 +432,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -458,5 +458,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py index db81c925..22f7da14 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): @@ -75,7 +75,7 @@ def abortonconnect(self) -> str: f"print({self._cmd_syntax}.abortonconnect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @abortonconnect.setter @@ -109,7 +109,7 @@ def abortonconnect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.abortonconnect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def abort(self, connection_id: str) -> None: @@ -135,7 +135,7 @@ def abort(self, connection_id: str) -> None: f"{self._cmd_syntax}.abort({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rbtablecopy( @@ -183,7 +183,7 @@ def rbtablecopy( f"print({self._cmd_syntax}.rbtablecopy({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def runscript(self, connection_id: str, name: str, script: str) -> None: @@ -210,7 +210,7 @@ def runscript(self, connection_id: str, name: str, script: str) -> None: f'{self._cmd_syntax}.runscript({connection_id}, "{name}", "{script}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -232,7 +232,7 @@ class Tspnet(BaseTSPCmd): - ``.write()``: The ``tspnet.write()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tspnet") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tspnet") -> None: super().__init__(device, cmd_syntax) self._tsp = TspnetTsp(device, f"{self._cmd_syntax}.tsp") @@ -264,7 +264,7 @@ def timeout(self) -> str: f"print({self._cmd_syntax}.timeout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timeout.setter @@ -298,7 +298,7 @@ def timeout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timeout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -335,7 +335,7 @@ def clear(self, connection_id: str) -> None: f"{self._cmd_syntax}.clear({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect( @@ -379,7 +379,7 @@ def connect( f"print({self._cmd_syntax}.connect({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self, connection_id: str) -> None: @@ -404,7 +404,7 @@ def disconnect(self, connection_id: str) -> None: f"{self._cmd_syntax}.disconnect({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def execute( @@ -445,7 +445,7 @@ def execute( f"print({self._cmd_syntax}.execute({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def idn(self, connection_id: str) -> str: @@ -473,7 +473,7 @@ def idn(self, connection_id: str) -> str: f"print({self._cmd_syntax}.idn({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, connection_id: str, format_string: Optional[str] = None) -> str: @@ -510,7 +510,7 @@ def read(self, connection_id: str, format_string: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readavailable(self, connection_id: str) -> str: @@ -538,7 +538,7 @@ def readavailable(self, connection_id: str) -> str: f"print({self._cmd_syntax}.readavailable({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -560,7 +560,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def termination(self, connection_id: str, term_sequence: Optional[str] = None) -> str: @@ -597,7 +597,7 @@ def termination(self, connection_id: str, term_sequence: Optional[str] = None) - f"print({self._cmd_syntax}.termination({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, connection_id: str, input_string: str) -> None: @@ -623,5 +623,5 @@ def write(self, connection_id: str, input_string: str) -> None: f'{self._cmd_syntax}.write({connection_id}, "{input_string}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py index 6075e473..7be80ee9 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py index 47342314..8e157d87 100644 --- a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py +++ b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -41,5 +41,5 @@ class Smu(BaseTSPCmd): ON = "smu.ON" """str: Only allow the output to be turned on if the interlock is engaged.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "smu") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "smu") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py index 5aecad53..d4d724fc 100644 --- a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py +++ b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): @@ -32,7 +32,7 @@ class Script(BaseTSPCmd): - ``.load()``: The ``script.load()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "script") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "script") -> None: super().__init__(device, cmd_syntax) def delete(self, script_name: str) -> None: @@ -57,7 +57,7 @@ def delete(self, script_name: str) -> None: f'{self._cmd_syntax}.delete("{script_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load(self, file: str) -> str: @@ -87,5 +87,5 @@ def load(self, file: str) -> str: f'print({self._cmd_syntax}.load("{file}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py index 81d993d2..d7efaa47 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): @@ -187,7 +187,7 @@ class AcquireSequence(SCPICmdRead): - ``.numsequence``: The ``ACQuire:SEQuence:NUMSEQuence`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._current = AcquireSequenceCurrent(device, f"{self._cmd_syntax}:CURrent") self._mode = AcquireSequenceMode(device, f"{self._cmd_syntax}:MODe") @@ -454,7 +454,7 @@ class AcquireFastacq(SCPICmdRead): - ``.state``: The ``ACQuire:FASTAcq:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._palette = AcquireFastacqPalette(device, f"{self._cmd_syntax}:PALEtte") self._state = AcquireFastacqState(device, f"{self._cmd_syntax}:STATE") @@ -619,7 +619,7 @@ class AcquireFastaverage(SCPICmdRead): - ``.stopafter``: The ``ACQuire:FASTAVerage:STOPafter`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = AcquireFastaverageLimit(device, f"{self._cmd_syntax}:LIMit") self._state = AcquireFastaverageState(device, f"{self._cmd_syntax}:STATE") @@ -743,7 +743,7 @@ class Acquire(SCPICmdRead): - ``.stopafter``: The ``ACQuire:STOPAfter`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._fastaverage = AcquireFastaverage(device, f"{self._cmd_syntax}:FASTAVerage") self._fastacq = AcquireFastacq(device, f"{self._cmd_syntax}:FASTAcq") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py index ce818262..7d82ebe2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): @@ -116,7 +116,7 @@ class ActoneventTriggerActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -194,7 +194,7 @@ class ActoneventTriggerActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -275,7 +275,7 @@ class ActoneventTriggerActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -357,7 +357,7 @@ class ActoneventTriggerActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:TRIGger:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventTriggerActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -411,7 +411,7 @@ class ActoneventTriggerAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:TRIGger:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventTriggerActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventTriggerActionSavewaveform( @@ -495,7 +495,7 @@ class ActoneventTrigger(SCPICmdRead): - ``.action``: The ``ACTONEVent:TRIGger:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventTriggerAction(device, f"{self._cmd_syntax}:ACTION") @@ -559,7 +559,7 @@ class ActoneventSearchActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -635,7 +635,7 @@ class ActoneventSearchActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -715,7 +715,7 @@ class ActoneventSearchActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -793,7 +793,7 @@ class ActoneventSearchActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:SEARCH:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventSearchActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -844,7 +844,7 @@ class ActoneventSearchAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:SEARCH:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventSearchActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventSearchActionSavewaveform( @@ -928,7 +928,7 @@ class ActoneventSearch(SCPICmdRead): - ``.action``: The ``ACTONEVent:SEARCH:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventSearchAction(device, f"{self._cmd_syntax}:ACTION") @@ -994,7 +994,7 @@ class ActoneventMeasurementActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1075,7 +1075,7 @@ class ActoneventMeasurementActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -1160,7 +1160,7 @@ class ActoneventMeasurementActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSavewaveformState( device, f"{self._cmd_syntax}:STATE" @@ -1245,7 +1245,7 @@ class ActoneventMeasurementActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MEASUrement:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMeasurementActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -1297,7 +1297,7 @@ class ActoneventMeasurementAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MEASUrement:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMeasurementActionSaveimage( device, f"{self._cmd_syntax}:SAVEIMAGe" @@ -1385,7 +1385,7 @@ class ActoneventMeasurement(SCPICmdRead): - ``.action``: The ``ACTONEVent:MEASUrement:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMeasurementAction(device, f"{self._cmd_syntax}:ACTION") @@ -1449,7 +1449,7 @@ class ActoneventMaskpassActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1527,7 +1527,7 @@ class ActoneventMaskpassActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -1607,7 +1607,7 @@ class ActoneventMaskpassActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -1687,7 +1687,7 @@ class ActoneventMaskpassActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKPass:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskpassActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -1738,7 +1738,7 @@ class ActoneventMaskpassAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKPass:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskpassActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskpassActionSavewaveform( @@ -1822,7 +1822,7 @@ class ActoneventMaskpass(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKPass:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskpassAction(device, f"{self._cmd_syntax}:ACTION") @@ -1886,7 +1886,7 @@ class ActoneventMaskhitActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -1963,7 +1963,7 @@ class ActoneventMaskhitActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -2043,7 +2043,7 @@ class ActoneventMaskhitActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -2122,7 +2122,7 @@ class ActoneventMaskhitActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKHit:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskhitActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -2173,7 +2173,7 @@ class ActoneventMaskhitAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKHit:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskhitActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskhitActionSavewaveform( @@ -2257,7 +2257,7 @@ class ActoneventMaskhit(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKHit:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskhitAction(device, f"{self._cmd_syntax}:ACTION") @@ -2320,7 +2320,7 @@ class ActoneventMaskfailActionStopacq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:STOPACQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionStopacqState(device, f"{self._cmd_syntax}:STATE") @@ -2397,7 +2397,7 @@ class ActoneventMaskfailActionSrq(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SRQ:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSrqState(device, f"{self._cmd_syntax}:STATE") @@ -2477,7 +2477,7 @@ class ActoneventMaskfailActionSavewaveform(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SAVEWAVEform:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSavewaveformState(device, f"{self._cmd_syntax}:STATE") @@ -2556,7 +2556,7 @@ class ActoneventMaskfailActionSaveimage(SCPICmdRead): - ``.state``: The ``ACTONEVent:MASKFail:ACTION:SAVEIMAGe:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ActoneventMaskfailActionSaveimageState(device, f"{self._cmd_syntax}:STATE") @@ -2607,7 +2607,7 @@ class ActoneventMaskfailAction(SCPICmdRead): - ``.stopacq``: The ``ACTONEVent:MASKFail:ACTION:STOPACQ`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._saveimage = ActoneventMaskfailActionSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGe") self._savewaveform = ActoneventMaskfailActionSavewaveform( @@ -2691,7 +2691,7 @@ class ActoneventMaskfail(SCPICmdRead): - ``.action``: The ``ACTONEVent:MASKFail:ACTION`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._action = ActoneventMaskfailAction(device, f"{self._cmd_syntax}:ACTION") @@ -2810,7 +2810,9 @@ class Actonevent(SCPICmdRead): - ``.trigger``: The ``ACTONEVent:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACTONEVent") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACTONEVent" + ) -> None: super().__init__(device, cmd_syntax) self._enable = ActoneventEnable(device, f"{self._cmd_syntax}:ENable") self._limitcount = ActoneventLimitcount(device, f"{self._cmd_syntax}:LIMITCount") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py index f8672deb..be358233 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationActivate(SCPICmdWrite): @@ -57,7 +57,7 @@ class Application(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "APPLication" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "APPLication" ) -> None: super().__init__(device, cmd_syntax) self._activate = ApplicationActivate(device, f"{self._cmd_syntax}:ACTivate") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py index 4a933129..d6715a85 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): @@ -87,7 +87,7 @@ class Auxout(SCPICmdRead): - ``.source``: The ``AUXout:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXout") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXout") -> None: super().__init__(device, cmd_syntax) self._edge = AuxoutEdge(device, f"{self._cmd_syntax}:EDGE") self._source = AuxoutSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py index 06fc1889..e2fbf85b 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py @@ -653,7 +653,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): @@ -812,7 +812,7 @@ class BusBItemUsbSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:USB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemUsbSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemUsbSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -1035,7 +1035,7 @@ class BusBItemUsb(SCPICmdRead): - ``.threshold``: The ``BUS:B:USB:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemUsbBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataminusthreshold = BusBItemUsbDataminusthreshold( @@ -1363,7 +1363,7 @@ class BusBItemSvidData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1497,7 +1497,7 @@ class BusBItemSvidClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1631,7 +1631,7 @@ class BusBItemSvidAlert(SCPICmdRead): - ``.threshold``: The ``BUS:B:SVID:ALERT:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSvidAlertSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSvidAlertThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1711,7 +1711,7 @@ class BusBItemSvid(SCPICmdRead): - ``.data``: The ``BUS:B:SVID:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alert = BusBItemSvidAlert(device, f"{self._cmd_syntax}:ALERT") self._clock = BusBItemSvidClock(device, f"{self._cmd_syntax}:CLOCk") @@ -1846,7 +1846,7 @@ class BusBItemSpmiSdata(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPMI:SDATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpmiSdataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpmiSdataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1987,7 +1987,7 @@ class BusBItemSpmiSclk(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPMI:SCLk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpmiSclkSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpmiSclkThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -2070,7 +2070,7 @@ class BusBItemSpmi(SCPICmdRead): - ``.sdata``: The ``BUS:B:SPMI:SDATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sclk = BusBItemSpmiSclk(device, f"{self._cmd_syntax}:SCLk") self._sdata = BusBItemSpmiSdata(device, f"{self._cmd_syntax}:SDATa") @@ -2213,7 +2213,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:SELect:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2349,7 +2349,7 @@ class BusBItemSpiNumber(SCPICmdRead): - ``.inputs``: The ``BUS:B:SPI:NUMBer:INputs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputs = BusBItemSpiNumberInputs(device, f"{self._cmd_syntax}:INputs") @@ -2478,7 +2478,7 @@ class BusBItemSpiMosiData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MOSi:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMosiDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2529,7 +2529,7 @@ class BusBItemSpiMosi(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MOSi:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMosiData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMosiInput(device, f"{self._cmd_syntax}:INPut") @@ -2705,7 +2705,7 @@ class BusBItemSpiMisoData(SCPICmdRead): - ``.polarity``: The ``BUS:B:SPI:MISo:DATa:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiMisoDataPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2756,7 +2756,7 @@ class BusBItemSpiMiso(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:MISo:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemSpiMisoData(device, f"{self._cmd_syntax}:DATa") self._input = BusBItemSpiMisoInput(device, f"{self._cmd_syntax}:INPut") @@ -3014,7 +3014,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -3238,7 +3238,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPI:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3385,7 +3385,7 @@ class BusBItemSpi(SCPICmdRead): - ``.select``: The ``BUS:B:SPI:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._clock = BusBItemSpiClock(device, f"{self._cmd_syntax}:CLOCk") @@ -3706,7 +3706,7 @@ class BusBItemSpacewireSync(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:SPACEWIRe:SYNC:VALUe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = BusBItemSpacewireSyncCount(device, f"{self._cmd_syntax}:COUnt") self._pattern = BusBItemSpacewireSyncPattern(device, f"{self._cmd_syntax}:PATTern") @@ -3869,7 +3869,7 @@ class BusBItemSpacewireStrobe(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPACEWIRe:STRobe:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpacewireStrobeSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpacewireStrobeThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3980,7 +3980,7 @@ class BusBItemSpacewireDecode(SCPICmdRead): - ``.type``: The ``BUS:B:SPACEWIRe:DECode:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = BusBItemSpacewireDecodeType(device, f"{self._cmd_syntax}:TYPe") @@ -4085,7 +4085,7 @@ class BusBItemSpacewireData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SPACEWIRe:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSpacewireDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSpacewireDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4197,7 +4197,7 @@ class BusBItemSpacewire(SCPICmdRead): - ``.sync``: The ``BUS:B:SPACEWIRe:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemSpacewireBitrate(device, f"{self._cmd_syntax}:BITRate") self._data = BusBItemSpacewireData(device, f"{self._cmd_syntax}:DATa") @@ -4361,7 +4361,7 @@ class BusBItemSmbusPec(SCPICmdRead): - ``.value``: The ``BUS:B:SMBUS:PEC:VALUe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemSmbusPecValue(device, f"{self._cmd_syntax}:VALUe") @@ -4465,7 +4465,7 @@ class BusBItemSmbusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SMBUS:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSmbusDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSmbusDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4601,7 +4601,7 @@ class BusBItemSmbusClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:SMBUS:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSmbusClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSmbusClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -4682,7 +4682,7 @@ class BusBItemSmbus(SCPICmdRead): - ``.pec``: The ``BUS:B:SMBUS:PEC`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemSmbusClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemSmbusData(device, f"{self._cmd_syntax}:DATA") @@ -5030,7 +5030,7 @@ class BusBItemSent(SCPICmdRead): - ``.ticktolerance``: The ``BUS:B:SENT:TICKTOLerance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanwidth = BusBItemSentChanwidth(device, f"{self._cmd_syntax}:CHANWidth") self._nibblecount = BusBItemSentNibblecount(device, f"{self._cmd_syntax}:NIBBLECount") @@ -5442,7 +5442,7 @@ class BusBItemSdlcData(SCPICmdRead): - ``.threshold``: The ``BUS:B:SDLC:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemSdlcDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemSdlcDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -5549,7 +5549,7 @@ class BusBItemSdlc(SCPICmdRead): - ``.modulo``: The ``BUS:B:SDLC:MODulo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemSdlcBitrate(device, f"{self._cmd_syntax}:BITRate") self._data = BusBItemSdlcData(device, f"{self._cmd_syntax}:DATA") @@ -5752,7 +5752,7 @@ class BusBItemS8b10b(SCPICmdRead): - ``.threshold``: The ``BUS:B:S8B10B:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS8b10bBitrate(device, f"{self._cmd_syntax}:BITRate") self._source = BusBItemS8b10bSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5900,7 +5900,7 @@ class BusBItemRs232cSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:RS232C:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemRs232cSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -6128,7 +6128,7 @@ class BusBItemRs232cBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:RS232C:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemRs232cBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -6209,7 +6209,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemRs232cBitorder(device, f"{self._cmd_syntax}:BITORDer") self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -6789,7 +6789,7 @@ class BusBItemPsifiveComm(SCPICmdRead): - ``.direction``: The ``BUS:B:PSIFIVe:COMM:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemPsifiveCommDirection(device, f"{self._cmd_syntax}:DIRection") @@ -6902,7 +6902,7 @@ class BusBItemPsifive(SCPICmdRead): - ``.threshold``: The ``BUS:B:PSIFIVe:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitperiod = BusBItemPsifiveBitperiod(device, f"{self._cmd_syntax}:BITPERiod") self._bitrate = BusBItemPsifiveBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -7361,7 +7361,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.isclocked``: The ``BUS:B:PARallel:CLOCk:ISCLOCKED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._isclocked = BusBItemParallelClockIsclocked(device, f"{self._cmd_syntax}:ISCLOCKED") @@ -7490,7 +7490,7 @@ class BusBItemParallelClocksource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:PARallel:CLOCKSOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelClocksourceThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -7579,7 +7579,7 @@ class BusBItemParallelBitsourceItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCP - ``.threshold``: The ``BUS:B:PARallel:BITSOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemParallelBitsourceItemThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -7656,7 +7656,7 @@ class BusBItemParallelAllthresholds(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``BUS:B:PARallel:ALLTHResholds:APPly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = BusBItemParallelAllthresholdsApply(device, f"{self._cmd_syntax}:APPly") @@ -7701,7 +7701,7 @@ class BusBItemParallel(SCPICmdRead): - ``.clock``: The ``BUS:B:PARallel:CLOCk`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allthresholds = BusBItemParallelAllthresholds( device, f"{self._cmd_syntax}:ALLTHResholds" @@ -7925,7 +7925,7 @@ class BusBItemOnewireData(SCPICmdRead): - ``.threshold``: The ``BUS:B:ONEWIRe:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemOnewireDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemOnewireDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -8005,7 +8005,7 @@ class BusBItemOnewire(SCPICmdRead): - ``.mode``: The ``BUS:B:ONEWIRe:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemOnewireData(device, f"{self._cmd_syntax}:DATA") self._mode = BusBItemOnewireMode(device, f"{self._cmd_syntax}:MODe") @@ -8126,7 +8126,7 @@ class BusBItemNrzSpmi(SCPICmdRead): - ``.version``: The ``BUS:B:NRZ:SPMI:VERsion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._version = BusBItemNrzSpmiVersion(device, f"{self._cmd_syntax}:VERsion") @@ -8285,7 +8285,7 @@ class BusBItemNrz(SCPICmdRead): - ``.threshold``: The ``BUS:B:NRZ:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemNrzBitorder(device, f"{self._cmd_syntax}:BITOrder") self._bitrate = BusBItemNrzBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -8496,7 +8496,7 @@ class BusBItemNfcTransition(SCPICmdRead): - ``.zero``: The ``BUS:B:NFC:TRANsition:ZERo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zero = BusBItemNfcTransitionZero(device, f"{self._cmd_syntax}:ZERo") @@ -8623,7 +8623,7 @@ class BusBItemNfcStart(SCPICmdRead): - ``.index``: The ``BUS:B:NFC:START:INDex`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._index = BusBItemNfcStartIndex(device, f"{self._cmd_syntax}:INDex") @@ -8721,7 +8721,7 @@ class BusBItemNfcRsp(SCPICmdRead): - ``.threshold``: The ``BUS:B:NFC:RSP:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemNfcRspThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -8795,7 +8795,7 @@ class BusBItemNfcResponse(SCPICmdRead): - ``.polarity``: The ``BUS:B:NFC:RESPonse:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemNfcResponsePolarity(device, f"{self._cmd_syntax}:POLarity") @@ -8870,7 +8870,7 @@ class BusBItemNfcCommand(SCPICmdRead): - ``.polarity``: The ``BUS:B:NFC:COMMand:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemNfcCommandPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -8945,7 +8945,7 @@ class BusBItemNfcCmdTransition(SCPICmdRead): - ``.zero``: The ``BUS:B:NFC:CMD:TRANsition:ZERo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zero = BusBItemNfcCmdTransitionZero(device, f"{self._cmd_syntax}:ZERo") @@ -9050,7 +9050,7 @@ class BusBItemNfcCmd(SCPICmdRead): - ``.transition``: The ``BUS:B:NFC:CMD:TRANsition`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._startindex = BusBItemNfcCmdStartindex(device, f"{self._cmd_syntax}:STARTINDex") self._threshold = BusBItemNfcCmdThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -9204,7 +9204,7 @@ class BusBItemNfc(SCPICmdRead): - ``.transition``: The ``BUS:B:NFC:TRANsition`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._applydemod = BusBItemNfcApplydemod(device, f"{self._cmd_syntax}:APPLYDEMod") self._bitrate = BusBItemNfcBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -9585,7 +9585,7 @@ class BusBItemMil1553bResponsetime(SCPICmdRead): - ``.minimum``: The ``BUS:B:MIL1553B:RESPonsetime:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = BusBItemMil1553bResponsetimeMaximum(device, f"{self._cmd_syntax}:MAXimum") self._minimum = BusBItemMil1553bResponsetimeMinimum(device, f"{self._cmd_syntax}:MINimum") @@ -9723,7 +9723,7 @@ class BusBItemMil1553b(SCPICmdRead): - ``.threshold``: The ``BUS:B:MIL1553B:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusBItemMil1553bLowthreshold( device, f"{self._cmd_syntax}:LOWTHRESHold" @@ -9936,7 +9936,7 @@ class BusBItemMdioData(SCPICmdRead): - ``.threshold``: The ``BUS:B:MDIO:DATA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMdioDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemMdioDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -10070,7 +10070,7 @@ class BusBItemMdioClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:MDIO:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMdioClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemMdioClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -10149,7 +10149,7 @@ class BusBItemMdio(SCPICmdRead): - ``.data``: The ``BUS:B:MDIO:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMdioClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemMdioData(device, f"{self._cmd_syntax}:DATA") @@ -10282,7 +10282,7 @@ class BusBItemManchesterWord(SCPICmdRead): - ``.count``: The ``BUS:B:MANChester:WORD:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = BusBItemManchesterWordCount(device, f"{self._cmd_syntax}:COUNt") @@ -10355,7 +10355,7 @@ class BusBItemManchesterTrailer(SCPICmdRead): - ``.length``: The ``BUS:B:MANChester:TRAiler:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = BusBItemManchesterTrailerLength(device, f"{self._cmd_syntax}:LENGth") @@ -10432,7 +10432,7 @@ class BusBItemManchesterTranstion(SCPICmdRead): - ``.zero``: The ``BUS:B:MANChester:TRANstion:ZERo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zero = BusBItemManchesterTranstionZero(device, f"{self._cmd_syntax}:ZERo") @@ -10561,7 +10561,7 @@ class BusBItemManchesterSync(SCPICmdRead): - ``.size``: The ``BUS:B:MANChester:SYNC:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemManchesterSyncSize(device, f"{self._cmd_syntax}:SIZe") @@ -10634,7 +10634,7 @@ class BusBItemManchesterStart(SCPICmdRead): - ``.index``: The ``BUS:B:MANChester:START:INDex`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._index = BusBItemManchesterStartIndex(device, f"{self._cmd_syntax}:INDex") @@ -10736,7 +10736,7 @@ class BusBItemManchesterIdle(SCPICmdRead): - ``.bits``: The ``BUS:B:MANChester:IDLE:BITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bits = BusBItemManchesterIdleBits(device, f"{self._cmd_syntax}:BITS") @@ -10809,7 +10809,7 @@ class BusBItemManchesterHeader(SCPICmdRead): - ``.length``: The ``BUS:B:MANChester:HEADer:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = BusBItemManchesterHeaderLength(device, f"{self._cmd_syntax}:LENGth") @@ -10952,7 +10952,7 @@ class BusBItemManchester(SCPICmdRead): - ``.parity``: The ``BUS:B:MANChester:parity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemManchesterBitorder(device, f"{self._cmd_syntax}:BITORDer") self._bitrate = BusBItemManchesterBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -11390,7 +11390,7 @@ class BusBItemLinSource(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``BUS:B:LIN:SOUrce:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemLinSourceThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -11550,7 +11550,7 @@ class BusBItemLinBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:LIN:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemLinBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -11602,7 +11602,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -12021,7 +12021,7 @@ class BusBItemLabelFont(SCPICmdRead): - ``.underline``: The ``BUS:B:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = BusBItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = BusBItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -12223,7 +12223,7 @@ class BusBItemLabel(SCPICmdRead): - ``.name``: The ``BUS:B:LABel:name`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = BusBItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = BusBItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -12462,7 +12462,7 @@ class BusBItemI3cData(SCPICmdRead): - ``.threshold``: The ``BUS:B:I3C:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI3cDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI3cDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -12598,7 +12598,7 @@ class BusBItemI3cClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:I3C:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI3cClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI3cClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -12680,7 +12680,7 @@ class BusBItemI3c(SCPICmdRead): - ``.version``: The ``BUS:B:I3C:VERSion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI3cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI3cData(device, f"{self._cmd_syntax}:DATa") @@ -12853,7 +12853,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -12991,7 +12991,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:I2C:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemI2cClockThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -13073,7 +13073,7 @@ class BusBItemI2c(SCPICmdRead): - ``.rwinaddr``: The ``BUS:B:I2C:RWINADDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI2cData(device, f"{self._cmd_syntax}:DATa") @@ -13252,7 +13252,7 @@ class BusBItemFlexraySource(SCPICmdWrite, SCPICmdRead): - ``.txrx``: The ``BUS:B:FLEXray:SOUrce:TXRX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._txrx = BusBItemFlexraySourceTxrx(device, f"{self._cmd_syntax}:TXRX") @@ -13417,7 +13417,7 @@ class BusBItemFlexrayBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:FLEXray:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemFlexrayBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -13471,7 +13471,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.txrxthreshold``: The ``BUS:B:FLEXray:TXRXTHRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHannel") @@ -13797,7 +13797,7 @@ class BusBItemEusbSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:EUSB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diff = BusBItemEusbSourceDiff(device, f"{self._cmd_syntax}:DIFF") self._dminus = BusBItemEusbSourceDminus(device, f"{self._cmd_syntax}:DMINus") @@ -13948,7 +13948,7 @@ class BusBItemEusbOperating(SCPICmdRead): - ``.mode``: The ``BUS:B:EUSB:OPERating:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = BusBItemEusbOperatingMode(device, f"{self._cmd_syntax}:MODe") @@ -14077,7 +14077,7 @@ class BusBItemEusbDataplusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:DATAPLUS:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemEusbDataplusDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -14127,7 +14127,7 @@ class BusBItemEusbDataplus(SCPICmdRead): - ``.data``: The ``BUS:B:EUSB:DATAPLUS:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemEusbDataplusData(device, f"{self._cmd_syntax}:DATA") @@ -14219,7 +14219,7 @@ class BusBItemEusbDataminusData(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:DATAMINUS:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemEusbDataminusDataThreshold( device, f"{self._cmd_syntax}:THRESHold" @@ -14271,7 +14271,7 @@ class BusBItemEusbDataminus(SCPICmdRead): - ``.data``: The ``BUS:B:EUSB:DATAMINUS:DATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemEusbDataminusData(device, f"{self._cmd_syntax}:DATA") @@ -14344,7 +14344,7 @@ class BusBItemEusb(SCPICmdRead): - ``.threshold``: The ``BUS:B:EUSB:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemEusbBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataminus = BusBItemEusbDataminus(device, f"{self._cmd_syntax}:DATAMINUS") @@ -14738,7 +14738,7 @@ class BusBItemEthernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemEthernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemEthernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -14990,7 +14990,7 @@ class BusBItemEthernet(SCPICmdRead): - ``.type``: The ``BUS:B:ETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemEthernetDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHold" @@ -15399,7 +15399,7 @@ class BusBItemEthercatSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERCAT:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._diff = BusBItemEthercatSourceDiff(device, f"{self._cmd_syntax}:DIFF") self._dminus = BusBItemEthercatSourceDminus(device, f"{self._cmd_syntax}:DMINus") @@ -15595,7 +15595,7 @@ class BusBItemEthercat(SCPICmdRead): - ``.threshold``: The ``BUS:B:ETHERCAT:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemEthercatDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHold" @@ -15867,7 +15867,7 @@ class BusBItemEspiDatatwo(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:DATATWO:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiDatatwoPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiDatatwoSource(device, f"{self._cmd_syntax}:SOUrce") @@ -16059,7 +16059,7 @@ class BusBItemEspiDataone(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:DATAONE:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiDataonePolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiDataoneSource(device, f"{self._cmd_syntax}:SOUrce") @@ -16250,7 +16250,7 @@ class BusBItemEspiClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -16441,7 +16441,7 @@ class BusBItemEspiChipselect(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:CHIPSELect:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiChipselectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiChipselectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -16636,7 +16636,7 @@ class BusBItemEspiAlert(SCPICmdRead): - ``.threshold``: The ``BUS:B:ESPI:ALERt:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemEspiAlertPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemEspiAlertSource(device, f"{self._cmd_syntax}:SOUrce") @@ -16776,7 +16776,7 @@ class BusBItemEspi(SCPICmdRead): - ``.iomode``: The ``BUS:B:ESPI:IOMODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alertview = BusBItemEspiAlertview(device, f"{self._cmd_syntax}:ALERTVIEW") self._alert = BusBItemEspiAlert(device, f"{self._cmd_syntax}:ALERt") @@ -16980,7 +16980,7 @@ class BusBItemDphySignal(SCPICmdRead): - ``.encoding``: The ``BUS:B:DPHY:SIGNal:ENCoding`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._encoding = BusBItemDphySignalEncoding(device, f"{self._cmd_syntax}:ENCoding") @@ -17055,7 +17055,7 @@ class BusBItemDphyProtocol(SCPICmdRead): - ``.type``: The ``BUS:B:DPHY:PROTocol:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = BusBItemDphyProtocolType(device, f"{self._cmd_syntax}:TYPe") @@ -17130,7 +17130,7 @@ class BusBItemDphyLp(SCPICmdRead): - ``.direction``: The ``BUS:B:DPHY:LP:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemDphyLpDirection(device, f"{self._cmd_syntax}:DIRection") @@ -17263,7 +17263,7 @@ class BusBItemDphyDplus(SCPICmdRead): - ``.source``: The ``BUS:B:DPHY:DPlus:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._datathreshold = BusBItemDphyDplusDatathreshold( device, f"{self._cmd_syntax}:DATATHRESHold" @@ -17462,7 +17462,7 @@ class BusBItemDphyDminus(SCPICmdRead): - ``.source``: The ``BUS:B:DPHY:DMINus:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._datathreshold = BusBItemDphyDminusDatathreshold( device, f"{self._cmd_syntax}:DATATHRESHold" @@ -17634,7 +17634,7 @@ class BusBItemDphyClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:DPHY:CLOCk:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemDphyClockSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemDphyClockThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -17719,7 +17719,7 @@ class BusBItemDphy(SCPICmdRead): - ``.signal``: The ``BUS:B:DPHY:SIGNal`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemDphyClock(device, f"{self._cmd_syntax}:CLOCk") self._dminus = BusBItemDphyDminus(device, f"{self._cmd_syntax}:DMINus") @@ -17913,7 +17913,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.layout``: The ``BUS:B:DISplay:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemDisplayFormat(device, f"{self._cmd_syntax}:FORMat") self._layout = BusBItemDisplayLayout(device, f"{self._cmd_syntax}:LAYout") @@ -18047,7 +18047,7 @@ class BusBItemCxpiRec(SCPICmdRead): - ``.threshold``: The ``BUS:B:CXPI:REC:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCxpiRecThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18118,7 +18118,7 @@ class BusBItemCxpi(SCPICmdRead): - ``.source``: The ``BUS:B:CXPI:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCxpiBitrate(device, f"{self._cmd_syntax}:BITRate") self._rec = BusBItemCxpiRec(device, f"{self._cmd_syntax}:REC") @@ -18293,7 +18293,7 @@ class BusBItemCphyLp(SCPICmdRead): - ``.direction``: The ``BUS:B:CPHY:LP:DIRection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = BusBItemCphyLpDirection(device, f"{self._cmd_syntax}:DIRection") @@ -18398,7 +18398,7 @@ class BusBItemCphyCgnd(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:CGND:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyCgndSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyCgndThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18532,7 +18532,7 @@ class BusBItemCphyCa(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:CA:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyCaSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyCaThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -18664,7 +18664,7 @@ class BusBItemCphyCLp(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:C:LP:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyCLpThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -18739,7 +18739,7 @@ class BusBItemCphyCData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:C:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyCDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -18789,7 +18789,7 @@ class BusBItemCphyC(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyCData(device, f"{self._cmd_syntax}:DATA") self._lp = BusBItemCphyCLp(device, f"{self._cmd_syntax}:LP") @@ -18956,7 +18956,7 @@ class BusBItemCphyBc(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:BC:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyBcSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyBcThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -19088,7 +19088,7 @@ class BusBItemCphyBData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:B:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyBDataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -19137,7 +19137,7 @@ class BusBItemCphyB(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyBData(device, f"{self._cmd_syntax}:DATA") self._source = BusBItemCphyBSource(device, f"{self._cmd_syntax}:SOUrce") @@ -19260,7 +19260,7 @@ class BusBItemCphyAgnd(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:AGND:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyAgndSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyAgndThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -19394,7 +19394,7 @@ class BusBItemCphyAb(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:AB:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemCphyAbSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = BusBItemCphyAbThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -19526,7 +19526,7 @@ class BusBItemCphyALp(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:A:LP:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyALpThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -19601,7 +19601,7 @@ class BusBItemCphyAData(SCPICmdRead): - ``.threshold``: The ``BUS:B:CPHY:A:DATA:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusBItemCphyADataThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -19651,7 +19651,7 @@ class BusBItemCphyA(SCPICmdRead): - ``.source``: The ``BUS:B:CPHY:A:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = BusBItemCphyAData(device, f"{self._cmd_syntax}:DATA") self._lp = BusBItemCphyALp(device, f"{self._cmd_syntax}:LP") @@ -19748,7 +19748,7 @@ class BusBItemCphy(SCPICmdRead): - ``.subtype``: The ``BUS:B:CPHY:SUBTYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = BusBItemCphyA(device, f"{self._cmd_syntax}:A") self._ab = BusBItemCphyAb(device, f"{self._cmd_syntax}:AB") @@ -20193,7 +20193,7 @@ class BusBItemCanFdBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:CAN:FD:BITRate:CUSTom`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemCanFdBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -20240,7 +20240,7 @@ class BusBItemCanFd(SCPICmdRead): - ``.bitrate``: The ``BUS:B:CAN:FD:BITRate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanFdBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -20327,7 +20327,7 @@ class BusBItemCanBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:CAN:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemCanBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -20380,7 +20380,7 @@ class BusBItemCan(SCPICmdRead): - ``.threshold``: The ``BUS:B:CAN:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._fd = BusBItemCanFd(device, f"{self._cmd_syntax}:FD") @@ -20721,7 +20721,7 @@ class BusBItemAutoethernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:AUTOETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemAutoethernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemAutoethernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -20987,7 +20987,7 @@ class BusBItemAutoethernet(SCPICmdRead): - ``.type``: The ``BUS:B:AUTOETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dataminusthreshold = BusBItemAutoethernetDataminusthreshold( device, f"{self._cmd_syntax}:DATAMINUSTHRESHOLD" @@ -21389,7 +21389,7 @@ class BusBItemAudioWordsel(SCPICmdRead): - ``.threshold``: The ``BUS:B:AUDio:WORDSel:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioWordselPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioWordselSource(device, f"{self._cmd_syntax}:SOUrce") @@ -21584,7 +21584,7 @@ class BusBItemAudioFrame(SCPICmdRead): - ``.size``: The ``BUS:B:AUDio:FRAME:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clockbitsperchannel = BusBItemAudioFrameClockbitsperchannel( device, f"{self._cmd_syntax}:CLOCKBITSPERCHANNEL" @@ -21803,7 +21803,7 @@ class BusBItemAudioData(SCPICmdRead): - ``.wordsize``: The ``BUS:B:AUDio:DATa:WORDSize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemAudioDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -22057,7 +22057,7 @@ class BusBItemAudioClock(SCPICmdRead): - ``.threshold``: The ``BUS:B:AUDio:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemAudioClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemAudioClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -22226,7 +22226,7 @@ class BusBItemAudio(SCPICmdRead): - ``.wordsel``: The ``BUS:B:AUDio:WORDSel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitdelay = BusBItemAudioBitdelay(device, f"{self._cmd_syntax}:BITDelay") self._bitorder = BusBItemAudioBitorder(device, f"{self._cmd_syntax}:BITOrder") @@ -22567,7 +22567,7 @@ class BusBItemArinc429aBitrate(SCPICmdWrite, SCPICmdRead): - ``.custom``: The ``BUS:B:ARINC429A:BITRate:CUSTom`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = BusBItemArinc429aBitrateCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -22620,7 +22620,7 @@ class BusBItemArinc429a(SCPICmdRead): - ``.threshold``: The ``BUS:B:ARINC429A:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemArinc429aBitrate(device, f"{self._cmd_syntax}:BITRate") self._dataformat = BusBItemArinc429aDataformat(device, f"{self._cmd_syntax}:DATAFORmat") @@ -22829,7 +22829,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = BusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = BusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -23724,7 +23724,7 @@ class Bus(SCPICmdRead): - ``.list``: The ``BUS:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._addnew = BusAddnew(device, f"{self._cmd_syntax}:ADDNew") self._b: Dict[int, BusBItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py index 517a0498..9a0c654f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): @@ -246,7 +246,7 @@ class CalloutsCalloutItemFont(SCPICmdRead): - ``.underline``: The ``CALLOUTS:CALLOUT:FONT:UNDERLine`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = CalloutsCalloutItemFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = CalloutsCalloutItemFontItalic(device, f"{self._cmd_syntax}:ITALIC") @@ -454,7 +454,7 @@ class CalloutsCalloutItemDisplayposition(SCPICmdRead): - ``.y``: The ``CALLOUTS:CALLOUT:DISPLAYPOSition:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CalloutsCalloutItemDisplaypositionX(device, f"{self._cmd_syntax}:X") self._y = CalloutsCalloutItemDisplaypositionY(device, f"{self._cmd_syntax}:Y") @@ -605,7 +605,7 @@ class CalloutsCalloutItemBookmark(SCPICmdRead): - ``.xpos``: The ``CALLOUTS:CALLOUT:BOOKMark:XPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = CalloutsCalloutItemBookmarkSource(device, f"{self._cmd_syntax}:SOURCE") self._xpos = CalloutsCalloutItemBookmarkXpos(device, f"{self._cmd_syntax}:XPOS") @@ -686,7 +686,7 @@ class CalloutsCalloutItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``CALLOUTS:CALLOUT:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bookmark = CalloutsCalloutItemBookmark(device, f"{self._cmd_syntax}:BOOKMark") self._color = CalloutsCalloutItemColor(device, f"{self._cmd_syntax}:COLOR") @@ -861,7 +861,7 @@ class Callouts(SCPICmdRead): - ``.callout``: The ``CALLOUTS:CALLOUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALLOUTS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALLOUTS") -> None: super().__init__(device, cmd_syntax) self._addnew = CalloutsAddnew(device, f"{self._cmd_syntax}:ADDNew") self._callout: Dict[int, CalloutsCalloutItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py index 7ecb3196..ff81ca37 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py @@ -137,7 +137,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): @@ -324,7 +324,7 @@ class ChannelDallLabelFont(SCPICmdRead): - ``.underline``: The ``CH_DALL:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelDallLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelDallLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -520,7 +520,7 @@ class ChannelDallLabel(SCPICmdRead): - ``.name``: The ``CH_DALL:LABel:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelDallLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelDallLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -618,7 +618,7 @@ class ChannelDall(SCPICmdRead): - ``.label``: The ``CH_DALL:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = ChannelDallLabel(device, f"{self._cmd_syntax}:LABel") @@ -825,7 +825,7 @@ class ChannelDigitalBitLabelFont(SCPICmdRead): - ``.underline``: The ``CH_D:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelDigitalBitLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelDigitalBitLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -1023,7 +1023,7 @@ class ChannelDigitalBitLabel(SCPICmdRead): - ``.name``: The ``CH_D:LABel:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelDigitalBitLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelDigitalBitLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1120,7 +1120,7 @@ class ChannelDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.label``: The ``CH_D:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = ChannelDigitalBitLabel(device, f"{self._cmd_syntax}:LABel") @@ -1184,7 +1184,7 @@ class ChannelVterm(SCPICmdRead): - ``.bias``: The ``CH:VTERm:BIAS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bias = ChannelVtermBias(device, f"{self._cmd_syntax}:BIAS") @@ -1430,7 +1430,7 @@ class ChannelSv(SCPICmdRead): - ``.stopfrequency``: The ``CH:SV:STOPFrequency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._centerfrequency = ChannelSvCenterfrequency( device, f"{self._cmd_syntax}:CENTERFrequency" @@ -1768,7 +1768,7 @@ class ChannelProbeSelfcal(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:SELFCal:State`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeSelfcalState(device, f"{self._cmd_syntax}:State") @@ -1950,7 +1950,7 @@ class ChannelProbeInputmode(SCPICmdWrite, SCPICmdRead): - ``.doffset``: The ``CH:PRObe:INPUTMode:DOFFSet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aoffset = ChannelProbeInputmodeAoffset(device, f"{self._cmd_syntax}:AOFFSet") self._boffset = ChannelProbeInputmodeBoffset(device, f"{self._cmd_syntax}:BOFFSet") @@ -2126,7 +2126,7 @@ class ChannelProbeId(SCPICmdRead): - ``.type``: The ``CH:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = ChannelProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = ChannelProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -2262,7 +2262,7 @@ class ChannelProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:DEGAUSS:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -2359,7 +2359,7 @@ class ChannelProbe(SCPICmdRead): - ``.units``: The ``CH:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = ChannelProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._compensate = ChannelProbeCompensate(device, f"{self._cmd_syntax}:COMPensate") @@ -2736,7 +2736,7 @@ class ChannelProbefuncExtunits(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbefuncExtunitsState(device, f"{self._cmd_syntax}:STATE") @@ -2840,7 +2840,7 @@ class ChannelProbefunc(SCPICmdRead): - ``.extunits``: The ``CH:PROBEFunc:EXTUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._extatten = ChannelProbefuncExtatten(device, f"{self._cmd_syntax}:EXTAtten") self._extdbatten = ChannelProbefuncExtdbatten(device, f"{self._cmd_syntax}:EXTDBatten") @@ -3243,7 +3243,7 @@ class ChannelLabelFont(SCPICmdRead): - ``.underline``: The ``CH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = ChannelLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = ChannelLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -3416,7 +3416,7 @@ class ChannelLabel(SCPICmdRead): - ``.ypos``: The ``CH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = ChannelLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = ChannelLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -3717,7 +3717,7 @@ class ChannelBandwidthFilter(SCPICmdRead): - ``.optimization``: The ``CH:BANdwidth:FILTer:OPTIMIZation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._optimization = ChannelBandwidthFilterOptimization( device, f"{self._cmd_syntax}:OPTIMIZation" @@ -3788,7 +3788,7 @@ class ChannelBandwidth(SCPICmdWrite, SCPICmdRead): - ``.filter``: The ``CH:BANdwidth:FILTer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = ChannelBandwidthFilter(device, f"{self._cmd_syntax}:FILTer") @@ -3852,7 +3852,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.dall``: The ``CH_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._bandwidth = ChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._clipping = ChannelClipping(device, f"{self._cmd_syntax}:CLIPping") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py index 0dd95f4d..b412b028 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): @@ -138,7 +138,7 @@ class DiagResult(SCPICmdRead): - ``.log``: The ``DIAg:RESUlt:LOG`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._flag = DiagResultFlag(device, f"{self._cmd_syntax}:FLAg") self._log = DiagResultLog(device, f"{self._cmd_syntax}:LOG") @@ -277,7 +277,7 @@ class DiagLoopOption(SCPICmdWrite, SCPICmdRead): - ``.ntimes``: The ``DIAg:LOOP:OPTion:NTIMes`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ntimes = DiagLoopOptionNtimes(device, f"{self._cmd_syntax}:NTIMes") @@ -320,7 +320,7 @@ class DiagLoop(SCPICmdRead): - ``.stop``: The ``DIAg:LOOP:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._option = DiagLoopOption(device, f"{self._cmd_syntax}:OPTion") self._stop = DiagLoopStop(device, f"{self._cmd_syntax}:STOP") @@ -390,7 +390,7 @@ class Diag(SCPICmdRead): - ``.state``: The ``DIAg:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAg") -> None: super().__init__(device, cmd_syntax) self._loop = DiagLoop(device, f"{self._cmd_syntax}:LOOP") self._mode = DiagMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py index d91ba2a1..27f98f35 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiggrpItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): @@ -71,7 +71,7 @@ class DiggrpItemDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.threshold``: The ``DIGGRP:D:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = DiggrpItemDigitalBitThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -119,7 +119,7 @@ class DiggrpItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.d``: The ``DIGGRP:D`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIGGRP") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIGGRP") -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, DiggrpItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: DiggrpItemDigitalBit(device, f"{self._cmd_syntax}:D{x}") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py index 46aa9363..61a4009f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py @@ -400,7 +400,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): @@ -500,7 +500,7 @@ class DisplayWaveviewCursorCursor1(SCPICmdRead): - ``.rolocation``: The ``DISplay:WAVEView:CURSor:CURSOR1:ROLOCATION`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rolocation = DisplayWaveviewCursorCursor1Rolocation( device, f"{self._cmd_syntax}:ROLOCATION" @@ -550,7 +550,7 @@ class DisplayWaveviewCursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView:CURSor:CURSOR1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor1 = DisplayWaveviewCursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -647,7 +647,7 @@ class DisplayWaveview1ZoomZoom1Vertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical:SCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1VerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -853,7 +853,7 @@ class DisplayWaveview1ZoomZoom1Horizontal(SCPICmdRead): - ``.winscale``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:HORizontal:WINSCALe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ZoomZoom1HorizontalPosition( device, f"{self._cmd_syntax}:POSition" @@ -981,7 +981,7 @@ class DisplayWaveview1ZoomZoom1(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:ZOOM:ZOOM1:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = DisplayWaveview1ZoomZoom1Horizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -1076,7 +1076,7 @@ class DisplayWaveview1Zoom(SCPICmdRead): - ``.zoom1``: The ``DISplay:WAVEView1:ZOOM:ZOOM1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._zoom1 = DisplayWaveview1ZoomZoom1(device, f"{self._cmd_syntax}:ZOOM1") @@ -1235,7 +1235,7 @@ class DisplayWaveview1RfPhaseItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_PHASe:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfPhaseItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1319,7 +1319,7 @@ class DisplayWaveview1RfPhaseItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_PHASe:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfPhaseItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1424,7 +1424,7 @@ class DisplayWaveview1RfMagnitudeItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_MAGnitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfMagnitudeItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1513,7 +1513,7 @@ class DisplayWaveview1RfMagnitudeItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_MAGnitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfMagnitudeItemVertical( device, f"{self._cmd_syntax}:VERTical" @@ -1617,7 +1617,7 @@ class DisplayWaveview1RfFrequencyItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:RF_FREQuency:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RfFrequencyItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1703,7 +1703,7 @@ class DisplayWaveview1RfFrequencyItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:RF_FREQuency:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vertical = DisplayWaveview1RfFrequencyItemVertical( device, f"{self._cmd_syntax}:VERTical" @@ -1768,7 +1768,7 @@ class DisplayWaveview1RefItemDall(SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF_DALL:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frame = DisplayWaveview1RefItemDallFrame(device, f"{self._cmd_syntax}:FRAMe") @@ -1813,7 +1813,7 @@ class DisplayWaveview1RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:REF_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dall = DisplayWaveview1RefItemDall(device, f"{self._cmd_syntax}_DALL") @@ -1901,7 +1901,7 @@ class DisplayWaveview1RefRefItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:REF:REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1RefRefItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2032,7 +2032,7 @@ class DisplayWaveview1RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.frame``: The ``DISplay:WAVEView1:REF:REF:FRAMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1RefRefItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1RefRefItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2127,7 +2127,7 @@ class DisplayWaveview1Ref(SCPICmdRead): - ``.ref``: The ``DISplay:WAVEView1:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayWaveview1RefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1RefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -2219,7 +2219,7 @@ class DisplayWaveview1PlotPlotItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:PLOT:PLOT:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1PlotPlotItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2357,7 +2357,7 @@ class DisplayWaveview1PlotPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:PLOT:PLOT:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayWaveview1PlotPlotItemAutoscale( device, f"{self._cmd_syntax}:AUTOScale" @@ -2459,7 +2459,7 @@ class DisplayWaveview1Plot(SCPICmdRead): - ``.plot``: The ``DISplay:WAVEView1:PLOT:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._plot: Dict[int, DisplayWaveview1PlotPlotItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1PlotPlotItem(device, f"{self._cmd_syntax}:PLOT{x}") @@ -2551,7 +2551,7 @@ class DisplayWaveview1MathMathItemVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:MATH:MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1MathMathItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -2689,7 +2689,7 @@ class DisplayWaveview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:MATH:MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayWaveview1MathMathItemAutoscale( device, f"{self._cmd_syntax}:AUTOScale" @@ -2791,7 +2791,7 @@ class DisplayWaveview1Math(SCPICmdRead): - ``.math``: The ``DISplay:WAVEView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayWaveview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -2879,7 +2879,7 @@ class DisplayWaveview1Intensity(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._graticule = DisplayWaveview1IntensityGraticule( device, f"{self._cmd_syntax}:GRATicule" @@ -3075,7 +3075,7 @@ class DisplayWaveview1CursorCursorWaveformAll(SCPICmdRead): - ``.values``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform:ALL:Values`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._values = DisplayWaveview1CursorCursorWaveformAllValues( device, f"{self._cmd_syntax}:Values" @@ -3120,7 +3120,7 @@ class DisplayWaveview1CursorCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = DisplayWaveview1CursorCursorWaveformAll(device, f"{self._cmd_syntax}:ALL") self._avposition = DisplayWaveview1CursorCursorWaveformAvposition( @@ -3270,7 +3270,7 @@ class DisplayWaveview1CursorCursor1Waveform(SCPICmdRead): - ``.bposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1WaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3453,7 +3453,7 @@ class DisplayWaveview1CursorCursor1Vbars(SCPICmdRead): - ``.units``: The ``DISplay:WAVEView1:CURSor:CURSOR1:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1VbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -3753,7 +3753,7 @@ class DisplayWaveview1CursorCursor1Screen(SCPICmdRead): - ``.byposition``: The ``DISplay:WAVEView1:CURSor:CURSOR1:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayWaveview1CursorCursor1ScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -4072,7 +4072,7 @@ class DisplayWaveview1CursorCursor1Hbars(SCPICmdRead): - ``.delta``: The ``DISplay:WAVEView1:CURSor:CURSOR1:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayWaveview1CursorCursor1HbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -4371,7 +4371,7 @@ class DisplayWaveview1CursorCursor1(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR1:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayWaveview1CursorCursor1Asource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayWaveview1CursorCursor1Bsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -4711,7 +4711,7 @@ class DisplayWaveview1CursorCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEView1:CURSor:CURSOR:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveform = DisplayWaveview1CursorCursorWaveform( device, f"{self._cmd_syntax}:WAVEform" @@ -4757,7 +4757,7 @@ class DisplayWaveview1Cursor(SCPICmdRead): - ``.cursor1``: The ``DISplay:WAVEView1:CURSor:CURSOR1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveview1CursorCursor(device, f"{self._cmd_syntax}:CURSOR") self._cursor1 = DisplayWaveview1CursorCursor1(device, f"{self._cmd_syntax}:CURSOR1") @@ -4857,7 +4857,7 @@ class DisplayWaveview1ChannelDallVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:CH_DALL:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ChannelDallVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -4935,7 +4935,7 @@ class DisplayWaveview1ChannelDall(SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:CH_DALL:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelDallState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1ChannelDallVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5028,7 +5028,7 @@ class DisplayWaveview1ChannelDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.state``: The ``DISplay:WAVEView1:CH_D:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelDigitalBitState(device, f"{self._cmd_syntax}:STATE") @@ -5133,7 +5133,7 @@ class DisplayWaveview1ChannelVertical(SCPICmdRead): - ``.scale``: The ``DISplay:WAVEView1:CH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1ChannelVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -5241,7 +5241,7 @@ class DisplayWaveview1Channel(ValidatedChannel, SCPICmdRead): - ``.dall``: The ``DISplay:WAVEView1:CH_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1ChannelState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1ChannelVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5364,7 +5364,7 @@ class DisplayWaveview1BusBItemVertical(SCPICmdRead): - ``.position``: The ``DISplay:WAVEView1:BUS:B:VERTical:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = DisplayWaveview1BusBItemVerticalPosition( device, f"{self._cmd_syntax}:POSition" @@ -5439,7 +5439,7 @@ class DisplayWaveview1BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``DISplay:WAVEView1:BUS:B:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayWaveview1BusBItemState(device, f"{self._cmd_syntax}:STATE") self._vertical = DisplayWaveview1BusBItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -5503,7 +5503,7 @@ class DisplayWaveview1Bus(SCPICmdRead): - ``.b``: The ``DISplay:WAVEView1:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayWaveview1BusBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayWaveview1BusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -5553,7 +5553,7 @@ class DisplayWaveview1(SCPICmdRead): - ``.refx``: The ``DISplay:WAVEView1:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplayWaveview1Bus(device, f"{self._cmd_syntax}:BUS") self._ch: Dict[int, DisplayWaveview1Channel] = DefaultDictPassKeyToFactory( @@ -5911,7 +5911,7 @@ class DisplayWaveview(SCPICmdRead): - ``.gridtype``: The ``DISplay:WAVEView:GRIDTYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplayWaveviewCursor(device, f"{self._cmd_syntax}:CURSor") self._gridtype = DisplayWaveviewGridtype(device, f"{self._cmd_syntax}:GRIDTYPE") @@ -6082,7 +6082,7 @@ class DisplaySpecview1Intensity(SCPICmdRead): - ``.waveform``: The ``DISplay:SPECView1:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._graticule = DisplaySpecview1IntensityGraticule( device, f"{self._cmd_syntax}:GRATicule" @@ -6279,7 +6279,7 @@ class DisplaySpecview1CursorCursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:SPECView1:CURSor:CURSOR:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6448,7 +6448,7 @@ class DisplaySpecview1CursorCursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:SPECView1:CURSor:CURSOR:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6743,7 +6743,7 @@ class DisplaySpecview1CursorCursorHbars(SCPICmdRead): - ``.bunits``: The ``DISplay:SPECView1:CURSor:CURSOR:HBArs:BUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplaySpecview1CursorCursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -6974,7 +6974,7 @@ class DisplaySpecview1CursorCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:SPECView1:CURSor:CURSOR:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._anoisedensity = DisplaySpecview1CursorCursorAnoisedensity( device, f"{self._cmd_syntax}:ANOISEDensity" @@ -7250,7 +7250,7 @@ class DisplaySpecview1Cursor(SCPICmdRead): - ``.cursor``: The ``DISplay:SPECView1:CURSor:CURSOR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplaySpecview1CursorCursor(device, f"{self._cmd_syntax}:CURSOR") @@ -7295,7 +7295,7 @@ class DisplaySpecview1(SCPICmdRead): - ``.viewstyle``: The ``DISplay:SPECView1:VIEWStyle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cursor = DisplaySpecview1Cursor(device, f"{self._cmd_syntax}:CURSor") self._graticule = DisplaySpecview1Graticule(device, f"{self._cmd_syntax}:GRAticule") @@ -7459,7 +7459,7 @@ class DisplaySelectWaveview1(SCPICmdRead): - ``.source``: The ``DISplay:SELect:WAVEView1:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = DisplaySelectWaveview1Source(device, f"{self._cmd_syntax}:SOUrce") @@ -7550,7 +7550,7 @@ class DisplaySelectSpecview1(SCPICmdRead): - ``.source``: The ``DISplay:SELect:SPECView1:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = DisplaySelectSpecview1Source(device, f"{self._cmd_syntax}:SOUrce") @@ -7699,7 +7699,7 @@ class DisplaySelect(SCPICmdRead): - ``.waveview1``: The ``DISplay:SELect:WAVEView1`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = DisplaySelectBus(device, f"{self._cmd_syntax}:BUS") self._math = DisplaySelectMath(device, f"{self._cmd_syntax}:MATH") @@ -7930,7 +7930,7 @@ class DisplayReffftviewItemZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8056,7 +8056,7 @@ class DisplayReffftviewItemZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:REFFFTView:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayReffftviewItemZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayReffftviewItemZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -8131,7 +8131,7 @@ class DisplayReffftviewItemZoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:REFFFTView:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayReffftviewItemZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayReffftviewItemZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -8208,7 +8208,7 @@ class DisplayReffftviewItemXaxis(SCPICmdRead): - ``.scale``: The ``DISplay:REFFFTView:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayReffftviewItemXaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -8287,7 +8287,7 @@ class DisplayReffftviewItemRefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:REFFFTView:REF:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayReffftviewItemRefRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -8339,7 +8339,7 @@ class DisplayReffftviewItemRef(SCPICmdRead): - ``.ref``: The ``DISplay:REFFFTView:REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, DisplayReffftviewItemRefRefItem] = DefaultDictPassKeyToFactory( lambda x: DisplayReffftviewItemRefRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -8560,7 +8560,7 @@ class DisplayReffftviewItemCursorWaveform(SCPICmdRead): - ``.bvposition``: The ``DISplay:REFFFTView:CURSor:WAVEform:BVPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ahposition = DisplayReffftviewItemCursorWaveformAhposition( device, f"{self._cmd_syntax}:AHPOSition" @@ -8858,7 +8858,7 @@ class DisplayReffftviewItemCursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:REFFFTView:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -9170,7 +9170,7 @@ class DisplayReffftviewItemCursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:REFFFTView:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayReffftviewItemCursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -9537,7 +9537,7 @@ class DisplayReffftviewItemCursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:REFFFTView:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayReffftviewItemCursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -9817,7 +9817,7 @@ class DisplayReffftviewItemCursor(SCPICmdRead): - ``.waveform``: The ``DISplay:REFFFTView:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayReffftviewItemCursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayReffftviewItemCursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -10239,7 +10239,7 @@ class DisplayReffftviewItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.zoom``: The ``DISplay:REFFFTView:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayReffftviewItemAutoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayReffftviewItemCursor(device, f"{self._cmd_syntax}:CURSor") @@ -10459,7 +10459,7 @@ class DisplayRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:REF:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayRefItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayRefItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -10591,7 +10591,7 @@ class DisplayPlotview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10717,7 +10717,7 @@ class DisplayPlotview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:PLOTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayPlotview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayPlotview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -10791,7 +10791,7 @@ class DisplayPlotview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:PLOTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayPlotview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayPlotview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -10862,7 +10862,7 @@ class DisplayPlotview1Yaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTView1:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotview1YaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -10926,7 +10926,7 @@ class DisplayPlotview1Xaxis(SCPICmdRead): - ``.scale``: The ``DISplay:PLOTView1:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayPlotview1XaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -11053,7 +11053,7 @@ class DisplayPlotview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:PLOTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11240,7 +11240,7 @@ class DisplayPlotview1CursorVbars(SCPICmdRead): - ``.units``: The ``DISplay:PLOTView1:CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -11541,7 +11541,7 @@ class DisplayPlotview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:PLOTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayPlotview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -11891,7 +11891,7 @@ class DisplayPlotview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:PLOTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayPlotview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -12152,7 +12152,7 @@ class DisplayPlotview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:PLOTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayPlotview1CursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayPlotview1CursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -12538,7 +12538,7 @@ class DisplayPlotview1(SCPICmdRead): - ``.zoom``: The ``DISplay:PLOTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayPlotview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayPlotview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -12726,7 +12726,7 @@ class DisplayPersistence(SCPICmdWrite, SCPICmdRead): - ``.reset``: The ``DISplay:PERSistence:RESET`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = DisplayPersistenceReset(device, f"{self._cmd_syntax}:RESET") @@ -12816,7 +12816,7 @@ class DisplayMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.normalcolor``: The ``DISplay:Math:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayMathItemInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayMathItemNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -12947,7 +12947,7 @@ class DisplayMathfftview1ZoomYaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomYaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomYaxisTo(device, f"{self._cmd_syntax}:TO") @@ -13074,7 +13074,7 @@ class DisplayMathfftview1ZoomXaxis(SCPICmdRead): - ``.to``: The ``DISplay:MATHFFTView1:ZOOM:XAXIS:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = DisplayMathfftview1ZoomXaxisFrom(device, f"{self._cmd_syntax}:FROM") self._to = DisplayMathfftview1ZoomXaxisTo(device, f"{self._cmd_syntax}:TO") @@ -13146,7 +13146,7 @@ class DisplayMathfftview1Zoom(SCPICmdRead): - ``.yaxis``: The ``DISplay:MATHFFTView1:ZOOM:YAXIS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._xaxis = DisplayMathfftview1ZoomXaxis(device, f"{self._cmd_syntax}:XAXIS") self._yaxis = DisplayMathfftview1ZoomYaxis(device, f"{self._cmd_syntax}:YAXIS") @@ -13223,7 +13223,7 @@ class DisplayMathfftview1Yaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:YAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1YaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -13297,7 +13297,7 @@ class DisplayMathfftview1Xaxis(SCPICmdRead): - ``.scale``: The ``DISplay:MATHFFTView1:XAXIS:SCALE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._scale = DisplayMathfftview1XaxisScale(device, f"{self._cmd_syntax}:SCALE") @@ -13369,7 +13369,7 @@ class DisplayMathfftview1MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:MATHFFTView1:MATH:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayMathfftview1MathMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -13412,7 +13412,7 @@ class DisplayMathfftview1Math(SCPICmdRead): - ``.math``: The ``DISplay:MATHFFTView1:MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._math: Dict[int, DisplayMathfftview1MathMathItem] = DefaultDictPassKeyToFactory( lambda x: DisplayMathfftview1MathMathItem(device, f"{self._cmd_syntax}:MATH{x}") @@ -13533,7 +13533,7 @@ class DisplayMathfftview1CursorWaveform(SCPICmdRead): - ``.bposition``: The ``DISplay:MATHFFTView1:CURSor:WAVEform:BPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorWaveformAposition( device, f"{self._cmd_syntax}:APOSition" @@ -13745,7 +13745,7 @@ class DisplayMathfftview1CursorVbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:VBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorVbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -14047,7 +14047,7 @@ class DisplayMathfftview1CursorScreen(SCPICmdRead): - ``.byposition``: The ``DISplay:MATHFFTView1:CURSor:SCREEN:BYPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._axposition = DisplayMathfftview1CursorScreenAxposition( device, f"{self._cmd_syntax}:AXPOSition" @@ -14403,7 +14403,7 @@ class DisplayMathfftview1CursorHbars(SCPICmdRead): - ``.delta``: The ``DISplay:MATHFFTView1:CURSor:HBArs:DELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aposition = DisplayMathfftview1CursorHbarsAposition( device, f"{self._cmd_syntax}:APOSition" @@ -14673,7 +14673,7 @@ class DisplayMathfftview1Cursor(SCPICmdRead): - ``.waveform``: The ``DISplay:MATHFFTView1:CURSor:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._asource = DisplayMathfftview1CursorAsource(device, f"{self._cmd_syntax}:ASOUrce") self._bsource = DisplayMathfftview1CursorBsource(device, f"{self._cmd_syntax}:BSOUrce") @@ -15036,7 +15036,7 @@ class DisplayMathfftview1(SCPICmdRead): - ``.zoom``: The ``DISplay:MATHFFTView1:ZOOM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = DisplayMathfftview1Autoscale(device, f"{self._cmd_syntax}:AUTOScale") self._cursor = DisplayMathfftview1Cursor(device, f"{self._cmd_syntax}:CURSor") @@ -15259,7 +15259,7 @@ class DisplayIntensityBacklightAutodim(SCPICmdRead): - ``.time``: The ``DISplay:INTENSITy:BACKLight:AUTODim:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = DisplayIntensityBacklightAutodimEnable(device, f"{self._cmd_syntax}:ENAble") self._time = DisplayIntensityBacklightAutodimTime(device, f"{self._cmd_syntax}:TIMe") @@ -15353,7 +15353,7 @@ class DisplayIntensityBacklight(SCPICmdWrite, SCPICmdRead): - ``.autodim``: The ``DISplay:INTENSITy:BACKLight:AUTODim`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodim = DisplayIntensityBacklightAutodim(device, f"{self._cmd_syntax}:AUTODim") @@ -15395,7 +15395,7 @@ class DisplayIntensity(SCPICmdRead): - ``.backlight``: The ``DISplay:INTENSITy:BACKLight`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") @@ -15477,7 +15477,7 @@ class DisplayGlobalRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:REF:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalRefItemState(device, f"{self._cmd_syntax}:STATE") @@ -15561,7 +15561,7 @@ class DisplayGlobalPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:PLOT:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalPlotItemState(device, f"{self._cmd_syntax}:STATE") @@ -15641,7 +15641,7 @@ class DisplayGlobalMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:MATH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalMathItemState(device, f"{self._cmd_syntax}:STATE") @@ -15721,7 +15721,7 @@ class DisplayGlobalChannel(ValidatedChannel, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:CH:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalChannelState(device, f"{self._cmd_syntax}:STATE") @@ -15800,7 +15800,7 @@ class DisplayGlobalBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``DISplay:GLObal:B:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = DisplayGlobalBItemState(device, f"{self._cmd_syntax}:STATE") @@ -15852,7 +15852,7 @@ class DisplayGlobal(SCPICmdRead): - ``.ref``: The ``DISplay:GLObal:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, DisplayGlobalBItem] = DefaultDictPassKeyToFactory( lambda x: DisplayGlobalBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16046,7 +16046,7 @@ class DisplayChannel(ValidatedChannel, SCPICmdRead): - ``.normalcolor``: The ``DISplay:CH:NORMALColor`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._invertcolor = DisplayChannelInvertcolor(device, f"{self._cmd_syntax}:INVERTColor") self._normalcolor = DisplayChannelNormalcolor(device, f"{self._cmd_syntax}:NORMALColor") @@ -16150,7 +16150,7 @@ class Display(SCPICmdRead): - ``.ref``: The ``DISplay:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._colors = DisplayColors(device, f"{self._cmd_syntax}:COLors") self._global = DisplayGlobal(device, f"{self._cmd_syntax}:GLObal") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py index bb170700..79449705 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DvmTriggerFrequencyCounter(SCPICmdWrite, SCPICmdRead): @@ -74,7 +74,7 @@ class DvmTriggerFrequency(SCPICmdRead): - ``.counter``: The ``DVM:TRIGger:FREQuency:COUNTer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._counter = DvmTriggerFrequencyCounter(device, f"{self._cmd_syntax}:COUNTer") @@ -118,7 +118,7 @@ class DvmTrigger(SCPICmdRead): - ``.frequency``: The ``DVM:TRIGger:FREQuency`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = DvmTriggerFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -314,7 +314,7 @@ class DvmMeasurementHistory(SCPICmdRead): - ``.minimum``: The ``DVM:MEASUrement:HIStory:MINImum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._average = DvmMeasurementHistoryAverage(device, f"{self._cmd_syntax}:AVErage") self._maximum = DvmMeasurementHistoryMaximum(device, f"{self._cmd_syntax}:MAXimum") @@ -418,7 +418,7 @@ class DvmMeasurement(SCPICmdRead): - ``.value``: The ``DVM:MEASUrement:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = DvmMeasurementFrequency(device, f"{self._cmd_syntax}:FREQuency") self._history = DvmMeasurementHistory(device, f"{self._cmd_syntax}:HIStory") @@ -572,7 +572,7 @@ class Dvm(SCPICmdWrite, SCPICmdRead): - ``.trigger``: The ``DVM:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DVM") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DVM") -> None: super().__init__(device, cmd_syntax) self._autorange = DvmAutorange(device, f"{self._cmd_syntax}:AUTORange") self._measurement = DvmMeasurement(device, f"{self._cmd_syntax}:MEASUrement") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py index c38810d0..65305323 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): @@ -112,7 +112,7 @@ class Fpanel(SCPICmdRead): - ``.turn``: The ``FPAnel:TURN`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FPAnel") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FPAnel") -> None: super().__init__(device, cmd_syntax) self._press = FpanelPress(device, f"{self._cmd_syntax}:PRESS") self._turn = FpanelTurn(device, f"{self._cmd_syntax}:TURN") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py index 25839278..b1c0cffe 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramList(SCPICmdRead): @@ -679,7 +679,7 @@ class HistogramHistogramItemMeasurement(SCPICmdRead): - ``.twosigma``: The ``HISTogram:HISTogram:MEASurement:TWOSigma`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = HistogramHistogramItemMeasurementCount(device, f"{self._cmd_syntax}:COUNt") self._hits = HistogramHistogramItemMeasurementHits(device, f"{self._cmd_syntax}:HITS") @@ -1296,7 +1296,7 @@ class HistogramHistogramItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.transparency``: The ``HISTogram:HISTogram:TRANsparency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._box = HistogramHistogramItemBox(device, f"{self._cmd_syntax}:BOX") self._bstate = HistogramHistogramItemBstate(device, f"{self._cmd_syntax}:BSTate") @@ -1692,7 +1692,7 @@ class Histogram(SCPICmdRead): - ``.list``: The ``HISTogram:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HISTogram") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HISTogram") -> None: super().__init__(device, cmd_syntax) self._addnew = HistogramAddnew(device, f"{self._cmd_syntax}:ADDNew") self._deleteall = HistogramDeleteall(device, f"{self._cmd_syntax}:DELETEALL") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py index 55a7665d..c4559329 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py @@ -92,7 +92,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): @@ -190,7 +190,7 @@ class HorizontalSamplerateAnalyzemodeMinimum(SCPICmdRead): - ``.value``: The ``HORizontal:SAMPLERate:ANALYZemode:MINimum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._override = HorizontalSamplerateAnalyzemodeMinimumOverride( device, f"{self._cmd_syntax}:OVERRide" @@ -271,7 +271,7 @@ class HorizontalSamplerateAnalyzemode(SCPICmdRead): - ``.minimum``: The ``HORizontal:SAMPLERate:ANALYZemode:MINimum`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minimum = HorizontalSamplerateAnalyzemodeMinimum( device, f"{self._cmd_syntax}:MINimum" @@ -320,7 +320,7 @@ class HorizontalSamplerate(SCPICmdWrite, SCPICmdRead): - ``.analyzemode``: The ``HORizontal:SAMPLERate:ANALYZemode`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._analyzemode = HorizontalSamplerateAnalyzemode( device, f"{self._cmd_syntax}:ANALYZemode" @@ -543,7 +543,7 @@ class HorizontalModeManual(SCPICmdRead): - ``.configure``: The ``HORizontal:MODe:MANual:CONFIGure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configure = HorizontalModeManualConfigure(device, f"{self._cmd_syntax}:CONFIGure") @@ -651,7 +651,7 @@ class HorizontalModeAutomaticFastacqRecordlengthMaximum(SCPICmdRead): ``HORizontal:MODe:AUTOmatic:FASTAcq:RECOrdlength:MAXimum:ZOOMOVERride`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = HorizontalModeAutomaticFastacqRecordlengthMaximumValue( device, f"{self._cmd_syntax}:VALue" @@ -733,7 +733,7 @@ class HorizontalModeAutomaticFastacqRecordlength(SCPICmdRead): - ``.maximum``: The ``HORizontal:MODe:AUTOmatic:FASTAcq:RECOrdlength:MAXimum`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = HorizontalModeAutomaticFastacqRecordlengthMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -771,7 +771,7 @@ class HorizontalModeAutomaticFastacq(SCPICmdRead): - ``.recordlength``: The ``HORizontal:MODe:AUTOmatic:FASTAcq:RECOrdlength`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recordlength = HorizontalModeAutomaticFastacqRecordlength( device, f"{self._cmd_syntax}:RECOrdlength" @@ -807,7 +807,7 @@ class HorizontalModeAutomatic(SCPICmdRead): - ``.fastacq``: The ``HORizontal:MODe:AUTOmatic:FASTAcq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fastacq = HorizontalModeAutomaticFastacq(device, f"{self._cmd_syntax}:FASTAcq") @@ -863,7 +863,7 @@ class HorizontalMode(SCPICmdWrite, SCPICmdRead): - ``.scale``: The ``HORizontal:MODe:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._automatic = HorizontalModeAutomatic(device, f"{self._cmd_syntax}:AUTOmatic") self._manual = HorizontalModeManual(device, f"{self._cmd_syntax}:MANual") @@ -1006,7 +1006,7 @@ class HorizontalMain(SCPICmdRead): - ``.interpratio``: The ``HORizontal:MAIn:INTERPRatio`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._interpratio = HorizontalMainInterpratio(device, f"{self._cmd_syntax}:INTERPRatio") @@ -1103,7 +1103,7 @@ class HorizontalHistoryTimestamp(SCPICmdRead): - ``.selected``: The ``HORizontal:HISTory:TIMEStamp:SELECTED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = HorizontalHistoryTimestampDelta(device, f"{self._cmd_syntax}:DELTa") self._reference = HorizontalHistoryTimestampReference( @@ -1297,7 +1297,7 @@ class HorizontalHistoryRef(SCPICmdRead): - ``.include``: The ``HORizontal:HISTory:REF:INClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acq = HorizontalHistoryRefAcq(device, f"{self._cmd_syntax}:ACQ") self._include = HorizontalHistoryRefInclude(device, f"{self._cmd_syntax}:INClude") @@ -1430,7 +1430,7 @@ class HorizontalHistory(SCPICmdRead): - ``.timestamp``: The ``HORizontal:HISTory:TIMEStamp`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cstats = HorizontalHistoryCstats(device, f"{self._cmd_syntax}:CSTAts") self._overlay = HorizontalHistoryOverlay(device, f"{self._cmd_syntax}:OVERlay") @@ -1666,7 +1666,7 @@ class HorizontalFastframeXzero(SCPICmdRead): - ``.selected``: The ``HORizontal:FASTframe:XZEro:SELECTED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = HorizontalFastframeXzeroAll(device, f"{self._cmd_syntax}:ALL") self._ref = HorizontalFastframeXzeroRef(device, f"{self._cmd_syntax}:REF") @@ -1837,7 +1837,7 @@ class HorizontalFastframeTimestamp(SCPICmdRead): - ``.selected``: The ``HORizontal:FASTframe:TIMEStamp:SELECTED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = HorizontalFastframeTimestampAll(device, f"{self._cmd_syntax}:ALL") self._delta = HorizontalFastframeTimestampDelta(device, f"{self._cmd_syntax}:DELTa") @@ -1992,7 +1992,7 @@ class HorizontalFastframeSumframe(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``HORizontal:FASTframe:SUMFrame:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = HorizontalFastframeSumframeState(device, f"{self._cmd_syntax}:STATE") @@ -2148,7 +2148,7 @@ class HorizontalFastframeRef(SCPICmdRead): - ``.include``: The ``HORizontal:FASTframe:REF:INCLUde`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frame = HorizontalFastframeRefFrame(device, f"{self._cmd_syntax}:FRAme") self._include = HorizontalFastframeRefInclude(device, f"{self._cmd_syntax}:INCLUde") @@ -2252,7 +2252,7 @@ class HorizontalFastframeMultipleframes(SCPICmdRead): - ``.mode``: The ``HORizontal:FASTframe:MULtipleframes:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalFastframeMultipleframesMode(device, f"{self._cmd_syntax}:MODe") @@ -2358,7 +2358,7 @@ class HorizontalFastframe(SCPICmdRead): - ``.xzero``: The ``HORizontal:FASTframe:XZEro`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = HorizontalFastframeCount(device, f"{self._cmd_syntax}:COUNt") self._maxframes = HorizontalFastframeMaxframes(device, f"{self._cmd_syntax}:MAXFRames") @@ -2647,7 +2647,7 @@ class HorizontalDelay(SCPICmdRead): - ``.time``: The ``HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalDelayMode(device, f"{self._cmd_syntax}:MODe") self._time = HorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -2760,7 +2760,9 @@ class Horizontal(SCPICmdRead): - ``.scale``: The ``HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._acqduration = HorizontalAcqduration(device, f"{self._cmd_syntax}:ACQDURATION") self._delay = HorizontalDelay(device, f"{self._cmd_syntax}:DELay") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py index 587ce0df..66b0cbbc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): @@ -266,7 +266,7 @@ class License(SCPICmdRead): - ``.validate``: The ``LICense:VALidate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LICense") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LICense") -> None: super().__init__(device, cmd_syntax) self._appid = LicenseAppid(device, f"{self._cmd_syntax}:APPID") self._count = LicenseCount(device, f"{self._cmd_syntax}:COUNt") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py index 6d0a2fdc..aa617dee 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): @@ -95,7 +95,7 @@ class MaskTest(SCPICmdRead): - ``.waveforms``: The ``MASK:TESt:WAVEforms`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._waveforms = MaskTestWaveforms(device, f"{self._cmd_syntax}:WAVEforms") @@ -306,7 +306,7 @@ class MaskMaskItemTolerance(SCPICmdRead): - ``.vertical``: The ``MASK:MASK:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._habsolute = MaskMaskItemToleranceHabsolute(device, f"{self._cmd_syntax}:HABSolute") self._horizontal = MaskMaskItemToleranceHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -574,7 +574,7 @@ class MaskMaskItemTest(SCPICmdRead): - ``.threshold``: The ``MASK:MASK:TESt:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cthreshold = MaskMaskItemTestCthreshold(device, f"{self._cmd_syntax}:CTHReshold") self._state = MaskMaskItemTestState(device, f"{self._cmd_syntax}:STATE") @@ -753,7 +753,7 @@ class MaskMaskItemSegcountItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``MASK:MASK:SEGCOUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemSegcountItemHits(device, f"{self._cmd_syntax}:HITS") @@ -824,7 +824,7 @@ class MaskMaskItemSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.points``: The ``MASK:MASK:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._points = MaskMaskItemSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -976,7 +976,7 @@ class MaskMaskItemCount(SCPICmdRead): - ``.hits``: The ``MASK:MASK:COUNT:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskMaskItemCountHits(device, f"{self._cmd_syntax}:HITS") @@ -1029,7 +1029,7 @@ class MaskMaskItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.ttype``: The ``MASK:MASK:TTYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MaskMaskItemCount(device, f"{self._cmd_syntax}:COUNT") self._definedby = MaskMaskItemDefinedby(device, f"{self._cmd_syntax}:DEFinedby") @@ -1327,7 +1327,7 @@ class Mask(SCPICmdRead): - ``.test``: The ``MASK:TESt`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._delete = MaskDelete(device, f"{self._cmd_syntax}:DELete") self._mask: Dict[int, MaskMaskItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py index 5e2131d3..9342f333 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py @@ -163,7 +163,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): @@ -225,7 +225,7 @@ class MathMathItemUsb(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:USB:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemUsbSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -323,7 +323,7 @@ class MathMathItemSvid(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SVID:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSvidSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -398,7 +398,7 @@ class MathMathItemSpmi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPMI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpmiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -476,7 +476,7 @@ class MathMathItemSpi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -613,7 +613,7 @@ class MathMathItemSpectralUnwrap(SCPICmdWrite, SCPICmdRead): - ``.degrees``: The ``MATH:MATH:SPECTral:UNWRap:DEGrees`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = MathMathItemSpectralUnwrapDegrees(device, f"{self._cmd_syntax}:DEGrees") @@ -734,7 +734,7 @@ class MathMathItemSpectralSuppress(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``MATH:MATH:SPECTral:SUPPress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = MathMathItemSpectralSuppressValue(device, f"{self._cmd_syntax}:VALue") @@ -896,7 +896,7 @@ class MathMathItemSpectral(SCPICmdRead): - ``.window``: The ``MATH:MATH:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horz = MathMathItemSpectralHorz(device, f"{self._cmd_syntax}:HORZ") self._mag = MathMathItemSpectralMag(device, f"{self._cmd_syntax}:MAG") @@ -1193,7 +1193,7 @@ class MathMathItemSpacewire(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SPACEWIRe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSpacewireSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1292,7 +1292,7 @@ class MathMathItemSmbus(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SMBUS:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSmbusSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1397,7 +1397,7 @@ class MathMathItemSent(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SENT:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSentSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1474,7 +1474,7 @@ class MathMathItemSdlc(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:SDLC:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemSdlcSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1551,7 +1551,7 @@ class MathMathItemRs232c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:RS232C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemRs232cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1632,7 +1632,7 @@ class MathMathItemPsifive(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:PSIFIVe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemPsifiveSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1709,7 +1709,7 @@ class MathMathItemParallel(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:PARallel:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemParallelSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1783,7 +1783,7 @@ class MathMathItemOnewire(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ONEWIRe:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemOnewireSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1858,7 +1858,7 @@ class MathMathItemMil1553b(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:MIL1553B:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemMil1553bSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -1931,7 +1931,7 @@ class MathMathItemMdio(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:MDIO:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemMdioSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2003,7 +2003,7 @@ class MathMathItemLin(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:LIN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemLinSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2247,7 +2247,7 @@ class MathMathItemLabelFont(SCPICmdRead): - ``.underline``: The ``MATH:MATH:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = MathMathItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = MathMathItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -2412,7 +2412,7 @@ class MathMathItemLabel(SCPICmdRead): - ``.ypos``: The ``MATH:MATH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = MathMathItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = MathMathItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -2603,7 +2603,7 @@ class MathMathItemI3c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:I3C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemI3cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2675,7 +2675,7 @@ class MathMathItemI2c(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:I2C:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemI2cSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -2799,7 +2799,7 @@ class MathMathItemFlexray(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:FLEXray:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemFlexraySupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -3044,7 +3044,7 @@ class MathMathItemFilterSave(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = MathMathItemFilterSaveResponse(device, f"{self._cmd_syntax}:RESPonse") @@ -3258,7 +3258,7 @@ class MathMathItemFilterLoad(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = MathMathItemFilterLoadResponse(device, f"{self._cmd_syntax}:RESPonse") @@ -3465,7 +3465,7 @@ class MathMathItemFilter(SCPICmdRead): - ``.type``: The ``MATH:MATH:FILTer:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cfreq = MathMathItemFilterCfreq(device, f"{self._cmd_syntax}:CFReq") self._delay = MathMathItemFilterDelay(device, f"{self._cmd_syntax}:DELay") @@ -4029,7 +4029,7 @@ class MathMathItemEusb(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:EUSB:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEusbSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4107,7 +4107,7 @@ class MathMathItemEthernet(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ETHERnet:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEthernetSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4185,7 +4185,7 @@ class MathMathItemEthercat(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ETHERCAT:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEthercatSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4261,7 +4261,7 @@ class MathMathItemEspi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ESPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemEspiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4371,7 +4371,7 @@ class MathMathItemCxpi(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:CXPI:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemCxpiSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4443,7 +4443,7 @@ class MathMathItemCan(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:CAN:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemCanSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4535,7 +4535,7 @@ class MathMathItemAvg(SCPICmdRead): - ``.weight``: The ``MATH:MATH:AVG:WEIGht`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MathMathItemAvgMode(device, f"{self._cmd_syntax}:MODE") self._weight = MathMathItemAvgWeight(device, f"{self._cmd_syntax}:WEIGht") @@ -4629,7 +4629,7 @@ class MathMathItemAutoethernet(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:AUTOETHERnet:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemAutoethernetSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4705,7 +4705,7 @@ class MathMathItemAudio(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:AUDIO:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemAudioSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4781,7 +4781,7 @@ class MathMathItemArinc429a(SCPICmdRead): - ``.supportedfields``: The ``MATH:MATH:ARINC429A:SUPPortedfields`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._supportedfields = MathMathItemArinc429aSupportedfields( device, f"{self._cmd_syntax}:SUPPortedfields" @@ -4867,7 +4867,7 @@ class MathMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vunit``: The ``MATH:MATH:VUNIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = MathMathItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = MathMathItemAudio(device, f"{self._cmd_syntax}:AUDIO") @@ -5671,7 +5671,7 @@ class Math(SCPICmdRead): - ``.math``: The ``MATH:MATH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH") -> None: super().__init__(device, cmd_syntax) self._addnew = MathAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = MathDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py index 8161b9dc..df3a1d7f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py @@ -845,7 +845,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): @@ -885,7 +885,7 @@ class MeasurementWbg(SCPICmdRead): - ``.pdevice``: The ``MEASUrement:WBG:PDEVice`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pdevice = MeasurementWbgPdevice(device, f"{self._cmd_syntax}:PDEVice") @@ -958,7 +958,7 @@ class MeasurementStatistics(SCPICmdRead): - ``.cyclemode``: The ``MEASUrement:STATIstics:CYCLEMode`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cyclemode = MeasurementStatisticsCyclemode(device, f"{self._cmd_syntax}:CYCLEMode") @@ -1064,7 +1064,7 @@ class MeasurementResultsHistory(SCPICmdRead): - ``.stop``: The ``MEASUrement:RESUlts:HISTory:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = MeasurementResultsHistoryStart(device, f"{self._cmd_syntax}:STARt") self._stop = MeasurementResultsHistoryStop(device, f"{self._cmd_syntax}:STOP") @@ -1143,7 +1143,7 @@ class MeasurementResults(SCPICmdRead): - ``.history``: The ``MEASUrement:RESUlts:HISTory`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._history = MeasurementResultsHistory(device, f"{self._cmd_syntax}:HISTory") @@ -1433,7 +1433,7 @@ class MeasurementReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsPercentFallhigh(device, f"{self._cmd_syntax}:FALLHigh") self._falllow = MeasurementReflevelsPercentFalllow(device, f"{self._cmd_syntax}:FALLLow") @@ -2037,7 +2037,7 @@ class MeasurementReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -2298,7 +2298,7 @@ class MeasurementReflevels(SCPICmdRead): - ``.type``: The ``MEASUrement:REFLevels:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -2746,7 +2746,7 @@ class MeasurementRefItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -3315,7 +3315,7 @@ class MeasurementRefItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:REF:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementRefItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -3587,7 +3587,7 @@ class MeasurementRefItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:REF:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementRefItemReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementRefItemReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -3716,7 +3716,7 @@ class MeasurementRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:REF:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementRefItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -3802,7 +3802,7 @@ class MeasurementPopulationLimit(SCPICmdRead): - ``.value``: The ``MEASUrement:POPUlation:LIMIT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementPopulationLimitState(device, f"{self._cmd_syntax}:STATE") self._value = MeasurementPopulationLimitValue(device, f"{self._cmd_syntax}:VALue") @@ -3877,7 +3877,7 @@ class MeasurementPopulation(SCPICmdRead): - ``.limit``: The ``MEASUrement:POPUlation:LIMIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limit = MeasurementPopulationLimit(device, f"{self._cmd_syntax}:LIMIT") @@ -4122,7 +4122,7 @@ class MeasurementMech(SCPICmdRead): - ``.stype``: The ``MEASUrement:MECH:STYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eindexz = MeasurementMechEindexz(device, f"{self._cmd_syntax}:EINDexz") self._gratio = MeasurementMechGratio(device, f"{self._cmd_syntax}:GRATio") @@ -4416,7 +4416,7 @@ class MeasurementMeasrange(SCPICmdRead): - ``.state``: The ``MEASUrement:MEASRange:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = MeasurementMeasrangeMax(device, f"{self._cmd_syntax}:MAX") self._min = MeasurementMeasrangeMin(device, f"{self._cmd_syntax}:MIN") @@ -4898,7 +4898,7 @@ class MeasurementMeasItemWbg(SCPICmdRead): - ``.timer``: The ``MEASUrement:MEAS:WBG:TIMer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._afgsetup = MeasurementMeasItemWbgAfgsetup(device, f"{self._cmd_syntax}:AFGSetup") self._afgaddress = MeasurementMeasItemWbgAfgaddress( @@ -5842,7 +5842,7 @@ class MeasurementMeasItemTosymbol(SCPICmdRead): - ``.measureat``: The ``MEASUrement:MEAS:TOSYmbol:MEASUREAT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic2source = MeasurementMeasItemTosymbolLogic2source( device, f"{self._cmd_syntax}:LOGIC2SOUrce" @@ -6469,7 +6469,7 @@ class MeasurementMeasItemSubgroupResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:SUBGROUP:RESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemSubgroupResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -6921,7 +6921,7 @@ class MeasurementMeasItemSubgroupResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:SUBGROUP:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemSubgroupResultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -7144,7 +7144,7 @@ class MeasurementMeasItemSubgroupResults(SCPICmdRead): - ``.currentacq``: The ``MEASUrement:MEAS:SUBGROUP:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemSubgroupResultsAllacqs( device, f"{self._cmd_syntax}:ALLAcqs" @@ -7210,7 +7210,7 @@ class MeasurementMeasItemSubgroup(SCPICmdRead): - ``.results``: The ``MEASUrement:MEAS:SUBGROUP:RESUlts`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._results = MeasurementMeasItemSubgroupResults(device, f"{self._cmd_syntax}:RESUlts") @@ -7470,7 +7470,7 @@ class MeasurementMeasItemSscNominalfreq(SCPICmdWrite, SCPICmdRead): - ``.selectiontype``: The ``MEASUrement:MEAS:SSC:NOMinalfreq:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementMeasItemSscNominalfreqSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -7522,7 +7522,7 @@ class MeasurementMeasItemSsc(SCPICmdRead): - ``.nominalfreq``: The ``MEASUrement:MEAS:SSC:NOMinalfreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nominalfreq = MeasurementMeasItemSscNominalfreq( device, f"{self._cmd_syntax}:NOMinalfreq" @@ -8040,7 +8040,7 @@ class MeasurementMeasItemResultsHistory(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:HISTory:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsHistoryMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -8335,7 +8335,7 @@ class MeasurementMeasItemResultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -8629,7 +8629,7 @@ class MeasurementMeasItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemResultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -8790,7 +8790,7 @@ class MeasurementMeasItemResults(SCPICmdRead): - ``.history``: The ``MEASUrement:MEAS:RESUlts:HISTory`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemResultsCurrentacq( @@ -8989,7 +8989,7 @@ class MeasurementMeasItemReflevelsAbsolute(SCPICmdRead): - ``.fallhigh``: The ``MEASUrement:MEAS:REFLevels:ABSolute:FALLHigh`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -9292,7 +9292,7 @@ class MeasurementMeasItemReflevels1Percent(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMeasItemReflevels1PercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -9870,7 +9870,7 @@ class MeasurementMeasItemReflevels1Absolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MEAS:REFLevels1:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._falllow = MeasurementMeasItemReflevels1AbsoluteFalllow( device, f"{self._cmd_syntax}:FALLLow" @@ -10124,7 +10124,7 @@ class MeasurementMeasItemReflevels1(SCPICmdRead): - ``.percent``: The ``MEASUrement:MEAS:REFLevels1:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevels1Absolute( device, f"{self._cmd_syntax}:ABSolute" @@ -10272,7 +10272,7 @@ class MeasurementMeasItemReflevels(SCPICmdRead): - ``.absolute``: The ``MEASUrement:MEAS:REFLevels:ABSolute`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -10554,7 +10554,7 @@ class MeasurementMeasItemPopulationLimit(SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:POPUlation:LIMIT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementMeasItemPopulationLimitState(device, f"{self._cmd_syntax}:STATE") self._value = MeasurementMeasItemPopulationLimitValue(device, f"{self._cmd_syntax}:VALue") @@ -10671,7 +10671,7 @@ class MeasurementMeasItemPopulation(SCPICmdRead): - ``.limit``: The ``MEASUrement:MEAS:POPUlation:LIMIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = MeasurementMeasItemPopulationGlobal(device, f"{self._cmd_syntax}:GLOBal") self._limit = MeasurementMeasItemPopulationLimit(device, f"{self._cmd_syntax}:LIMIT") @@ -10825,7 +10825,7 @@ class MeasurementMeasItemPerfreq(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:PERFREQ:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = MeasurementMeasItemPerfreqEdge(device, f"{self._cmd_syntax}:EDGE") @@ -11241,7 +11241,7 @@ class MeasurementMeasItemOutfiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:OUTFILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemOutfiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemOutfiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -11324,7 +11324,7 @@ class MeasurementMeasItemOutfilters(SCPICmdRead): - ``.lowpass``: The ``MEASUrement:MEAS:OUTFILTers:LOWPass`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpass = MeasurementMeasItemOutfiltersLowpass(device, f"{self._cmd_syntax}:LOWPass") @@ -11472,7 +11472,7 @@ class MeasurementMeasItemOfiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:OFILters:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemOfiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemOfiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -11555,7 +11555,7 @@ class MeasurementMeasItemOfilters(SCPICmdRead): - ``.lowpass``: The ``MEASUrement:MEAS:OFILters:LOWPass`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpass = MeasurementMeasItemOfiltersLowpass(device, f"{self._cmd_syntax}:LOWPass") @@ -11839,7 +11839,7 @@ class MeasurementMeasItemMech(SCPICmdRead): - ``.stype``: The ``MEASUrement:MEAS:MECH:STYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eindexz = MeasurementMeasItemMechEindexz(device, f"{self._cmd_syntax}:EINDexz") self._gratio = MeasurementMeasItemMechGratio(device, f"{self._cmd_syntax}:GRATio") @@ -12160,7 +12160,7 @@ class MeasurementMeasItemMeasrange(SCPICmdRead): - ``.state``: The ``MEASUrement:MEAS:MEASRange:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = MeasurementMeasItemMeasrangeGlobal(device, f"{self._cmd_syntax}:GLOBal") self._max = MeasurementMeasItemMeasrangeMax(device, f"{self._cmd_syntax}:MAX") @@ -12851,7 +12851,7 @@ class MeasurementMeasItemJittersummary(SCPICmdRead): - ``.tjber``: The ``MEASUrement:MEAS:JITTERSummary:TJBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dcd = MeasurementMeasItemJittersummaryDcd(device, f"{self._cmd_syntax}:DCD") self._ddj = MeasurementMeasItemJittersummaryDdj(device, f"{self._cmd_syntax}:DDJ") @@ -13304,7 +13304,7 @@ class MeasurementMeasItemHlevelOutput(SCPICmdRead): - ``.uglobal``: The ``MEASUrement:MEAS:HLEVel:OUTPut:UGLobal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._uglobal = MeasurementMeasItemHlevelOutputUglobal( device, f"{self._cmd_syntax}:UGLobal" @@ -13352,7 +13352,7 @@ class MeasurementMeasItemHlevel(SCPICmdRead): - ``.output``: The ``MEASUrement:MEAS:HLEVel:OUTPut`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._output = MeasurementMeasItemHlevelOutput(device, f"{self._cmd_syntax}:OUTPut") @@ -13651,7 +13651,7 @@ class MeasurementMeasItemHighlevel(SCPICmdRead): - ``.wiring``: The ``MEASUrement:MEAS:HIGHLEVel:WIRing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configuration = MeasurementMeasItemHighlevelConfiguration( device, f"{self._cmd_syntax}:CONFIGuration" @@ -14308,7 +14308,7 @@ class MeasurementMeasItemGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:MEAS:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementMeasItemGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementMeasItemGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -14797,7 +14797,7 @@ class MeasurementMeasItemFromsymbol(SCPICmdRead): - ``.measureat``: The ``MEASUrement:MEAS:FROMSymbol:MEASUREAT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic2source = MeasurementMeasItemFromsymbolLogic2source( device, f"{self._cmd_syntax}:LOGIC2SOUrce" @@ -15178,7 +15178,7 @@ class MeasurementMeasItemFiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:FILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemFiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemFiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -15323,7 +15323,7 @@ class MeasurementMeasItemFiltersHighpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:MEAS:FILTers:HIGHPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementMeasItemFiltersHighpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementMeasItemFiltersHighpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -15467,7 +15467,7 @@ class MeasurementMeasItemFilters(SCPICmdRead): - ``.ramptime``: The ``MEASUrement:MEAS:FILTers:RAMPtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blankingtime = MeasurementMeasItemFiltersBlankingtime( device, f"{self._cmd_syntax}:BLANKingtime" @@ -16027,7 +16027,7 @@ class MeasurementMeasItemEdges(SCPICmdRead): - ``.upperfrequency``: The ``MEASUrement:MEAS:EDGES:UPPERFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fromlevel = MeasurementMeasItemEdgesFromlevel(device, f"{self._cmd_syntax}:FROMLevel") self._level = MeasurementMeasItemEdgesLevel(device, f"{self._cmd_syntax}:LEVel") @@ -16429,7 +16429,7 @@ class MeasurementMeasItemDisplaystat(SCPICmdRead): - ``.enable``: The ``MEASUrement:MEAS:DISPlaystat:ENABle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = MeasurementMeasItemDisplaystatEnable(device, f"{self._cmd_syntax}:ENABle") @@ -16513,7 +16513,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementMeasItemDelayEdgeItem(device, f"{self._cmd_syntax}:EDGE{x}") @@ -16791,7 +16791,7 @@ class MeasurementMeasItemCommonmodeFilters(SCPICmdRead): - ``.state``: The ``MEASUrement:MEAS:COMMONMode:FILTers:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = MeasurementMeasItemCommonmodeFiltersState(device, f"{self._cmd_syntax}:STATE") @@ -16844,7 +16844,7 @@ class MeasurementMeasItemCommonmode(SCPICmdRead): - ``.sources``: The ``MEASUrement:MEAS:COMMONMode:SOURCEs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filters = MeasurementMeasItemCommonmodeFilters(device, f"{self._cmd_syntax}:FILTers") self._sources = MeasurementMeasItemCommonmodeSources(device, f"{self._cmd_syntax}:SOURCEs") @@ -17010,7 +17010,7 @@ class MeasurementMeasItemClockrecoveryNominaloffset(SCPICmdWrite, SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementMeasItemClockrecoveryNominaloffsetSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -17468,7 +17468,7 @@ class MeasurementMeasItemClockrecoveryAdvanced(SCPICmdRead): - ``.method``: The ``MEASUrement:MEAS:CLOCKRecovery:ADVanced:METHod`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._method = MeasurementMeasItemClockrecoveryAdvancedMethod( device, f"{self._cmd_syntax}:METHod" @@ -17540,7 +17540,7 @@ class MeasurementMeasItemClockrecovery(SCPICmdRead): - ``.tdcompensation``: The ``MEASUrement:MEAS:CLOCKRecovery:TDCOMPensation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanced = MeasurementMeasItemClockrecoveryAdvanced( device, f"{self._cmd_syntax}:ADVanced" @@ -18227,7 +18227,7 @@ class MeasurementMeasItemCcresultsCurrentacq(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsCurrentacqMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -18525,7 +18525,7 @@ class MeasurementMeasItemCcresultsAllacqs(SCPICmdRead): - ``.stddev``: The ``MEASUrement:MEAS:CCRESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = MeasurementMeasItemCcresultsAllacqsMaximum( device, f"{self._cmd_syntax}:MAXimum" @@ -18689,7 +18689,7 @@ class MeasurementMeasItemCcresults(SCPICmdRead): - ``.currentacq``: The ``MEASUrement:MEAS:CCRESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = MeasurementMeasItemCcresultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = MeasurementMeasItemCcresultsCurrentacq( @@ -19031,7 +19031,7 @@ class MeasurementMeasItemBer(SCPICmdWrite, SCPICmdRead): - ``.targetber``: The ``MEASUrement:MEAS:BER:TARGETBER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._targetber = MeasurementMeasItemBerTargetber(device, f"{self._cmd_syntax}:TARGETBER") @@ -19312,7 +19312,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): # pylint: disable=too-many-statements def __init__( # noqa: PLR0915 - self, device: Optional["PIDevice"], cmd_syntax: str + self, device: Optional["PIControl"], cmd_syntax: str ) -> None: super().__init__(device, cmd_syntax) self._abandwidth = MeasurementMeasItemAbandwidth(device, f"{self._cmd_syntax}:ABANdwidth") @@ -24168,7 +24168,7 @@ class MeasurementMathItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -24774,7 +24774,7 @@ class MeasurementMathItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:MATH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementMathItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -25064,7 +25064,7 @@ class MeasurementMathItemReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:MATH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMathItemReflevelsAbsolute( device, f"{self._cmd_syntax}:ABSolute" @@ -25212,7 +25212,7 @@ class MeasurementMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:MATH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementMathItemReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -25542,7 +25542,7 @@ class MeasurementHighlevelOutlowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:HIGHLEVel:OUTLOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementHighlevelOutlowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementHighlevelOutlowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -25805,7 +25805,7 @@ class MeasurementHighlevelInlowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:HIGHLEVel:INLOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementHighlevelInlowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementHighlevelInlowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -25947,7 +25947,7 @@ class MeasurementHighlevel(SCPICmdRead): - ``.wiring``: The ``MEASUrement:HIGHLEVel:WIRing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._configuration = MeasurementHighlevelConfiguration( device, f"{self._cmd_syntax}:CONFIGuration" @@ -26540,7 +26540,7 @@ class MeasurementGating(SCPICmdWrite, SCPICmdRead): - ``.starttime``: The ``MEASUrement:GATing:STARTtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = MeasurementGatingActive(device, f"{self._cmd_syntax}:ACTive") self._endtime = MeasurementGatingEndtime(device, f"{self._cmd_syntax}:ENDtime") @@ -26824,7 +26824,7 @@ class MeasurementFiltersLowpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:FILTers:LOWPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementFiltersLowpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementFiltersLowpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -26952,7 +26952,7 @@ class MeasurementFiltersHighpass(SCPICmdRead): - ``.spec``: The ``MEASUrement:FILTers:HIGHPass:SPEC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._freq = MeasurementFiltersHighpassFreq(device, f"{self._cmd_syntax}:FREQ") self._spec = MeasurementFiltersHighpassSpec(device, f"{self._cmd_syntax}:SPEC") @@ -27055,7 +27055,7 @@ class MeasurementFilters(SCPICmdRead): - ``.ramptime``: The ``MEASUrement:FILTers:RAMPtime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blankingtime = MeasurementFiltersBlankingtime( device, f"{self._cmd_syntax}:BLANKingtime" @@ -27439,7 +27439,7 @@ class MeasurementClockrecoveryNominaloffset(SCPICmdWrite, SCPICmdRead): - ``.selectiontype``: The ``MEASUrement:CLOCKRecovery:NOMINALOFFset:SELECTIONtype`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._selectiontype = MeasurementClockrecoveryNominaloffsetSelectiontype( device, f"{self._cmd_syntax}:SELECTIONtype" @@ -27854,7 +27854,7 @@ class MeasurementClockrecoveryAdvanced(SCPICmdRead): - ``.method``: The ``MEASUrement:CLOCKRecovery:ADVanced:METHod`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._method = MeasurementClockrecoveryAdvancedMethod(device, f"{self._cmd_syntax}:METHod") @@ -27918,7 +27918,7 @@ class MeasurementClockrecovery(SCPICmdRead): - ``.tdcompensation``: The ``MEASUrement:CLOCKRecovery:TDCOMPensation`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanced = MeasurementClockrecoveryAdvanced(device, f"{self._cmd_syntax}:ADVanced") self._clockfrequency = MeasurementClockrecoveryClockfrequency( @@ -28714,7 +28714,7 @@ class MeasurementChannelReflevelsPercent(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -29286,7 +29286,7 @@ class MeasurementChannelReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``MEASUrement:CH:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = MeasurementChannelReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -29566,7 +29566,7 @@ class MeasurementChannelReflevels(SCPICmdRead): - ``.percent``: The ``MEASUrement:CH:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementChannelReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = MeasurementChannelReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -29697,7 +29697,7 @@ class MeasurementChannel(ValidatedChannel, SCPICmdRead): - ``.reflevels``: The ``MEASUrement:CH:REFLevels`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reflevels = MeasurementChannelReflevels(device, f"{self._cmd_syntax}:REFLevels") @@ -30219,7 +30219,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._addmeas = MeasurementAddmeas(device, f"{self._cmd_syntax}:ADDMEAS") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py index e61d930a..c658948a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PiloggerState(SCPICmdWrite, SCPICmdRead): @@ -94,7 +94,7 @@ class Pilogger(SCPICmdRead): - ``.state``: The ``PILOGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PILOGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PILOGger") -> None: super().__init__(device, cmd_syntax) self._filename = PiloggerFilename(device, f"{self._cmd_syntax}:FILEName") self._state = PiloggerState(device, f"{self._cmd_syntax}:STATE") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py index 2625158a..798726ae 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py @@ -87,7 +87,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): @@ -180,7 +180,7 @@ class PlotPlotItemTresponse(SCPICmdRead): - ``.rtype``: The ``PLOT:PLOT:TRESponse:RTYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rtype = PlotPlotItemTresponseRtype(device, f"{self._cmd_syntax}:RTYPe") @@ -275,7 +275,7 @@ class PlotPlotItemSpectrum(SCPICmdRead): - ``.dynrange``: The ``PLOT:PLOT:SPECtrum:DYNRange`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._base = PlotPlotItemSpectrumBase(device, f"{self._cmd_syntax}:BASE") self._dynrange = PlotPlotItemSpectrumDynrange(device, f"{self._cmd_syntax}:DYNRange") @@ -529,7 +529,7 @@ class PlotPlotItemMaskoffsetPercentui(SCPICmdRead): - ``.to``: The ``PLOT:PLOT:MASKOffset:PERCENTui:TO`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = PlotPlotItemMaskoffsetPercentuiFrom(device, f"{self._cmd_syntax}:FROM") self._to = PlotPlotItemMaskoffsetPercentuiTo(device, f"{self._cmd_syntax}:TO") @@ -638,7 +638,7 @@ class PlotPlotItemMaskoffsetHorizontal(SCPICmdRead): - ``.autofit``: The ``PLOT:PLOT:MASKOffset:HORizontal:AUTOfit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autofit = PlotPlotItemMaskoffsetHorizontalAutofit( device, f"{self._cmd_syntax}:AUTOfit" @@ -690,7 +690,7 @@ class PlotPlotItemMaskoffset(SCPICmdRead): - ``.percentui``: The ``PLOT:PLOT:MASKOffset:PERCENTui`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = PlotPlotItemMaskoffsetHorizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -989,7 +989,7 @@ class PlotPlotItemLabelFont(SCPICmdRead): - ``.underline``: The ``PLOT:PLOT:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = PlotPlotItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = PlotPlotItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -1182,7 +1182,7 @@ class PlotPlotItemLabel(SCPICmdRead): - ``.ypos``: The ``PLOT:PLOT:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = PlotPlotItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = PlotPlotItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1442,7 +1442,7 @@ class PlotPlotItemImda(SCPICmdRead): - ``.meas``: The ``PLOT:PLOT:IMDA:MEAS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._meas = PlotPlotItemImdaMeas(device, f"{self._cmd_syntax}:MEAS") @@ -1682,7 +1682,7 @@ class PlotPlotItemBathtub(SCPICmdRead): - ``.xaxisunits``: The ``PLOT:PLOT:BATHtub:XAXISUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ber = PlotPlotItemBathtubBer(device, f"{self._cmd_syntax}:BER") self._xaxisunits = PlotPlotItemBathtubXaxisunits(device, f"{self._cmd_syntax}:XAXISUnits") @@ -1772,7 +1772,7 @@ class PlotPlotItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``PLOT:PLOT:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bathtub = PlotPlotItemBathtub(device, f"{self._cmd_syntax}:BATHtub") self._bittype = PlotPlotItemBittype(device, f"{self._cmd_syntax}:BITType") @@ -2385,7 +2385,7 @@ class Plot(SCPICmdRead): - ``.plot``: The ``PLOT:PLOT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PLOT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PLOT") -> None: super().__init__(device, cmd_syntax) self._addnew = PlotAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PlotDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py index 312ab87a..c47b1e2f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py @@ -521,7 +521,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemWrapState(SCPICmdWrite, SCPICmdRead): @@ -590,7 +590,7 @@ class PowerPowerItemWrap(SCPICmdRead): - ``.state``: The ``POWer:POWer:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = PowerPowerItemWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = PowerPowerItemWrapState(device, f"{self._cmd_syntax}:STATE") @@ -1366,7 +1366,7 @@ class PowerPowerItemTurnontime(SCPICmdRead): - ``.type``: The ``POWer:POWer:TURNONtime:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = PowerPowerItemTurnontimeFrequency(device, f"{self._cmd_syntax}:FREQuency") self._inputlevel = PowerPowerItemTurnontimeInputlevel( @@ -2783,7 +2783,7 @@ class PowerPowerItemTurnofftime(SCPICmdRead): - ``.type``: The ``POWer:POWer:TURNOFFtime:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = PowerPowerItemTurnofftimeFrequency( device, f"{self._cmd_syntax}:FREQuency" @@ -3594,7 +3594,7 @@ class PowerPowerItemSwitchingripple(SCPICmdRead): - ``.lfrequency``: The ``POWer:POWer:SWITCHINGRIPPLE:LFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemSwitchingrippleInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -4084,7 +4084,7 @@ class PowerPowerItemSwitchingloss(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:SWITCHINGLOSS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._devicetype = PowerPowerItemSwitchinglossDevicetype( device, f"{self._cmd_syntax}:DEVICEType" @@ -4654,7 +4654,7 @@ class PowerPowerItemSoaSavemask(SCPICmdWriteNoArguments, SCPICmdRead): - ``.folder``: The ``POWer:POWer:SOA:SAVemask:FOLDer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoincrement = PowerPowerItemSoaSavemaskAutoincrement( device, f"{self._cmd_syntax}:AUTOINCrement" @@ -4786,7 +4786,7 @@ class PowerPowerItemSoaRecallmask(SCPICmdWriteNoArguments, SCPICmdRead): - ``.filename``: The ``POWer:POWer:SOA:RECAllmask:FILEName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = PowerPowerItemSoaRecallmaskFilename(device, f"{self._cmd_syntax}:FILEName") @@ -4895,7 +4895,7 @@ class PowerPowerItemSoa(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:SOA:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemSoaIsource(device, f"{self._cmd_syntax}:ISOURce") self._point: Dict[int, PowerPowerItemSoaPointItem] = DefaultDictPassKeyToFactory( @@ -5631,7 +5631,7 @@ class PowerPowerItemResultsCurrentacq(SCPICmdRead): - ``.vrms``: The ``POWer:POWer:RESUlts:CURRentacq:VRMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._f1mag = PowerPowerItemResultsCurrentacqF1mag(device, f"{self._cmd_syntax}:F1MAG") self._f3mag = PowerPowerItemResultsCurrentacqF3mag(device, f"{self._cmd_syntax}:F3MAG") @@ -6359,7 +6359,7 @@ class PowerPowerItemResultsAllacqs(SCPICmdRead): - ``.stddev``: The ``POWer:POWer:RESUlts:ALLAcqs:STDDev`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = PowerPowerItemResultsAllacqsMaximum(device, f"{self._cmd_syntax}:MAXimum") self._mean = PowerPowerItemResultsAllacqsMean(device, f"{self._cmd_syntax}:MEAN") @@ -6560,7 +6560,7 @@ class PowerPowerItemResults(SCPICmdRead): - ``.currentacq``: The ``POWer:POWer:RESUlts:CURRentacq`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allacqs = PowerPowerItemResultsAllacqs(device, f"{self._cmd_syntax}:ALLAcqs") self._currentacq = PowerPowerItemResultsCurrentacq(device, f"{self._cmd_syntax}:CURRentacq") @@ -6874,7 +6874,7 @@ class PowerPowerItemReflevelsPercent(SCPICmdRead): - ``.type``: The ``POWer:POWer:REFLevels:PERCent:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = PowerPowerItemReflevelsPercentFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7442,7 +7442,7 @@ class PowerPowerItemReflevelsAbsolute(SCPICmdRead): - ``.type``: The ``POWer:POWer:REFLevels:ABSolute:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fallhigh = PowerPowerItemReflevelsAbsoluteFallhigh( device, f"{self._cmd_syntax}:FALLHigh" @@ -7725,7 +7725,7 @@ class PowerPowerItemReflevels(SCPICmdRead): - ``.percent``: The ``POWer:POWer:REFLevels:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = PowerPowerItemReflevelsAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._basetop = PowerPowerItemReflevelsBasetop(device, f"{self._cmd_syntax}:BASETop") @@ -7938,7 +7938,7 @@ class PowerPowerItemRdson(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:RDSON:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._devicetype = PowerPowerItemRdsonDevicetype(device, f"{self._cmd_syntax}:DEVICEType") self._isource = PowerPowerItemRdsonIsource(device, f"{self._cmd_syntax}:ISOURce") @@ -8499,7 +8499,7 @@ class PowerPowerItemPsrr(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:PSRR:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampval: Dict[int, PowerPowerItemPsrrAmpvalItem] = DefaultDictPassKeyToFactory( lambda x: PowerPowerItemPsrrAmpvalItem(device, f"{self._cmd_syntax}:AMP{x}Val") @@ -9070,7 +9070,7 @@ class PowerPowerItemPpulsewidth(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PPULSEWIDTH:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemPpulsewidthInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -9270,7 +9270,7 @@ class PowerPowerItemPowerquality(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:POWERQUALITY:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ccycles = PowerPowerItemPowerqualityCcycles(device, f"{self._cmd_syntax}:CCYCles") self._freference = PowerPowerItemPowerqualityFreference( @@ -9501,7 +9501,7 @@ class PowerPowerItemPeriod(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PERIOD:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = PowerPowerItemPeriodEdge(device, f"{self._cmd_syntax}:EDGe") self._inputsource = PowerPowerItemPeriodInputsource( @@ -9632,7 +9632,7 @@ class PowerPowerItemPdutycycle(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:PDUTYCYCLE:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgetype = PowerPowerItemPdutycycleEdgetype(device, f"{self._cmd_syntax}:EDGEType") self._inputsource = PowerPowerItemPdutycycleInputsource( @@ -9743,7 +9743,7 @@ class PowerPowerItemNpulsewidth(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:NPULSEWIDTH:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemNpulsewidthInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -9850,7 +9850,7 @@ class PowerPowerItemNdutycycle(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:NDUTYCYCLE:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgetype = PowerPowerItemNdutycycleEdgetype(device, f"{self._cmd_syntax}:EDGEType") self._inputsource = PowerPowerItemNdutycycleInputsource( @@ -10609,7 +10609,7 @@ class PowerPowerItemMagproperty(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:MAGPROPERTY:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._areaofcrosssection = PowerPowerItemMagpropertyAreaofcrosssection( device, f"{self._cmd_syntax}:AREAofcrosssection" @@ -11440,7 +11440,7 @@ class PowerPowerItemMagneticloss(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:MAGNETICLOSS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemMagneticlossIsource(device, f"{self._cmd_syntax}:ISOURce") self._vsource = PowerPowerItemMagneticlossVsource(device, f"{self._cmd_syntax}:VSOURce") @@ -11581,7 +11581,7 @@ class PowerPowerItemLineripple(SCPICmdRead): - ``.lfrequency``: The ``POWer:POWer:LINERIPPLE:LFREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemLinerippleInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -11748,7 +11748,7 @@ class PowerPowerItemIvsintegralv(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:IVSINTEGRALV:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemIvsintegralvIsource(device, f"{self._cmd_syntax}:ISOURce") self._vsource = PowerPowerItemIvsintegralvVsource(device, f"{self._cmd_syntax}:VSOURce") @@ -11896,7 +11896,7 @@ class PowerPowerItemInrushcurrent(SCPICmdRead): - ``.peakcurrent``: The ``POWer:POWer:INRUSHcurrent:PEAKCURRent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemInrushcurrentInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -12109,7 +12109,7 @@ class PowerPowerItemInputcap(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:INPUTCAP:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._isource = PowerPowerItemInputcapIsource(device, f"{self._cmd_syntax}:ISOURce") self._peakcurrent = PowerPowerItemInputcapPeakcurrent( @@ -12355,7 +12355,7 @@ class PowerPowerItemInductance(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:INDUCTANCE:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edgesource = PowerPowerItemInductanceEdgesource( device, f"{self._cmd_syntax}:EDGESource" @@ -12933,7 +12933,7 @@ class PowerPowerItemImpedance(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:IMPEDANCE:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampval: Dict[int, PowerPowerItemImpedanceAmpvalItem] = DefaultDictPassKeyToFactory( lambda x: PowerPowerItemImpedanceAmpvalItem(device, f"{self._cmd_syntax}:AMP{x}Val") @@ -13942,7 +13942,7 @@ class PowerPowerItemHarmonics(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:HARMONICS:VSOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = PowerPowerItemHarmonicsClass(device, f"{self._cmd_syntax}:CLASs") self._clfile = PowerPowerItemHarmonicsClfile(device, f"{self._cmd_syntax}:CLFile") @@ -14537,7 +14537,7 @@ class PowerPowerItemGating(SCPICmdWrite, SCPICmdRead): - ``.global``: The ``POWer:POWer:GATing:GLOBal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._global = PowerPowerItemGatingGlobal(device, f"{self._cmd_syntax}:GLOBal") @@ -14644,7 +14644,7 @@ class PowerPowerItemFrequency(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:FREQUENCY:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = PowerPowerItemFrequencyEdge(device, f"{self._cmd_syntax}:EDGe") self._inputsource = PowerPowerItemFrequencyInputsource( @@ -15167,7 +15167,7 @@ class PowerPowerItemEfficiency(SCPICmdRead): - ``.vsource``: The ``POWer:POWer:EFFICIENCY:VSOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputtype = PowerPowerItemEfficiencyInputtype(device, f"{self._cmd_syntax}:INPUTType") self._iout1source = PowerPowerItemEfficiencyIout1source( @@ -15725,7 +15725,7 @@ class PowerPowerItemDvdt(SCPICmdRead): - ``.sourceedgetype``: The ``POWer:POWer:DVDT:SOURCEEDGEType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemDvdtInputsource(device, f"{self._cmd_syntax}:INPUTSOurce") self._sourceedgetype = PowerPowerItemDvdtSourceedgetype( @@ -15855,7 +15855,7 @@ class PowerPowerItemDidt(SCPICmdRead): - ``.sourceedgetype``: The ``POWer:POWer:DIDT:SOURCEEDGEType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemDidtInputsource(device, f"{self._cmd_syntax}:INPUTSOurce") self._sourceedgetype = PowerPowerItemDidtSourceedgetype( @@ -15963,7 +15963,7 @@ class PowerPowerItemCycletop(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLETop:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycletopInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16047,7 +16047,7 @@ class PowerPowerItemCyclepkpk(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEPKPK:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclepkpkInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16130,7 +16130,7 @@ class PowerPowerItemCyclemin(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEMin:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycleminInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16213,7 +16213,7 @@ class PowerPowerItemCyclemax(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEMAX:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclemaxInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16297,7 +16297,7 @@ class PowerPowerItemCyclebase(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEBase:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCyclebaseInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16380,7 +16380,7 @@ class PowerPowerItemCycleamp(SCPICmdRead): - ``.inputsource``: The ``POWer:POWer:CYCLEAmp:INPUTSOurce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._inputsource = PowerPowerItemCycleampInputsource( device, f"{self._cmd_syntax}:INPUTSOurce" @@ -16932,7 +16932,7 @@ class PowerPowerItemClresponse(SCPICmdRead): - ``.testconnection``: The ``POWer:POWer:CLRESPONSE:TESTCONNection`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ampval: Dict[int, PowerPowerItemClresponseAmpvalItem] = DefaultDictPassKeyToFactory( lambda x: PowerPowerItemClresponseAmpvalItem(device, f"{self._cmd_syntax}:AMP{x}Val") @@ -17560,7 +17560,7 @@ class PowerPowerItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.wrap``: The ``POWer:POWer:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoset = PowerPowerItemAutoset(device, f"{self._cmd_syntax}:AUTOSet") self._clresponse = PowerPowerItemClresponse(device, f"{self._cmd_syntax}:CLRESPONSE") @@ -18545,7 +18545,7 @@ class Power(SCPICmdRead): - ``.power``: The ``POWer:POWer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "POWer") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "POWer") -> None: super().__init__(device, cmd_syntax) self._addnew = PowerAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PowerDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py index 21326e95..7c426975 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite): @@ -293,7 +293,7 @@ class RefRefItemLabelFont(SCPICmdRead): - ``.underline``: The ``REF:REF:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = RefRefItemLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = RefRefItemLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -477,7 +477,7 @@ class RefRefItemLabel(SCPICmdRead): - ``.ypos``: The ``REF:REF:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = RefRefItemLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = RefRefItemLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -646,7 +646,7 @@ class RefRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.source``: The ``REF:REF:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deskew = RefRefItemDeskew(device, f"{self._cmd_syntax}:DESKew") self._label = RefRefItemLabel(device, f"{self._cmd_syntax}:LABel") @@ -789,7 +789,7 @@ class Ref(SCPICmdRead): - ``.ref``: The ``REF:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._addnew = RefAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = RefDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py index c45a8992..9a1d5d7a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscState(SCPICmdRead): @@ -85,7 +85,7 @@ class Rosc(SCPICmdRead): - ``.state``: The ``ROSc:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ROSc") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ROSc") -> None: super().__init__(device, cmd_syntax) self._source = RoscSource(device, f"{self._cmd_syntax}:SOUrce") self._state = RoscState(device, f"{self._cmd_syntax}:STATE") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py index aea73bd5..534928b7 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): @@ -129,7 +129,7 @@ class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): - ``.resamplerate``: The ``SAVe:WAVEform:GATing:RESAMPLErate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resamplerate = SaveWaveformGatingResamplerate( device, f"{self._cmd_syntax}:RESAMPLErate" @@ -204,7 +204,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.sourcelist``: The ``SAVe:WAVEform:SOURCELIst`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gating = SaveWaveformGating(device, f"{self._cmd_syntax}:GATing") self._sourcelist = SaveWaveformSourcelist(device, f"{self._cmd_syntax}:SOURCELIst") @@ -321,7 +321,7 @@ class SaveSetup(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._includerefs = SaveSetupIncluderefs(device, f"{self._cmd_syntax}:INCLUDEREFs") @@ -428,7 +428,7 @@ class SaveReport(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._comments = SaveReportComments(device, f"{self._cmd_syntax}:COMMents") @@ -590,7 +590,7 @@ class SaveImage(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._composition = SaveImageComposition(device, f"{self._cmd_syntax}:COMPosition") self._viewtype = SaveImageViewtype(device, f"{self._cmd_syntax}:VIEWTYpe") @@ -826,7 +826,7 @@ class SaveEventtableCustom(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._comments = SaveEventtableCustomComments(device, f"{self._cmd_syntax}:COMMents") self._dataformat = SaveEventtableCustomDataformat(device, f"{self._cmd_syntax}:DATAFormat") @@ -962,7 +962,7 @@ class SaveEventtable(SCPICmdRead): - ``.searchtable``: The ``SAVe:EVENTtable:SEARCHTable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SaveEventtableBus(device, f"{self._cmd_syntax}:BUS") self._custom = SaveEventtableCustom(device, f"{self._cmd_syntax}:CUSTom") @@ -1111,7 +1111,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") self._image = SaveImage(device, f"{self._cmd_syntax}:IMAGe") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py index b2d48b59..97aad45d 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): @@ -122,7 +122,7 @@ class SaveonWaveform(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``SAVEON:WAVEform:SOURce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveonWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._source = SaveonWaveformSource(device, f"{self._cmd_syntax}:SOURce") @@ -274,7 +274,7 @@ class SaveonImage(SCPICmdWrite, SCPICmdRead): - ``.fileformat``: The ``SAVEON:IMAGe:FILEFormat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveonImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -373,7 +373,7 @@ class SaveonFile(SCPICmdRead): - ``.name``: The ``SAVEON:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dest = SaveonFileDest(device, f"{self._cmd_syntax}:DEST") self._name = SaveonFileName(device, f"{self._cmd_syntax}:NAME") @@ -445,7 +445,7 @@ class Saveon(SCPICmdRead): - ``.waveform``: The ``SAVEON:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEON") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEON") -> None: super().__init__(device, cmd_syntax) self._file = SaveonFile(device, f"{self._cmd_syntax}:FILE") self._image = SaveonImage(device, f"{self._cmd_syntax}:IMAGe") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py index caa7c2a0..ecbd65a4 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): @@ -101,7 +101,7 @@ class SaveoneventWaveform(SCPICmdRead): - ``.source``: The ``SAVEONEVent:WAVEform:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._source = SaveoneventWaveformSource(device, f"{self._cmd_syntax}:SOUrce") @@ -208,7 +208,7 @@ class SaveoneventImage(SCPICmdRead): - ``.fileformat``: The ``SAVEONEVent:IMAGe:FILEFormat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveoneventImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -310,7 +310,7 @@ class Saveonevent(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEONEVent" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEONEVent" ) -> None: super().__init__(device, cmd_syntax) self._filedest = SaveoneventFiledest(device, f"{self._cmd_syntax}:FILEDest") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py index 85b9af59..ae1a8b8a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py @@ -1231,7 +1231,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite): @@ -1381,7 +1381,7 @@ class SearchSearchItemTriggerAWindowThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerAWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerAWindowThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -1612,7 +1612,7 @@ class SearchSearchItemTriggerAWindow(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crossing = SearchSearchItemTriggerAWindowCrossing( device, f"{self._cmd_syntax}:CROSSIng" @@ -2017,7 +2017,7 @@ class SearchSearchItemTriggerATransitionThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerATransitionThresholdHigh( device, f"{self._cmd_syntax}:HIGH" @@ -2219,7 +2219,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTATime" @@ -2574,7 +2574,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerATimeoutLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -2953,7 +2953,7 @@ class SearchSearchItemTriggerASetholdLogicpatternChannel( - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:CH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerASetholdLogicpatternChannelDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -3013,7 +3013,7 @@ class SearchSearchItemTriggerASetholdLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -3241,7 +3241,7 @@ class SearchSearchItemTriggerASetholdLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -3483,7 +3483,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -3602,7 +3602,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.settime``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = SearchSearchItemTriggerASetholdHoldtime( @@ -3861,7 +3861,7 @@ class SearchSearchItemTriggerARuntThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerARuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerARuntThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -4022,7 +4022,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = SearchSearchItemTriggerARuntLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -4442,7 +4442,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -4905,7 +4905,7 @@ class SearchSearchItemTriggerALogicLogicpatternChannel(ValidatedChannel, SCPICmd - ``.d``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:CH_D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, SearchSearchItemTriggerALogicLogicpatternChannelDigitalBit] = ( DefaultDictPassKeyToFactory( @@ -4964,7 +4964,7 @@ class SearchSearchItemTriggerALogicLogicpattern(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LOGICPattern:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLogicpatternChannel] = ( DefaultDictPassKeyToFactory( @@ -5189,7 +5189,7 @@ class SearchSearchItemTriggerALogicLevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicLevelChannel] = ( DefaultDictPassKeyToFactory( @@ -5348,7 +5348,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerALogicInputClockSource( device, f"{self._cmd_syntax}:SOUrce" @@ -5406,7 +5406,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.clock``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPUT:CLOCK`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCK") @@ -5530,7 +5530,7 @@ class SearchSearchItemTriggerALogicClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = SearchSearchItemTriggerALogicClockThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -5586,7 +5586,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerALogicClock(device, f"{self._cmd_syntax}:CLOCk") self._deltatime = SearchSearchItemTriggerALogicDeltatime( @@ -5941,7 +5941,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -6232,7 +6232,7 @@ class SearchSearchItemTriggerADdrwriteReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrwriteReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -6426,7 +6426,7 @@ class SearchSearchItemTriggerADdrwriteReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrwriteReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -6538,7 +6538,7 @@ class SearchSearchItemTriggerADdrwriteReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrwriteReflevelData( device, f"{self._cmd_syntax}:DATA" @@ -6655,7 +6655,7 @@ class SearchSearchItemTriggerADdrwritePreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrwritePreambleType( device, f"{self._cmd_syntax}:TYPE" @@ -6734,7 +6734,7 @@ class SearchSearchItemTriggerADdrwritePostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrwritePostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -6900,7 +6900,7 @@ class SearchSearchItemTriggerADdrwriteLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -6983,7 +6983,7 @@ class SearchSearchItemTriggerADdrwriteLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7066,7 +7066,7 @@ class SearchSearchItemTriggerADdrwriteLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7149,7 +7149,7 @@ class SearchSearchItemTriggerADdrwriteLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrwriteLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -7524,7 +7524,7 @@ class SearchSearchItemTriggerADdrwrite(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRWRITE:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrwriteBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -8425,7 +8425,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadwriteReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -8619,7 +8619,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadwriteReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -8731,7 +8731,7 @@ class SearchSearchItemTriggerADdrreadwriteReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrreadwriteReflevelData( device, f"{self._cmd_syntax}:DATA" @@ -8849,7 +8849,7 @@ class SearchSearchItemTriggerADdrreadwritePreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrreadwritePreambleType( device, f"{self._cmd_syntax}:TYPE" @@ -8928,7 +8928,7 @@ class SearchSearchItemTriggerADdrreadwritePostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrreadwritePostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -9094,7 +9094,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9177,7 +9177,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9260,7 +9260,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9343,7 +9343,7 @@ class SearchSearchItemTriggerADdrreadwriteLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadwriteLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -9725,7 +9725,7 @@ class SearchSearchItemTriggerADdrreadwrite(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRREADWRITE:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrreadwriteBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -10640,7 +10640,7 @@ class SearchSearchItemTriggerADdrreadReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -10834,7 +10834,7 @@ class SearchSearchItemTriggerADdrreadReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:DATA:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrreadReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -10946,7 +10946,7 @@ class SearchSearchItemTriggerADdrreadReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrreadReflevelData(device, f"{self._cmd_syntax}:DATA") self._strobe = SearchSearchItemTriggerADdrreadReflevelStrobe( @@ -11060,7 +11060,7 @@ class SearchSearchItemTriggerADdrreadPreamble(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:PREAMBLE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerADdrreadPreambleType(device, f"{self._cmd_syntax}:TYPE") @@ -11137,7 +11137,7 @@ class SearchSearchItemTriggerADdrreadPostamble(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:POSTAMBLE:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerADdrreadPostambleLength( device, f"{self._cmd_syntax}:LENGth" @@ -11301,7 +11301,7 @@ class SearchSearchItemTriggerADdrreadLogic4source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC4SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic4sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11384,7 +11384,7 @@ class SearchSearchItemTriggerADdrreadLogic3source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC3SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic3sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11467,7 +11467,7 @@ class SearchSearchItemTriggerADdrreadLogic2source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC2SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic2sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11550,7 +11550,7 @@ class SearchSearchItemTriggerADdrreadLogic1source(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:LOGIC1SOUrce:SYMBol`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symbol = SearchSearchItemTriggerADdrreadLogic1sourceSymbol( device, f"{self._cmd_syntax}:SYMBol" @@ -11924,7 +11924,7 @@ class SearchSearchItemTriggerADdrread(SCPICmdRead): - ``.tolerance``: The ``SEARCH:SEARCH:TRIGger:A:DDRREAD:TOLERance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._burstdetectmethod = SearchSearchItemTriggerADdrreadBurstdetectmethod( device, f"{self._cmd_syntax}:BURSTDETectmethod" @@ -12717,7 +12717,7 @@ class SearchSearchItemTriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -12805,7 +12805,7 @@ class SearchSearchItemTriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -12887,7 +12887,7 @@ class SearchSearchItemTriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -12968,7 +12968,7 @@ class SearchSearchItemTriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -13050,7 +13050,7 @@ class SearchSearchItemTriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -13108,7 +13108,7 @@ class SearchSearchItemTriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -13367,7 +13367,7 @@ class SearchSearchItemTriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -13606,7 +13606,7 @@ class SearchSearchItemTriggerABusUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13924,7 +13924,7 @@ class SearchSearchItemTriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14019,7 +14019,7 @@ class SearchSearchItemTriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = SearchSearchItemTriggerABusUsbCondition( @@ -14359,7 +14359,7 @@ class SearchSearchItemTriggerABusSvidSlave(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:SLAVE:ADDRESS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSvidSlaveAddress( device, f"{self._cmd_syntax}:ADDRESS" @@ -14471,7 +14471,7 @@ class SearchSearchItemTriggerABusSvidPayload(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSvidPayloadType(device, f"{self._cmd_syntax}:TYPe") self._value = SearchSearchItemTriggerABusSvidPayloadValue( @@ -14584,7 +14584,7 @@ class SearchSearchItemTriggerABusSvidError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSvidErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -14745,7 +14745,7 @@ class SearchSearchItemTriggerABusSvidCommand(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:COMMand:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = SearchSearchItemTriggerABusSvidCommandResponse( device, f"{self._cmd_syntax}:RESPonse" @@ -14849,7 +14849,7 @@ class SearchSearchItemTriggerABusSvid(SCPICmdRead): - ``.slave``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SVID:SLAVE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusSvidCommand( device, f"{self._cmd_syntax}:COMMand" @@ -15008,7 +15008,7 @@ class SearchSearchItemTriggerABusSpmiSlaveaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:SLAVEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiSlaveaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15091,7 +15091,7 @@ class SearchSearchItemTriggerABusSpmiRegisteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:REGISTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiRegisteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15201,7 +15201,7 @@ class SearchSearchItemTriggerABusSpmiMasteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:MASTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpmiMasteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -15312,7 +15312,7 @@ class SearchSearchItemTriggerABusSpmiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpmiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSpmiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -15448,7 +15448,7 @@ class SearchSearchItemTriggerABusSpmi(SCPICmdRead): - ``.slaveaddress``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPMI:SLAVEADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpmiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15715,7 +15715,7 @@ class SearchSearchItemTriggerABusSpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -15824,7 +15824,7 @@ class SearchSearchItemTriggerABusSpi(SCPICmdRead): - ``.sourcetype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:SOURCETYpe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15954,7 +15954,7 @@ class SearchSearchItemTriggerABusSpacewireTimecode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:TIMECode:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSpacewireTimecodeValue( device, f"{self._cmd_syntax}:VALue" @@ -16094,7 +16094,7 @@ class SearchSearchItemTriggerABusSpacewireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSpacewireDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -16278,7 +16278,7 @@ class SearchSearchItemTriggerABusSpacewire(SCPICmdRead): - ``.timecode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPACEWIRe:TIMECode`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpacewireCondition( device, f"{self._cmd_syntax}:CONDition" @@ -16528,7 +16528,7 @@ class SearchSearchItemTriggerABusSmbusUdiddata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:UDIDDATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusUdiddataValue( device, f"{self._cmd_syntax}:VALue" @@ -16639,7 +16639,7 @@ class SearchSearchItemTriggerABusSmbusError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:ERROr:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSmbusErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -16718,7 +16718,7 @@ class SearchSearchItemTriggerABusSmbusDeviceaddr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:DEVICEADDR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusDeviceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -16827,7 +16827,7 @@ class SearchSearchItemTriggerABusSmbusData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSmbusDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSmbusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -16973,7 +16973,7 @@ class SearchSearchItemTriggerABusSmbusCommand(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:COMMand:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusCommandValue( device, f"{self._cmd_syntax}:VALue" @@ -17053,7 +17053,7 @@ class SearchSearchItemTriggerABusSmbusAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSmbusAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -17112,7 +17112,7 @@ class SearchSearchItemTriggerABusSmbus(SCPICmdRead): - ``.udiddata``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SMBUS:UDIDDATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSmbusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -17344,7 +17344,7 @@ class SearchSearchItemTriggerABusSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentSlowIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -17489,7 +17489,7 @@ class SearchSearchItemTriggerABusSentSlowData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentSlowDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -17611,7 +17611,7 @@ class SearchSearchItemTriggerABusSentSlow(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = SearchSearchItemTriggerABusSentSlowIdentifier( @@ -17725,7 +17725,7 @@ class SearchSearchItemTriggerABusSentPauseTicks(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentPauseTicksHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -17842,7 +17842,7 @@ class SearchSearchItemTriggerABusSentPause(SCPICmdRead): - ``.ticks``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:PAUSE:TICKs`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -17945,7 +17945,7 @@ class SearchSearchItemTriggerABusSentFastStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -18023,7 +18023,7 @@ class SearchSearchItemTriggerABusSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSentFastInvertnibbleValue( device, f"{self._cmd_syntax}:VALue" @@ -18169,7 +18169,7 @@ class SearchSearchItemTriggerABusSentFastCounter(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18385,7 +18385,7 @@ class SearchSearchItemTriggerABusSentFastChan2b(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan2bHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18601,7 +18601,7 @@ class SearchSearchItemTriggerABusSentFastChan1a(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusSentFastChan1aHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -18727,7 +18727,7 @@ class SearchSearchItemTriggerABusSentFast(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = SearchSearchItemTriggerABusSentFastChan1a( device, f"{self._cmd_syntax}:CHAN1A" @@ -18895,7 +18895,7 @@ class SearchSearchItemTriggerABusSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -18978,7 +18978,7 @@ class SearchSearchItemTriggerABusSent(SCPICmdRead): - ``.slow``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSentCondition( device, f"{self._cmd_syntax}:CONDition" @@ -19164,7 +19164,7 @@ class SearchSearchItemTriggerABusSdlcUnnumbered(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:UNNumbered:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frametype = SearchSearchItemTriggerABusSdlcUnnumberedFrametype( device, f"{self._cmd_syntax}:FRAMETYPe" @@ -19254,7 +19254,7 @@ class SearchSearchItemTriggerABusSdlcSupervisory(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:SUPervisory:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frametype = SearchSearchItemTriggerABusSdlcSupervisoryFrametype( device, f"{self._cmd_syntax}:FRAMETYPe" @@ -19334,7 +19334,7 @@ class SearchSearchItemTriggerABusSdlcStaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:STADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusSdlcStaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -19413,7 +19413,7 @@ class SearchSearchItemTriggerABusSdlcFrame(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:FRAMe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcFrameType(device, f"{self._cmd_syntax}:TYPe") @@ -19491,7 +19491,7 @@ class SearchSearchItemTriggerABusSdlcError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:ERROR:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -19598,7 +19598,7 @@ class SearchSearchItemTriggerABusSdlcData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusSdlcDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusSdlcDataValue(device, f"{self._cmd_syntax}:VALue") @@ -19742,7 +19742,7 @@ class SearchSearchItemTriggerABusSdlcAddress(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:ADDRess:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusSdlcAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -19800,7 +19800,7 @@ class SearchSearchItemTriggerABusSdlc(SCPICmdRead): - ``.unnumbered``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SDLC:UNNumbered`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusSdlcAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -20210,7 +20210,7 @@ class SearchSearchItemTriggerABusS8b10bSymbol(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:SYMbol:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._csymvalue = SearchSearchItemTriggerABusS8b10bSymbolCsymvalue( device, f"{self._cmd_syntax}:CSYMVALue" @@ -20549,7 +20549,7 @@ class SearchSearchItemTriggerABusS8b10b(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusS8b10bCondition( device, f"{self._cmd_syntax}:CONDition" @@ -20753,7 +20753,7 @@ class SearchSearchItemTriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusRs232cDataValue( @@ -20866,7 +20866,7 @@ class SearchSearchItemTriggerABusRs232c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -20966,7 +20966,7 @@ class SearchSearchItemTriggerABusPsifiveStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -21047,7 +21047,7 @@ class SearchSearchItemTriggerABusPsifiveSensorAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:SENSor:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveSensorAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -21098,7 +21098,7 @@ class SearchSearchItemTriggerABusPsifiveSensor(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:SENSor:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusPsifiveSensorAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -21166,7 +21166,7 @@ class SearchSearchItemTriggerABusPsifiveSensorstatus(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:SENSORSTATus:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusPsifiveSensorstatusType( device, f"{self._cmd_syntax}:TYPe" @@ -21248,7 +21248,7 @@ class SearchSearchItemTriggerABusPsifiveRegisterAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:REGister:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveRegisterAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -21301,7 +21301,7 @@ class SearchSearchItemTriggerABusPsifiveRegister(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusPsifiveRegisterAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -21458,7 +21458,7 @@ class SearchSearchItemTriggerABusPsifiveDataRegionB(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:REGion:B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveDataRegionBValue( device, f"{self._cmd_syntax}:VALue" @@ -21539,7 +21539,7 @@ class SearchSearchItemTriggerABusPsifiveDataRegionA(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:REGion:A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveDataRegionAValue( device, f"{self._cmd_syntax}:VALue" @@ -21591,7 +21591,7 @@ class SearchSearchItemTriggerABusPsifiveDataRegion(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:REGion:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerABusPsifiveDataRegionA(device, f"{self._cmd_syntax}:A") self._b = SearchSearchItemTriggerABusPsifiveDataRegionB(device, f"{self._cmd_syntax}:B") @@ -21676,7 +21676,7 @@ class SearchSearchItemTriggerABusPsifiveDataEcuSensor(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:ECU:SENSor:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveDataEcuSensorValue( device, f"{self._cmd_syntax}:VALue" @@ -21728,7 +21728,7 @@ class SearchSearchItemTriggerABusPsifiveDataEcu(SCPICmdRead): - ``.sensor``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:ECU:SENSor`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sensor = SearchSearchItemTriggerABusPsifiveDataEcuSensor( device, f"{self._cmd_syntax}:SENSor" @@ -21767,7 +21767,7 @@ class SearchSearchItemTriggerABusPsifiveData(SCPICmdRead): - ``.region``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:DATa:REGion`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ecu = SearchSearchItemTriggerABusPsifiveDataEcu(device, f"{self._cmd_syntax}:ECU") self._region = SearchSearchItemTriggerABusPsifiveDataRegion( @@ -21920,7 +21920,7 @@ class SearchSearchItemTriggerABusPsifiveBlockdata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:BLOCKDATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusPsifiveBlockdataValue( device, f"{self._cmd_syntax}:VALue" @@ -21983,7 +21983,7 @@ class SearchSearchItemTriggerABusPsifive(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PSIFIVe:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockdata = SearchSearchItemTriggerABusPsifiveBlockdata( device, f"{self._cmd_syntax}:BLOCKDATa" @@ -22321,7 +22321,7 @@ class SearchSearchItemTriggerABusParallelData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusParallelDataValue( device, f"{self._cmd_syntax}:VALue" @@ -22370,7 +22370,7 @@ class SearchSearchItemTriggerABusParallel(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusParallelData(device, f"{self._cmd_syntax}:DATa") @@ -22437,7 +22437,7 @@ class SearchSearchItemTriggerABusOnewireSearchrom(SCPICmdRead): - ``.romcode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:SEARCHROM:ROMCODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._romcode = SearchSearchItemTriggerABusOnewireSearchromRomcode( device, f"{self._cmd_syntax}:ROMCODe" @@ -22555,7 +22555,7 @@ class SearchSearchItemTriggerABusOnewireReadrom(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireReadromFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -22706,7 +22706,7 @@ class SearchSearchItemTriggerABusOnewireOverdrive(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireOverdriveFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -22857,7 +22857,7 @@ class SearchSearchItemTriggerABusOnewireMatchrom(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._familycode = SearchSearchItemTriggerABusOnewireMatchromFamilycode( device, f"{self._cmd_syntax}:FAMILYCODe" @@ -23003,7 +23003,7 @@ class SearchSearchItemTriggerABusOnewireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusOnewireDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusOnewireDataValue( @@ -23155,7 +23155,7 @@ class SearchSearchItemTriggerABusOnewireCommand(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:COMMand:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusOnewireCommandValue( device, f"{self._cmd_syntax}:VALue" @@ -23212,7 +23212,7 @@ class SearchSearchItemTriggerABusOnewire(SCPICmdRead): - ``.searchrom``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ONEWIRe:SEARCHROM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusOnewireCommand( device, f"{self._cmd_syntax}:COMMand" @@ -23458,7 +23458,7 @@ class SearchSearchItemTriggerABusNrzData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:NRZ:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusNrzDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusNrzDataValue(device, f"{self._cmd_syntax}:VALue") @@ -23565,7 +23565,7 @@ class SearchSearchItemTriggerABusNrz(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:NRZ:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusNrzCondition( device, f"{self._cmd_syntax}:CONDition" @@ -23911,7 +23911,7 @@ class SearchSearchItemTriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -24298,7 +24298,7 @@ class SearchSearchItemTriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -24421,7 +24421,7 @@ class SearchSearchItemTriggerABusMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -24613,7 +24613,7 @@ class SearchSearchItemTriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -24946,7 +24946,7 @@ class SearchSearchItemTriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -25073,7 +25073,7 @@ class SearchSearchItemTriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -25253,7 +25253,7 @@ class SearchSearchItemTriggerABusMil1553b(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -25435,7 +25435,7 @@ class SearchSearchItemTriggerABusMdioRegisteraddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:REGisteraddress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioRegisteraddressValue( device, f"{self._cmd_syntax}:VALue" @@ -25513,7 +25513,7 @@ class SearchSearchItemTriggerABusMdioPhysicaladdress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:PHYSicaladdress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioPhysicaladdressValue( device, f"{self._cmd_syntax}:VALue" @@ -25591,7 +25591,7 @@ class SearchSearchItemTriggerABusMdioOpcode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:OPCode:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioOpcodeValue( device, f"{self._cmd_syntax}:VALue" @@ -25700,7 +25700,7 @@ class SearchSearchItemTriggerABusMdioDevicetype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:DEVicetype:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioDevicetypeValue( device, f"{self._cmd_syntax}:VALue" @@ -25778,7 +25778,7 @@ class SearchSearchItemTriggerABusMdioData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioDataValue(device, f"{self._cmd_syntax}:VALue") @@ -25890,7 +25890,7 @@ class SearchSearchItemTriggerABusMdioAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MDIO:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMdioAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -25948,7 +25948,7 @@ class SearchSearchItemTriggerABusMdio(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMdioAddress( device, f"{self._cmd_syntax}:ADDress" @@ -26178,7 +26178,7 @@ class SearchSearchItemTriggerABusManchesterPacketoffdata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:packetOffData:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterPacketoffdataValue( device, f"{self._cmd_syntax}:VALue" @@ -26257,7 +26257,7 @@ class SearchSearchItemTriggerABusManchesterTrailer(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:TRAILER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterTrailerValue( device, f"{self._cmd_syntax}:VALue" @@ -26337,7 +26337,7 @@ class SearchSearchItemTriggerABusManchesterSync(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:SYNC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterSyncValue( device, f"{self._cmd_syntax}:VALue" @@ -26417,7 +26417,7 @@ class SearchSearchItemTriggerABusManchesterHeader(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:HEADER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusManchesterHeaderValue( device, f"{self._cmd_syntax}:VALue" @@ -26496,7 +26496,7 @@ class SearchSearchItemTriggerABusManchesterError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusManchesterErrorType( device, f"{self._cmd_syntax}:TYPe" @@ -26607,7 +26607,7 @@ class SearchSearchItemTriggerABusManchesterData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MANChester:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusManchesterDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -26732,7 +26732,7 @@ class SearchSearchItemTriggerABusManchester(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusManchesterCondition( device, f"{self._cmd_syntax}:CONDition" @@ -26932,7 +26932,7 @@ class SearchSearchItemTriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -27135,7 +27135,7 @@ class SearchSearchItemTriggerABusLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -27317,7 +27317,7 @@ class SearchSearchItemTriggerABusLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -27471,7 +27471,7 @@ class SearchSearchItemTriggerABusI3cTestmode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:TESTMODe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cTestmodeValue( device, f"{self._cmd_syntax}:VALue" @@ -27551,7 +27551,7 @@ class SearchSearchItemTriggerABusI3cSupportbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:SUPPORTBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cSupportbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -27632,7 +27632,7 @@ class SearchSearchItemTriggerABusI3cStatic(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:STATic:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI3cStaticAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -27713,7 +27713,7 @@ class SearchSearchItemTriggerABusI3cStatebyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:STATEBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cStatebyteValue( device, f"{self._cmd_syntax}:VALue" @@ -27795,7 +27795,7 @@ class SearchSearchItemTriggerABusI3cSaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:SADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cSaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -27904,7 +27904,7 @@ class SearchSearchItemTriggerABusI3cMaxwrite(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXWRITe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxwriteValue( device, f"{self._cmd_syntax}:VALue" @@ -27984,7 +27984,7 @@ class SearchSearchItemTriggerABusI3cMaxrturn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXRTURN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxrturnValue( device, f"{self._cmd_syntax}:VALue" @@ -28064,7 +28064,7 @@ class SearchSearchItemTriggerABusI3cMaxread(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:MAXREAD:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cMaxreadValue( device, f"{self._cmd_syntax}:VALue" @@ -28144,7 +28144,7 @@ class SearchSearchItemTriggerABusI3cInaccbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:INACCBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cInaccbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -28225,7 +28225,7 @@ class SearchSearchItemTriggerABusI3cId(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:ID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cIdValue(device, f"{self._cmd_syntax}:VALue") @@ -28304,7 +28304,7 @@ class SearchSearchItemTriggerABusI3cGsmsb(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:GSMSb:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cGsmsbValue(device, f"{self._cmd_syntax}:VALue") @@ -28382,7 +28382,7 @@ class SearchSearchItemTriggerABusI3cGslsb(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:GSLSb:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cGslsbValue(device, f"{self._cmd_syntax}:VALue") @@ -28460,7 +28460,7 @@ class SearchSearchItemTriggerABusI3cFreqbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:FREQBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cFreqbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -28541,7 +28541,7 @@ class SearchSearchItemTriggerABusI3cEventbyte(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:EVENTBYTe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cEventbyteValue( device, f"{self._cmd_syntax}:VALue" @@ -28655,7 +28655,7 @@ class SearchSearchItemTriggerABusI3cDword(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DWORd:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDwordValue(device, f"{self._cmd_syntax}:VALue") @@ -28733,7 +28733,7 @@ class SearchSearchItemTriggerABusI3cDcrtype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DCRType:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDcrtypeValue( device, f"{self._cmd_syntax}:VALue" @@ -28813,7 +28813,7 @@ class SearchSearchItemTriggerABusI3cDcr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DCR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cDcrValue(device, f"{self._cmd_syntax}:VALue") @@ -28953,7 +28953,7 @@ class SearchSearchItemTriggerABusI3cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI3cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -29140,7 +29140,7 @@ class SearchSearchItemTriggerABusI3cCcode(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:CCODe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cCcodeValue(device, f"{self._cmd_syntax}:VALue") @@ -29220,7 +29220,7 @@ class SearchSearchItemTriggerABusI3cBrgtid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BRGTID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBrgtidValue(device, f"{self._cmd_syntax}:VALue") @@ -29328,7 +29328,7 @@ class SearchSearchItemTriggerABusI3cBcrtype(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BCRType:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBcrtypeValue( device, f"{self._cmd_syntax}:VALue" @@ -29408,7 +29408,7 @@ class SearchSearchItemTriggerABusI3cBcr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:BCR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusI3cBcrValue(device, f"{self._cmd_syntax}:VALue") @@ -29519,7 +29519,7 @@ class SearchSearchItemTriggerABusI3cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusI3cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = SearchSearchItemTriggerABusI3cAddressValue( @@ -29629,7 +29629,7 @@ class SearchSearchItemTriggerABusI3c(SCPICmdRead): - ``.testmode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I3C:TESTMODe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI3cAddress(device, f"{self._cmd_syntax}:ADDRess") self._bcr = SearchSearchItemTriggerABusI3cBcr(device, f"{self._cmd_syntax}:BCR") @@ -30298,7 +30298,7 @@ class SearchSearchItemTriggerABusI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -30504,7 +30504,7 @@ class SearchSearchItemTriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = SearchSearchItemTriggerABusI2cAddressValue( @@ -30586,7 +30586,7 @@ class SearchSearchItemTriggerABusI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = SearchSearchItemTriggerABusI2cCondition( @@ -30831,7 +30831,7 @@ class SearchSearchItemTriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = SearchSearchItemTriggerABusFlexrayHeaderCyclecount( @@ -31132,7 +31132,7 @@ class SearchSearchItemTriggerABusFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -31467,7 +31467,7 @@ class SearchSearchItemTriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -31748,7 +31748,7 @@ class SearchSearchItemTriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -31912,7 +31912,7 @@ class SearchSearchItemTriggerABusFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -32252,7 +32252,7 @@ class SearchSearchItemTriggerABusEusbSyncbitsMin(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MIN:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbSyncbitsMinSize( device, f"{self._cmd_syntax}:SIZe" @@ -32331,7 +32331,7 @@ class SearchSearchItemTriggerABusEusbSyncbitsMax(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MAX:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbSyncbitsMaxSize( device, f"{self._cmd_syntax}:SIZe" @@ -32383,7 +32383,7 @@ class SearchSearchItemTriggerABusEusbSyncbits(SCPICmdRead): - ``.min``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNCBITS:MIN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SearchSearchItemTriggerABusEusbSyncbitsMax(device, f"{self._cmd_syntax}:MAX") self._min = SearchSearchItemTriggerABusEusbSyncbitsMin(device, f"{self._cmd_syntax}:MIN") @@ -32469,7 +32469,7 @@ class SearchSearchItemTriggerABusEusbSync(SCPICmdRead): - ``.qualifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SYNC:QUAlifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusEusbSyncQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -32558,7 +32558,7 @@ class SearchSearchItemTriggerABusEusbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -32643,7 +32643,7 @@ class SearchSearchItemTriggerABusEusbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -32726,7 +32726,7 @@ class SearchSearchItemTriggerABusEusbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -32808,7 +32808,7 @@ class SearchSearchItemTriggerABusEusbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -32890,7 +32890,7 @@ class SearchSearchItemTriggerABusEusbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -32947,7 +32947,7 @@ class SearchSearchItemTriggerABusEusbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusEusbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusEusbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -33172,7 +33172,7 @@ class SearchSearchItemTriggerABusEusbRapData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbRapDataValue( device, f"{self._cmd_syntax}:VALue" @@ -33285,7 +33285,7 @@ class SearchSearchItemTriggerABusEusbRapAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbRapAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -33339,7 +33339,7 @@ class SearchSearchItemTriggerABusEusbRap(SCPICmdRead): - ``.option``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:RAP:OPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEusbRapAddress( device, f"{self._cmd_syntax}:ADDress" @@ -33551,7 +33551,7 @@ class SearchSearchItemTriggerABusEusbEopbitsMin(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MIN:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopbitsMinSize( device, f"{self._cmd_syntax}:SIZe" @@ -33629,7 +33629,7 @@ class SearchSearchItemTriggerABusEusbEopbitsMax(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MAX:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopbitsMaxSize( device, f"{self._cmd_syntax}:SIZe" @@ -33680,7 +33680,7 @@ class SearchSearchItemTriggerABusEusbEopbits(SCPICmdRead): - ``.min``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOPBITS:MIN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SearchSearchItemTriggerABusEusbEopbitsMax(device, f"{self._cmd_syntax}:MAX") self._min = SearchSearchItemTriggerABusEusbEopbitsMin(device, f"{self._cmd_syntax}:MIN") @@ -33794,7 +33794,7 @@ class SearchSearchItemTriggerABusEusbEopDatabits(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOP:DATABITS:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbEopDatabitsSize( device, f"{self._cmd_syntax}:SIZe" @@ -33846,7 +33846,7 @@ class SearchSearchItemTriggerABusEusbEop(SCPICmdRead): - ``.qualifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:EOP:QUAlifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._databits = SearchSearchItemTriggerABusEusbEopDatabits( device, f"{self._cmd_syntax}:DATABITS" @@ -33979,7 +33979,7 @@ class SearchSearchItemTriggerABusEusbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEusbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -34218,7 +34218,7 @@ class SearchSearchItemTriggerABusEusbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEusbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -34465,7 +34465,7 @@ class SearchSearchItemTriggerABusEusbDatabits(SCPICmdRead): - ``.size``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:DATABITS:SIZe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEusbDatabitsSize(device, f"{self._cmd_syntax}:SIZe") @@ -34618,7 +34618,7 @@ class SearchSearchItemTriggerABusEusbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEusbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -34718,7 +34718,7 @@ class SearchSearchItemTriggerABusEusb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:EUSB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEusbAddress( device, f"{self._cmd_syntax}:ADDress" @@ -35250,7 +35250,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSourceport(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -35335,7 +35335,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -35420,7 +35420,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderDestinationport(SCPICmdRead): ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -35506,7 +35506,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -35565,7 +35565,7 @@ class SearchSearchItemTriggerABusEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -35695,7 +35695,7 @@ class SearchSearchItemTriggerABusEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -35812,7 +35812,7 @@ class SearchSearchItemTriggerABusEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -35931,7 +35931,7 @@ class SearchSearchItemTriggerABusEthernetMacAddressSource(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -36016,7 +36016,7 @@ class SearchSearchItemTriggerABusEthernetMacAddressDestination(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -36072,7 +36072,7 @@ class SearchSearchItemTriggerABusEthernetMacAddress(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -36131,7 +36131,7 @@ class SearchSearchItemTriggerABusEthernetMac(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthernetMacAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -36225,7 +36225,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -36310,7 +36310,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -36395,7 +36395,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderDestinationaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -36453,7 +36453,7 @@ class SearchSearchItemTriggerABusEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = SearchSearchItemTriggerABusEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -36690,7 +36690,7 @@ class SearchSearchItemTriggerABusEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusEthernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -36920,7 +36920,7 @@ class SearchSearchItemTriggerABusEthernet(SCPICmdRead): - ``.tcpheader``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -37117,7 +37117,7 @@ class SearchSearchItemTriggerABusEthercatWkc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:WKC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatWkcValue( device, f"{self._cmd_syntax}:VALue" @@ -37198,7 +37198,7 @@ class SearchSearchItemTriggerABusEthercatTci(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:TCI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatTciValue( device, f"{self._cmd_syntax}:VALue" @@ -37280,7 +37280,7 @@ class SearchSearchItemTriggerABusEthercatSrcPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SRC:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatSrcPortValue( device, f"{self._cmd_syntax}:VALue" @@ -37331,7 +37331,7 @@ class SearchSearchItemTriggerABusEthercatSrc(SCPICmdRead): - ``.port``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SRC:PORT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._port = SearchSearchItemTriggerABusEthercatSrcPort(device, f"{self._cmd_syntax}:PORT") @@ -37397,7 +37397,7 @@ class SearchSearchItemTriggerABusEthercatSourceaddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SOURCEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatSourceaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -37539,7 +37539,7 @@ class SearchSearchItemTriggerABusEthercatServiceData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SERVice:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatServiceDataLength( device, f"{self._cmd_syntax}:LENGth" @@ -37654,7 +37654,7 @@ class SearchSearchItemTriggerABusEthercatService(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:SERVice:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatServiceData( device, f"{self._cmd_syntax}:DATa" @@ -37726,7 +37726,7 @@ class SearchSearchItemTriggerABusEthercatQuality(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:QUALity:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatQualityValue( device, f"{self._cmd_syntax}:VALue" @@ -37808,7 +37808,7 @@ class SearchSearchItemTriggerABusEthercatPubid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:PUBID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatPubidValue( device, f"{self._cmd_syntax}:VALue" @@ -37919,7 +37919,7 @@ class SearchSearchItemTriggerABusEthercatPosition(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:POSition:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatPositionValue( device, f"{self._cmd_syntax}:VALue" @@ -38001,7 +38001,7 @@ class SearchSearchItemTriggerABusEthercatOffset(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:OFFSet:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatOffsetValue( device, f"{self._cmd_syntax}:VALue" @@ -38100,7 +38100,7 @@ class SearchSearchItemTriggerABusEthercatNetworkVariable(SCPICmdWrite, SCPICmdRe command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._header = SearchSearchItemTriggerABusEthercatNetworkVariableHeader( device, f"{self._cmd_syntax}:HEADer" @@ -38153,7 +38153,7 @@ class SearchSearchItemTriggerABusEthercatNetwork(SCPICmdRead): - ``.variable``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:NETWork:VARiable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._variable = SearchSearchItemTriggerABusEthercatNetworkVariable( device, f"{self._cmd_syntax}:VARiable" @@ -38269,7 +38269,7 @@ class SearchSearchItemTriggerABusEthercatNetworkvariableData(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEthercatNetworkvariableDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -38352,7 +38352,7 @@ class SearchSearchItemTriggerABusEthercatNetworkvariable(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatNetworkvariableData( device, f"{self._cmd_syntax}:DATa" @@ -38489,7 +38489,7 @@ class SearchSearchItemTriggerABusEthercatMailboxCnt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:CNT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatMailboxCntValue( device, f"{self._cmd_syntax}:VALue" @@ -38570,7 +38570,7 @@ class SearchSearchItemTriggerABusEthercatMailboxAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatMailboxAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -38643,7 +38643,7 @@ class SearchSearchItemTriggerABusEthercatMailbox(SCPICmdWrite, SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:MAILbox:HEADer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatMailboxAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -38838,7 +38838,7 @@ class SearchSearchItemTriggerABusEthercatLogicaladdress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:LOGICALADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatLogicaladdressValue( device, f"{self._cmd_syntax}:VALue" @@ -38919,7 +38919,7 @@ class SearchSearchItemTriggerABusEthercatLen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:LEN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatLenValue( device, f"{self._cmd_syntax}:VALue" @@ -39001,7 +39001,7 @@ class SearchSearchItemTriggerABusEthercatIrq(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IRQ:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIrqValue( device, f"{self._cmd_syntax}:VALue" @@ -39084,7 +39084,7 @@ class SearchSearchItemTriggerABusEthercatIpsourceAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIpsourceAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -39136,7 +39136,7 @@ class SearchSearchItemTriggerABusEthercatIpsource(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatIpsourceAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -39206,7 +39206,7 @@ class SearchSearchItemTriggerABusEthercatIpdestinationAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIpdestinationAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -39258,7 +39258,7 @@ class SearchSearchItemTriggerABusEthercatIpdestination(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthercatIpdestinationAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -39326,7 +39326,7 @@ class SearchSearchItemTriggerABusEthercatIndex(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:INDex:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIndexValue( device, f"{self._cmd_syntax}:VALue" @@ -39406,7 +39406,7 @@ class SearchSearchItemTriggerABusEthercatIdx(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IDX:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIdxValue( device, f"{self._cmd_syntax}:VALue" @@ -39487,7 +39487,7 @@ class SearchSearchItemTriggerABusEthercatIdentification(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:IDENtification:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatIdentificationValue( device, f"{self._cmd_syntax}:VALue" @@ -39568,7 +39568,7 @@ class SearchSearchItemTriggerABusEthercatHeader(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:HEADer:LENGth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatHeaderLength( device, f"{self._cmd_syntax}:LENGth" @@ -39650,7 +39650,7 @@ class SearchSearchItemTriggerABusEthercatHash(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:HASH:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatHashValue( device, f"{self._cmd_syntax}:VALue" @@ -39758,7 +39758,7 @@ class SearchSearchItemTriggerABusEthercatErrorReplyService(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusEthercatErrorReplyServiceData( device, f"{self._cmd_syntax}:DATa" @@ -39809,7 +39809,7 @@ class SearchSearchItemTriggerABusEthercatErrorReply(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._service = SearchSearchItemTriggerABusEthercatErrorReplyService( device, f"{self._cmd_syntax}:SERVice" @@ -39847,7 +39847,7 @@ class SearchSearchItemTriggerABusEthercatError(SCPICmdRead): - ``.reply``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:ERRor:REPLy`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reply = SearchSearchItemTriggerABusEthercatErrorReply( device, f"{self._cmd_syntax}:REPLy" @@ -39945,7 +39945,7 @@ class SearchSearchItemTriggerABusEthercatDestinationaddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatDestinationaddressValue( device, f"{self._cmd_syntax}:VALue" @@ -40055,7 +40055,7 @@ class SearchSearchItemTriggerABusEthercatData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEthercatDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusEthercatDataValue( @@ -40187,7 +40187,7 @@ class SearchSearchItemTriggerABusEthercatDatagramheader(SCPICmdWrite, SCPICmdRea command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = SearchSearchItemTriggerABusEthercatDatagramheaderLength( device, f"{self._cmd_syntax}:LENGth" @@ -40298,7 +40298,7 @@ class SearchSearchItemTriggerABusEthercatCyc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:CYC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatCycValue( device, f"{self._cmd_syntax}:VALue" @@ -40463,7 +40463,7 @@ class SearchSearchItemTriggerABusEthercatCntnv(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:CNTNV:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthercatCntnvValue( device, f"{self._cmd_syntax}:VALue" @@ -40585,7 +40585,7 @@ class SearchSearchItemTriggerABusEthercat(SCPICmdRead): - ``.wkc``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERCAT:WKC`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addressmode = SearchSearchItemTriggerABusEthercatAddressmode( device, f"{self._cmd_syntax}:ADDRESSMODe" @@ -41483,7 +41483,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireStatus(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireStatusValue( device, f"{self._cmd_syntax}:VALue" @@ -41562,7 +41562,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireResponse(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireResponseValue( device, f"{self._cmd_syntax}:VALue" @@ -41640,7 +41640,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireIndex(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:INDex:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireIndexValue( device, f"{self._cmd_syntax}:VALue" @@ -41718,7 +41718,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireDataValue( device, f"{self._cmd_syntax}:VALue" @@ -41796,7 +41796,7 @@ class SearchSearchItemTriggerABusEspiVirtualwireCount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:COUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiVirtualwireCountValue( device, f"{self._cmd_syntax}:VALue" @@ -41850,7 +41850,7 @@ class SearchSearchItemTriggerABusEspiVirtualwire(SCPICmdRead): - ``.status``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = SearchSearchItemTriggerABusEspiVirtualwireCount( device, f"{self._cmd_syntax}:COUNt" @@ -41997,7 +41997,7 @@ class SearchSearchItemTriggerABusEspiTag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:TAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiTagValue(device, f"{self._cmd_syntax}:VALue") @@ -42073,7 +42073,7 @@ class SearchSearchItemTriggerABusEspiSmbusSlave(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:SMBUS:SLAVe:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiSmbusSlaveAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -42152,7 +42152,7 @@ class SearchSearchItemTriggerABusEspiSmbusDestination(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiSmbusDestinationAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -42203,7 +42203,7 @@ class SearchSearchItemTriggerABusEspiSmbus(SCPICmdRead): - ``.slave``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:SMBUS:SLAVe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusEspiSmbusDestination( device, f"{self._cmd_syntax}:DESTination" @@ -42295,7 +42295,7 @@ class SearchSearchItemTriggerABusEspiRespcycle(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:RESPCYCLE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusEspiRespcycleType( device, f"{self._cmd_syntax}:TYPe" @@ -42413,7 +42413,7 @@ class SearchSearchItemTriggerABusEspiLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:LENGth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiLengthValue( device, f"{self._cmd_syntax}:VALue" @@ -42495,7 +42495,7 @@ class SearchSearchItemTriggerABusEspiError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusEspiErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -42607,7 +42607,7 @@ class SearchSearchItemTriggerABusEspiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusEspiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusEspiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -42813,7 +42813,7 @@ class SearchSearchItemTriggerABusEspiCommand(SCPICmdRead): - ``.opcode``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:COMMAND:OPCode`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._opcode = SearchSearchItemTriggerABusEspiCommandOpcode( device, f"{self._cmd_syntax}:OPCode" @@ -42915,7 +42915,7 @@ class SearchSearchItemTriggerABusEspiAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEspiAddressValue( device, f"{self._cmd_syntax}:VALue" @@ -42975,7 +42975,7 @@ class SearchSearchItemTriggerABusEspi(SCPICmdRead): - ``.virtualwire``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ESPI:VIRTUALWIRe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEspiAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -43377,7 +43377,7 @@ class SearchSearchItemTriggerABusDphyYuv(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YUV:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._u = SearchSearchItemTriggerABusDphyYuvU(device, f"{self._cmd_syntax}:U") self._v = SearchSearchItemTriggerABusDphyYuvV(device, f"{self._cmd_syntax}:V") @@ -43571,7 +43571,7 @@ class SearchSearchItemTriggerABusDphyYcbcr(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YCBCR:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cb = SearchSearchItemTriggerABusDphyYcbcrCb(device, f"{self._cmd_syntax}:CB") self._cr = SearchSearchItemTriggerABusDphyYcbcrCr(device, f"{self._cmd_syntax}:CR") @@ -43708,7 +43708,7 @@ class SearchSearchItemTriggerABusDphyWordcount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:WORDCOUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyWordcountValue( device, f"{self._cmd_syntax}:VALue" @@ -43787,7 +43787,7 @@ class SearchSearchItemTriggerABusDphyRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyRedValue(device, f"{self._cmd_syntax}:VALue") @@ -43890,7 +43890,7 @@ class SearchSearchItemTriggerABusDphyPixel(SCPICmdRead): - ``.searchoption``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:PIXel:SEARCHOPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._number = SearchSearchItemTriggerABusDphyPixelNumber( device, f"{self._cmd_syntax}:NUMBer" @@ -44093,7 +44093,7 @@ class SearchSearchItemTriggerABusDphyPackets(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:PACKets:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSearchItemTriggerABusDphyPacketsList(device, f"{self._cmd_syntax}:LIST") self._type = SearchSearchItemTriggerABusDphyPacketsType(device, f"{self._cmd_syntax}:TYPe") @@ -44266,7 +44266,7 @@ class SearchSearchItemTriggerABusDphyMode(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:MODe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusDphyModeType(device, f"{self._cmd_syntax}:TYPe") @@ -44344,7 +44344,7 @@ class SearchSearchItemTriggerABusDphyGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyGreenValue(device, f"{self._cmd_syntax}:VALue") @@ -44421,7 +44421,7 @@ class SearchSearchItemTriggerABusDphyEscapemode(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:ESCAPEMODe:COMMand`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusDphyEscapemodeCommand( device, f"{self._cmd_syntax}:COMMand" @@ -44502,7 +44502,7 @@ class SearchSearchItemTriggerABusDphyError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusDphyErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -44609,7 +44609,7 @@ class SearchSearchItemTriggerABusDphyData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusDphyDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusDphyDataValue(device, f"{self._cmd_syntax}:VALue") @@ -44754,7 +44754,7 @@ class SearchSearchItemTriggerABusDphyBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusDphyBlueValue(device, f"{self._cmd_syntax}:VALue") @@ -44813,7 +44813,7 @@ class SearchSearchItemTriggerABusDphy(SCPICmdRead): - ``.yuv``: The ``SEARCH:SEARCH:TRIGger:A:BUS:DPHY:YUV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusDphyBlue(device, f"{self._cmd_syntax}:BLUe") self._condition = SearchSearchItemTriggerABusDphyCondition( @@ -45153,7 +45153,7 @@ class SearchSearchItemTriggerABusCxpiNetmn(SCPICmdRead): - ``.wakeupind``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:NETMN:WAKEUPIND`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sleepind = SearchSearchItemTriggerABusCxpiNetmnSleepind( device, f"{self._cmd_syntax}:SLEEPIND" @@ -45269,7 +45269,7 @@ class SearchSearchItemTriggerABusCxpiFrame(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:FRAMe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCxpiFrameType(device, f"{self._cmd_syntax}:TYPe") @@ -45351,7 +45351,7 @@ class SearchSearchItemTriggerABusCxpiFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiFrameidValue( device, f"{self._cmd_syntax}:VALue" @@ -45431,7 +45431,7 @@ class SearchSearchItemTriggerABusCxpiExtdlc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:EXTDLC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiExtdlcValue( device, f"{self._cmd_syntax}:VALue" @@ -45513,7 +45513,7 @@ class SearchSearchItemTriggerABusCxpiError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:ERROR:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCxpiErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -45595,7 +45595,7 @@ class SearchSearchItemTriggerABusCxpiDlc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:DLC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiDlcValue(device, f"{self._cmd_syntax}:VALue") @@ -45702,7 +45702,7 @@ class SearchSearchItemTriggerABusCxpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCxpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCxpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -45808,7 +45808,7 @@ class SearchSearchItemTriggerABusCxpiCounter(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:COUNter:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCxpiCounterValue( device, f"{self._cmd_syntax}:VALue" @@ -45903,7 +45903,7 @@ class SearchSearchItemTriggerABusCxpi(SCPICmdRead): - ``.netmn``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CXPI:NETMN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCxpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -46193,7 +46193,7 @@ class SearchSearchItemTriggerABusCphyYuv(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YUV:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._u = SearchSearchItemTriggerABusCphyYuvU(device, f"{self._cmd_syntax}:U") self._v = SearchSearchItemTriggerABusCphyYuvV(device, f"{self._cmd_syntax}:V") @@ -46387,7 +46387,7 @@ class SearchSearchItemTriggerABusCphyYcbcr(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YCBCR:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cb = SearchSearchItemTriggerABusCphyYcbcrCb(device, f"{self._cmd_syntax}:CB") self._cr = SearchSearchItemTriggerABusCphyYcbcrCr(device, f"{self._cmd_syntax}:CR") @@ -46525,7 +46525,7 @@ class SearchSearchItemTriggerABusCphyWordcount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:WORDCOUNt:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyWordcountValue( device, f"{self._cmd_syntax}:VALue" @@ -46635,7 +46635,7 @@ class SearchSearchItemTriggerABusCphyWord(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:WORD:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphyWordSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphyWordValue(device, f"{self._cmd_syntax}:VALue") @@ -46771,7 +46771,7 @@ class SearchSearchItemTriggerABusCphySymbol(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:SYMBol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphySymbolSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphySymbolValue( @@ -46879,7 +46879,7 @@ class SearchSearchItemTriggerABusCphyRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyRedValue(device, f"{self._cmd_syntax}:VALue") @@ -46982,7 +46982,7 @@ class SearchSearchItemTriggerABusCphyPixel(SCPICmdRead): - ``.searchoption``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:PIXel:SEARCHOPTion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._number = SearchSearchItemTriggerABusCphyPixelNumber( device, f"{self._cmd_syntax}:NUMBer" @@ -47184,7 +47184,7 @@ class SearchSearchItemTriggerABusCphyPackets(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:PACKets:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = SearchSearchItemTriggerABusCphyPacketsList(device, f"{self._cmd_syntax}:LIST") self._type = SearchSearchItemTriggerABusCphyPacketsType(device, f"{self._cmd_syntax}:TYPe") @@ -47355,7 +47355,7 @@ class SearchSearchItemTriggerABusCphyMode(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:MODe:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCphyModeType(device, f"{self._cmd_syntax}:TYPe") @@ -47432,7 +47432,7 @@ class SearchSearchItemTriggerABusCphyGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyGreenValue(device, f"{self._cmd_syntax}:VALue") @@ -47509,7 +47509,7 @@ class SearchSearchItemTriggerABusCphyEscapemode(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:ESCAPEMODe:COMMand`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusCphyEscapemodeCommand( device, f"{self._cmd_syntax}:COMMand" @@ -47590,7 +47590,7 @@ class SearchSearchItemTriggerABusCphyError(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = SearchSearchItemTriggerABusCphyErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -47697,7 +47697,7 @@ class SearchSearchItemTriggerABusCphyData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusCphyDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = SearchSearchItemTriggerABusCphyDataValue(device, f"{self._cmd_syntax}:VALue") @@ -47844,7 +47844,7 @@ class SearchSearchItemTriggerABusCphyBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusCphyBlueValue(device, f"{self._cmd_syntax}:VALue") @@ -47905,7 +47905,7 @@ class SearchSearchItemTriggerABusCphy(SCPICmdRead): - ``.yuv``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CPHY:YUV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusCphyBlue(device, f"{self._cmd_syntax}:BLUe") self._condition = SearchSearchItemTriggerABusCphyCondition( @@ -48284,7 +48284,7 @@ class SearchSearchItemTriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -48463,7 +48463,7 @@ class SearchSearchItemTriggerABusCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = SearchSearchItemTriggerABusCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -48730,7 +48730,7 @@ class SearchSearchItemTriggerABusCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -48945,7 +48945,7 @@ class SearchSearchItemTriggerABusCan(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -49160,7 +49160,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderSourceport(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -49247,7 +49247,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -49337,7 +49337,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderDestinationport(SCPICmdRea ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -49426,7 +49426,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -49486,7 +49486,7 @@ class SearchSearchItemTriggerABusAutoethernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusAutoethernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -49652,7 +49652,7 @@ class SearchSearchItemTriggerABusAutoethernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetQtagValue( device, f"{self._cmd_syntax}:VALue" @@ -49770,7 +49770,7 @@ class SearchSearchItemTriggerABusAutoethernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusAutoethernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -49889,7 +49889,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddressSource(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -49977,7 +49977,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddressDestination(SCPICmdRead): ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -50034,7 +50034,7 @@ class SearchSearchItemTriggerABusAutoethernetMacAddress(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = SearchSearchItemTriggerABusAutoethernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -50094,7 +50094,7 @@ class SearchSearchItemTriggerABusAutoethernetMac(SCPICmdRead): - ``.length``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusAutoethernetMacAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -50189,7 +50189,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -50275,7 +50275,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -50363,7 +50363,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddr(SCPICmdRead ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -50423,7 +50423,7 @@ class SearchSearchItemTriggerABusAutoethernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = SearchSearchItemTriggerABusAutoethernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -50629,7 +50629,7 @@ class SearchSearchItemTriggerABusAutoethernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUTOETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusAutoethernetDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -50827,7 +50827,7 @@ class SearchSearchItemTriggerABusAutoethernet(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusAutoethernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -51260,7 +51260,7 @@ class SearchSearchItemTriggerABusAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitdmvalue = SearchSearchItemTriggerABusAudioDataHitdmvalue( device, f"{self._cmd_syntax}:HITDMVALue" @@ -51543,7 +51543,7 @@ class SearchSearchItemTriggerABusAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -51648,7 +51648,7 @@ class SearchSearchItemTriggerABusArinc429aSsm(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SSM:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusArinc429aSsmValue( device, f"{self._cmd_syntax}:VALue" @@ -51728,7 +51728,7 @@ class SearchSearchItemTriggerABusArinc429aSdi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SDI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusArinc429aSdiValue( device, f"{self._cmd_syntax}:VALue" @@ -51875,7 +51875,7 @@ class SearchSearchItemTriggerABusArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -52125,7 +52125,7 @@ class SearchSearchItemTriggerABusArinc429aData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusArinc429aDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -52284,7 +52284,7 @@ class SearchSearchItemTriggerABusArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:SSM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -52481,7 +52481,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -53360,7 +53360,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.window``: The ``SEARCH:SEARCH:TRIGger:A:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._ddrread = SearchSearchItemTriggerADdrread(device, f"{self._cmd_syntax}:DDRREAD") @@ -53860,7 +53860,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -53975,7 +53975,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._navigate = SearchSearchItemNavigate(device, f"{self._cmd_syntax}:NAVigate") @@ -54166,7 +54166,7 @@ class Search(SCPICmdRead): - ``.selected``: The ``SEARCH:SELected`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._addnew = SearchAddnew(device, f"{self._cmd_syntax}:ADDNew") self._deleteall = SearchDeleteall(device, f"{self._cmd_syntax}:DELETEALL") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py index da674616..6e48c1d3 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchtableList(SCPICmdRead): @@ -99,7 +99,7 @@ class Searchtable(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCHTABle" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCHTABle" ) -> None: super().__init__(device, cmd_syntax) self._addnew = SearchtableAddnew(device, f"{self._cmd_syntax}:ADDNew") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py index 34ef555f..7eb3d8a2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): @@ -64,7 +64,7 @@ class Select(SCPICmdRead): - ``.ch``: The ``SELect:CH`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SelectChannel] = DefaultDictPassKeyToFactory( lambda x: SelectChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py index 1dc3077e..92079eee 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py @@ -100,7 +100,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SvWindow(SCPICmdWrite, SCPICmdRead): @@ -209,7 +209,7 @@ class SvSpectrogramCursor(SCPICmdRead): - ``.b``: The ``SV:SPECtrogram:CURSor:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SvSpectrogramCursorA(device, f"{self._cmd_syntax}:A") self._b = SvSpectrogramCursorB(device, f"{self._cmd_syntax}:B") @@ -340,7 +340,7 @@ class SvSpectrogramCscale(SCPICmdRead): - ``.min``: The ``SV:SPECtrogram:CSCale:MIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._max = SvSpectrogramCscaleMax(device, f"{self._cmd_syntax}:MAX") self._min = SvSpectrogramCscaleMin(device, f"{self._cmd_syntax}:MIN") @@ -415,7 +415,7 @@ class SvSpectrogram(SCPICmdRead): - ``.cursor``: The ``SV:SPECtrogram:CURSor`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cscale = SvSpectrogramCscale(device, f"{self._cmd_syntax}:CSCale") self._cursor = SvSpectrogramCursor(device, f"{self._cmd_syntax}:CURSor") @@ -542,7 +542,7 @@ class SvRfPhaseReference(SCPICmdRead): - ``.master``: The ``SV:RF_PHASe:REFerence:MASTer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._master = SvRfPhaseReferenceMaster(device, f"{self._cmd_syntax}:MASTer") @@ -585,7 +585,7 @@ class SvRfPhase(SCPICmdRead): - ``.reference``: The ``SV:RF_PHASe:REFerence`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reference = SvRfPhaseReference(device, f"{self._cmd_syntax}:REFerence") @@ -755,7 +755,7 @@ class SvMarkerReference(SCPICmdWriteNoArguments, SCPICmdRead): - ``.frequency``: The ``SV:MARKER:REFERence:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SvMarkerReferenceAmplitude(device, f"{self._cmd_syntax}:AMPLITUDE") self._frequency = SvMarkerReferenceFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -851,7 +851,7 @@ class SvMarkerPeaks(SCPICmdRead): - ``.frequency``: The ``SV:MARKER:PEAKS:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = SvMarkerPeaksAmplitude(device, f"{self._cmd_syntax}:AMPLITUDE") self._frequency = SvMarkerPeaksFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -1028,7 +1028,7 @@ class SvMarkerPeak(SCPICmdRead): - ``.threshold``: The ``SV:MARKER:PEAK:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._excursion = SvMarkerPeakExcursion(device, f"{self._cmd_syntax}:EXCURsion") self._maximum = SvMarkerPeakMaximum(device, f"{self._cmd_syntax}:MAXimum") @@ -1178,7 +1178,7 @@ class SvMarker(SCPICmdRead): - ``.type``: The ``SV:MARKER:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._peak = SvMarkerPeak(device, f"{self._cmd_syntax}:PEAK") self._peaks = SvMarkerPeaks(device, f"{self._cmd_syntax}:PEAKS") @@ -1445,7 +1445,7 @@ class SvChannelSquelch(SCPICmdRead): - ``.threshold``: The ``SV:CH:SQUELCH:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = SvChannelSquelchState(device, f"{self._cmd_syntax}:STATE") self._threshold = SvChannelSquelchThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1762,7 +1762,7 @@ class SvChannelSelect(SCPICmdRead): - ``.spectrogram``: The ``SV:CH:SELect:SPECtrogram`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf_average = SvChannelSelectRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") self._rf_frequency = SvChannelSelectRfFrequency(device, f"{self._cmd_syntax}:RF_FREQuency") @@ -2126,7 +2126,7 @@ class SvChannelRfPhaseWrap(SCPICmdRead): - ``.state``: The ``SV:CH:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = SvChannelRfPhaseWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = SvChannelRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -2296,7 +2296,7 @@ class SvChannelRfPhaseReference(SCPICmdRead): - ``.time``: The ``SV:CH:RF_PHASe:REFerence:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = SvChannelRfPhaseReferenceDegrees(device, f"{self._cmd_syntax}:DEGrees") self._position = SvChannelRfPhaseReferencePosition(device, f"{self._cmd_syntax}:POSition") @@ -2415,7 +2415,7 @@ class SvChannelRfPhase(SCPICmdRead): - ``.wrap``: The ``SV:CH:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reference = SvChannelRfPhaseReference(device, f"{self._cmd_syntax}:REFerence") self._wrap = SvChannelRfPhaseWrap(device, f"{self._cmd_syntax}:WRAP") @@ -2504,7 +2504,7 @@ class SvChannelRfMagnitude(SCPICmdRead): - ``.format``: The ``SV:CH:RF_MAGnitude:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SvChannelRfMagnitudeFormat(device, f"{self._cmd_syntax}:FORMat") @@ -2584,7 +2584,7 @@ class SvChannelRfAverage(SCPICmdRead): - ``.numavg``: The ``SV:CH:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numavg = SvChannelRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -2640,7 +2640,7 @@ class SvChannel(ValidatedChannel, SCPICmdRead): - ``.units``: The ``SV:CH:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf_average = SvChannelRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") self._rf_magnitude = SvChannelRfMagnitude(device, f"{self._cmd_syntax}:RF_MAGnitude") @@ -2837,7 +2837,7 @@ class Sv(SCPICmdRead): - ``.window``: The ``SV:WINDOW`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SV") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SV") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SvChannel] = DefaultDictPassKeyToFactory( lambda x: SvChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py index efe31f38..081a7f4e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): @@ -85,7 +85,7 @@ class Touchscreen(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TOUCHSCReen" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "TOUCHSCReen" ) -> None: super().__init__(device, cmd_syntax) self._calibrate = TouchscreenCalibrate(device, f"{self._cmd_syntax}:CALibrate") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py index c02ccc86..95469947 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py @@ -974,7 +974,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerStatus(SCPICmdRead): @@ -1078,7 +1078,7 @@ class TriggerHysteresisUser(SCPICmdRead): - ``.value``: The ``TRIGger:HYSTeresis:USER:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = TriggerHysteresisUserState(device, f"{self._cmd_syntax}:STATe") self._value = TriggerHysteresisUserValue(device, f"{self._cmd_syntax}:VALue") @@ -1150,7 +1150,7 @@ class TriggerHysteresis(SCPICmdRead): - ``.user``: The ``TRIGger:HYSTeresis:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._user = TriggerHysteresisUser(device, f"{self._cmd_syntax}:USER") @@ -1345,7 +1345,7 @@ class TriggerBWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:WINdow:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crossing = TriggerBWindowCrossing(device, f"{self._cmd_syntax}:CROSSIng") self._logicqualification = TriggerBWindowLogicqualification( @@ -1665,7 +1665,7 @@ class TriggerBVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:B:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerBVideoField(device, f"{self._cmd_syntax}:FIELD") self._line = TriggerBVideoLine(device, f"{self._cmd_syntax}:LINE") @@ -1844,7 +1844,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2068,7 +2068,7 @@ class TriggerBTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBTransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._logicqualification = TriggerBTransitionLogicqualification( @@ -2370,7 +2370,7 @@ class TriggerBTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = TriggerBTimeoutLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -2643,7 +2643,7 @@ class TriggerBSetholdClock(SCPICmdRead): - ``.source``: The ``TRIGger:B:SETHold:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerBSetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2716,7 +2716,7 @@ class TriggerBSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = TriggerBSetholdHoldtime(device, f"{self._cmd_syntax}:HOLDTime") @@ -2836,7 +2836,7 @@ class TriggerBSetholdlogicval(SCPICmdRead): - ``.b``: The ``TRIGger:B:SETHOLDLogicval:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b = TriggerBSetholdlogicvalB(device, f"{self._cmd_syntax}:B") @@ -3019,7 +3019,7 @@ class TriggerBRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = TriggerBRuntLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -3239,7 +3239,7 @@ class TriggerBResetTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:RESET:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerBResetTimeoutTime(device, f"{self._cmd_syntax}:TIMe") @@ -3387,7 +3387,7 @@ class TriggerBResetEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:RESET:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBResetEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._level = TriggerBResetEdgeLevel(device, f"{self._cmd_syntax}:LEVel") @@ -3525,7 +3525,7 @@ class TriggerBReset(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBResetEdge(device, f"{self._cmd_syntax}:EDGE") self._timeout = TriggerBResetTimeout(device, f"{self._cmd_syntax}:TIMEOut") @@ -3781,7 +3781,7 @@ class TriggerBPulsewidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._logicqualification = TriggerBPulsewidthLogicqualification( @@ -4006,7 +4006,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4163,7 +4163,7 @@ class TriggerBLogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:B:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerBLogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4210,7 +4210,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.clock``: The ``TRIGger:B:LOGIc:INPut:CLOCk`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicInputClock(device, f"{self._cmd_syntax}:CLOCk") @@ -4301,7 +4301,7 @@ class TriggerBLogic(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBLogicDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -4510,7 +4510,7 @@ class TriggerBLogicpattern(SCPICmdRead): - ``.b``: The ``TRIGger:B:LOGICPattern:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b = TriggerBLogicpatternB(device, f"{self._cmd_syntax}:B") @@ -4581,7 +4581,7 @@ class TriggerBLevel(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4652,7 +4652,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -4785,7 +4785,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -5010,7 +5010,7 @@ class TriggerBBusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -5092,7 +5092,7 @@ class TriggerBBusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -5172,7 +5172,7 @@ class TriggerBBusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -5251,7 +5251,7 @@ class TriggerBBusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -5330,7 +5330,7 @@ class TriggerBBusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -5383,7 +5383,7 @@ class TriggerBBusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:B:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerBBusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerBBusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -5630,7 +5630,7 @@ class TriggerBBusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -5843,7 +5843,7 @@ class TriggerBBusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerBBusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -6140,7 +6140,7 @@ class TriggerBBusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerBBusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -6230,7 +6230,7 @@ class TriggerBBusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:B:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerBBusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -6556,7 +6556,7 @@ class TriggerBBusBItemSvidSlave(SCPICmdRead): - ``.address``: The ``TRIGger:B:BUS:B:SVID:SLAVe:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemSvidSlaveAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -6661,7 +6661,7 @@ class TriggerBBusBItemSvidPayload(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SVID:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerBBusBItemSvidPayloadType(device, f"{self._cmd_syntax}:TYPe") self._value = TriggerBBusBItemSvidPayloadValue(device, f"{self._cmd_syntax}:VALue") @@ -6764,7 +6764,7 @@ class TriggerBBusBItemSvidParity(SCPICmdRead): - ``.type``: The ``TRIGger:B:BUS:B:SVID:PARity:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerBBusBItemSvidParityType(device, f"{self._cmd_syntax}:TYPe") @@ -6838,7 +6838,7 @@ class TriggerBBusBItemSvidError(SCPICmdRead): - ``.type``: The ``TRIGger:B:BUS:B:SVID:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerBBusBItemSvidErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -6991,7 +6991,7 @@ class TriggerBBusBItemSvidCommand(SCPICmdRead): - ``.type``: The ``TRIGger:B:BUS:B:SVID:COMMand:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = TriggerBBusBItemSvidCommandResponse(device, f"{self._cmd_syntax}:RESPonse") self._type = TriggerBBusBItemSvidCommandType(device, f"{self._cmd_syntax}:TYPe") @@ -7090,7 +7090,7 @@ class TriggerBBusBItemSvid(SCPICmdRead): - ``.slave``: The ``TRIGger:B:BUS:B:SVID:SLAVe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerBBusBItemSvidCommand(device, f"{self._cmd_syntax}:COMMand") self._condition = TriggerBBusBItemSvidCondition(device, f"{self._cmd_syntax}:CONDition") @@ -7255,7 +7255,7 @@ class TriggerBBusBItemSpmiSlaveaddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SPMI:SLAVEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSpmiSlaveaddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7338,7 +7338,7 @@ class TriggerBBusBItemSpmiRegisteraddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SPMI:REGISTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSpmiRegisteraddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7445,7 +7445,7 @@ class TriggerBBusBItemSpmiMasteraddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SPMI:MASTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSpmiMasteraddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7551,7 +7551,7 @@ class TriggerBBusBItemSpmiData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SPMI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerBBusBItemSpmiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerBBusBItemSpmiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -7685,7 +7685,7 @@ class TriggerBBusBItemSpmi(SCPICmdRead): - ``.slaveaddress``: The ``TRIGger:B:BUS:B:SPMI:SLAVEADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemSpmiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemSpmiData(device, f"{self._cmd_syntax}:DATa") @@ -7926,7 +7926,7 @@ class TriggerBBusBItemSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerBBusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerBBusBItemSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8037,7 +8037,7 @@ class TriggerBBusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:B:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -8139,7 +8139,7 @@ class TriggerBBusBItemSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSentSlowIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -8281,7 +8281,7 @@ class TriggerBBusBItemSentSlowData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemSentSlowDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemSentSlowDataQualifier( @@ -8398,7 +8398,7 @@ class TriggerBBusBItemSentSlow(SCPICmdRead): - ``.identifier``: The ``TRIGger:B:BUS:B:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerBBusBItemSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = TriggerBBusBItemSentSlowIdentifier( @@ -8492,7 +8492,7 @@ class TriggerBBusBItemSentPause(SCPICmdRead): - ``.qualifier``: The ``TRIGger:B:BUS:B:SENT:PAUSE:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = TriggerBBusBItemSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -8575,7 +8575,7 @@ class TriggerBBusBItemSentFastStatus(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSentFastStatusValue(device, f"{self._cmd_syntax}:VALue") @@ -8654,7 +8654,7 @@ class TriggerBBusBItemSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemSentFastInvertnibbleValue(device, f"{self._cmd_syntax}:VALue") @@ -8796,7 +8796,7 @@ class TriggerBBusBItemSentFastCounter(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9005,7 +9005,7 @@ class TriggerBBusBItemSentFastChan2b(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemSentFastChan2bHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemSentFastChan2bQualifier( @@ -9211,7 +9211,7 @@ class TriggerBBusBItemSentFastChan1a(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemSentFastChan1aHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemSentFastChan1aQualifier( @@ -9329,7 +9329,7 @@ class TriggerBBusBItemSentFast(SCPICmdRead): - ``.status``: The ``TRIGger:B:BUS:B:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = TriggerBBusBItemSentFastChan1a(device, f"{self._cmd_syntax}:CHAN1A") self._chan2b = TriggerBBusBItemSentFastChan2b(device, f"{self._cmd_syntax}:CHAN2B") @@ -9495,7 +9495,7 @@ class TriggerBBusBItemSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``TRIGger:B:BUS:B:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerBBusBItemSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -9577,7 +9577,7 @@ class TriggerBBusBItemSent(SCPICmdRead): - ``.slow``: The ``TRIGger:B:BUS:B:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemSentCondition(device, f"{self._cmd_syntax}:CONDition") self._errtype = TriggerBBusBItemSentErrtype(device, f"{self._cmd_syntax}:ERRType") @@ -9772,7 +9772,7 @@ class TriggerBBusBItemRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerBBusBItemRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerBBusBItemRs232cDataValue(device, f"{self._cmd_syntax}:VALue") @@ -9877,7 +9877,7 @@ class TriggerBBusBItemRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:B:BUS:B:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -9970,7 +9970,7 @@ class TriggerBBusBItemParallelData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemParallelDataValue(device, f"{self._cmd_syntax}:VALue") @@ -10015,7 +10015,7 @@ class TriggerBBusBItemParallel(SCPICmdRead): - ``.data``: The ``TRIGger:B:BUS:B:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerBBusBItemParallelData(device, f"{self._cmd_syntax}:DATa") @@ -10139,7 +10139,7 @@ class TriggerBBusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:B:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBBusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -10536,7 +10536,7 @@ class TriggerBBusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:B:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerBBusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerBBusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -10909,7 +10909,7 @@ class TriggerBBusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11030,7 +11030,7 @@ class TriggerBBusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:B:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerBBusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -11212,7 +11212,7 @@ class TriggerBBusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerBBusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerBBusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -11541,7 +11541,7 @@ class TriggerBBusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11665,7 +11665,7 @@ class TriggerBBusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:B:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11835,7 +11835,7 @@ class TriggerBBusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:B:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerBBusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerBBusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -12025,7 +12025,7 @@ class TriggerBBusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -12217,7 +12217,7 @@ class TriggerBBusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -12391,7 +12391,7 @@ class TriggerBBusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:B:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -12534,7 +12534,7 @@ class TriggerBBusBItemI3cTbit(SCPICmdRead): - ``.direction``: The ``TRIGger:B:BUS:B:I3C:TBIT:DIREction`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerBBusBItemI3cTbitDirection(device, f"{self._cmd_syntax}:DIREction") @@ -12678,7 +12678,7 @@ class TriggerBBusBItemI3cSdr(SCPICmdRead): - ``.directpacket``: The ``TRIGger:B:BUS:B:I3C:SDR:DIRECTPacket`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._broadcastpacket = TriggerBBusBItemI3cSdrBroadcastpacket( device, f"{self._cmd_syntax}:BROADCASTPacket" @@ -12910,7 +12910,7 @@ class TriggerBBusBItemI3cData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:I3C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerBBusBItemI3cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerBBusBItemI3cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -13109,7 +13109,7 @@ class TriggerBBusBItemI3cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:I3C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerBBusBItemI3cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerBBusBItemI3cAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -13190,7 +13190,7 @@ class TriggerBBusBItemI3c(SCPICmdRead): - ``.tbit``: The ``TRIGger:B:BUS:B:I3C:TBIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemI3cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerBBusBItemI3cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -13426,7 +13426,7 @@ class TriggerBBusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerBBusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerBBusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -13623,7 +13623,7 @@ class TriggerBBusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerBBusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerBBusBItemI2cAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -13701,7 +13701,7 @@ class TriggerBBusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:B:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerBBusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -13942,7 +13942,7 @@ class TriggerBBusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:B:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerBBusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerBBusBItemFlexrayHeaderCyclecount( @@ -14244,7 +14244,7 @@ class TriggerBBusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemFlexrayFrameidQualifier( @@ -14574,7 +14574,7 @@ class TriggerBBusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerBBusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -14850,7 +14850,7 @@ class TriggerBBusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -15012,7 +15012,7 @@ class TriggerBBusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:B:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerBBusBItemFlexrayCyclecount( @@ -15282,7 +15282,7 @@ class TriggerBBusBItemEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -15368,7 +15368,7 @@ class TriggerBBusBItemEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -15454,7 +15454,7 @@ class TriggerBBusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -15540,7 +15540,7 @@ class TriggerBBusBItemEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -15597,7 +15597,7 @@ class TriggerBBusBItemEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerBBusBItemEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerBBusBItemEthernetTcpheaderDestinationport( @@ -15718,7 +15718,7 @@ class TriggerBBusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -15836,7 +15836,7 @@ class TriggerBBusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -15957,7 +15957,7 @@ class TriggerBBusBItemEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -16042,7 +16042,7 @@ class TriggerBBusBItemEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -16097,7 +16097,7 @@ class TriggerBBusBItemEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:B:BUS:B:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerBBusBItemEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -16152,7 +16152,7 @@ class TriggerBBusBItemEthernetMac(SCPICmdRead): - ``.length``: The ``TRIGger:B:BUS:B:ETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerBBusBItemEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerBBusBItemEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -16240,7 +16240,7 @@ class TriggerBBusBItemEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -16327,7 +16327,7 @@ class TriggerBBusBItemEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -16413,7 +16413,7 @@ class TriggerBBusBItemEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -16470,7 +16470,7 @@ class TriggerBBusBItemEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:B:BUS:B:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerBBusBItemEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -16709,7 +16709,7 @@ class TriggerBBusBItemEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemEthernetDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerBBusBItemEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -16941,7 +16941,7 @@ class TriggerBBusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:B:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -17157,7 +17157,7 @@ class TriggerBBusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerBBusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerBBusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -17325,7 +17325,7 @@ class TriggerBBusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:B:BUS:B:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerBBusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = TriggerBBusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -17592,7 +17592,7 @@ class TriggerBBusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerBBusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerBBusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -17811,7 +17811,7 @@ class TriggerBBusBItemCan(SCPICmdRead): - ``.identifier``: The ``TRIGger:B:BUS:B:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -18195,7 +18195,7 @@ class TriggerBBusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:B:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitdmvalue = TriggerBBusBItemAudioDataHitdmvalue( device, f"{self._cmd_syntax}:HITDMVALue" @@ -18463,7 +18463,7 @@ class TriggerBBusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:B:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerBBusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -18561,7 +18561,7 @@ class TriggerBBusBItemArinc429aSsm(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ARINC429A:SSM:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemArinc429aSsmValue(device, f"{self._cmd_syntax}:VALue") @@ -18637,7 +18637,7 @@ class TriggerBBusBItemArinc429aSdi(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ARINC429A:SDI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerBBusBItemArinc429aSdiValue(device, f"{self._cmd_syntax}:VALue") @@ -18779,7 +18779,7 @@ class TriggerBBusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemArinc429aLabelQualifier( @@ -19021,7 +19021,7 @@ class TriggerBBusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``TRIGger:B:BUS:B:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerBBusBItemArinc429aDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerBBusBItemArinc429aDataQualifier( @@ -19174,7 +19174,7 @@ class TriggerBBusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:B:BUS:B:ARINC429A:SSM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerBBusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -19348,7 +19348,7 @@ class TriggerBBusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:B:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerBBusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerBBusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -19680,7 +19680,7 @@ class TriggerBBus(SCPICmdRead): - ``.source``: The ``TRIGger:B:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerBBusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBBusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -19775,7 +19775,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.window``: The ``TRIGger:B:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -20410,7 +20410,7 @@ class TriggerAWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:WINdow:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crossing = TriggerAWindowCrossing(device, f"{self._cmd_syntax}:CROSSIng") self._logicqualification = TriggerAWindowLogicqualification( @@ -20730,7 +20730,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") self._line = TriggerAVideoLine(device, f"{self._cmd_syntax}:LINE") @@ -20909,7 +20909,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -21133,7 +21133,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._logicqualification = TriggerATransitionLogicqualification( @@ -21411,7 +21411,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = TriggerATimeoutLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -21655,7 +21655,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SETHold:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -21728,7 +21728,7 @@ class TriggerASethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._holdtime = TriggerASetholdHoldtime(device, f"{self._cmd_syntax}:HOLDTime") @@ -21848,7 +21848,7 @@ class TriggerASetholdlogicval(SCPICmdRead): - ``.a``: The ``TRIGger:A:SETHOLDLogicval:A`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = TriggerASetholdlogicvalA(device, f"{self._cmd_syntax}:A") @@ -22031,7 +22031,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logicqualification = TriggerARuntLogicqualification( device, f"{self._cmd_syntax}:LOGICQUALification" @@ -22371,7 +22371,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULSEWidth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._logicqualification = TriggerAPulsewidthLogicqualification( @@ -22621,7 +22621,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -22778,7 +22778,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -22825,7 +22825,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.clock``: The ``TRIGger:A:LOGIc:INPut:CLOCk`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") @@ -22916,7 +22916,7 @@ class TriggerALogic(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -23152,7 +23152,7 @@ class TriggerALogicpattern(SCPICmdRead): - ``.a``: The ``TRIGger:A:LOGICPattern:A`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = TriggerALogicpatternA(device, f"{self._cmd_syntax}:A") @@ -23223,7 +23223,7 @@ class TriggerALevel(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -23324,7 +23324,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -23490,7 +23490,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -23688,7 +23688,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23770,7 +23770,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23850,7 +23850,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -23929,7 +23929,7 @@ class TriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -24008,7 +24008,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -24061,7 +24061,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -24308,7 +24308,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -24521,7 +24521,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -24818,7 +24818,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -24908,7 +24908,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -25234,7 +25234,7 @@ class TriggerABusBItemSvidSlave(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:SVID:SLAVe:ADDRess`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemSvidSlaveAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -25339,7 +25339,7 @@ class TriggerABusBItemSvidPayload(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SVID:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerABusBItemSvidPayloadType(device, f"{self._cmd_syntax}:TYPe") self._value = TriggerABusBItemSvidPayloadValue(device, f"{self._cmd_syntax}:VALue") @@ -25442,7 +25442,7 @@ class TriggerABusBItemSvidParity(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:B:SVID:PARity:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerABusBItemSvidParityType(device, f"{self._cmd_syntax}:TYPe") @@ -25516,7 +25516,7 @@ class TriggerABusBItemSvidError(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:B:SVID:ERRor:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerABusBItemSvidErrorType(device, f"{self._cmd_syntax}:TYPe") @@ -25669,7 +25669,7 @@ class TriggerABusBItemSvidCommand(SCPICmdRead): - ``.type``: The ``TRIGger:A:BUS:B:SVID:COMMand:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._response = TriggerABusBItemSvidCommandResponse(device, f"{self._cmd_syntax}:RESPonse") self._type = TriggerABusBItemSvidCommandType(device, f"{self._cmd_syntax}:TYPe") @@ -25768,7 +25768,7 @@ class TriggerABusBItemSvid(SCPICmdRead): - ``.slave``: The ``TRIGger:A:BUS:B:SVID:SLAVe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemSvidCommand(device, f"{self._cmd_syntax}:COMMand") self._condition = TriggerABusBItemSvidCondition(device, f"{self._cmd_syntax}:CONDition") @@ -25933,7 +25933,7 @@ class TriggerABusBItemSpmiSlaveaddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPMI:SLAVEADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpmiSlaveaddressValue(device, f"{self._cmd_syntax}:VALue") @@ -26016,7 +26016,7 @@ class TriggerABusBItemSpmiRegisteraddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPMI:REGISTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpmiRegisteraddressValue(device, f"{self._cmd_syntax}:VALue") @@ -26123,7 +26123,7 @@ class TriggerABusBItemSpmiMasteraddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPMI:MASTERADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpmiMasteraddressValue(device, f"{self._cmd_syntax}:VALue") @@ -26229,7 +26229,7 @@ class TriggerABusBItemSpmiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPMI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpmiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemSpmiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -26363,7 +26363,7 @@ class TriggerABusBItemSpmi(SCPICmdRead): - ``.slaveaddress``: The ``TRIGger:A:BUS:B:SPMI:SLAVEADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpmiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpmiData(device, f"{self._cmd_syntax}:DATa") @@ -26604,7 +26604,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemSpiDataValue(device, f"{self._cmd_syntax}:VALue") @@ -26715,7 +26715,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26817,7 +26817,7 @@ class TriggerABusBItemSentSlowIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:SLOW:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentSlowIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -26959,7 +26959,7 @@ class TriggerABusBItemSentSlowData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:SLOW:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentSlowDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentSlowDataQualifier( @@ -27076,7 +27076,7 @@ class TriggerABusBItemSentSlow(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:SENT:SLOW:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemSentSlowData(device, f"{self._cmd_syntax}:DATA") self._identifier = TriggerABusBItemSentSlowIdentifier( @@ -27170,7 +27170,7 @@ class TriggerABusBItemSentPause(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:SENT:PAUSE:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = TriggerABusBItemSentPauseQualifier( device, f"{self._cmd_syntax}:QUALifier" @@ -27253,7 +27253,7 @@ class TriggerABusBItemSentFastStatus(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:STATus:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentFastStatusValue(device, f"{self._cmd_syntax}:VALue") @@ -27332,7 +27332,7 @@ class TriggerABusBItemSentFastInvertnibble(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:INVERTNIBble:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSentFastInvertnibbleValue(device, f"{self._cmd_syntax}:VALue") @@ -27474,7 +27474,7 @@ class TriggerABusBItemSentFastCounter(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:COUNTer:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastCounterHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -27683,7 +27683,7 @@ class TriggerABusBItemSentFastChan2b(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:CHAN2B:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastChan2bHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentFastChan2bQualifier( @@ -27889,7 +27889,7 @@ class TriggerABusBItemSentFastChan1a(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SENT:FAST:CHAN1A:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemSentFastChan1aHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemSentFastChan1aQualifier( @@ -28007,7 +28007,7 @@ class TriggerABusBItemSentFast(SCPICmdRead): - ``.status``: The ``TRIGger:A:BUS:B:SENT:FAST:STATus`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chan1a = TriggerABusBItemSentFastChan1a(device, f"{self._cmd_syntax}:CHAN1A") self._chan2b = TriggerABusBItemSentFastChan2b(device, f"{self._cmd_syntax}:CHAN2B") @@ -28173,7 +28173,7 @@ class TriggerABusBItemSentErrtype(SCPICmdWrite, SCPICmdRead): - ``.crc``: The ``TRIGger:A:BUS:B:SENT:ERRType:CRC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemSentErrtypeCrc(device, f"{self._cmd_syntax}:CRC") @@ -28255,7 +28255,7 @@ class TriggerABusBItemSent(SCPICmdRead): - ``.slow``: The ``TRIGger:A:BUS:B:SENT:SLOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSentCondition(device, f"{self._cmd_syntax}:CONDition") self._errtype = TriggerABusBItemSentErrtype(device, f"{self._cmd_syntax}:ERRType") @@ -28450,7 +28450,7 @@ class TriggerABusBItemRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cDataValue(device, f"{self._cmd_syntax}:VALue") @@ -28555,7 +28555,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28648,7 +28648,7 @@ class TriggerABusBItemParallelData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelDataValue(device, f"{self._cmd_syntax}:VALue") @@ -28693,7 +28693,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemParallelData(device, f"{self._cmd_syntax}:DATa") @@ -28817,7 +28817,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -29214,7 +29214,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -29587,7 +29587,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -29708,7 +29708,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -29890,7 +29890,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -30219,7 +30219,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -30343,7 +30343,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -30513,7 +30513,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -30703,7 +30703,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -30895,7 +30895,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31069,7 +31069,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -31212,7 +31212,7 @@ class TriggerABusBItemI3cTbit(SCPICmdRead): - ``.direction``: The ``TRIGger:A:BUS:B:I3C:TBIT:DIREction`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI3cTbitDirection(device, f"{self._cmd_syntax}:DIREction") @@ -31356,7 +31356,7 @@ class TriggerABusBItemI3cSdr(SCPICmdRead): - ``.directpacket``: The ``TRIGger:A:BUS:B:I3C:SDR:DIRECTPacket`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._broadcastpacket = TriggerABusBItemI3cSdrBroadcastpacket( device, f"{self._cmd_syntax}:BROADCASTPacket" @@ -31588,7 +31588,7 @@ class TriggerABusBItemI3cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I3C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI3cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI3cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -31787,7 +31787,7 @@ class TriggerABusBItemI3cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I3C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI3cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemI3cAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -31868,7 +31868,7 @@ class TriggerABusBItemI3c(SCPICmdRead): - ``.tbit``: The ``TRIGger:A:BUS:B:I3C:TBIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI3cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI3cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32104,7 +32104,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -32301,7 +32301,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemI2cAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -32379,7 +32379,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32620,7 +32620,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -32922,7 +32922,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -33252,7 +33252,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -33528,7 +33528,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -33690,7 +33690,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -33960,7 +33960,7 @@ class TriggerABusBItemEthernetTcpheaderSourceport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSourceportValue( device, f"{self._cmd_syntax}:VALue" @@ -34046,7 +34046,7 @@ class TriggerABusBItemEthernetTcpheaderSeqnum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SEQnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderSeqnumValue( device, f"{self._cmd_syntax}:VALue" @@ -34132,7 +34132,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -34218,7 +34218,7 @@ class TriggerABusBItemEthernetTcpheaderAcknum(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:ACKnum:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderAcknumValue( device, f"{self._cmd_syntax}:VALue" @@ -34275,7 +34275,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): - ``.sourceport``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:SOUrceport`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = TriggerABusBItemEthernetTcpheaderAcknum(device, f"{self._cmd_syntax}:ACKnum") self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( @@ -34396,7 +34396,7 @@ class TriggerABusBItemEthernetQtag(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetQtagValue(device, f"{self._cmd_syntax}:VALue") @@ -34514,7 +34514,7 @@ class TriggerABusBItemEthernetMacLength(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetMacLengthHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -34635,7 +34635,7 @@ class TriggerABusBItemEthernetMacAddressSource(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressSourceValue( device, f"{self._cmd_syntax}:VALue" @@ -34720,7 +34720,7 @@ class TriggerABusBItemEthernetMacAddressDestination(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:DESTination:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetMacAddressDestinationValue( device, f"{self._cmd_syntax}:VALue" @@ -34775,7 +34775,7 @@ class TriggerABusBItemEthernetMacAddress(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:ADDRess:SOUrce`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = TriggerABusBItemEthernetMacAddressDestination( device, f"{self._cmd_syntax}:DESTination" @@ -34830,7 +34830,7 @@ class TriggerABusBItemEthernetMac(SCPICmdRead): - ``.length``: The ``TRIGger:A:BUS:B:ETHERnet:MAC:LENgth`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemEthernetMacAddress(device, f"{self._cmd_syntax}:ADDRess") self._length = TriggerABusBItemEthernetMacLength(device, f"{self._cmd_syntax}:LENgth") @@ -34918,7 +34918,7 @@ class TriggerABusBItemEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -35005,7 +35005,7 @@ class TriggerABusBItemEthernetIpheaderProtocol(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:PROTOcol:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderProtocolValue( device, f"{self._cmd_syntax}:VALue" @@ -35091,7 +35091,7 @@ class TriggerABusBItemEthernetIpheaderDestinationaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:DESTinationaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetIpheaderDestinationaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -35148,7 +35148,7 @@ class TriggerABusBItemEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:B:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationaddr = TriggerABusBItemEthernetIpheaderDestinationaddr( device, f"{self._cmd_syntax}:DESTinationaddr" @@ -35387,7 +35387,7 @@ class TriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemEthernetDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemEthernetDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -35619,7 +35619,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemEthernetCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemEthernetData(device, f"{self._cmd_syntax}:DATa") @@ -35835,7 +35835,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -36003,7 +36003,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBit") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBit") @@ -36270,7 +36270,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -36489,7 +36489,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -36873,7 +36873,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hitdmvalue = TriggerABusBItemAudioDataHitdmvalue( device, f"{self._cmd_syntax}:HITDMVALue" @@ -37141,7 +37141,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -37239,7 +37239,7 @@ class TriggerABusBItemArinc429aSsm(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:SSM:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemArinc429aSsmValue(device, f"{self._cmd_syntax}:VALue") @@ -37315,7 +37315,7 @@ class TriggerABusBItemArinc429aSdi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:SDI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemArinc429aSdiValue(device, f"{self._cmd_syntax}:VALue") @@ -37457,7 +37457,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -37699,7 +37699,7 @@ class TriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aDataQualifier( @@ -37852,7 +37852,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -38026,7 +38026,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -38358,7 +38358,7 @@ class TriggerABus(SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -38451,7 +38451,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.window``: The ``TRIGger:A:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._holdoff = TriggerAHoldoff(device, f"{self._cmd_syntax}:HOLDoff") self._logicqualification = TriggerALogicqualification( @@ -38864,7 +38864,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.status``: The ``TRIGger:STATUs`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._hysteresis = TriggerHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py index 4b61ebd9..84e7a9e5 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TstamptableList(SCPICmdRead): @@ -94,7 +94,7 @@ class Tstamptable(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TSTamptable" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "TSTamptable" ) -> None: super().__init__(device, cmd_syntax) self._addnew = TstamptableAddnew(device, f"{self._cmd_syntax}:ADDNew") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py index 3278112b..0b37937a 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py @@ -53,7 +53,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): @@ -93,7 +93,7 @@ class AfgSquare(SCPICmdRead): - ``.duty``: The ``AFG:SQUare:DUty`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._duty = AfgSquareDuty(device, f"{self._cmd_syntax}:DUty") @@ -161,7 +161,7 @@ class AfgRamp(SCPICmdRead): - ``.symmetry``: The ``AFG:RAMP:SYMmetry`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._symmetry = AfgRampSymmetry(device, f"{self._cmd_syntax}:SYMmetry") @@ -227,7 +227,7 @@ class AfgPulse(SCPICmdRead): - ``.width``: The ``AFG:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._width = AfgPulseWidth(device, f"{self._cmd_syntax}:WIDth") @@ -365,7 +365,7 @@ class AfgOutputLoad(SCPICmdRead): - ``.impedance``: The ``AFG:OUTPut:LOAd:IMPEDance`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._impedance = AfgOutputLoadImpedance(device, f"{self._cmd_syntax}:IMPEDance") @@ -410,7 +410,7 @@ class AfgOutput(SCPICmdRead): - ``.state``: The ``AFG:OUTPut:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._load = AfgOutputLoad(device, f"{self._cmd_syntax}:LOAd") self._mode = AfgOutputMode(device, f"{self._cmd_syntax}:MODe") @@ -567,7 +567,7 @@ class AfgNoiseadd(SCPICmdRead): - ``.state``: The ``AFG:NOISEAdd:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._percent = AfgNoiseaddPercent(device, f"{self._cmd_syntax}:PERCent") self._state = AfgNoiseaddState(device, f"{self._cmd_syntax}:STATE") @@ -784,7 +784,7 @@ class AfgBurst(SCPICmdRead): - ``.trigger``: The ``AFG:BURSt:TRIGger`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ccount = AfgBurstCcount(device, f"{self._cmd_syntax}:CCOUnt") self._trigger = AfgBurstTrigger(device, f"{self._cmd_syntax}:TRIGger") @@ -869,7 +869,7 @@ class AfgArbitrary(SCPICmdRead): - ``.source``: The ``AFG:ARBitrary:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = AfgArbitrarySource(device, f"{self._cmd_syntax}:SOUrce") @@ -950,7 +950,7 @@ class Afg(SCPICmdRead): - ``.square``: The ``AFG:SQUare`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AFG") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AFG") -> None: super().__init__(device, cmd_syntax) self._amplitude = AfgAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._arbitrary = AfgArbitrary(device, f"{self._cmd_syntax}:ARBitrary") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py index 92616c59..81bc43e0 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetVerticalOptimize(SCPICmdWrite, SCPICmdRead): @@ -103,7 +103,7 @@ class AutosetVertical(SCPICmdRead): - ``.optimize``: The ``AUTOSet:VERTical:OPTIMize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AutosetVerticalEnable(device, f"{self._cmd_syntax}:ENAble") self._optimize = AutosetVerticalOptimize(device, f"{self._cmd_syntax}:OPTIMize") @@ -206,7 +206,7 @@ class AutosetTrigger(SCPICmdRead): - ``.enable``: The ``AUTOSet:TRIGger:ENAble`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AutosetTriggerEnable(device, f"{self._cmd_syntax}:ENAble") @@ -278,7 +278,7 @@ class AutosetHorizontal(SCPICmdRead): - ``.enable``: The ``AUTOSet:HORizontal:ENAble`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AutosetHorizontalEnable(device, f"{self._cmd_syntax}:ENAble") @@ -375,7 +375,7 @@ class AutosetAcquisition(SCPICmdRead): - ``.enable``: The ``AUTOSet:ACQuisition:ENAble`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = AutosetAcquisitionEnable(device, f"{self._cmd_syntax}:ENAble") @@ -434,7 +434,7 @@ class Autoset(SCPICmdWrite, SCPICmdRead): - ``.vertical``: The ``AUTOSet:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSet") -> None: super().__init__(device, cmd_syntax) self._acquisition = AutosetAcquisition(device, f"{self._cmd_syntax}:ACQuisition") self._enable = AutosetEnable(device, f"{self._cmd_syntax}:ENAble") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py index 5a597bd5..e2a20eb9 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibratePwrupstatus(SCPICmdRead): @@ -101,7 +101,7 @@ class CalibrateInternal(SCPICmdWriteNoArguments, SCPICmdRead): - ``.status``: The ``CALibrate:INTERNal:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = CalibrateInternalStart(device, f"{self._cmd_syntax}:STARt") self._status = CalibrateInternalStatus(device, f"{self._cmd_syntax}:STATus") @@ -167,7 +167,7 @@ class Calibrate(SCPICmdRead): - ``.pwrupstatus``: The ``CALibrate:PWRUpstatus`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibrate") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibrate") -> None: super().__init__(device, cmd_syntax) self._internal = CalibrateInternal(device, f"{self._cmd_syntax}:INTERNal") self._pwrupstatus = CalibratePwrupstatus(device, f"{self._cmd_syntax}:PWRUpstatus") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py index 75d833c8..310f6968 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConnectedUsageTrackStatus(SCPICmdRead): @@ -81,7 +81,7 @@ class ConnectedUsageTrackRequested(SCPICmdRead): - ``.status``: The ``CONNected:USAGe:TRack:REQUested:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = ConnectedUsageTrackRequestedStatus(device, f"{self._cmd_syntax}:STATus") @@ -125,7 +125,7 @@ class ConnectedUsageTrack(SCPICmdRead): - ``.status``: The ``CONNected:USAGe:TRack:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._requested = ConnectedUsageTrackRequested(device, f"{self._cmd_syntax}:REQUested") self._status = ConnectedUsageTrackStatus(device, f"{self._cmd_syntax}:STATus") @@ -179,7 +179,7 @@ class ConnectedUsage(SCPICmdRead): - ``.track``: The ``CONNected:USAGe:TRack`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._track = ConnectedUsageTrack(device, f"{self._cmd_syntax}:TRack") @@ -255,7 +255,7 @@ class ConnectedRequested(SCPICmdRead): - ``.status``: The ``CONNected:REQUested:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = ConnectedRequestedStatus(device, f"{self._cmd_syntax}:STATus") @@ -299,7 +299,7 @@ class Connected(SCPICmdRead): - ``.usage``: The ``CONNected:USAGe`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CONNected") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CONNected") -> None: super().__init__(device, cmd_syntax) self._requested = ConnectedRequested(device, f"{self._cmd_syntax}:REQUested") self._status = ConnectedStatus(device, f"{self._cmd_syntax}:STATus") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py index c5e9a0a6..62caa4a2 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): @@ -105,7 +105,7 @@ class EthernetPing(SCPICmdWrite, SCPICmdRead): - ``.status``: The ``ETHERnet:PING:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = EthernetPingStatus(device, f"{self._cmd_syntax}:STATus") @@ -257,7 +257,7 @@ class EthernetLxiLan(SCPICmdRead): - ``.status``: The ``ETHERnet:LXI:LAN:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = EthernetLxiLanReset(device, f"{self._cmd_syntax}:RESET") self._servicename = EthernetLxiLanServicename(device, f"{self._cmd_syntax}:SERVICENAMe") @@ -339,7 +339,7 @@ class EthernetLxi(SCPICmdRead): - ``.lan``: The ``ETHERnet:LXI:LAN`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lan = EthernetLxiLan(device, f"{self._cmd_syntax}:LAN") @@ -423,7 +423,7 @@ class EthernetGateway(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:GATEWay:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetGatewayIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -484,7 +484,7 @@ class EthernetEnet(SCPICmdRead): - ``.address``: The ``ETHERnet:ENET:ADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = EthernetEnetAddress(device, f"{self._cmd_syntax}:ADDress") @@ -571,7 +571,7 @@ class EthernetDns(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:DNS:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetDnsIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -650,7 +650,7 @@ class Ethernet(SCPICmdRead): - ``.subnetmask``: The ``ETHERnet:SUBNETMask`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ETHERnet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ETHERnet") -> None: super().__init__(device, cmd_syntax) self._dhcpbootp = EthernetDhcpbootp(device, f"{self._cmd_syntax}:DHCPbootp") self._dns = EthernetDns(device, f"{self._cmd_syntax}:DNS") diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py index 3841605c..f52a6d6c 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): @@ -62,7 +62,7 @@ class Usbdevice(SCPICmdRead): - ``.configure``: The ``USBDevice:CONFigure`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "USBDevice") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "USBDevice") -> None: super().__init__(device, cmd_syntax) self._configure = UsbdeviceConfigure(device, f"{self._cmd_syntax}:CONFigure") diff --git a/src/tm_devices/commands/gen_e3pief_ss/beeper.py b/src/tm_devices/commands/gen_e3pief_ss/beeper.py index 0a6516fc..9e4e9faa 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/beeper.py +++ b/src/tm_devices/commands/gen_e3pief_ss/beeper.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): @@ -32,7 +32,7 @@ class Beeper(BaseTSPCmd): - ``.enable``: The ``beeper.enable`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "beeper") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "beeper") -> None: super().__init__(device, cmd_syntax) @property @@ -62,7 +62,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -95,7 +95,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def beep(self, duration: float, frequency: float) -> None: @@ -121,5 +121,5 @@ def beep(self, duration: float, frequency: float) -> None: f"{self._cmd_syntax}.beep({duration}, {frequency})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.beep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py index 3ca58ee1..f56d3718 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods @@ -78,7 +78,9 @@ class Buffervar(BaseTSPCmd): - ``.units``: The ``bufferVar.units[N]`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bufferVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bufferVar" + ) -> None: super().__init__(device, cmd_syntax) self._channels: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.channels[{{key}}]", @@ -172,7 +174,7 @@ def appendmode(self) -> str: f"print({self._cmd_syntax}.appendmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @appendmode.setter @@ -209,7 +211,7 @@ def appendmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.appendmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.appendmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -242,7 +244,7 @@ def basetimefractional(self) -> str: f"print({self._cmd_syntax}.basetimefractional)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.basetimefractional`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.basetimefractional`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -275,7 +277,7 @@ def basetimeseconds(self) -> str: f"print({self._cmd_syntax}.basetimeseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.basetimeseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.basetimeseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -309,7 +311,7 @@ def cachemode(self) -> str: f"print({self._cmd_syntax}.cachemode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @cachemode.setter @@ -346,7 +348,7 @@ def cachemode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.cachemode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.cachemode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -377,7 +379,7 @@ def capacity(self) -> str: f"print({self._cmd_syntax}.capacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.capacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -439,7 +441,7 @@ def collectchannels(self) -> str: f"print({self._cmd_syntax}.collectchannels)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collectchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collectchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @collectchannels.setter @@ -477,7 +479,7 @@ def collectchannels(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.collectchannels = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collectchannels`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collectchannels`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -512,7 +514,7 @@ def collecttimestamps(self) -> str: f"print({self._cmd_syntax}.collecttimestamps)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @collecttimestamps.setter @@ -550,7 +552,7 @@ def collecttimestamps(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.collecttimestamps = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.collecttimestamps`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -659,7 +661,7 @@ def n(self) -> str: f"print({self._cmd_syntax}.n)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -850,7 +852,7 @@ def timestampresolution(self) -> str: f"print({self._cmd_syntax}.timestampresolution)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timestampresolution`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -927,7 +929,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clearcache(self) -> None: @@ -952,5 +954,5 @@ def clearcache(self) -> None: f"{self._cmd_syntax}.clearcache()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/channel.py b/src/tm_devices/commands/gen_e3pief_ss/channel.py index 9f723372..fb4f97f7 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/channel.py +++ b/src/tm_devices/commands/gen_e3pief_ss/channel.py @@ -77,7 +77,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -100,7 +100,7 @@ class ChannelTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "channel.trigger[N].EVENT_ID" """str: This constant indicates the trigger event generated by the channel trigger N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -129,7 +129,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def get(self) -> str: @@ -158,7 +158,7 @@ def get(self) -> str: f"print({self._cmd_syntax}.get())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self, channel_list: str, state_match: str) -> None: @@ -185,7 +185,7 @@ def set_(self, channel_list: str, state_match: str) -> None: f'{self._cmd_syntax}.set("{channel_list}", {state_match})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -214,7 +214,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -250,7 +250,7 @@ def delete(self, name: str) -> None: f'{self._cmd_syntax}.delete("{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getimage(self, name: str) -> str: @@ -279,7 +279,7 @@ def getimage(self, name: str) -> str: f'print({self._cmd_syntax}.getimage("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getimage()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getimage()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setimage(self, channel_list: str, name: str) -> None: @@ -306,7 +306,7 @@ def setimage(self, channel_list: str, name: str) -> None: f'{self._cmd_syntax}.setimage("{channel_list}", "{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setimage()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setimage()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def snapshot(self, name: str) -> None: @@ -332,7 +332,7 @@ def snapshot(self, name: str) -> None: f'{self._cmd_syntax}.snapshot("{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.snapshot()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.snapshot()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -375,7 +375,7 @@ def adjustcount(self, x: str) -> str: f"print({self._cmd_syntax}.adjustcount({x}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.adjustcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.adjustcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def adjustdate(self, x: str, date: Optional[str] = None) -> str: @@ -413,7 +413,7 @@ def adjustdate(self, x: str, date: Optional[str] = None) -> str: f"print({self._cmd_syntax}.adjustdate({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.adjustdate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.adjustdate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -435,7 +435,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def password(self, password: str) -> None: @@ -461,7 +461,7 @@ def password(self, password: str) -> None: f'{self._cmd_syntax}.password("{password}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.password()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.password()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -483,7 +483,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def step(self, channel: str, step: str, value: Optional[str] = None) -> None: @@ -519,7 +519,7 @@ def step(self, channel: str, step: str, value: Optional[str] = None) -> None: f"{self._cmd_syntax}.step({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.step()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.step()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, x: str, password: str) -> None: @@ -546,7 +546,7 @@ def unlock(self, x: str, password: str) -> None: f"{self._cmd_syntax}.unlock({x}, {password})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def verifydate(self, x: str, date: Optional[str] = None) -> str: @@ -584,7 +584,7 @@ def verifydate(self, x: str, date: Optional[str] = None) -> str: f"print({self._cmd_syntax}.verifydate({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.verifydate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.verifydate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -635,7 +635,7 @@ class Channel(BaseTSPCmd): - ``.write()``: The ``channel.write()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "channel") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "channel") -> None: super().__init__(device, cmd_syntax) self._calibration = ChannelCalibration(device, f"{self._cmd_syntax}.calibration") self._pattern = ChannelPattern(device, f"{self._cmd_syntax}.pattern") @@ -688,7 +688,7 @@ def connectrule(self) -> str: f"print({self._cmd_syntax}.connectrule)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connectrule`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connectrule`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @connectrule.setter @@ -723,7 +723,7 @@ def connectrule(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.connectrule = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connectrule`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connectrule`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -754,7 +754,7 @@ def connectsequential(self) -> str: f"print({self._cmd_syntax}.connectsequential)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connectsequential`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connectsequential`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @connectsequential.setter @@ -788,7 +788,7 @@ def connectsequential(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.connectsequential = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connectsequential`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connectsequential`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -844,7 +844,7 @@ def clearforbidden(self, channel_list: str) -> None: f'{self._cmd_syntax}.clearforbidden("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearforbidden()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clearforbidden()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def close(self, channel_list: str) -> None: @@ -871,7 +871,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def exclusiveclose(self, channel_list: str) -> None: @@ -898,7 +898,7 @@ def exclusiveclose(self, channel_list: str) -> None: f'{self._cmd_syntax}.exclusiveclose("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.exclusiveclose()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.exclusiveclose()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def exclusiveslotclose(self, channel_list: str) -> None: @@ -925,7 +925,7 @@ def exclusiveslotclose(self, channel_list: str) -> None: f'{self._cmd_syntax}.exclusiveslotclose("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.exclusiveslotclose()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.exclusiveslotclose()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getbackplane(self, channel_list: str) -> str: @@ -954,7 +954,7 @@ def getbackplane(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getbackplane("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getbackplane()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getbackplane()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getclose(self, channel_list: str) -> str: @@ -983,7 +983,7 @@ def getclose(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getclose("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getclose()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcount(self, channel_list: str) -> str: @@ -1012,7 +1012,7 @@ def getcount(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getcount("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcount()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getdelay(self, channel_list: str) -> str: @@ -1040,7 +1040,7 @@ def getdelay(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getdelay("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getforbidden(self, channel_list: str) -> str: @@ -1070,7 +1070,7 @@ def getforbidden(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getforbidden("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getforbidden()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getforbidden()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getimage(self, channel_list: str) -> str: @@ -1099,7 +1099,7 @@ def getimage(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getimage("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getimage()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getimage()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlabel(self, channel_list: str) -> str: @@ -1127,7 +1127,7 @@ def getlabel(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getlabel("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmatch(self, channel_list: str) -> str: @@ -1156,7 +1156,7 @@ def getmatch(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmatch("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmatchtype(self, channel_list: str) -> str: @@ -1185,7 +1185,7 @@ def getmatchtype(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmatchtype("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmatchtype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmatchtype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getmode(self, channel_list: str) -> str: @@ -1214,7 +1214,7 @@ def getmode(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getmode("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getmode()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getmode()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getoutputenable(self, channel_list: str) -> str: @@ -1243,7 +1243,7 @@ def getoutputenable(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getoutputenable("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getoutputenable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getoutputenable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getpole(self, channel_list: str) -> str: @@ -1271,7 +1271,7 @@ def getpole(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getpole("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getpole()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getpole()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getpowerstate(self, channel_list: str) -> str: @@ -1299,7 +1299,7 @@ def getpowerstate(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getpowerstate("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getpowerstate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getpowerstate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstate(self, channel_list: str, indicator_mask: Optional[str] = None) -> str: @@ -1337,7 +1337,7 @@ def getstate(self, channel_list: str, indicator_mask: Optional[str] = None) -> s f"print({self._cmd_syntax}.getstate({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getstatelatch(self, channel_list: str) -> str: @@ -1366,7 +1366,7 @@ def getstatelatch(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getstatelatch("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getstatelatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getstatelatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettype(self, channel_list: str) -> str: @@ -1394,7 +1394,7 @@ def gettype(self, channel_list: str) -> str: f'print({self._cmd_syntax}.gettype("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -1421,7 +1421,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read( @@ -1462,7 +1462,7 @@ def read( f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, channel_list: str) -> None: @@ -1487,7 +1487,7 @@ def reset(self, channel_list: str) -> None: f'{self._cmd_syntax}.reset("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def resetstatelatch(self, channel_list: str, state: str) -> None: @@ -1515,7 +1515,7 @@ def resetstatelatch(self, channel_list: str, state: str) -> None: f'{self._cmd_syntax}.resetstatelatch("{channel_list}", {state})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resetstatelatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.resetstatelatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setbackplane(self, channel_list: str, abuslist: str) -> None: @@ -1543,7 +1543,7 @@ def setbackplane(self, channel_list: str, abuslist: str) -> None: f'{self._cmd_syntax}.setbackplane("{channel_list}", "{abuslist}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setbackplane()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setbackplane()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setdelay(self, channel_list: str, delay: float) -> None: @@ -1569,7 +1569,7 @@ def setdelay(self, channel_list: str, delay: float) -> None: f'{self._cmd_syntax}.setdelay("{channel_list}", {delay})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setdelay()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setforbidden(self, channel_list: str) -> None: @@ -1595,7 +1595,7 @@ def setforbidden(self, channel_list: str) -> None: f'{self._cmd_syntax}.setforbidden("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setforbidden()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setforbidden()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setlabel(self, channel_list: str, labelname: str) -> None: @@ -1623,7 +1623,7 @@ def setlabel(self, channel_list: str, labelname: str) -> None: f'{self._cmd_syntax}.setlabel("{channel_list}", "{labelname}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setlabel()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmatch( @@ -1669,7 +1669,7 @@ def setmatch( f"{self._cmd_syntax}.setmatch({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmatchtype(self, channel_list: str, type_: str) -> None: @@ -1695,7 +1695,7 @@ def setmatchtype(self, channel_list: str, type_: str) -> None: f'{self._cmd_syntax}.setmatchtype("{channel_list}", {type_})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmatchtype()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmatchtype()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setmode(self, channel_list: str, mode: str) -> None: @@ -1721,7 +1721,7 @@ def setmode(self, channel_list: str, mode: str) -> None: f'{self._cmd_syntax}.setmode("{channel_list}", {mode})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setmode()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setmode()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setoutputenable(self, channel_list: str, state: str) -> None: @@ -1747,7 +1747,7 @@ def setoutputenable(self, channel_list: str, state: str) -> None: f'{self._cmd_syntax}.setoutputenable("{channel_list}", {state})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setoutputenable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setoutputenable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setpole(self, channel_list: str, value: str) -> None: @@ -1773,7 +1773,7 @@ def setpole(self, channel_list: str, value: str) -> None: f'{self._cmd_syntax}.setpole("{channel_list}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setpole()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setpole()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setstatelatch(self, channel_list: str, state_latch_mask: str) -> None: @@ -1799,7 +1799,7 @@ def setstatelatch(self, channel_list: str, state_latch_mask: str) -> None: f'{self._cmd_syntax}.setstatelatch("{channel_list}", {state_latch_mask})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setstatelatch()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setstatelatch()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, channel_list: str, value: str, width: Optional[str] = None) -> None: @@ -1835,5 +1835,5 @@ def write(self, channel_list: str, value: str, width: Optional[str] = None) -> N f"{self._cmd_syntax}.write({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/comm.py b/src/tm_devices/commands/gen_e3pief_ss/comm.py index b72be6c2..463c144a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/comm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/comm.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class CommLanWeb(BaseTSPCmd): @@ -64,7 +64,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -99,7 +99,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -139,7 +139,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -174,7 +174,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -213,7 +213,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -247,7 +247,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -286,7 +286,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -320,7 +320,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -335,7 +335,7 @@ class CommLan(BaseTSPCmd): - ``.web``: The ``comm.lan.web`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rawsockets = CommLanRawsockets(device, f"{self._cmd_syntax}.rawsockets") self._telnet = CommLanTelnet(device, f"{self._cmd_syntax}.telnet") @@ -370,7 +370,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -404,7 +404,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -479,7 +479,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -513,7 +513,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -525,7 +525,7 @@ class Comm(BaseTSPCmd): - ``.lan``: The ``comm.lan`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "comm") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "comm") -> None: super().__init__(device, cmd_syntax) self._gpib = CommGpib(device, f"{self._cmd_syntax}.gpib") self._lan = CommLan(device, f"{self._cmd_syntax}.lan") diff --git a/src/tm_devices/commands/gen_e3pief_ss/digio.py b/src/tm_devices/commands/gen_e3pief_ss/digio.py index c30270fc..18abd254 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/digio.py +++ b/src/tm_devices/commands/gen_e3pief_ss/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -65,7 +65,7 @@ class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "digio.trigger[N].EVENT_ID" """str: The trigger event generated by the digital I/O line N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -104,7 +104,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -142,7 +142,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -173,7 +173,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -209,7 +209,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -248,7 +248,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -283,7 +283,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -321,7 +321,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -346,7 +346,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -371,7 +371,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -396,7 +396,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -421,7 +421,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -449,7 +449,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -465,7 +465,7 @@ class Digio(BaseTSPCmd): - ``.writeprotect``: The ``digio.writeprotect`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "digio") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "digio") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, DigioTriggerItem] = DefaultDictPassKeyToFactory( lambda x: DigioTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -522,7 +522,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -556,7 +556,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -584,7 +584,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -609,7 +609,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -635,7 +635,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -660,5 +660,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/display.py b/src/tm_devices/commands/gen_e3pief_ss/display.py index 9327da6d..c516754c 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/display.py +++ b/src/tm_devices/commands/gen_e3pief_ss/display.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods @@ -93,7 +93,7 @@ def add(self, display_name: str, code: str, memory: Optional[str] = None) -> Non f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, display_name: str) -> None: @@ -119,7 +119,7 @@ def delete(self, display_name: str) -> None: f'{self._cmd_syntax}.delete("{display_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -145,7 +145,7 @@ class Display(BaseTSPCmd): - ``.waitkey()``: The ``display.waitkey()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "display") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "display") -> None: super().__init__(device, cmd_syntax) self._loadmenu = DisplayLoadmenu(device, f"{self._cmd_syntax}.loadmenu") self._trigger = DisplayTrigger(device, f"{self._cmd_syntax}.trigger") @@ -193,7 +193,7 @@ def locallockout(self) -> str: f"print({self._cmd_syntax}.locallockout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @locallockout.setter @@ -232,7 +232,7 @@ def locallockout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.locallockout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.locallockout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -262,7 +262,7 @@ def screen(self) -> str: f"print({self._cmd_syntax}.screen)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @screen.setter @@ -295,7 +295,7 @@ def screen(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.screen = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.screen`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -327,7 +327,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getannunciators(self) -> str: @@ -352,7 +352,7 @@ def getannunciators(self) -> str: f"print({self._cmd_syntax}.getannunciators())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getannunciators()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getcursor(self) -> str: @@ -378,7 +378,7 @@ def getcursor(self) -> str: f"print({self._cmd_syntax}.getcursor())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getlastkey(self) -> str: @@ -403,7 +403,7 @@ def getlastkey(self) -> str: f"print({self._cmd_syntax}.getlastkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getlastkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def gettext( @@ -454,7 +454,7 @@ def gettext( f"print({self._cmd_syntax}.gettext({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.gettext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def inputvalue( @@ -503,7 +503,7 @@ def inputvalue( f"print({self._cmd_syntax}.inputvalue({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.inputvalue()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def menu(self, name: str, items: str) -> str: @@ -532,7 +532,7 @@ def menu(self, name: str, items: str) -> str: f'print({self._cmd_syntax}.menu("{name}", "{items}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.menu()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def prompt(self, button_id: str, prompt_text: str) -> str: @@ -562,7 +562,7 @@ def prompt(self, button_id: str, prompt_text: str) -> str: f'print({self._cmd_syntax}.prompt({button_id}, "{prompt_text}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.prompt()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sendkey(self, key_code: str) -> None: @@ -588,7 +588,7 @@ def sendkey(self, key_code: str) -> None: f"{self._cmd_syntax}.sendkey({key_code})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.sendkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: @@ -625,7 +625,7 @@ def setcursor(self, row: str, column: str, style: Optional[str] = None) -> None: f"{self._cmd_syntax}.setcursor({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setcursor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def settext( @@ -663,7 +663,7 @@ def settext( f"{self._cmd_syntax}.settext({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def waitkey(self) -> str: @@ -688,5 +688,5 @@ def waitkey(self) -> str: f"print({self._cmd_syntax}.waitkey())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.waitkey()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/dmm.py b/src/tm_devices/commands/gen_e3pief_ss/dmm.py index f49089d7..54471bf2 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/dmm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/dmm.py @@ -94,7 +94,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmRel(BaseTSPCmd): @@ -134,7 +134,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -168,7 +168,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -198,7 +198,7 @@ def level(self) -> str: f"print({self._cmd_syntax}.level)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @level.setter @@ -231,7 +231,7 @@ def level(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.level = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.level`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def acquire(self) -> str: @@ -256,7 +256,7 @@ def acquire(self) -> str: f"print({self._cmd_syntax}.acquire())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.acquire()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -297,7 +297,7 @@ def bfactor(self) -> str: f"print({self._cmd_syntax}.bfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bfactor.setter @@ -331,7 +331,7 @@ def bfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -362,7 +362,7 @@ def mfactor(self) -> str: f"print({self._cmd_syntax}.mfactor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mfactor.setter @@ -396,7 +396,7 @@ def mfactor(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mfactor = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mfactor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -426,7 +426,7 @@ def units(self) -> str: f"print({self._cmd_syntax}.units)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @units.setter @@ -459,7 +459,7 @@ def units(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.units = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.units`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -473,7 +473,7 @@ class DmmMath(BaseTSPCmd): - ``.percent``: The ``dmm.math.percent`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mxb = DmmMathMxb(device, f"{self._cmd_syntax}.mxb") @@ -505,7 +505,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -539,7 +539,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -570,7 +570,7 @@ def format(self) -> str: f"print({self._cmd_syntax}.format)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @format.setter @@ -604,7 +604,7 @@ def format(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.format = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.format`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -646,7 +646,7 @@ def percent(self) -> str: f"print({self._cmd_syntax}.percent)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @percent.setter @@ -680,7 +680,7 @@ def percent(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.percent = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.percent`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -717,7 +717,7 @@ def fail(self) -> str: f"print({self._cmd_syntax}.fail)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -748,7 +748,7 @@ def value(self) -> str: f"print({self._cmd_syntax}.value)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @value.setter @@ -782,7 +782,7 @@ def value(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.value = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.value`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -796,7 +796,7 @@ class DmmLimitItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.high``: The ``dmm.limit[r].high`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = DmmLimitItemHigh(device, f"{self._cmd_syntax}.high") @@ -829,7 +829,7 @@ def autoclear(self) -> str: f"print({self._cmd_syntax}.autoclear)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autoclear.setter @@ -864,7 +864,7 @@ def autoclear(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autoclear = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autoclear`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -896,7 +896,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -931,7 +931,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -964,7 +964,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1005,7 +1005,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -1038,7 +1038,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1069,7 +1069,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1103,7 +1103,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1134,7 +1134,7 @@ def type(self) -> str: f"print({self._cmd_syntax}.type)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @type.setter @@ -1168,7 +1168,7 @@ def type(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.type = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1199,7 +1199,7 @@ def window(self) -> str: f"print({self._cmd_syntax}.window)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @window.setter @@ -1233,7 +1233,7 @@ def window(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.window = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.window`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1269,7 +1269,7 @@ def delete(self, name: str) -> None: f'{self._cmd_syntax}.delete("{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query(self, user_configuration: str, user_separator: Optional[str] = None) -> str: @@ -1309,7 +1309,7 @@ def query(self, user_configuration: str, user_separator: Optional[str] = None) - f"print({self._cmd_syntax}.query({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.query()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall(self, configuration: str) -> None: @@ -1335,7 +1335,7 @@ def recall(self, configuration: str) -> None: f'{self._cmd_syntax}.recall("{configuration}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self, name: str) -> None: @@ -1361,7 +1361,7 @@ def set_(self, name: str) -> None: f'{self._cmd_syntax}.set("{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1427,7 +1427,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def ac(self, step: str, value: Optional[str] = None) -> None: @@ -1462,7 +1462,7 @@ def ac(self, step: str, value: Optional[str] = None) -> None: f"{self._cmd_syntax}.ac({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.ac()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.ac()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def dc(self, step: str, value: Optional[str] = None) -> None: @@ -1497,7 +1497,7 @@ def dc(self, step: str, value: Optional[str] = None) -> None: f"{self._cmd_syntax}.dc({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.dc()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.dc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def lock(self) -> None: @@ -1519,7 +1519,7 @@ def lock(self) -> None: f"{self._cmd_syntax}.lock()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self) -> None: @@ -1541,7 +1541,7 @@ def save(self) -> None: f"{self._cmd_syntax}.save()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unlock(self, password: str) -> None: @@ -1566,7 +1566,7 @@ def unlock(self, password: str) -> None: f'{self._cmd_syntax}.unlock("{password}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1605,7 +1605,7 @@ def maxcapacity(self) -> str: f"print({self._cmd_syntax}.maxcapacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.maxcapacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.maxcapacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1634,7 +1634,7 @@ def usedcapacity(self) -> str: f"print({self._cmd_syntax}.usedcapacity)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.usedcapacity`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.usedcapacity`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def info(self, buffer_var: str) -> str: @@ -1663,7 +1663,7 @@ def info(self, buffer_var: str) -> str: f"print({self._cmd_syntax}.info({buffer_var}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.info()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.info()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1700,7 +1700,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1757,7 +1757,7 @@ class Dmm(BaseTSPCmd): - ``.transducer``: The ``dmm.transducer`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dmm") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dmm") -> None: super().__init__(device, cmd_syntax) self._adjustment = DmmAdjustment(device, f"{self._cmd_syntax}.adjustment") self._buffer = DmmBuffer(device, f"{self._cmd_syntax}.buffer") @@ -1806,7 +1806,7 @@ def aperture(self) -> str: f"print({self._cmd_syntax}.aperture)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @aperture.setter @@ -1839,7 +1839,7 @@ def aperture(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.aperture = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.aperture`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1869,7 +1869,7 @@ def autorange(self) -> str: f"print({self._cmd_syntax}.autorange)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorange.setter @@ -1902,7 +1902,7 @@ def autorange(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorange = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorange`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1933,7 +1933,7 @@ def autozero(self) -> str: f"print({self._cmd_syntax}.autozero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autozero.setter @@ -1967,7 +1967,7 @@ def autozero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autozero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autozero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2035,7 +2035,7 @@ def connect(self) -> str: f"print({self._cmd_syntax}.connect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @connect.setter @@ -2069,7 +2069,7 @@ def connect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.connect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2099,7 +2099,7 @@ def dbreference(self) -> str: f"print({self._cmd_syntax}.dbreference)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dbreference.setter @@ -2132,7 +2132,7 @@ def dbreference(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dbreference = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dbreference`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2163,7 +2163,7 @@ def detectorbandwidth(self) -> str: f"print({self._cmd_syntax}.detectorbandwidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @detectorbandwidth.setter @@ -2197,7 +2197,7 @@ def detectorbandwidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.detectorbandwidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.detectorbandwidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2228,7 +2228,7 @@ def displaydigits(self) -> str: f"print({self._cmd_syntax}.displaydigits)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @displaydigits.setter @@ -2262,7 +2262,7 @@ def displaydigits(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.displaydigits = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.displaydigits`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2293,7 +2293,7 @@ def drycircuit(self) -> str: f"print({self._cmd_syntax}.drycircuit)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @drycircuit.setter @@ -2327,7 +2327,7 @@ def drycircuit(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.drycircuit = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.drycircuit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2369,7 +2369,7 @@ def fourrtd(self) -> str: f"print({self._cmd_syntax}.fourrtd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fourrtd.setter @@ -2402,7 +2402,7 @@ def fourrtd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fourrtd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fourrtd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2432,7 +2432,7 @@ def func(self) -> str: f"print({self._cmd_syntax}.func)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @func.setter @@ -2465,7 +2465,7 @@ def func(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.func = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2495,7 +2495,7 @@ def inputdivider(self) -> str: f"print({self._cmd_syntax}.inputdivider)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputdivider`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputdivider`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @inputdivider.setter @@ -2528,7 +2528,7 @@ def inputdivider(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.inputdivider = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.inputdivider`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.inputdivider`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2570,7 +2570,7 @@ def linesync(self) -> str: f"print({self._cmd_syntax}.linesync)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @linesync.setter @@ -2603,7 +2603,7 @@ def linesync(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.linesync = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linesync`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2650,7 +2650,7 @@ def measurecount(self) -> str: f"print({self._cmd_syntax}.measurecount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @measurecount.setter @@ -2688,7 +2688,7 @@ def measurecount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.measurecount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2719,7 +2719,7 @@ def nplc(self) -> str: f"print({self._cmd_syntax}.nplc)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nplc.setter @@ -2753,7 +2753,7 @@ def nplc(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nplc = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2785,7 +2785,7 @@ def offsetcompensation(self) -> str: f"print({self._cmd_syntax}.offsetcompensation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @offsetcompensation.setter @@ -2820,7 +2820,7 @@ def offsetcompensation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.offsetcompensation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.offsetcompensation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2850,7 +2850,7 @@ def opendetector(self) -> str: f"print({self._cmd_syntax}.opendetector)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @opendetector.setter @@ -2883,7 +2883,7 @@ def opendetector(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.opendetector = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.opendetector`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2913,7 +2913,7 @@ def range(self) -> str: f"print({self._cmd_syntax}.range)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @range.setter @@ -2946,7 +2946,7 @@ def range(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.range = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.range`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2976,7 +2976,7 @@ def refjunction(self) -> str: f"print({self._cmd_syntax}.refjunction)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @refjunction.setter @@ -3009,7 +3009,7 @@ def refjunction(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.refjunction = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.refjunction`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3050,7 +3050,7 @@ def rtdalpha(self) -> str: f"print({self._cmd_syntax}.rtdalpha)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdalpha.setter @@ -3083,7 +3083,7 @@ def rtdalpha(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdalpha = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdalpha`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3113,7 +3113,7 @@ def rtdbeta(self) -> str: f"print({self._cmd_syntax}.rtdbeta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdbeta.setter @@ -3146,7 +3146,7 @@ def rtdbeta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdbeta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdbeta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3176,7 +3176,7 @@ def rtddelta(self) -> str: f"print({self._cmd_syntax}.rtddelta)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtddelta.setter @@ -3209,7 +3209,7 @@ def rtddelta(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtddelta = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtddelta`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3239,7 +3239,7 @@ def rtdzero(self) -> str: f"print({self._cmd_syntax}.rtdzero)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @rtdzero.setter @@ -3272,7 +3272,7 @@ def rtdzero(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.rtdzero = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rtdzero`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3304,7 +3304,7 @@ def simreftemperature(self) -> str: f"print({self._cmd_syntax}.simreftemperature)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @simreftemperature.setter @@ -3339,7 +3339,7 @@ def simreftemperature(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.simreftemperature = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.simreftemperature`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3369,7 +3369,7 @@ def thermocouple(self) -> str: f"print({self._cmd_syntax}.thermocouple)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @thermocouple.setter @@ -3402,7 +3402,7 @@ def thermocouple(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.thermocouple = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.thermocouple`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3432,7 +3432,7 @@ def threertd(self) -> str: f"print({self._cmd_syntax}.threertd)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threertd.setter @@ -3465,7 +3465,7 @@ def threertd(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threertd = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threertd`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3496,7 +3496,7 @@ def threshold(self) -> str: f"print({self._cmd_syntax}.threshold)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @threshold.setter @@ -3530,7 +3530,7 @@ def threshold(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.threshold = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.threshold`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3560,7 +3560,7 @@ def transducer(self) -> str: f"print({self._cmd_syntax}.transducer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @transducer.setter @@ -3593,7 +3593,7 @@ def transducer(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.transducer = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.transducer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def appendbuffer( @@ -3635,7 +3635,7 @@ def appendbuffer( f"{self._cmd_syntax}.appendbuffer({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.appendbuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.appendbuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def close(self, channel_list: str) -> None: @@ -3661,7 +3661,7 @@ def close(self, channel_list: str) -> None: f'{self._cmd_syntax}.close("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getconfig(self, channel_list: str) -> str: @@ -3690,7 +3690,7 @@ def getconfig(self, channel_list: str) -> str: f'print({self._cmd_syntax}.getconfig("{channel_list}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getconfig()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getconfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makebuffer(self, buffer_size: str) -> str: @@ -3719,7 +3719,7 @@ def makebuffer(self, buffer_size: str) -> str: f"print({self._cmd_syntax}.makebuffer({buffer_size}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.makebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measure(self, buffer_var: Optional[str] = None) -> str: @@ -3750,7 +3750,7 @@ def measure(self, buffer_var: Optional[str] = None) -> str: f"print({self._cmd_syntax}.measure({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measure()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurewithptp(self, buffer_var: Optional[str] = None) -> str: @@ -3782,7 +3782,7 @@ def measurewithptp(self, buffer_var: Optional[str] = None) -> str: f"print({self._cmd_syntax}.measurewithptp({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurewithptp()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurewithptp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def measurewithtime(self, buffer_var: Optional[str] = None) -> str: @@ -3814,7 +3814,7 @@ def measurewithtime(self, buffer_var: Optional[str] = None) -> str: f"print({self._cmd_syntax}.measurewithtime({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.measurewithtime()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.measurewithtime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, channel_list: str) -> None: @@ -3839,7 +3839,7 @@ def open(self, channel_list: str) -> None: f'{self._cmd_syntax}.open("{channel_list}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, scope: str) -> None: @@ -3866,7 +3866,7 @@ def reset(self, scope: str) -> None: f"{self._cmd_syntax}.reset({scope})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def savebuffer( @@ -3908,7 +3908,7 @@ def savebuffer( f"{self._cmd_syntax}.savebuffer({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setconfig(self, channel_list: str, dmm_configuration: str) -> None: @@ -3935,5 +3935,5 @@ def setconfig(self, channel_list: str, dmm_configuration: str) -> None: f'{self._cmd_syntax}.setconfig("{channel_list}", "{dmm_configuration}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setconfig()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setconfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py index bd69a303..0d217056 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py +++ b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): @@ -40,7 +40,7 @@ class Eventlog(BaseTSPCmd): - ``.overwritemethod``: The ``eventlog.overwritemethod`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "eventlog") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "eventlog") -> None: super().__init__(device, cmd_syntax) @property @@ -68,7 +68,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -98,7 +98,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -131,7 +131,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -168,7 +168,7 @@ def overwritemethod(self) -> str: f"print({self._cmd_syntax}.overwritemethod)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @overwritemethod.setter @@ -208,7 +208,7 @@ def overwritemethod(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.overwritemethod = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overwritemethod`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def all(self) -> str: @@ -234,7 +234,7 @@ def all(self) -> str: f"print({self._cmd_syntax}.all())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.all()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.all()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -256,7 +256,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def next(self, event_type: Optional[str] = None) -> str: @@ -286,5 +286,5 @@ def next(self, event_type: Optional[str] = None) -> str: f"print({self._cmd_syntax}.next({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/format.py b/src/tm_devices/commands/gen_e3pief_ss/format.py index 86221d5f..c00ceeab 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/format.py +++ b/src/tm_devices/commands/gen_e3pief_ss/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): @@ -34,7 +34,7 @@ class Format(BaseTSPCmd): - ``.data``: The ``format.data`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "format") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "format") -> None: super().__init__(device, cmd_syntax) @property @@ -72,7 +72,7 @@ def asciiprecision(self) -> str: f"print({self._cmd_syntax}.asciiprecision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @asciiprecision.setter @@ -113,7 +113,7 @@ def asciiprecision(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.asciiprecision = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.asciiprecision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -150,7 +150,7 @@ def byteorder(self) -> str: f"print({self._cmd_syntax}.byteorder)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @byteorder.setter @@ -190,7 +190,7 @@ def byteorder(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.byteorder = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.byteorder`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -221,7 +221,7 @@ def data(self) -> str: f"print({self._cmd_syntax}.data)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @data.setter @@ -255,5 +255,5 @@ def data(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.data = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/lan.py b/src/tm_devices/commands/gen_e3pief_ss/lan.py index f9d62b6e..f2caae0e 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/lan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/lan.py @@ -63,7 +63,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -94,7 +94,7 @@ class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "lan.trigger[N].EVENT_ID" """str: The event identifier used to route the LAN trigger to other subsystems (using stimulus properties).""" # noqa: E501 - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -129,7 +129,7 @@ def connected(self) -> str: f"print({self._cmd_syntax}.connected)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.connected`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -164,7 +164,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -202,7 +202,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -237,7 +237,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -275,7 +275,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -306,7 +306,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -340,7 +340,7 @@ def protocol(self) -> str: f"print({self._cmd_syntax}.protocol)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @protocol.setter @@ -377,7 +377,7 @@ def protocol(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.protocol = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.protocol`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -411,7 +411,7 @@ def pseudostate(self) -> str: f"print({self._cmd_syntax}.pseudostate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pseudostate.setter @@ -448,7 +448,7 @@ def pseudostate(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pseudostate = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudostate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -483,7 +483,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -521,7 +521,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -547,7 +547,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -572,7 +572,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect(self) -> None: @@ -597,7 +597,7 @@ def connect(self) -> None: f"{self._cmd_syntax}.connect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self) -> None: @@ -622,7 +622,7 @@ def disconnect(self) -> None: f"{self._cmd_syntax}.disconnect()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -650,7 +650,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -695,7 +695,7 @@ def dst(self) -> str: f"print({self._cmd_syntax}.dst)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -726,7 +726,7 @@ def rawsocket(self) -> str: f"print({self._cmd_syntax}.rawsocket)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rawsocket`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.rawsocket`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -757,7 +757,7 @@ def telnet(self) -> str: f"print({self._cmd_syntax}.telnet)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.telnet`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.telnet`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -788,7 +788,7 @@ def vxi11(self) -> str: f"print({self._cmd_syntax}.vxi11)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.vxi11`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.vxi11`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -800,7 +800,7 @@ class LanStatusDns(BaseTSPCmd): - ``.name``: The ``lan.status.dns.name`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.address[{{key}}]", @@ -857,7 +857,7 @@ def name(self) -> str: f"print({self._cmd_syntax}.name)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -875,7 +875,7 @@ class LanStatus(BaseTSPCmd): - ``.subnetmask``: The ``lan.status.subnetmask`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dns = LanStatusDns(device, f"{self._cmd_syntax}.dns") self._port = LanStatusPort(device, f"{self._cmd_syntax}.port") @@ -915,7 +915,7 @@ def duplex(self) -> str: f"print({self._cmd_syntax}.duplex)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.duplex`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -943,7 +943,7 @@ def gateway(self) -> str: f"print({self._cmd_syntax}.gateway)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -971,7 +971,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -999,7 +999,7 @@ def macaddress(self) -> str: f"print({self._cmd_syntax}.macaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.macaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1042,7 +1042,7 @@ def speed(self) -> str: f"print({self._cmd_syntax}.speed)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.speed`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1074,7 +1074,7 @@ def subnetmask(self) -> str: f"print({self._cmd_syntax}.subnetmask)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1089,7 +1089,7 @@ class LanConfigDns(BaseTSPCmd): - ``.verify``: The ``lan.config.dns.verify`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address: Dict[int, Union[str, float]] = DefaultDictDeviceCommunication( cmd_syntax=f"{self._cmd_syntax}.address[{{key}}]", @@ -1153,7 +1153,7 @@ def domain(self) -> str: f"print({self._cmd_syntax}.domain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @domain.setter @@ -1187,7 +1187,7 @@ def domain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.domain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1218,7 +1218,7 @@ def dynamic(self) -> str: f"print({self._cmd_syntax}.dynamic)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @dynamic.setter @@ -1252,7 +1252,7 @@ def dynamic(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.dynamic = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.dynamic`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1283,7 +1283,7 @@ def hostname(self) -> str: f"print({self._cmd_syntax}.hostname)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @hostname.setter @@ -1317,7 +1317,7 @@ def hostname(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.hostname = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.hostname`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1348,7 +1348,7 @@ def verify(self) -> str: f"print({self._cmd_syntax}.verify)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @verify.setter @@ -1382,7 +1382,7 @@ def verify(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.verify = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.verify`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1397,7 +1397,7 @@ class LanConfig(BaseTSPCmd): - ``.subnetmask``: The ``lan.config.subnetmask`` attribute. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dns = LanConfigDns(device, f"{self._cmd_syntax}.dns") @@ -1441,7 +1441,7 @@ def gateway(self) -> str: f"print({self._cmd_syntax}.gateway)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @gateway.setter @@ -1474,7 +1474,7 @@ def gateway(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.gateway = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.gateway`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1505,7 +1505,7 @@ def ipaddress(self) -> str: f"print({self._cmd_syntax}.ipaddress)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ipaddress.setter @@ -1539,7 +1539,7 @@ def ipaddress(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ipaddress = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ipaddress`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1569,7 +1569,7 @@ def method(self) -> str: f"print({self._cmd_syntax}.method)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @method.setter @@ -1602,7 +1602,7 @@ def method(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.method = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.method`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1637,7 +1637,7 @@ def subnetmask(self) -> str: f"print({self._cmd_syntax}.subnetmask)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @subnetmask.setter @@ -1675,7 +1675,7 @@ def subnetmask(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.subnetmask = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.subnetmask`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1693,7 +1693,7 @@ class Lan(BaseTSPCmd): - ``.trigger``: The ``lan.trigger[N]`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "lan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "lan") -> None: super().__init__(device, cmd_syntax) self._config = LanConfig(device, f"{self._cmd_syntax}.config") self._status = LanStatus(device, f"{self._cmd_syntax}.status") @@ -1744,7 +1744,7 @@ def lxidomain(self) -> str: f"print({self._cmd_syntax}.lxidomain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @lxidomain.setter @@ -1780,7 +1780,7 @@ def lxidomain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.lxidomain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.lxidomain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1810,7 +1810,7 @@ def nagle(self) -> str: f"print({self._cmd_syntax}.nagle)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @nagle.setter @@ -1843,7 +1843,7 @@ def nagle(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.nagle = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.nagle`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1908,7 +1908,7 @@ def applysettings(self) -> None: f"{self._cmd_syntax}.applysettings()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1930,7 +1930,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restoredefaults(self) -> None: @@ -1952,5 +1952,5 @@ def restoredefaults(self) -> None: f"{self._cmd_syntax}.restoredefaults()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/localnode.py b/src/tm_devices/commands/gen_e3pief_ss/localnode.py index 91704176..d9835b5f 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/localnode.py +++ b/src/tm_devices/commands/gen_e3pief_ss/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): @@ -54,7 +54,9 @@ class Localnode(BaseTSPCmd): - ``.showerrors``: The ``localnode.showerrors`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "localnode") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "localnode" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -86,7 +88,7 @@ def description(self) -> str: f"print({self._cmd_syntax}.description)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @description.setter @@ -121,7 +123,7 @@ def description(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.description = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.description`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -153,7 +155,7 @@ def emulation(self) -> str: f"print({self._cmd_syntax}.emulation)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.emulation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.emulation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @emulation.setter @@ -188,7 +190,7 @@ def emulation(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.emulation = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.emulation`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.emulation`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -216,7 +218,7 @@ def license(self) -> str: f"print({self._cmd_syntax}.license)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.license`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -244,7 +246,7 @@ def linefreq(self) -> str: f"print({self._cmd_syntax}.linefreq)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.linefreq`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -272,7 +274,7 @@ def model(self) -> str: f"print({self._cmd_syntax}.model)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.model`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -321,7 +323,7 @@ def password(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.password = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -355,7 +357,7 @@ def passwordmode(self) -> str: f"print({self._cmd_syntax}.passwordmode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passwordmode.setter @@ -392,7 +394,7 @@ def passwordmode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passwordmode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passwordmode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -423,7 +425,7 @@ def prompts(self) -> str: f"print({self._cmd_syntax}.prompts)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts.setter @@ -457,7 +459,7 @@ def prompts(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -489,7 +491,7 @@ def prompts4882(self) -> str: f"print({self._cmd_syntax}.prompts4882)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @prompts4882.setter @@ -524,7 +526,7 @@ def prompts4882(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.prompts4882 = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.prompts4882`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -552,7 +554,7 @@ def revision(self) -> str: f"print({self._cmd_syntax}.revision)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.revision`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -580,7 +582,7 @@ def serialno(self) -> str: f"print({self._cmd_syntax}.serialno)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.serialno`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -612,7 +614,7 @@ def showerrors(self) -> str: f"print({self._cmd_syntax}.showerrors)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @showerrors.setter @@ -647,7 +649,7 @@ def showerrors(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.showerrors = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.showerrors`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -669,5 +671,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/memory.py b/src/tm_devices/commands/gen_e3pief_ss/memory.py index 08a2cbe8..0594c37d 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/memory.py +++ b/src/tm_devices/commands/gen_e3pief_ss/memory.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Memory(BaseTSPCmd): @@ -32,7 +32,7 @@ class Memory(BaseTSPCmd): - ``.used()``: The ``memory.used()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "memory") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "memory") -> None: super().__init__(device, cmd_syntax) def available(self) -> str: @@ -59,7 +59,7 @@ def available(self) -> str: f"print({self._cmd_syntax}.available())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.available()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.available()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def used(self) -> str: @@ -85,5 +85,5 @@ def used(self) -> str: f"print({self._cmd_syntax}.used())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.used()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.used()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/os.py b/src/tm_devices/commands/gen_e3pief_ss/os.py index ba9c00bc..32cfe62a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/os.py +++ b/src/tm_devices/commands/gen_e3pief_ss/os.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Os(BaseTSPCmd): @@ -30,7 +30,7 @@ class Os(BaseTSPCmd): - ``.time()``: The ``os.time()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "os") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "os") -> None: super().__init__(device, cmd_syntax) def time(self, timespec: Optional[str] = None) -> str: @@ -59,5 +59,5 @@ def time(self, timespec: Optional[str] = None) -> str: f"print({self._cmd_syntax}.time({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/ptp.py b/src/tm_devices/commands/gen_e3pief_ss/ptp.py index bdf863a8..6a6a8060 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/ptp.py +++ b/src/tm_devices/commands/gen_e3pief_ss/ptp.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class PtpDs(BaseTSPCmd): @@ -59,7 +59,7 @@ def info(self) -> str: f"print({self._cmd_syntax}.info())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.info()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.info()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -76,7 +76,7 @@ class Ptp(BaseTSPCmd): - ``.utcoffset``: The ``ptp.utcoffset`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "ptp") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "ptp") -> None: super().__init__(device, cmd_syntax) self._ds = PtpDs(device, f"{self._cmd_syntax}.ds") @@ -107,7 +107,7 @@ def domain(self) -> str: f"print({self._cmd_syntax}.domain)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @domain.setter @@ -140,7 +140,7 @@ def domain(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.domain = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.domain`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -180,7 +180,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -214,7 +214,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -255,7 +255,7 @@ def portstate(self) -> str: f"print({self._cmd_syntax}.portstate)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.portstate`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.portstate`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -286,7 +286,7 @@ def slavepreferred(self) -> str: f"print({self._cmd_syntax}.slavepreferred)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slavepreferred`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slavepreferred`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @slavepreferred.setter @@ -320,7 +320,7 @@ def slavepreferred(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.slavepreferred = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.slavepreferred`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.slavepreferred`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -350,7 +350,7 @@ def utcoffset(self) -> str: f"print({self._cmd_syntax}.utcoffset)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.utcoffset`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.utcoffset`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @utcoffset.setter @@ -383,7 +383,7 @@ def utcoffset(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.utcoffset = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.utcoffset`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.utcoffset`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def time(self) -> str: @@ -409,5 +409,5 @@ def time(self) -> str: f"print({self._cmd_syntax}.time())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.time()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/scan.py b/src/tm_devices/commands/gen_e3pief_ss/scan.py index 3404699b..6daead73 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scan.py @@ -49,7 +49,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanTriggerSequence(BaseTSPCmd): @@ -89,7 +89,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -123,7 +123,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -145,7 +145,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -167,7 +167,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -208,7 +208,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -242,7 +242,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -264,7 +264,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -286,7 +286,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -327,7 +327,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -361,7 +361,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -383,7 +383,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -405,7 +405,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -446,7 +446,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -480,7 +480,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -502,7 +502,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self) -> None: @@ -524,7 +524,7 @@ def set_(self) -> None: f"{self._cmd_syntax}.set()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -539,7 +539,7 @@ class ScanTrigger(BaseTSPCmd): - ``.sequence``: The ``scan.trigger.sequence`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arm = ScanTriggerArm(device, f"{self._cmd_syntax}.arm") self._channel = ScanTriggerChannel(device, f"{self._cmd_syntax}.channel") @@ -609,7 +609,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -637,7 +637,7 @@ class Scan(BaseTSPCmd): - ``.trigger``: The ``scan.trigger`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scan") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scan") -> None: super().__init__(device, cmd_syntax) self._trigger = ScanTrigger(device, f"{self._cmd_syntax}.trigger") @@ -669,7 +669,7 @@ def bypass(self) -> str: f"print({self._cmd_syntax}.bypass)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @bypass.setter @@ -703,7 +703,7 @@ def bypass(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.bypass = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.bypass`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -737,7 +737,7 @@ def measurecount(self) -> str: f"print({self._cmd_syntax}.measurecount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @measurecount.setter @@ -774,7 +774,7 @@ def measurecount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.measurecount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.measurecount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -804,7 +804,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -837,7 +837,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -867,7 +867,7 @@ def scancount(self) -> str: f"print({self._cmd_syntax}.scancount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @scancount.setter @@ -900,7 +900,7 @@ def scancount(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.scancount = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.scancount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -928,7 +928,7 @@ def stepcount(self) -> str: f"print({self._cmd_syntax}.stepcount)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stepcount`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -963,7 +963,7 @@ def abort(self) -> None: f"{self._cmd_syntax}.abort()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def add(self, channel_list: str, width: Optional[str] = None) -> None: @@ -998,7 +998,7 @@ def add(self, channel_list: str, width: Optional[str] = None) -> None: f"{self._cmd_syntax}.add({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def addimagestep(self, channel_list: str, dmm_config: Optional[str] = None) -> None: @@ -1032,7 +1032,7 @@ def addimagestep(self, channel_list: str, dmm_config: Optional[str] = None) -> N f"{self._cmd_syntax}.addimagestep({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.addimagestep()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.addimagestep()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def addwrite(self, channel_list: str, write_value: str, width: Optional[str] = None) -> None: @@ -1069,7 +1069,7 @@ def addwrite(self, channel_list: str, write_value: str, width: Optional[str] = N f"{self._cmd_syntax}.addwrite({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.addwrite()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.addwrite()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def background(self, buffer_var: Optional[str] = None) -> str: @@ -1099,7 +1099,7 @@ def background(self, buffer_var: Optional[str] = None) -> str: f"print({self._cmd_syntax}.background({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.background()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.background()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def create(self, channel_list: str, dmm_config: Optional[str] = None) -> None: @@ -1134,7 +1134,7 @@ def create(self, channel_list: str, dmm_config: Optional[str] = None) -> None: f"{self._cmd_syntax}.create({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.create()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def execute(self, buffer_var: Optional[str] = None) -> str: @@ -1165,7 +1165,7 @@ def execute(self, buffer_var: Optional[str] = None) -> str: f"print({self._cmd_syntax}.execute({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def list(self) -> str: @@ -1190,7 +1190,7 @@ def list(self) -> str: f"print({self._cmd_syntax}.list())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def nobufferbackground(self) -> str: @@ -1216,7 +1216,7 @@ def nobufferbackground(self) -> str: f"print({self._cmd_syntax}.nobufferbackground())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.nobufferbackground()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.nobufferbackground()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def nobufferexecute(self) -> None: @@ -1239,7 +1239,7 @@ def nobufferexecute(self) -> None: f"{self._cmd_syntax}.nobufferexecute()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.nobufferexecute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.nobufferexecute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -1262,7 +1262,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def state(self) -> str: @@ -1287,5 +1287,5 @@ def state(self) -> str: f"print({self._cmd_syntax}.state())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.state()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/schedule.py b/src/tm_devices/commands/gen_e3pief_ss/schedule.py index 8393ec96..25693f61 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/schedule.py +++ b/src/tm_devices/commands/gen_e3pief_ss/schedule.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScheduleAlarmItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -55,7 +55,7 @@ class ScheduleAlarmItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "schedule.alarm[N].EVENT_ID" """str: This constant describes the trigger event generated by the alarm N.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -93,7 +93,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -130,7 +130,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -165,7 +165,7 @@ def fractionalseconds(self) -> str: f"print({self._cmd_syntax}.fractionalseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @fractionalseconds.setter @@ -203,7 +203,7 @@ def fractionalseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.fractionalseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.fractionalseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -237,7 +237,7 @@ def period(self) -> str: f"print({self._cmd_syntax}.period)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.period`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.period`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @period.setter @@ -274,7 +274,7 @@ def period(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.period = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.period`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.period`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -309,7 +309,7 @@ def ptpseconds(self) -> str: f"print({self._cmd_syntax}.ptpseconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptpseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptpseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptpseconds.setter @@ -347,7 +347,7 @@ def ptpseconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptpseconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptpseconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptpseconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -382,7 +382,7 @@ def repetition(self) -> str: f"print({self._cmd_syntax}.repetition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.repetition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.repetition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @repetition.setter @@ -420,7 +420,7 @@ def repetition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.repetition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.repetition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.repetition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -454,7 +454,7 @@ def seconds(self) -> str: f"print({self._cmd_syntax}.seconds)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @seconds.setter @@ -491,7 +491,7 @@ def seconds(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.seconds = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.seconds`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -503,7 +503,7 @@ class Schedule(BaseTSPCmd): - ``.disable()``: The ``schedule.disable()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "schedule") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "schedule") -> None: super().__init__(device, cmd_syntax) self._alarm: Dict[int, ScheduleAlarmItem] = DefaultDictPassKeyToFactory( lambda x: ScheduleAlarmItem(device, f"{self._cmd_syntax}.alarm[{x}]") @@ -548,5 +548,5 @@ def disable(self) -> None: f"{self._cmd_syntax}.disable()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/script.py b/src/tm_devices/commands/gen_e3pief_ss/script.py index 466bf623..1ea8f5a4 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/script.py +++ b/src/tm_devices/commands/gen_e3pief_ss/script.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): @@ -42,7 +42,7 @@ class Script(BaseTSPCmd): - ``.run()``: The ``script.run()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "script") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "script") -> None: super().__init__(device, cmd_syntax) @property @@ -70,7 +70,7 @@ def anonymous(self) -> str: f"print({self._cmd_syntax}.anonymous)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.anonymous`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.anonymous`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, script_name: str) -> None: @@ -95,7 +95,7 @@ def delete(self, script_name: str) -> None: f'{self._cmd_syntax}.delete("{script_name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def load(self, file: str) -> str: @@ -125,7 +125,7 @@ def load(self, file: str) -> str: f'print({self._cmd_syntax}.load("{file}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def new(self, code: str, name: Optional[str] = None) -> str: @@ -162,7 +162,7 @@ def new(self, code: str, name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.new({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.new()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.new()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def newautorun(self, code: str, name: Optional[str] = None) -> str: @@ -199,7 +199,7 @@ def newautorun(self, code: str, name: Optional[str] = None) -> str: f"print({self._cmd_syntax}.newautorun({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.newautorun()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.newautorun()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def restore(self, name: str) -> None: @@ -224,7 +224,7 @@ def restore(self, name: str) -> None: f"{self._cmd_syntax}.restore({name})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -246,5 +246,5 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py index cc38824a..37e74451 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): @@ -43,7 +43,9 @@ class Scriptvar(BaseTSPCmd): - ``.source``: The ``scriptVar.source`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "scriptVar") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "scriptVar" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -76,7 +78,7 @@ def autorun(self) -> str: f"print({self._cmd_syntax}.autorun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @autorun.setter @@ -112,7 +114,7 @@ def autorun(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.autorun = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.autorun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -145,7 +147,7 @@ def name(self) -> str: f"print({self._cmd_syntax}.name)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @name.setter @@ -181,7 +183,7 @@ def name(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.name = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -213,7 +215,7 @@ def source(self) -> str: f"print({self._cmd_syntax}.source)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.source`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def list(self) -> None: @@ -238,7 +240,7 @@ def list(self) -> None: f"{self._cmd_syntax}.list()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def run(self) -> None: @@ -263,7 +265,7 @@ def run(self) -> None: f"{self._cmd_syntax}.run()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, filename: Optional[str] = None) -> None: @@ -294,5 +296,5 @@ def save(self, filename: Optional[str] = None) -> None: f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py index 41701fd7..d9b9b455 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py +++ b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Setup(BaseTSPCmd): @@ -34,7 +34,7 @@ class Setup(BaseTSPCmd): - ``.save()``: The ``setup.save()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "setup") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "setup") -> None: super().__init__(device, cmd_syntax) @property @@ -64,7 +64,7 @@ def poweron(self) -> str: f"print({self._cmd_syntax}.poweron)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @poweron.setter @@ -97,7 +97,7 @@ def poweron(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.poweron = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.poweron`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def recall(self, id_: str) -> None: @@ -122,7 +122,7 @@ def recall(self, id_: str) -> None: f"{self._cmd_syntax}.recall({id_})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def save(self, id_: Optional[str] = None) -> None: @@ -151,5 +151,5 @@ def save(self, id_: Optional[str] = None) -> None: f"{self._cmd_syntax}.save({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/slot.py b/src/tm_devices/commands/gen_e3pief_ss/slot.py index 95167c53..125fefcb 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/slot.py +++ b/src/tm_devices/commands/gen_e3pief_ss/slot.py @@ -37,7 +37,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemThermal(BaseTSPCmd): @@ -78,7 +78,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -121,7 +121,7 @@ def matrix(self) -> str: f"print({self._cmd_syntax}.matrix)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -166,7 +166,7 @@ def four(self) -> str: f"print({self._cmd_syntax}.four)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.four`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.four`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -198,7 +198,7 @@ def one(self) -> str: f"print({self._cmd_syntax}.one)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.one`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.one`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -230,7 +230,7 @@ def two(self) -> str: f"print({self._cmd_syntax}.two)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.two`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.two`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -277,7 +277,7 @@ def override(self) -> str: f"print({self._cmd_syntax}.override)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.override`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.override`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @override.setter @@ -315,7 +315,7 @@ def override(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.override = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.override`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.override`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -347,7 +347,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -390,7 +390,7 @@ def matrix(self) -> str: f"print({self._cmd_syntax}.matrix)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -432,7 +432,7 @@ def matrix(self) -> str: f"print({self._cmd_syntax}.matrix)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -461,7 +461,7 @@ class SlotItem(ValidatedDynamicNumberCmd, BaseTSPCmd): """ def __init__( - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "slot[slot]" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "slot[slot]" ) -> None: super().__init__(device, cmd_syntax) self._banks = SlotItemBanks(device, f"{self._cmd_syntax}.banks") @@ -524,7 +524,7 @@ def commonsideohms(self) -> str: f"print({self._cmd_syntax}.commonsideohms)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.commonsideohms`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.commonsideohms`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -556,7 +556,7 @@ def digio(self) -> str: f"print({self._cmd_syntax}.digio)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.digio`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.digio`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -587,7 +587,7 @@ def idn(self) -> str: f"print({self._cmd_syntax}.idn)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -632,7 +632,7 @@ def isolated(self) -> str: f"print({self._cmd_syntax}.isolated)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.isolated`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.isolated`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -663,7 +663,7 @@ def matrix(self) -> str: f"print({self._cmd_syntax}.matrix)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.matrix`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -695,7 +695,7 @@ def maxvoltage(self) -> str: f"print({self._cmd_syntax}.maxvoltage)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.maxvoltage`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -727,7 +727,7 @@ def multiplexer(self) -> str: f"print({self._cmd_syntax}.multiplexer)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.multiplexer`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.multiplexer`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -775,7 +775,7 @@ def pseudocard(self) -> str: f"print({self._cmd_syntax}.pseudocard)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pseudocard.setter @@ -812,7 +812,7 @@ def pseudocard(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pseudocard = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pseudocard`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -856,7 +856,7 @@ def tempsensor(self) -> str: f"print({self._cmd_syntax}.tempsensor)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.tempsensor`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.tempsensor`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property diff --git a/src/tm_devices/commands/gen_e3pief_ss/status.py b/src/tm_devices/commands/gen_e3pief_ss/status.py index abe82970..c45303f5 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/status.py +++ b/src/tm_devices/commands/gen_e3pief_ss/status.py @@ -75,7 +75,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): @@ -115,7 +115,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -147,7 +147,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -182,7 +182,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -211,7 +211,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -242,7 +242,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -276,7 +276,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -307,7 +307,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -341,7 +341,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -382,7 +382,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -414,7 +414,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -449,7 +449,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -478,7 +478,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -509,7 +509,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -543,7 +543,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -574,7 +574,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -608,7 +608,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -649,7 +649,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -681,7 +681,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -716,7 +716,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -745,7 +745,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -776,7 +776,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -810,7 +810,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -841,7 +841,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -875,7 +875,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -916,7 +916,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -948,7 +948,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -983,7 +983,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1012,7 +1012,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1043,7 +1043,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1077,7 +1077,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1108,7 +1108,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1142,7 +1142,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1183,7 +1183,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1215,7 +1215,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1250,7 +1250,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1279,7 +1279,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1310,7 +1310,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1344,7 +1344,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1375,7 +1375,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1409,7 +1409,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1449,7 +1449,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1481,7 +1481,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1516,7 +1516,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1545,7 +1545,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1576,7 +1576,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1610,7 +1610,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1641,7 +1641,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1675,7 +1675,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1715,7 +1715,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1746,7 +1746,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -1780,7 +1780,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1808,7 +1808,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1839,7 +1839,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -1873,7 +1873,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -1904,7 +1904,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -1938,7 +1938,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1982,7 +1982,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @condition.setter @@ -2017,7 +2017,7 @@ def condition(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.condition = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2048,7 +2048,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2082,7 +2082,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2110,7 +2110,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2141,7 +2141,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2175,7 +2175,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2206,7 +2206,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2240,7 +2240,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2256,7 +2256,7 @@ class StatusOperation(BaseTSPCmd): - ``.user``: The ``status.operation.user`` command tree. """ - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._user = StatusOperationUser(device, f"{self._cmd_syntax}.user") @@ -2285,7 +2285,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2317,7 +2317,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2352,7 +2352,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2380,7 +2380,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2411,7 +2411,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2445,7 +2445,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2476,7 +2476,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2510,7 +2510,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2563,7 +2563,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2594,7 +2594,7 @@ def enable(self) -> str: f"print({self._cmd_syntax}.enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @enable.setter @@ -2628,7 +2628,7 @@ def enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2656,7 +2656,7 @@ def event(self) -> str: f"print({self._cmd_syntax}.event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2687,7 +2687,7 @@ def ntr(self) -> str: f"print({self._cmd_syntax}.ntr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ntr.setter @@ -2721,7 +2721,7 @@ def ntr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ntr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2752,7 +2752,7 @@ def ptr(self) -> str: f"print({self._cmd_syntax}.ptr)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @ptr.setter @@ -2786,7 +2786,7 @@ def ptr(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.ptr = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2812,7 +2812,7 @@ class Status(BaseTSPCmd): - ``.system5``: The ``status.system5`` command tree. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "status") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "status") -> None: super().__init__(device, cmd_syntax) self._measurement = StatusMeasurement(device, f"{self._cmd_syntax}.measurement") self._operation = StatusOperation(device, f"{self._cmd_syntax}.operation") @@ -2849,7 +2849,7 @@ def condition(self) -> str: f"print({self._cmd_syntax}.condition)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.condition`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2892,7 +2892,7 @@ def node_enable(self) -> str: f"print({self._cmd_syntax}.node_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node_enable.setter @@ -2925,7 +2925,7 @@ def node_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -2953,7 +2953,7 @@ def node_event(self) -> str: f"print({self._cmd_syntax}.node_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3011,7 +3011,7 @@ def request_enable(self) -> str: f"print({self._cmd_syntax}.request_enable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @request_enable.setter @@ -3045,7 +3045,7 @@ def request_enable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.request_enable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_enable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3073,7 +3073,7 @@ def request_event(self) -> str: f"print({self._cmd_syntax}.request_event)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.request_event`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -3173,5 +3173,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/trigger.py b/src/tm_devices/commands/gen_e3pief_ss/trigger.py index 30ef77b7..9f57fb04 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/trigger.py +++ b/src/tm_devices/commands/gen_e3pief_ss/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -69,7 +69,7 @@ class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.timer[N].EVENT_ID" """str: The trigger timer event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -108,7 +108,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @count.setter @@ -146,7 +146,7 @@ def count(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.count = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -180,7 +180,7 @@ def delay(self) -> str: f"print({self._cmd_syntax}.delay)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delay.setter @@ -217,7 +217,7 @@ def delay(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delay = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delay`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -251,7 +251,7 @@ def delaylist(self) -> str: f"print({self._cmd_syntax}.delaylist)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @delaylist.setter @@ -288,7 +288,7 @@ def delaylist(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.delaylist = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.delaylist`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -319,7 +319,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -353,7 +353,7 @@ def passthrough(self) -> str: f"print({self._cmd_syntax}.passthrough)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @passthrough.setter @@ -390,7 +390,7 @@ def passthrough(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.passthrough = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.passthrough`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -424,7 +424,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -461,7 +461,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -487,7 +487,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -512,7 +512,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -540,7 +540,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -565,7 +565,7 @@ class TriggerBlenderItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "trigger.blender[N].EVENT_ID" """str: The trigger blender event number.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -609,7 +609,7 @@ def orenable(self) -> str: f"print({self._cmd_syntax}.orenable)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @orenable.setter @@ -646,7 +646,7 @@ def orenable(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.orenable = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.orenable`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -678,7 +678,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -732,7 +732,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -757,7 +757,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -785,7 +785,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -805,7 +805,7 @@ class Trigger(BaseTSPCmd): EVENT_ID = "trigger.EVENT_ID" """str: The command interface trigger event number.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "trigger") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "trigger") -> None: super().__init__(device, cmd_syntax) self._blender: Dict[int, TriggerBlenderItem] = DefaultDictPassKeyToFactory( lambda x: TriggerBlenderItem(device, f"{self._cmd_syntax}.blender[{x}]") @@ -876,7 +876,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -904,5 +904,5 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py index 42e72963..fd3089d9 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py +++ b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -70,7 +70,7 @@ class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): EVENT_ID = "tsplink.trigger[N].EVENT_ID" """str: The number that is used for the trigger events.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # pylint: disable=invalid-name self.EVENT_ID = self.EVENT_ID.replace( @@ -108,7 +108,7 @@ def mode(self) -> str: f"print({self._cmd_syntax}.mode)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @mode.setter @@ -145,7 +145,7 @@ def mode(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.mode = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -177,7 +177,7 @@ def overrun(self) -> str: f"print({self._cmd_syntax}.overrun)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.overrun`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -213,7 +213,7 @@ def pulsewidth(self) -> str: f"print({self._cmd_syntax}.pulsewidth)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @pulsewidth.setter @@ -252,7 +252,7 @@ def pulsewidth(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.pulsewidth = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.pulsewidth`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -287,7 +287,7 @@ def stimulus(self) -> str: f"print({self._cmd_syntax}.stimulus)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @stimulus.setter @@ -325,7 +325,7 @@ def stimulus(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.stimulus = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.stimulus`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def assert_(self) -> None: @@ -351,7 +351,7 @@ def assert_(self) -> None: f"{self._cmd_syntax}.assert()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -376,7 +376,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def release(self) -> None: @@ -401,7 +401,7 @@ def release(self) -> None: f"{self._cmd_syntax}.release()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -427,7 +427,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def wait(self, timeout: float) -> str: @@ -455,7 +455,7 @@ def wait(self, timeout: float) -> str: f"print({self._cmd_syntax}.wait({timeout}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.wait()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -476,7 +476,7 @@ class Tsplink(BaseTSPCmd): - ``.writeprotect``: The ``tsplink.writeprotect`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tsplink") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tsplink") -> None: super().__init__(device, cmd_syntax) self._trigger: Dict[int, TsplinkTriggerItem] = DefaultDictPassKeyToFactory( lambda x: TsplinkTriggerItem(device, f"{self._cmd_syntax}.trigger[{x}]") @@ -509,7 +509,7 @@ def group(self) -> str: f"print({self._cmd_syntax}.group)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @group.setter @@ -542,7 +542,7 @@ def group(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.group = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.group`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -570,7 +570,7 @@ def master(self) -> str: f"print({self._cmd_syntax}.master)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.master`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -600,7 +600,7 @@ def node(self) -> str: f"print({self._cmd_syntax}.node)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @node.setter @@ -633,7 +633,7 @@ def node(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.node = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -661,7 +661,7 @@ def state(self) -> str: f"print({self._cmd_syntax}.state)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.state`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -716,7 +716,7 @@ def writeprotect(self) -> str: f"print({self._cmd_syntax}.writeprotect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @writeprotect.setter @@ -751,7 +751,7 @@ def writeprotect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.writeprotect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.writeprotect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readbit(self, n: int) -> str: @@ -779,7 +779,7 @@ def readbit(self, n: int) -> str: f"print({self._cmd_syntax}.readbit({n}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readbit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readport(self) -> str: @@ -804,7 +804,7 @@ def readport(self) -> str: f"print({self._cmd_syntax}.readport())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self, expected_nodes: Optional[int] = None) -> str: @@ -833,7 +833,7 @@ def reset(self, expected_nodes: Optional[int] = None) -> str: f"print({self._cmd_syntax}.reset({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writebit(self, n: int, data: int) -> None: @@ -859,7 +859,7 @@ def writebit(self, n: int, data: int) -> None: f"{self._cmd_syntax}.writebit({n}, {data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writebit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def writeport(self, data: int) -> None: @@ -884,5 +884,5 @@ def writeport(self, data: int) -> None: f"{self._cmd_syntax}.writeport({data})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py index 9a817af3..b9858d88 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py +++ b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): @@ -32,7 +32,7 @@ class Upgrade(BaseTSPCmd): - ``.unit()``: The ``upgrade.unit()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "upgrade") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "upgrade") -> None: super().__init__(device, cmd_syntax) def previous(self) -> str: @@ -57,7 +57,7 @@ def previous(self) -> str: f"print({self._cmd_syntax}.previous())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.previous()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def unit(self) -> None: @@ -79,5 +79,5 @@ def unit(self) -> None: f"{self._cmd_syntax}.unit()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py index fee52227..dc523a5b 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): @@ -198,7 +198,7 @@ class DataSource(SCPICmdWrite, SCPICmdRead): - ``.available``: The ``DATa:SOUrce:AVAILable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._available = DataSourceAvailable(device, f"{self._cmd_syntax}:AVAILable") @@ -437,7 +437,7 @@ class Data(SCPICmdWrite, SCPICmdRead): - ``.width``: The ``DATa:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATa") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATa") -> None: super().__init__(device, cmd_syntax) self._encdg = DataEncdg(device, f"{self._cmd_syntax}:ENCdg") self._framestart = DataFramestart(device, f"{self._cmd_syntax}:FRAMESTARt") diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py index 84752bf2..0be8e81b 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EyemaskMaskItemTestStatus(SCPICmdRead): @@ -101,7 +101,7 @@ class EyemaskMaskItemTestSample(SCPICmdRead): - ``.threshold``: The ``EYEMASK:MASK:TESt:SAMple:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = EyemaskMaskItemTestSampleThreshold( device, f"{self._cmd_syntax}:THReshold" @@ -154,7 +154,7 @@ class EyemaskMaskItemTest(SCPICmdRead): - ``.status``: The ``EYEMASK:MASK:TESt:STATUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sample = EyemaskMaskItemTestSample(device, f"{self._cmd_syntax}:SAMple") self._status = EyemaskMaskItemTestStatus(device, f"{self._cmd_syntax}:STATUS") @@ -263,7 +263,7 @@ class EyemaskMaskItemMaskoffsetHorizontal(SCPICmdRead): - ``.autofit``: The ``EYEMASK:MASK:MASKOffset:HORizontal:AUTOfit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autofit = EyemaskMaskItemMaskoffsetHorizontalAutofit( device, f"{self._cmd_syntax}:AUTOfit" @@ -304,7 +304,7 @@ class EyemaskMaskItemMaskoffset(SCPICmdRead): - ``.horizontal``: The ``EYEMASK:MASK:MASKOffset:HORizontal`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = EyemaskMaskItemMaskoffsetHorizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -410,7 +410,7 @@ class EyemaskMaskItemCountSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``EYEMASK:MASK:COUNt:SEG:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = EyemaskMaskItemCountSegItemHits(device, f"{self._cmd_syntax}:HITS") @@ -478,7 +478,7 @@ class EyemaskMaskItemCount(SCPICmdRead): - ``.seg``: The ``EYEMASK:MASK:COUNt:SEG`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = EyemaskMaskItemCountHits(device, f"{self._cmd_syntax}:HITS") self._seg: Dict[int, EyemaskMaskItemCountSegItem] = DefaultDictPassKeyToFactory( @@ -547,7 +547,7 @@ class EyemaskMaskItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.test``: The ``EYEMASK:MASK:TESt`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = EyemaskMaskItemCount(device, f"{self._cmd_syntax}:COUNt") self._creator = EyemaskMaskItemCreator(device, f"{self._cmd_syntax}:CREATor") @@ -697,7 +697,7 @@ class Eyemask(SCPICmdRead): - ``.mask``: The ``EYEMASK:MASK`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EYEMASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EYEMASK") -> None: super().__init__(device, cmd_syntax) self._mask: Dict[int, EyemaskMaskItem] = DefaultDictPassKeyToFactory( lambda x: EyemaskMaskItem(device, f"{self._cmd_syntax}:MASK{x}") diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py index 38a452df..9e7760ad 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MatharbfltItemFilepath(SCPICmdWrite, SCPICmdRead): @@ -62,7 +62,7 @@ class MatharbfltItem(ValidatedDynamicNumberCmd, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATHArbflt" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATHArbflt" ) -> None: super().__init__(device, cmd_syntax) self._filepath = MatharbfltItemFilepath(device, f"{self._cmd_syntax}:FILepath") diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py index 6271d04c..4f867353 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PeakstableTableItemFresolution(SCPICmdWrite, SCPICmdRead): @@ -68,7 +68,7 @@ class PeakstableTableItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.fresolution``: The ``PEAKSTABle:TABle:FRESolution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fresolution = PeakstableTableItemFresolution( device, f"{self._cmd_syntax}:FRESolution" @@ -180,7 +180,9 @@ class Peakstable(SCPICmdRead): - ``.table``: The ``PEAKSTABle:TABle`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PEAKSTABle") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "PEAKSTABle" + ) -> None: super().__init__(device, cmd_syntax) self._addnew = PeakstableAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = PeakstableDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py index 3983d7a5..5e047c0d 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py @@ -59,7 +59,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemDallLabelYpos(SCPICmdWrite, SCPICmdRead): @@ -287,7 +287,7 @@ class RefItemDallLabelFont(SCPICmdRead): - ``.underline``: The ``REF_DALL:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = RefItemDallLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = RefItemDallLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -478,7 +478,7 @@ class RefItemDallLabel(SCPICmdRead): - ``.ypos``: The ``REF_DALL:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = RefItemDallLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = RefItemDallLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -624,7 +624,7 @@ class RefItemDall(SCPICmdRead): - ``.label``: The ``REF_DALL:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RefItemDallLabel(device, f"{self._cmd_syntax}:LABel") @@ -871,7 +871,7 @@ class RefItemDigitalBitLabelFont(SCPICmdRead): - ``.underline``: The ``REF_D:LABel:FONT:UNDERline`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bold = RefItemDigitalBitLabelFontBold(device, f"{self._cmd_syntax}:BOLD") self._italic = RefItemDigitalBitLabelFontItalic(device, f"{self._cmd_syntax}:ITALic") @@ -1064,7 +1064,7 @@ class RefItemDigitalBitLabel(SCPICmdRead): - ``.ypos``: The ``REF_D:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._color = RefItemDigitalBitLabelColor(device, f"{self._cmd_syntax}:COLor") self._font = RefItemDigitalBitLabelFont(device, f"{self._cmd_syntax}:FONT") @@ -1209,7 +1209,7 @@ class RefItemDigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.label``: The ``REF_D:LABel`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RefItemDigitalBitLabel(device, f"{self._cmd_syntax}:LABel") @@ -1245,7 +1245,7 @@ class RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.dall``: The ``REF_DALL`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, RefItemDigitalBit] = DefaultDictPassKeyToFactory( lambda x: RefItemDigitalBit(device, f"{self._cmd_syntax}_D{x}") diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py index bd6b2ddb..879be7fa 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py @@ -58,7 +58,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VisualShowequation(SCPICmdWrite, SCPICmdRead): @@ -529,7 +529,7 @@ class VisualAreaItemFlip(SCPICmdRead): - ``.vertical``: The ``VISual:AREA:FLIP:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = VisualAreaItemFlipHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._vertical = VisualAreaItemFlipVertical(device, f"{self._cmd_syntax}:VERTical") @@ -629,7 +629,7 @@ class VisualAreaItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.yposition``: The ``VISual:AREA:YPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aspectratio = VisualAreaItemAspectratio(device, f"{self._cmd_syntax}:ASPEctratio") self._flip = VisualAreaItemFlip(device, f"{self._cmd_syntax}:FLIP") @@ -994,7 +994,7 @@ class Visual(SCPICmdRead): - ``.showequation``: The ``VISual:SHOWEQuation`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "VISual") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "VISual") -> None: super().__init__(device, cmd_syntax) self._area: Dict[int, VisualAreaItem] = DefaultDictPassKeyToFactory( lambda x: VisualAreaItem(device, f"{self._cmd_syntax}:AREA{x}") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py index 599fc986..34a4b8c4 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Autosavepitimeout(SCPICmdWrite, SCPICmdRead): @@ -46,6 +46,6 @@ class Autosavepitimeout(SCPICmdWrite, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSAVEPITIMEOUT" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSAVEPITIMEOUT" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py index dbc70684..46f43c4d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Autosaveuitimeout(SCPICmdWrite, SCPICmdRead): @@ -46,6 +46,6 @@ class Autosaveuitimeout(SCPICmdWrite, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSAVEUITIMEOUT" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSAVEUITIMEOUT" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py index 5bd5629e..cb5ff2ec 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BustableList(SCPICmdRead): @@ -97,7 +97,7 @@ class Bustable(SCPICmdRead): - ``.list``: The ``BUSTABle:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUSTABle") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUSTABle") -> None: super().__init__(device, cmd_syntax) self._addnew = BustableAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = BustableDelete(device, f"{self._cmd_syntax}:DELete") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py index 10f525fd..6550e22d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationAnalogBandwidth(SCPICmdRead): @@ -51,7 +51,7 @@ class ConfigurationAnalog(SCPICmdRead): - ``.bandwidth``: The ``CONFIGuration:ANALOg:BANDWidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = ConfigurationAnalogBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -88,7 +88,7 @@ class Configuration(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CONFIGuration" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CONFIGuration" ) -> None: super().__init__(device, cmd_syntax) self._analog = ConfigurationAnalog(device, f"{self._cmd_syntax}:ANALOg") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py index 73913e37..430472fd 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curve(SCPICmdRead): @@ -72,5 +72,5 @@ class Curve(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURVe") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py index 8d8ce823..087f0052 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvestream(SCPICmdRead): @@ -57,6 +57,6 @@ class Curvestream(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURVEStream" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURVEStream" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py index 2809a245..9204ab4c 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CustomtableList(SCPICmdReadWithArguments): @@ -97,7 +97,7 @@ class Customtable(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CUSTOMTABle" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CUSTOMTABle" ) -> None: super().__init__(device, cmd_syntax) self._addnew = CustomtableAddnew(device, f"{self._cmd_syntax}:ADDNew") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py index 5ed411b5..40f3d5de 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Date(SCPICmdRead): @@ -38,5 +38,5 @@ class Date(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATE") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py index 1beeb1d3..cf2af953 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): @@ -124,7 +124,7 @@ class FilesystemUnmount(SCPICmdRead): - ``.tekdrive``: The ``FILESystem:UNMOUNT:TEKDrive`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drive = FilesystemUnmountDrive(device, f"{self._cmd_syntax}:DRIve") self._tekdrive = FilesystemUnmountTekdrive(device, f"{self._cmd_syntax}:TEKDrive") @@ -236,7 +236,7 @@ class FilesystemTekdriveCode(SCPICmdRead): - ``.status``: The ``FILESystem:TEKDrive:CODE:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._expirytime = FilesystemTekdriveCodeExpirytime( device, f"{self._cmd_syntax}:EXPirytime" @@ -299,7 +299,7 @@ class FilesystemTekdrive(SCPICmdRead): - ``.code``: The ``FILESystem:TEKDrive:CODE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._code = FilesystemTekdriveCode(device, f"{self._cmd_syntax}:CODE") @@ -486,7 +486,7 @@ class FilesystemMount(SCPICmdRead): - ``.tekdrive``: The ``FILESystem:MOUNT:TEKDrive`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._drive = FilesystemMountDrive(device, f"{self._cmd_syntax}:DRIVE") self._tekdrive = FilesystemMountTekdrive(device, f"{self._cmd_syntax}:TEKDrive") @@ -755,7 +755,9 @@ class Filesystem(SCPICmdRead): - ``.writefile``: The ``FILESystem:WRITEFile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILESystem") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILESystem" + ) -> None: super().__init__(device, cmd_syntax) self._copy = FilesystemCopy(device, f"{self._cmd_syntax}:COPy") self._cwd = FilesystemCwd(device, f"{self._cmd_syntax}:CWD") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py index eb2abed7..efa2f7f5 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MainwindowRrbdisplaystate(SCPICmdWrite): @@ -97,7 +97,7 @@ class MainwindowBadge(SCPICmdRead): - ``.bringtoview``: The ``MAINWindow:BADGe:BRINgtoview`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bringtoview = MainwindowBadgeBringtoview(device, f"{self._cmd_syntax}:BRINgtoview") @@ -138,7 +138,9 @@ class Mainwindow(SCPICmdRead): - ``.rrbdisplaystate``: The ``MAINWindow:RRBDisplaystate`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MAINWindow") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MAINWindow" + ) -> None: super().__init__(device, cmd_syntax) self._badge = MainwindowBadge(device, f"{self._cmd_syntax}:BADGe") self._fontsize = MainwindowFontsize(device, f"{self._cmd_syntax}:FONTSize") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py index ba0a8020..0bb083bf 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeastableDelete(SCPICmdWrite): @@ -79,7 +79,7 @@ class Meastable(SCPICmdRead): - ``.delete``: The ``MEASTABle:DELETE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASTABle") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASTABle") -> None: super().__init__(device, cmd_syntax) self._addnew = MeastableAddnew(device, f"{self._cmd_syntax}:ADDNew") self._delete = MeastableDelete(device, f"{self._cmd_syntax}:DELETE") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py index 78c7ae87..ed2bfcc9 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): @@ -133,7 +133,7 @@ class Recall(SCPICmdRead): - ``.waveform``: The ``RECAll:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RECAll") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RECAll") -> None: super().__init__(device, cmd_syntax) self._mask = RecallMask(device, f"{self._cmd_syntax}:MASK") self._session = RecallSession(device, f"{self._cmd_syntax}:SESsion") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py index 6f186e83..aee5a5b7 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): @@ -122,7 +122,7 @@ class Socketserver(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SOCKETServer" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "SOCKETServer" ) -> None: super().__init__(device, cmd_syntax) self._enable = SocketserverEnable(device, f"{self._cmd_syntax}:ENAble") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py index 398c6c22..4bd68394 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TimeZoneUtcdelta(SCPICmdWrite, SCPICmdRead): @@ -81,7 +81,7 @@ class TimeZone(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._utcdelta = TimeZoneUtcdelta(device, f"{self._cmd_syntax}:UTCDELTa") @@ -144,7 +144,7 @@ class Time(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TIMe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TIMe") -> None: super().__init__(device, cmd_syntax) self._zone = TimeZone(device, f"{self._cmd_syntax}:ZONe") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py index 3d6b57db..7caae09b 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Undo(SCPICmdWriteNoArguments): @@ -37,5 +37,5 @@ class Undo(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "UNDO") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "UNDO") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py index bede72bf..54426e9a 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VerticalDeskewToSource(SCPICmdWrite, SCPICmdRead): @@ -89,7 +89,7 @@ class VerticalDeskewTo(SCPICmdRead): - ``.source``: The ``VERTical:DESKew:TO:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custompropagation = VerticalDeskewToCustompropagation( device, f"{self._cmd_syntax}:CUSTOMPROPAgation" @@ -234,7 +234,7 @@ class VerticalDeskewFrom(SCPICmdRead): - ``.source``: The ``VERTical:DESKew:FROM:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custompropagation = VerticalDeskewFromCustompropagation( device, f"{self._cmd_syntax}:CUSTOMPROPAgation" @@ -312,7 +312,7 @@ class VerticalDeskew(SCPICmdRead): - ``.to``: The ``VERTical:DESKew:TO`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._from = VerticalDeskewFrom(device, f"{self._cmd_syntax}:FROM") self._static = VerticalDeskewStatic(device, f"{self._cmd_syntax}:STATIC") @@ -382,7 +382,7 @@ class Vertical(SCPICmdRead): - ``.deskew``: The ``VERTical:DESKew`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "VERTical") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "VERTical") -> None: super().__init__(device, cmd_syntax) self._deskew = VerticalDeskew(device, f"{self._cmd_syntax}:DESKew") diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py index da242a0a..fda6749d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): @@ -619,7 +619,7 @@ class Wfmoutpre(SCPICmdRead): - ``.yzero``: The ``WFMOutpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMOutpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMOutpre") -> None: super().__init__(device, cmd_syntax) self._asc_fmt = WfmoutpreAscFmt(device, f"{self._cmd_syntax}:ASC_Fmt") self._bit_nr = WfmoutpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") diff --git a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py index d6046a74..10d63128 100644 --- a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py +++ b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clear(SCPICmdWriteNoArguments): @@ -36,5 +36,5 @@ class Clear(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CLEAR") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CLEAR") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py index 6280c695..35f532c1 100644 --- a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py +++ b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Totaluptime(SCPICmdRead): @@ -41,6 +41,6 @@ class Totaluptime(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TOTaluptime" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "TOTaluptime" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py index acb8dbfa..14a8b195 100644 --- a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py +++ b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pause(SCPICmdWrite): @@ -43,5 +43,5 @@ class Pause(SCPICmdWrite): must be > 0.0 and ≥1800.0. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PAUSe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PAUSe") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py index e900c173..14deec0c 100644 --- a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py +++ b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): @@ -37,7 +37,7 @@ class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): - ``.setglobal()``: The ``node[N].setglobal()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "node[N]") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "node[N]") -> None: super().__init__(device, cmd_syntax) def execute(self, script_code: str) -> None: @@ -62,7 +62,7 @@ def execute(self, script_code: str) -> None: f'{self._cmd_syntax}.execute("{script_code}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getglobal(self, name: str) -> str: @@ -90,7 +90,7 @@ def getglobal(self, name: str) -> str: f'print({self._cmd_syntax}.getglobal("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setglobal(self, name: str, value: str) -> None: @@ -116,5 +116,5 @@ def setglobal(self, name: str, value: str) -> None: f'{self._cmd_syntax}.setglobal("{name}", {value})' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setglobal()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py index e1b7f20b..cec91ac1 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Dataqueue(BaseTSPCmd): @@ -43,7 +43,9 @@ class Dataqueue(BaseTSPCmd): CAPACITY = "dataqueue.CAPACITY" """str: The maximum number of entries that you can store in the data queue.""" - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "dataqueue") -> None: + def __init__( + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "dataqueue" + ) -> None: super().__init__(device, cmd_syntax) @property @@ -71,7 +73,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def add(self, value: str, timeout: Optional[float] = None) -> str: @@ -108,7 +110,7 @@ def add(self, value: str, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.add({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -130,7 +132,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def next(self, timeout: Optional[float] = None) -> str: @@ -159,5 +161,5 @@ def next(self, timeout: Optional[float] = None) -> str: f"print({self._cmd_syntax}.next({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py index 134804c0..900cf677 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Fs(BaseTSPCmd): @@ -43,7 +43,7 @@ class Fs(BaseTSPCmd): - ``.rmdir()``: The ``fs.rmdir()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "fs") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "fs") -> None: super().__init__(device, cmd_syntax) def chdir(self, path: str) -> str: @@ -71,7 +71,7 @@ def chdir(self, path: str) -> str: f'print({self._cmd_syntax}.chdir("{path}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.chdir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.chdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def cwd(self) -> str: @@ -96,7 +96,7 @@ def cwd(self) -> str: f"print({self._cmd_syntax}.cwd())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.cwd()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.cwd()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def is_dir(self, path: str) -> str: @@ -124,7 +124,7 @@ def is_dir(self, path: str) -> str: f'print({self._cmd_syntax}.is_dir("{path}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.is_dir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.is_dir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def is_file(self, path: str) -> str: @@ -152,7 +152,7 @@ def is_file(self, path: str) -> str: f'print({self._cmd_syntax}.is_file("{path}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.is_file()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.is_file()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def mkdir(self, new_path: str) -> str: @@ -180,7 +180,7 @@ def mkdir(self, new_path: str) -> str: f'print({self._cmd_syntax}.mkdir("{new_path}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.mkdir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.mkdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readdir(self, path: str) -> str: @@ -208,7 +208,7 @@ def readdir(self, path: str) -> str: f'print({self._cmd_syntax}.readdir("{path}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readdir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rmdir(self, path: str) -> None: @@ -233,5 +233,5 @@ def rmdir(self, path: str) -> None: f'{self._cmd_syntax}.rmdir("{path}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rmdir()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rmdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py index a4346de0..e620159e 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Userstring(BaseTSPCmd): @@ -36,7 +36,7 @@ class Userstring(BaseTSPCmd): """ def __init__( - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "userstring" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "userstring" ) -> None: super().__init__(device, cmd_syntax) @@ -63,7 +63,7 @@ def add(self, name: str, value: str) -> None: f'{self._cmd_syntax}.add("{name}", "{value}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.add()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delete(self, name: str) -> None: @@ -88,7 +88,7 @@ def delete(self, name: str) -> None: f'{self._cmd_syntax}.delete("{name}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def get(self, name: str) -> str: @@ -116,5 +116,5 @@ def get(self, name: str) -> str: f'print({self._cmd_syntax}.get("{name}"))' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py index 577c8b4a..82c795d1 100644 --- a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py +++ b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): @@ -75,7 +75,7 @@ def abortonconnect(self) -> str: f"print({self._cmd_syntax}.abortonconnect)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @abortonconnect.setter @@ -109,7 +109,7 @@ def abortonconnect(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.abortonconnect = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.abortonconnect`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def abort(self, connection_id: str) -> None: @@ -135,7 +135,7 @@ def abort(self, connection_id: str) -> None: f"{self._cmd_syntax}.abort({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def rbtablecopy( @@ -183,7 +183,7 @@ def rbtablecopy( f"print({self._cmd_syntax}.rbtablecopy({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.rbtablecopy()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def runscript(self, connection_id: str, name: str, script: str) -> None: @@ -210,7 +210,7 @@ def runscript(self, connection_id: str, name: str, script: str) -> None: f'{self._cmd_syntax}.runscript({connection_id}, "{name}", "{script}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.runscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -232,7 +232,7 @@ class Tspnet(BaseTSPCmd): - ``.write()``: The ``tspnet.write()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "tspnet") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "tspnet") -> None: super().__init__(device, cmd_syntax) self._tsp = TspnetTsp(device, f"{self._cmd_syntax}.tsp") @@ -264,7 +264,7 @@ def timeout(self) -> str: f"print({self._cmd_syntax}.timeout)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @timeout.setter @@ -298,7 +298,7 @@ def timeout(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.timeout = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.timeout`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @property @@ -335,7 +335,7 @@ def clear(self, connection_id: str) -> None: f"{self._cmd_syntax}.clear({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def connect( @@ -386,7 +386,7 @@ def connect( f"print({self._cmd_syntax}.connect({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def disconnect(self, connection_id: str) -> None: @@ -411,7 +411,7 @@ def disconnect(self, connection_id: str) -> None: f"{self._cmd_syntax}.disconnect({connection_id})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def execute( @@ -452,7 +452,7 @@ def execute( f"print({self._cmd_syntax}.execute({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.execute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def idn(self, connection_id: str) -> str: @@ -480,7 +480,7 @@ def idn(self, connection_id: str) -> str: f"print({self._cmd_syntax}.idn({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.idn()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, connection_id: str, format_string: Optional[str] = None) -> str: @@ -517,7 +517,7 @@ def read(self, connection_id: str, format_string: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def readavailable(self, connection_id: str) -> str: @@ -545,7 +545,7 @@ def readavailable(self, connection_id: str) -> str: f"print({self._cmd_syntax}.readavailable({connection_id}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.readavailable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def reset(self) -> None: @@ -567,7 +567,7 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def termination(self, connection_id: str, term_sequence: Optional[str] = None) -> str: @@ -604,7 +604,7 @@ def termination(self, connection_id: str, term_sequence: Optional[str] = None) - f"print({self._cmd_syntax}.termination({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.termination()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, connection_id: str, input_string: str) -> None: @@ -630,5 +630,5 @@ def write(self, connection_id: str, input_string: str) -> None: f'{self._cmd_syntax}.write({connection_id}, "{input_string}")' ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_efap3f_smuss/bit.py b/src/tm_devices/commands/gen_efap3f_smuss/bit.py index e963b74d..5cb43a82 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/bit.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/bit.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Bit(BaseTSPCmd): @@ -49,7 +49,7 @@ class Bit(BaseTSPCmd): - ``.toggle()``: The ``bit.toggle()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "bit") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "bit") -> None: super().__init__(device, cmd_syntax) def bitand(self, value1: str, value2: str) -> str: @@ -78,7 +78,7 @@ def bitand(self, value1: str, value2: str) -> str: f"print({self._cmd_syntax}.bitand({value1}, {value2}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.bitand()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.bitand()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def bitor(self, value1: str, value2: str) -> str: @@ -107,7 +107,7 @@ def bitor(self, value1: str, value2: str) -> str: f"print({self._cmd_syntax}.bitor({value1}, {value2}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.bitor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.bitor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def bitxor(self, value1: str, value2: str) -> str: @@ -136,7 +136,7 @@ def bitxor(self, value1: str, value2: str) -> str: f"print({self._cmd_syntax}.bitxor({value1}, {value2}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.bitxor()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.bitxor()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self, value: str, index: int) -> str: @@ -165,7 +165,7 @@ def clear(self, value: str, index: int) -> str: f"print({self._cmd_syntax}.clear({value}, {index}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def get(self, value: str, index: int) -> str: @@ -194,7 +194,7 @@ def get(self, value: str, index: int) -> str: f"print({self._cmd_syntax}.get({value}, {index}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.get()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def getfield(self, value: str, index: int, width: int) -> str: @@ -225,7 +225,7 @@ def getfield(self, value: str, index: int, width: int) -> str: f"print({self._cmd_syntax}.getfield({value}, {index}, {width}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.getfield()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.getfield()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def set_(self, value: str, index: int) -> str: @@ -254,7 +254,7 @@ def set_(self, value: str, index: int) -> str: f"print({self._cmd_syntax}.set({value}, {index}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def setfield(self, value: str, index: int, width: int, field_value: str) -> str: @@ -285,7 +285,7 @@ def setfield(self, value: str, index: int, width: int, field_value: str) -> str: f"print({self._cmd_syntax}.setfield({value}, {index}, {width}, {field_value}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.setfield()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.setfield()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def test(self, value: str, index: int) -> str: @@ -315,7 +315,7 @@ def test(self, value: str, index: int) -> str: f"print({self._cmd_syntax}.test({value}, {index}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.test()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.test()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def toggle(self, value: str, index: int) -> str: @@ -344,5 +344,5 @@ def toggle(self, value: str, index: int) -> str: f"print({self._cmd_syntax}.toggle({value}, {index}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.toggle()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.toggle()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py index 0e6f74e1..34519620 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Errorqueue(BaseTSPCmd): @@ -36,7 +36,7 @@ class Errorqueue(BaseTSPCmd): """ def __init__( - self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "errorqueue" + self, device: Optional["TSPControl"] = None, cmd_syntax: str = "errorqueue" ) -> None: super().__init__(device, cmd_syntax) @@ -65,7 +65,7 @@ def count(self) -> str: f"print({self._cmd_syntax}.count)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.count`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error def clear(self) -> None: @@ -87,7 +87,7 @@ def clear(self) -> None: f"{self._cmd_syntax}.clear()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def next(self) -> str: @@ -113,5 +113,5 @@ def next(self) -> str: f"print({self._cmd_syntax}.next())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.next()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_efap3f_smuss/io.py b/src/tm_devices/commands/gen_efap3f_smuss/io.py index 7f0cd02f..89d21b3c 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/io.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/io.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Io(BaseTSPCmd): @@ -45,7 +45,7 @@ class Io(BaseTSPCmd): - ``.write()``: The ``io.write()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "io") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "io") -> None: super().__init__(device, cmd_syntax) def close(self, file: Optional[str] = None) -> None: @@ -71,7 +71,7 @@ def close(self, file: Optional[str] = None) -> None: f"{self._cmd_syntax}.close({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.close()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def flush(self) -> None: @@ -93,7 +93,7 @@ def flush(self) -> None: f"{self._cmd_syntax}.flush()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.flush()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.flush()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def input(self, newfile: Optional[str] = None) -> str: @@ -126,7 +126,7 @@ def input(self, newfile: Optional[str] = None) -> str: f"print({self._cmd_syntax}.input({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.input()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.input()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def open(self, path: str, mode: Optional[str] = None) -> str: @@ -164,7 +164,7 @@ def open(self, path: str, mode: Optional[str] = None) -> str: f"print({self._cmd_syntax}.open({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.open()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def output(self, newfile: Optional[str] = None) -> str: @@ -197,7 +197,7 @@ def output(self, newfile: Optional[str] = None) -> str: f"print({self._cmd_syntax}.output({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.output()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.output()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def read(self, format_: Optional[str] = None) -> str: @@ -228,7 +228,7 @@ def read(self, format_: Optional[str] = None) -> str: f"print({self._cmd_syntax}.read({function_args}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.read()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def type(self, obj: str) -> str: @@ -256,7 +256,7 @@ def type(self, obj: str) -> str: f"print({self._cmd_syntax}.type({obj}))" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.type()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.type()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def write(self, data: Optional[str] = None) -> None: @@ -282,5 +282,5 @@ def write(self, data: Optional[str] = None) -> None: f"{self._cmd_syntax}.write({function_args})" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_efap3f_smuss/timer.py b/src/tm_devices/commands/gen_efap3f_smuss/timer.py index 90be7d25..477a2b49 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/timer.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/timer.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TimerMeasure(BaseTSPCmd): @@ -54,7 +54,7 @@ def t(self) -> str: f"print({self._cmd_syntax}.t())" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.t()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.t()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -66,7 +66,7 @@ class Timer(BaseTSPCmd): - ``.reset()``: The ``timer.reset()`` function. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "timer") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "timer") -> None: super().__init__(device, cmd_syntax) self._measure = TimerMeasure(device, f"{self._cmd_syntax}.measure") @@ -98,5 +98,5 @@ def reset(self) -> None: f"{self._cmd_syntax}.reset()" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 + msg = f"No TSPControl object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py index 1521a3ba..70bc4f9f 100644 --- a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py +++ b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Gpib(BaseTSPCmd): @@ -31,7 +31,7 @@ class Gpib(BaseTSPCmd): - ``.address``: The ``gpib.address`` attribute. """ - def __init__(self, device: Optional["TSPDevice"] = None, cmd_syntax: str = "gpib") -> None: + def __init__(self, device: Optional["TSPControl"] = None, cmd_syntax: str = "gpib") -> None: super().__init__(device, cmd_syntax) @property @@ -61,7 +61,7 @@ def address(self) -> str: f"print({self._cmd_syntax}.address)" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.address`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.address`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @address.setter @@ -94,5 +94,5 @@ def address(self, value: Union[str, float]) -> None: f"{self._cmd_syntax}.address = {value}" ) except AttributeError as error: - msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.address`` attribute." # noqa: E501 + msg = f"No TSPControl object was provided, unable to access the ``{self._cmd_syntax}.address`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py index d34c108d..abcbeb79 100644 --- a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py +++ b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py @@ -212,7 +212,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): @@ -253,7 +253,7 @@ class BusRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.threshold``: The ``BUS:REF:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = BusRefItemThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -351,7 +351,7 @@ class BusMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.threshold``: The ``BUS:MATH:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusMathItemLowthreshold(device, f"{self._cmd_syntax}:LOWTHRESHold") self._threshold = BusMathItemThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -476,7 +476,7 @@ class BusChannel(ValidatedChannel, SCPICmdRead): - ``.threshold``: The ``BUS:CH:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowthreshold = BusChannelLowthreshold(device, f"{self._cmd_syntax}:LOWTHRESHold") self._threshold = BusChannelThreshold(device, f"{self._cmd_syntax}:THRESHold") @@ -626,7 +626,7 @@ class BusBItemUsbSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:USB:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemUsbSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemUsbSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -761,7 +761,7 @@ class BusBItemUsb(SCPICmdRead): - ``.source``: The ``BUS:B:USB:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemUsbBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemUsbProbe(device, f"{self._cmd_syntax}:PRObe") @@ -963,7 +963,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SELect:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1170,7 +1170,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataPolarity(device, f"{self._cmd_syntax}:POLarity") self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -1334,7 +1334,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1447,7 +1447,7 @@ class BusBItemSpi(SCPICmdRead): - ``.select``: The ``BUS:B:SPI:SELect`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._clock = BusBItemSpiClock(device, f"{self._cmd_syntax}:CLOCk") @@ -1706,7 +1706,7 @@ class BusBItemS8b10bBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:S8B10B:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemS8b10bBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -1751,7 +1751,7 @@ class BusBItemS8b10b(SCPICmdRead): - ``.source``: The ``BUS:B:S8B10B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS8b10bBitrate(device, f"{self._cmd_syntax}:BITRate") self._hysteresis = BusBItemS8b10bHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -1984,7 +1984,7 @@ class BusBItemS64b66bBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:S64B66B:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemS64b66bBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -2030,7 +2030,7 @@ class BusBItemS64b66b(SCPICmdRead): - ``.source``: The ``BUS:B:S64B66B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemS64b66bBitrate(device, f"{self._cmd_syntax}:BITRate") self._descramble = BusBItemS64b66bDescramble(device, f"{self._cmd_syntax}:DESCRAMble") @@ -2355,7 +2355,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -2704,7 +2704,7 @@ class BusBItemPcieBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:PCIE:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemPcieBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -2750,7 +2750,7 @@ class BusBItemPcie(SCPICmdRead): - ``.source``: The ``BUS:B:PCIE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemPcieBitrate(device, f"{self._cmd_syntax}:BITRate") self._hysteresis = BusBItemPcieHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -2986,7 +2986,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = BusBItemParallelClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3064,7 +3064,7 @@ class BusBItemParallel(SCPICmdRead): - ``.sources``: The ``BUS:B:PARallel:SOURCES`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemParallelClock(device, f"{self._cmd_syntax}:CLOCk") self._isclocked = BusBItemParallelIsclocked(device, f"{self._cmd_syntax}:ISCLOCKED") @@ -3279,7 +3279,7 @@ class BusBItemMipidsioneLaneItemSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:MIPIDSIOne:LANE:SOUrce:DPLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemMipidsioneLaneItemSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -3396,7 +3396,7 @@ class BusBItemMipidsioneLaneItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:MIPIDSIOne:LANE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipidsioneLaneItemSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipidsioneLaneItemType(device, f"{self._cmd_syntax}:TYPe") @@ -3515,7 +3515,7 @@ class BusBItemMipidsioneClock(SCPICmdRead): - ``.type``: The ``BUS:B:MIPIDSIOne:CLOCk:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipidsioneClockSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipidsioneClockType(device, f"{self._cmd_syntax}:TYPe") @@ -3592,7 +3592,7 @@ class BusBItemMipidsione(SCPICmdRead): - ``.lane``: The ``BUS:B:MIPIDSIOne:LANE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMipidsioneClock(device, f"{self._cmd_syntax}:CLOCk") self._lane: Dict[int, BusBItemMipidsioneLaneItem] = DefaultDictPassKeyToFactory( @@ -3761,7 +3761,7 @@ class BusBItemMipicsitwoLaneItemSource(SCPICmdRead): - ``.dplus``: The ``BUS:B:MIPICSITWo:LANE:SOUrce:DPLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._differential = BusBItemMipicsitwoLaneItemSourceDifferential( device, f"{self._cmd_syntax}:DIFFerential" @@ -3878,7 +3878,7 @@ class BusBItemMipicsitwoLaneItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:MIPICSITWo:LANE:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipicsitwoLaneItemSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipicsitwoLaneItemType(device, f"{self._cmd_syntax}:TYPe") @@ -3997,7 +3997,7 @@ class BusBItemMipicsitwoClock(SCPICmdRead): - ``.type``: The ``BUS:B:MIPICSITWo:CLOCk:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemMipicsitwoClockSource(device, f"{self._cmd_syntax}:SOUrce") self._type = BusBItemMipicsitwoClockType(device, f"{self._cmd_syntax}:TYPe") @@ -4074,7 +4074,7 @@ class BusBItemMipicsitwo(SCPICmdRead): - ``.lane``: The ``BUS:B:MIPICSITWo:LANE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemMipicsitwoClock(device, f"{self._cmd_syntax}:CLOCk") self._lane: Dict[int, BusBItemMipicsitwoLaneItem] = DefaultDictPassKeyToFactory( @@ -4213,7 +4213,7 @@ class BusBItemMil1553bResponsetime(SCPICmdRead): - ``.minimum``: The ``BUS:B:MIL1553B:RESPonsetime:MINimum`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._maximum = BusBItemMil1553bResponsetimeMaximum(device, f"{self._cmd_syntax}:MAXimum") self._minimum = BusBItemMil1553bResponsetimeMinimum(device, f"{self._cmd_syntax}:MINimum") @@ -4319,7 +4319,7 @@ class BusBItemMil1553b(SCPICmdRead): - ``.source``: The ``BUS:B:MIL1553B:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemMil1553bPolarity(device, f"{self._cmd_syntax}:POLarity") self._responsetime = BusBItemMil1553bResponsetime( @@ -4546,7 +4546,7 @@ class BusBItemLinBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:LIN:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemLinBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -4593,7 +4593,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -4829,7 +4829,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:DATa:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4905,7 +4905,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4954,7 +4954,7 @@ class BusBItemI2c(SCPICmdRead): - ``.rwinaddr``: The ``BUS:B:I2C:RWINADDR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCk") self._data = BusBItemI2cData(device, f"{self._cmd_syntax}:DATa") @@ -5157,7 +5157,7 @@ class BusBItemFlexrayBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:FLEXRAY:BITRate:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemFlexrayBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -5201,7 +5201,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.signal``: The ``BUS:B:FLEXRAY:SIGnal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHANnel") @@ -5451,7 +5451,7 @@ class BusBItemEthernetSource(SCPICmdWrite, SCPICmdRead): - ``.dplus``: The ``BUS:B:ETHERnet:SOUrce:DPLUs`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dminus = BusBItemEthernetSourceDminus(device, f"{self._cmd_syntax}:DMINus") self._dplus = BusBItemEthernetSourceDplus(device, f"{self._cmd_syntax}:DPLUs") @@ -5561,7 +5561,7 @@ class BusBItemEthernet(SCPICmdRead): - ``.type``: The ``BUS:B:ETHERnet:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = BusBItemEthernetProbe(device, f"{self._cmd_syntax}:PRObe") self._source = BusBItemEthernetSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5759,7 +5759,7 @@ class BusBItemDisplayDecode(SCPICmdRead): - ``.state``: The ``BUS:B:DISplay:DECOde:STAte`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = BusBItemDisplayDecodeFile(device, f"{self._cmd_syntax}:FILe") self._state = BusBItemDisplayDecodeState(device, f"{self._cmd_syntax}:STAte") @@ -5842,7 +5842,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.type``: The ``BUS:B:DISplay:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decode = BusBItemDisplayDecode(device, f"{self._cmd_syntax}:DECOde") self._type = BusBItemDisplayType(device, f"{self._cmd_syntax}:TYPe") @@ -5977,7 +5977,7 @@ class BusBItemCanBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``BUS:B:CAN:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = BusBItemCanBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -6021,7 +6021,7 @@ class BusBItemCan(SCPICmdRead): - ``.source``: The ``BUS:B:CAN:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemCanProbe(device, f"{self._cmd_syntax}:PRObe") @@ -6127,7 +6127,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = BusBItemCan(device, f"{self._cmd_syntax}:CAN") self._display = BusBItemDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -6549,7 +6549,7 @@ class BusB1ItemUsb(SCPICmdRead): - ``.hysteresis``: The ``BUS:B1:USB:HYSTeresis`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hysteresis = BusB1ItemUsbHysteresis(device, f"{self._cmd_syntax}:HYSTeresis") @@ -6644,7 +6644,7 @@ class BusB1ItemDisplay(SCPICmdRead): - ``.layout``: The ``BUS:B1:DISplay:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hierarchical = BusB1ItemDisplayHierarchical( device, f"{self._cmd_syntax}:HIERarchical" @@ -6715,7 +6715,7 @@ class BusB1Item(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``BUS:B1:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = BusB1ItemDisplay(device, f"{self._cmd_syntax}:DISplay") self._usb = BusB1ItemUsb(device, f"{self._cmd_syntax}:USB") @@ -6766,7 +6766,7 @@ class Bus(SCPICmdRead): - ``.ref``: The ``BUS:REF`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._b1: Dict[int, BusB1Item] = DefaultDictPassKeyToFactory( lambda x: BusB1Item(device, f"{self._cmd_syntax}:B1{x}") diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py index dfa5ec17..682587db 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curve(SCPICmdWrite, SCPICmdRead): @@ -66,5 +66,5 @@ class Curve(SCPICmdWrite, SCPICmdRead): waveforms, the data is transmitted as 4-byte floating point values (NR2 or NR3). """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURVe") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py index d52dcab7..917de9d2 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Date(SCPICmdWrite, SCPICmdRead): @@ -50,5 +50,5 @@ class Date(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATE") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py index b9908f4b..a8be868a 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathvarVarItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -79,7 +79,7 @@ class Mathvar(SCPICmdRead): - ``.var``: The ``MATHVAR:VAR`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATHVAR") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATHVAR") -> None: super().__init__(device, cmd_syntax) self._var: Dict[int, MathvarVarItem] = DefaultDictPassKeyToFactory( lambda x: MathvarVarItem(device, f"{self._cmd_syntax}:VAR{x}") diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py index bcec3e87..b09abc11 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sav(SCPICmdWrite): @@ -45,7 +45,7 @@ class Sav(SCPICmdWrite): error. Any settings that have been stored previously at this location will be overwritten. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*SAV") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*SAV") -> None: super().__init__(device, cmd_syntax) @@ -69,5 +69,5 @@ class Rcl(SCPICmdWrite): location. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*RCL") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*RCL") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py index f7d9e276..12c12fae 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireSyncsamples(SCPICmdWrite, SCPICmdRead): @@ -364,7 +364,7 @@ class AcquireMode(SCPICmdWrite, SCPICmdRead): - ``.actual``: The ``ACQuire:MODe:ACTUal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = AcquireModeActual(device, f"{self._cmd_syntax}:ACTUal") @@ -492,7 +492,7 @@ class AcquireEnhancedenob(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``ACQuire:ENHANCEDEnob:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AcquireEnhancedenobState(device, f"{self._cmd_syntax}:STATE") @@ -541,7 +541,7 @@ class Acquire(SCPICmdRead): - ``.syncsamples``: The ``ACQuire:SYNcsamples`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._enhancedenob = AcquireEnhancedenob(device, f"{self._cmd_syntax}:ENHANCEDEnob") self._interpeightbit = AcquireInterpeightbit(device, f"{self._cmd_syntax}:INTERPEightbit") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py index 1d7a2a57..37cd6ff8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AllocateWaveformRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): @@ -53,7 +53,7 @@ class AllocateWaveform(SCPICmdRead): - ``.ref``: The ``ALLOcate:WAVEform:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, AllocateWaveformRefItem] = DefaultDictPassKeyToFactory( lambda x: AllocateWaveformRefItem(device, f"{self._cmd_syntax}:REF{x}") @@ -93,7 +93,7 @@ class Allocate(SCPICmdRead): - ``.waveform``: The ``ALLOcate:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ALLOcate") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ALLOcate") -> None: super().__init__(device, cmd_syntax) self._waveform = AllocateWaveform(device, f"{self._cmd_syntax}:WAVEform") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py index 6ddf91c8..1fa7f705 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationScopeappWindow(SCPICmdWrite, SCPICmdRead): @@ -62,7 +62,7 @@ class ApplicationScopeapp(SCPICmdRead): - ``.window``: The ``APPLication:SCOPEAPP:WINDOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._window = ApplicationScopeappWindow(device, f"{self._cmd_syntax}:WINDOW") @@ -132,7 +132,7 @@ class Application(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "APPLication" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "APPLication" ) -> None: super().__init__(device, cmd_syntax) self._activate = ApplicationActivate(device, f"{self._cmd_syntax}:ACTivate") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py index 2b68c5ef..d34beae3 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetPercent(SCPICmdWrite): @@ -93,7 +93,7 @@ class Autoset(SCPICmdWrite, SCPICmdRead): - ``.percent``: The ``AUTOSet:PERcent`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSet") -> None: super().__init__(device, cmd_syntax) self._overlay = AutosetOverlay(device, f"{self._cmd_syntax}:OVErlay") self._percent = AutosetPercent(device, f"{self._cmd_syntax}:PERcent") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py index e388c3d4..b541ed13 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py @@ -63,7 +63,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinVtermDualB(SCPICmdWrite, SCPICmdRead): @@ -127,7 +127,7 @@ class AuxinVtermDual(SCPICmdRead): - ``.b``: The ``AUXIn:VTERm:DUAL:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = AuxinVtermDualA(device, f"{self._cmd_syntax}:A") self._b = AuxinVtermDualB(device, f"{self._cmd_syntax}:B") @@ -195,7 +195,7 @@ class AuxinVterm(SCPICmdRead): - ``.dual``: The ``AUXIn:VTERm:DUAL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dual = AuxinVtermDual(device, f"{self._cmd_syntax}:DUAL") @@ -499,7 +499,7 @@ class AuxinProbeInputmode(SCPICmdWrite, SCPICmdRead): - ``.dmoffset``: The ``AUXIn:PRObe:INPUTMode:DMOFFSet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aoffset = AuxinProbeInputmodeAoffset(device, f"{self._cmd_syntax}:AOFFSet") self._boffset = AuxinProbeInputmodeBoffset(device, f"{self._cmd_syntax}:BOFFSet") @@ -660,7 +660,7 @@ class AuxinProbeId(SCPICmdRead): - ``.type``: The ``AUXIn:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = AuxinProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = AuxinProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -789,7 +789,7 @@ class AuxinProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``AUXIn:PRObe:DEGAUSS:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AuxinProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -856,7 +856,7 @@ class AuxinProbe(SCPICmdRead): - ``.units``: The ``AUXIn:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = AuxinProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._degauss = AuxinProbeDegauss(device, f"{self._cmd_syntax}:DEGAUSS") @@ -1284,7 +1284,7 @@ class AuxinProbefunc(SCPICmdRead): - ``.extunits``: The ``AUXIn:PROBEFunc:EXTUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._extatten = AuxinProbefuncExtatten(device, f"{self._cmd_syntax}:EXTAtten") self._extdbatten = AuxinProbefuncExtdbatten(device, f"{self._cmd_syntax}:EXTDBatten") @@ -1491,7 +1491,7 @@ class Auxin(SCPICmdRead): - ``.vterm``: The ``AUXIn:VTERm`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXIn") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXIn") -> None: super().__init__(device, cmd_syntax) self._bandwidth = AuxinBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._coupling = AuxinCoupling(device, f"{self._cmd_syntax}:COUPling") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py index c9f15f16..6e1ade14 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): @@ -103,7 +103,7 @@ class Auxout(SCPICmdRead): - ``.source``: The ``AUXout:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXout") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXout") -> None: super().__init__(device, cmd_syntax) self._edge = AuxoutEdge(device, f"{self._cmd_syntax}:EDGE") self._source = AuxoutSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py index 804c9df6..9702fcfb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Bell(SCPICmdWriteNoArguments): @@ -38,5 +38,5 @@ class Bell(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BELl") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BELl") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py index 761a6557..3399a9cc 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateResultsSpc(SCPICmdRead): @@ -78,7 +78,7 @@ class CalibrateResults(SCPICmdRead): - ``.spc``: The ``CALibrate:RESults:SPC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._spc = CalibrateResultsSpc(device, f"{self._cmd_syntax}:SPC") @@ -133,7 +133,7 @@ class CalibrateProbestate(SCPICmdRead): - ``.ch``: The ``CALibrate:PRObestate:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, CalibrateProbestateChannel] = DefaultDictPassKeyToFactory( lambda x: CalibrateProbestateChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -218,7 +218,7 @@ class CalibrateInternal(SCPICmdWriteNoArguments, SCPICmdRead): - ``.status``: The ``CALibrate:INTERNal:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = CalibrateInternalStart(device, f"{self._cmd_syntax}:STARt") self._status = CalibrateInternalStatus(device, f"{self._cmd_syntax}:STATus") @@ -296,7 +296,7 @@ class CalibrateCalprobe(SCPICmdRead): - ``.ch``: The ``CALibrate:CALProbe:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, CalibrateCalprobeChannel] = DefaultDictPassKeyToFactory( lambda x: CalibrateCalprobeChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -348,7 +348,7 @@ class Calibrate(SCPICmdRead): - ``.results``: The ``CALibrate:RESults`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibrate") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibrate") -> None: super().__init__(device, cmd_syntax) self._calprobe = CalibrateCalprobe(device, f"{self._cmd_syntax}:CALProbe") self._internal = CalibrateInternal(device, f"{self._cmd_syntax}:INTERNal") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py index 3bcf87b7..54e2fecd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py @@ -113,7 +113,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelVtermDualB(SCPICmdWrite, SCPICmdRead): @@ -177,7 +177,7 @@ class ChannelVtermDual(SCPICmdRead): - ``.b``: The ``CH:VTERm:DUAL:B`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = ChannelVtermDualA(device, f"{self._cmd_syntax}:A") self._b = ChannelVtermDualB(device, f"{self._cmd_syntax}:B") @@ -274,7 +274,7 @@ class ChannelVterm(SCPICmdRead): - ``.dual``: The ``CH:VTERm:DUAL`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bias = ChannelVtermBias(device, f"{self._cmd_syntax}:BIAS") self._dual = ChannelVtermDual(device, f"{self._cmd_syntax}:DUAL") @@ -681,7 +681,7 @@ class ChannelProbeInputmode(SCPICmdWrite, SCPICmdRead): - ``.dmoffset``: The ``CH:PRObe:INPUTMode:DMOFFSet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aoffset = ChannelProbeInputmodeAoffset(device, f"{self._cmd_syntax}:AOFFSet") self._boffset = ChannelProbeInputmodeBoffset(device, f"{self._cmd_syntax}:BOFFSet") @@ -855,7 +855,7 @@ class ChannelProbeId(SCPICmdRead): - ``.type``: The ``CH:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = ChannelProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = ChannelProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -998,7 +998,7 @@ class ChannelProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:DEGAUSS:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -1077,7 +1077,7 @@ class ChannelProbeDcCalibrationLast(SCPICmdRead): - ``.time``: The ``CH:PRObe:DC:CALibration:LAST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hardware = ChannelProbeDcCalibrationLastHardware( device, f"{self._cmd_syntax}:HARDware" @@ -1140,7 +1140,7 @@ class ChannelProbeDcCalibration(SCPICmdRead): - ``.last``: The ``CH:PRObe:DC:CALibration:LAST`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._last = ChannelProbeDcCalibrationLast(device, f"{self._cmd_syntax}:LAST") @@ -1173,7 +1173,7 @@ class ChannelProbeDc(SCPICmdRead): - ``.calibration``: The ``CH:PRObe:DC:CALibration`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibration = ChannelProbeDcCalibration(device, f"{self._cmd_syntax}:CALibration") @@ -1248,7 +1248,7 @@ class ChannelProbe(SCPICmdRead): - ``.units``: The ``CH:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = ChannelProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._dc = ChannelProbeDc(device, f"{self._cmd_syntax}:DC") @@ -1708,7 +1708,7 @@ class ChannelProbefunc(SCPICmdRead): - ``.extunits``: The ``CH:PROBEFunc:EXTUnits`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._extatten = ChannelProbefuncExtatten(device, f"{self._cmd_syntax}:EXTAtten") self._extdbatten = ChannelProbefuncExtdbatten(device, f"{self._cmd_syntax}:EXTDBatten") @@ -1931,7 +1931,7 @@ class ChannelOpticalWlength(SCPICmdWrite, SCPICmdRead): - ``.list``: The ``CH:OPTIcal:WLENgth:LIST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._list = ChannelOpticalWlengthList(device, f"{self._cmd_syntax}:LIST") @@ -1996,7 +1996,7 @@ class ChannelOpticalRcvr(SCPICmdWrite, SCPICmdRead): - ``.uservalue``: The ``CH:OPTIcal:RCVR:USERVALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._uservalue = ChannelOpticalRcvrUservalue(device, f"{self._cmd_syntax}:USERVALue") @@ -2034,7 +2034,7 @@ class ChannelOptical(SCPICmdRead): - ``.wlength``: The ``CH:OPTIcal:WLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rcvr = ChannelOpticalRcvr(device, f"{self._cmd_syntax}:RCVR") self._wlength = ChannelOpticalWlength(device, f"{self._cmd_syntax}:WLENgth") @@ -2129,7 +2129,7 @@ class ChannelOpti(SCPICmdRead): - ``.power``: The ``CH:OPTI:POWER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._power = ChannelOptiPower(device, f"{self._cmd_syntax}:POWER") @@ -2281,7 +2281,7 @@ class ChannelLabel(SCPICmdRead): - ``.ypos``: The ``CH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = ChannelLabelName(device, f"{self._cmd_syntax}:NAMe") self._xpos = ChannelLabelXpos(device, f"{self._cmd_syntax}:XPOS") @@ -2464,7 +2464,7 @@ class ChannelIcapture(SCPICmdRead): - ``.state``: The ``CH:ICAPture:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = ChannelIcaptureSource(device, f"{self._cmd_syntax}:SOUrce") self._state = ChannelIcaptureState(device, f"{self._cmd_syntax}:STATE") @@ -2753,7 +2753,7 @@ class ChannelBandwidthEnhanced(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:BANdwidth:ENHanced:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._allmatched = ChannelBandwidthEnhancedAllmatched( device, f"{self._cmd_syntax}:ALLMatched" @@ -2915,7 +2915,7 @@ class ChannelBandwidth(SCPICmdWrite, SCPICmdRead): - ``.enhanced``: The ``CH:BANdwidth:ENHanced`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enhanced = ChannelBandwidthEnhanced(device, f"{self._cmd_syntax}:ENHanced") @@ -3032,7 +3032,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.vterm``: The ``CH:VTERm`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._atiactive = ChannelAtiactive(device, f"{self._cmd_syntax}:ATIACTive") self._available = ChannelAvailable(device, f"{self._cmd_syntax}:AVAILable") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py index 99e04c99..82ada24f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clear(SCPICmdWrite): @@ -37,5 +37,5 @@ class Clear(SCPICmdWrite): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CLEAR") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CLEAR") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py index b9b5efe8..54b5ba7e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Cmdbatch(SCPICmdWrite, SCPICmdRead): @@ -52,5 +52,5 @@ class Cmdbatch(SCPICmdWrite, SCPICmdRead): - ``ON`` turns command batching on. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CMDBatch") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CMDBatch") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py index 4fe4d2f7..37c0823c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CqItemThreshold(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class CqItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.threshold``: The ``CQ:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CQ") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CQ") -> None: super().__init__(device, cmd_syntax) self._threshold = CqItemThreshold(device, f"{self._cmd_syntax}:THRESHold") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py index 6d924493..a8ec2732 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py @@ -84,7 +84,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyYdelta(SCPICmdRead): @@ -387,7 +387,7 @@ class CursorXy(SCPICmdRead): - ``.ydelta``: The ``CURSor:XY:YDELta`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._proddelta = CursorXyProddelta(device, f"{self._cmd_syntax}:PRODDELta") self._product: Dict[int, CursorXyProductItem] = DefaultDictPassKeyToFactory( @@ -900,7 +900,7 @@ class CursorWaveform(SCPICmdWrite, SCPICmdRead): - ``.vdelta``: The ``CURSor:WAVEform:VDELTA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hdelta = CursorWaveformHdelta(device, f"{self._cmd_syntax}:HDELTA") self._hpos: Dict[int, CursorWaveformHposItem] = DefaultDictPassKeyToFactory( @@ -1223,7 +1223,7 @@ class CursorVbars(SCPICmdWrite, SCPICmdRead): - ``.units``: The ``CURSor:VBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorVbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._pos: Dict[int, CursorVbarsPosItem] = DefaultDictPassKeyToFactory( @@ -1489,7 +1489,7 @@ class CursorScreen(SCPICmdRead): - ``.yposition``: The ``CURSor:SCREEN:YPOSITION`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._style = CursorScreenStyle(device, f"{self._cmd_syntax}:STYle") self._xposition: Dict[int, CursorScreenXpositionItem] = DefaultDictPassKeyToFactory( @@ -1721,7 +1721,7 @@ class CursorHbars(SCPICmdRead): - ``.units``: The ``CURSor:HBArs:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorHbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._position: Dict[int, CursorHbarsPositionItem] = DefaultDictPassKeyToFactory( @@ -1861,7 +1861,7 @@ class Cursor(SCPICmdRead): - ``.xy``: The ``CURSor:XY`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURSor") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURSor") -> None: super().__init__(device, cmd_syntax) self._function = CursorFunction(device, f"{self._cmd_syntax}:FUNCtion") self._hbars = CursorHbars(device, f"{self._cmd_syntax}:HBArs") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py index e2d3ecf9..b836e5dd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvenext(SCPICmdRead): @@ -44,5 +44,5 @@ class Curvenext(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURVENext") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURVENext") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py index bd42606e..f1461aad 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvestream(SCPICmdWrite, SCPICmdRead): @@ -60,6 +60,6 @@ class Curvestream(SCPICmdWrite, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURVEStream" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURVEStream" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py index b79a2a70..81dee9b9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CustomSelectGateItem(ValidatedDynamicNumberCmd, SCPICmdWrite): @@ -64,7 +64,7 @@ class CustomSelect(SCPICmdRead): - ``.gate``: The ``CUSTOM:SELECT:GATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gate: Dict[int, CustomSelectGateItem] = DefaultDictPassKeyToFactory( lambda x: CustomSelectGateItem(device, f"{self._cmd_syntax}:GATE{x}") @@ -157,7 +157,7 @@ class CustomGateItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.width``: The ``CUSTOM:GATE:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = CustomGateItemSource(device, f"{self._cmd_syntax}:SOUrce") self._start = CustomGateItemStart(device, f"{self._cmd_syntax}:START") @@ -231,7 +231,7 @@ class Custom(SCPICmdRead): - ``.select``: The ``CUSTOM:SELECT`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CUSTOM") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CUSTOM") -> None: super().__init__(device, cmd_syntax) self._gate: Dict[int, CustomGateItem] = DefaultDictPassKeyToFactory( lambda x: CustomGateItem(device, f"{self._cmd_syntax}:GATE{x}") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py index f1902c1f..90af00a8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): @@ -102,7 +102,7 @@ class DigitalBitProbeId(SCPICmdRead): - ``.type``: The ``D:PROBE:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = DigitalBitProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = DigitalBitProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -160,7 +160,7 @@ class DigitalBitProbe(SCPICmdRead): - ``.id``: The ``D:PROBE:ID`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._id = DigitalBitProbeId(device, f"{self._cmd_syntax}:ID") @@ -248,7 +248,7 @@ class DigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.threshold``: The ``D:THRESHold`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "D") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "D") -> None: super().__init__(device, cmd_syntax) self._label = DigitalBitLabel(device, f"{self._cmd_syntax}:LABEL") self._position = DigitalBitPosition(device, f"{self._cmd_syntax}:POSition") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py index 5960692a..a7509869 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataSyncsources(SCPICmdWrite, SCPICmdRead): @@ -346,7 +346,7 @@ class Data(SCPICmdWrite, SCPICmdRead): - ``.syncsources``: The ``DATa:SYNCSOUrces`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATa") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATa") -> None: super().__init__(device, cmd_syntax) self._destination = DataDestination(device, f"{self._cmd_syntax}:DESTination") self._encdg = DataEncdg(device, f"{self._cmd_syntax}:ENCdg") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py index c5f47662..441ed22d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeleteWaveform(SCPICmdWrite): @@ -86,7 +86,7 @@ class Delete(SCPICmdRead): - ``.waveform``: The ``DELEte:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DELEte") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DELEte") -> None: super().__init__(device, cmd_syntax) self._setup = DeleteSetup(device, f"{self._cmd_syntax}:SETUp") self._waveform = DeleteWaveform(device, f"{self._cmd_syntax}:WAVEform") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py index 976c01b5..a38f48cc 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagStop(SCPICmdWriteNoArguments): @@ -250,7 +250,7 @@ class DiagSelect(SCPICmdRead): - ``.test``: The ``DIAg:SELect:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = DiagSelectAll(device, f"{self._cmd_syntax}:ALL") self._area = DiagSelectArea(device, f"{self._cmd_syntax}:AREA") @@ -441,7 +441,7 @@ class DiagResults(SCPICmdRead): - ``.verbose``: The ``DIAg:RESults:VERBose`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._verbose = DiagResultsVerbose(device, f"{self._cmd_syntax}:VERBose") @@ -577,7 +577,7 @@ class DiagName(SCPICmdRead): - ``.test``: The ``DIAg:NAMe:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._area = DiagNameArea(device, f"{self._cmd_syntax}:AREA") self._subsys = DiagNameSubsys(device, f"{self._cmd_syntax}:SUBSYS") @@ -833,7 +833,7 @@ class DiagItem(SCPICmdReadWithArguments): - ``.subitems``: The ``DIAg:ITEM:SUBITEMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failures = DiagItemFailures(device, f"{self._cmd_syntax}:FAILURES") self._name = DiagItemName(device, f"{self._cmd_syntax}:NAMe") @@ -994,7 +994,7 @@ class DiagFailures(SCPICmdRead): - ``.clear``: The ``DIAg:FAILURES:CLEAR`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clear = DiagFailuresClear(device, f"{self._cmd_syntax}:CLEAR") @@ -1121,7 +1121,7 @@ class DiagControl(SCPICmdRead): - ``.loop``: The ``DIAg:CONTROL:LOOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._halt = DiagControlHalt(device, f"{self._cmd_syntax}:HALT") self._loop = DiagControlLoop(device, f"{self._cmd_syntax}:LOOP") @@ -1214,7 +1214,7 @@ class Diag(SCPICmdRead): - ``.stop``: The ``DIAg:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAg") -> None: super().__init__(device, cmd_syntax) self._control = DiagControl(device, f"{self._cmd_syntax}:CONTROL") self._execute = DiagExecute(device, f"{self._cmd_syntax}:EXECUTE") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py index 053a1dfb..3b78d99b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py @@ -120,7 +120,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): @@ -586,7 +586,7 @@ class DisplayScreentextLabelItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.ypos``: The ``DISplay:SCREENTExt:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fontcolor = DisplayScreentextLabelItemFontcolor( device, f"{self._cmd_syntax}:FONTCOlor" @@ -873,7 +873,7 @@ class DisplayScreentext(SCPICmdRead): - ``.state``: The ``DISplay:SCREENTExt:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label: Dict[int, DisplayScreentextLabelItem] = DefaultDictPassKeyToFactory( lambda x: DisplayScreentextLabelItem(device, f"{self._cmd_syntax}:LABel{x}") @@ -982,7 +982,7 @@ class DisplayPersistence(SCPICmdWrite, SCPICmdRead): - ``.reset``: The ``DISplay:PERSistence:RESET`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = DisplayPersistenceReset(device, f"{self._cmd_syntax}:RESET") @@ -1070,7 +1070,7 @@ class DisplayIntensityWaveform(SCPICmdRead): - ``.recordview``: The ``DISplay:INTENSITy:WAVEform:RECORDView`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._imageview = DisplayIntensityWaveformImageview(device, f"{self._cmd_syntax}:IMAGEView") self._recordview = DisplayIntensityWaveformRecordview( @@ -1311,7 +1311,7 @@ class DisplayIntensity(SCPICmdRead): - ``.waveform``: The ``DISplay:INTENSITy:WAVEform`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autobright = DisplayIntensityAutobright(device, f"{self._cmd_syntax}:AUTOBright") self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") @@ -1660,7 +1660,7 @@ class DisplayDigital(SCPICmdRead): - ``.height``: The ``DISplay:DIGital:HEIght`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._height = DisplayDigitalHeight(device, f"{self._cmd_syntax}:HEIght") @@ -2074,7 +2074,7 @@ class DisplayColorPaletteUser(SCPICmdWrite, SCPICmdRead): - ``.waveform``: The ``DISplay:COLOr:PALEtte:USEr:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._caret = DisplayColorPaletteUserCaret(device, f"{self._cmd_syntax}:CARet") self._ch: Dict[int, DisplayColorPaletteUserChannel] = DefaultDictPassKeyToFactory( @@ -2453,7 +2453,7 @@ class DisplayColorPalette(SCPICmdRead): - ``.user``: The ``DISplay:COLOr:PALEtte:USEr`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._imageview = DisplayColorPaletteImageview(device, f"{self._cmd_syntax}:IMAGEView") self._recordview = DisplayColorPaletteRecordview(device, f"{self._cmd_syntax}:RECORDView") @@ -2622,7 +2622,7 @@ class DisplayColor(SCPICmdRead): - ``.refcolor``: The ``DISplay:COLOr:REFCOLOr`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mathcolor = DisplayColorMathcolor(device, f"{self._cmd_syntax}:MATHCOLOr") self._palette = DisplayColorPalette(device, f"{self._cmd_syntax}:PALEtte") @@ -2770,7 +2770,7 @@ class Display(SCPICmdRead): - ``.waveform``: The ``DISplay:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._clock = DisplayClock(device, f"{self._cmd_syntax}:CLOCk") self._color = DisplayColor(device, f"{self._cmd_syntax}:COLOr") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py index 23c5bb59..6dff5525 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py @@ -54,7 +54,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EmailWaveform(SCPICmdWrite, SCPICmdRead): @@ -577,7 +577,7 @@ class Email(SCPICmdWrite, SCPICmdRead): - ``.waveform``: The ``EMail:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EMail") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EMail") -> None: super().__init__(device, cmd_syntax) self._attempts = EmailAttempts(device, f"{self._cmd_syntax}:ATTempts") self._authlogin = EmailAuthlogin(device, f"{self._cmd_syntax}:AUTHLogin") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py index 0be13d7c..ab3bafcd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ExportView(SCPICmdWrite, SCPICmdRead): @@ -193,7 +193,7 @@ class Export(SCPICmdWrite, SCPICmdRead): - ``.view``: The ``EXPort:VIEW`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EXPort") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EXPort") -> None: super().__init__(device, cmd_syntax) self._filename = ExportFilename(device, f"{self._cmd_syntax}:FILEName") self._format = ExportFormat(device, f"{self._cmd_syntax}:FORMat") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py index b994ade1..dfabbfec 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FastacqState(SCPICmdWrite, SCPICmdRead): @@ -103,7 +103,7 @@ class Fastacq(SCPICmdRead): - ``.state``: The ``FASTAcq:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FASTAcq") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FASTAcq") -> None: super().__init__(device, cmd_syntax) self._hiacqrate = FastacqHiacqrate(device, f"{self._cmd_syntax}:HIACQRATE") self._state = FastacqState(device, f"{self._cmd_syntax}:STATE") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py index 1581d868..0596c998 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): @@ -307,7 +307,9 @@ class Filesystem(SCPICmdRead): - ``.writefile``: The ``FILESystem:WRITEFile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILESystem") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILESystem" + ) -> None: super().__init__(device, cmd_syntax) self._copy = FilesystemCopy(device, f"{self._cmd_syntax}:COPy") self._cwd = FilesystemCwd(device, f"{self._cmd_syntax}:CWD") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py index 3b38a7c8..0c36283e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): @@ -97,7 +97,7 @@ class Gpibusb(SCPICmdRead): - ``.id``: The ``GPIBUsb:ID`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "GPIBUsb") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "GPIBUsb") -> None: super().__init__(device, cmd_syntax) self._address = GpibusbAddress(device, f"{self._cmd_syntax}:ADDress") self._hwversion = GpibusbHwversion(device, f"{self._cmd_syntax}:HWVersion") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py index f3859f68..e2263abe 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyView(SCPICmdWrite, SCPICmdRead): @@ -239,7 +239,7 @@ class Hardcopy(SCPICmdWrite, SCPICmdRead): - ``.view``: The ``HARDCopy:VIEW`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HARDCopy") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HARDCopy") -> None: super().__init__(device, cmd_syntax) self._filename = HardcopyFilename(device, f"{self._cmd_syntax}:FILEName") self._layout = HardcopyLayout(device, f"{self._cmd_syntax}:LAYout") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py index a40bedb9..20ff73d6 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Hdr(SCPICmdWrite, SCPICmdRead): @@ -52,5 +52,5 @@ class Hdr(SCPICmdWrite, SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HDR") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HDR") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py index 02339745..0a68ca11 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramState(SCPICmdWrite, SCPICmdRead): @@ -355,7 +355,7 @@ class Histogram(SCPICmdRead): - ``.state``: The ``HIStogram:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HIStogram") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HIStogram") -> None: super().__init__(device, cmd_syntax) self._box = HistogramBox(device, f"{self._cmd_syntax}:BOX") self._boxpcnt = HistogramBoxpcnt(device, f"{self._cmd_syntax}:BOXPcnt") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py index 38029d48..7a48afb4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py @@ -146,7 +146,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalTimestampRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): @@ -200,7 +200,7 @@ class HorizontalTimestamp(SCPICmdRead): - ``.ref``: The ``HORizontal:TIMEStamp:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalTimestampChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalTimestampChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -414,7 +414,7 @@ class HorizontalModeAuto(SCPICmdRead): - ``.limitrecordlen``: The ``HORizontal:MODE:AUTO:LIMITrecordlen`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._limitrecordlen = HorizontalModeAutoLimitrecordlen( device, f"{self._cmd_syntax}:LIMITrecordlen" @@ -481,7 +481,7 @@ class HorizontalMode(SCPICmdWrite, SCPICmdRead): - ``.scale``: The ``HORizontal:MODE:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auto = HorizontalModeAuto(device, f"{self._cmd_syntax}:AUTO") self._recordlength = HorizontalModeRecordlength(device, f"{self._cmd_syntax}:RECOrdlength") @@ -633,7 +633,7 @@ class HorizontalMainUnits(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._string = HorizontalMainUnitsString(device, f"{self._cmd_syntax}:STRing") @@ -796,7 +796,7 @@ class HorizontalMainDelay(SCPICmdRead): - ``.time``: The ``HORizontal:MAIn:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalMainDelayMode(device, f"{self._cmd_syntax}:MODe") self._position = HorizontalMainDelayPosition(device, f"{self._cmd_syntax}:POSition") @@ -912,7 +912,7 @@ class HorizontalMain(SCPICmdRead): - ``.delay``: The ``HORizontal:MAIn:DELay`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._interpratio = HorizontalMainInterpratio(device, f"{self._cmd_syntax}:INTERPRatio") self._scale = HorizontalMainScale(device, f"{self._cmd_syntax}:SCAle") @@ -1061,7 +1061,7 @@ class HorizontalFastframeXzeroSelected(SCPICmdRead): - ``.ref``: The ``HORizontal:FASTframe:XZEro:SELECTED:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeXzeroSelectedChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeXzeroSelectedChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1197,7 +1197,7 @@ class HorizontalFastframeXzeroFrame(SCPICmdRead): - ``.ref``: The ``HORizontal:FASTframe:XZEro:FRAme:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeXzeroFrameChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeXzeroFrameChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1318,7 +1318,7 @@ class HorizontalFastframeXzeroAll(SCPICmdRead): - ``.ref``: The ``HORizontal:FASTframe:XZEro:ALL:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeXzeroAllChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeXzeroAllChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1393,7 +1393,7 @@ class HorizontalFastframeXzero(SCPICmdRead): - ``.selected``: The ``HORizontal:FASTframe:XZEro:SELECTED`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = HorizontalFastframeXzeroAll(device, f"{self._cmd_syntax}:ALL") self._frame = HorizontalFastframeXzeroFrame(device, f"{self._cmd_syntax}:FRAme") @@ -1628,7 +1628,7 @@ class HorizontalFastframeTimestampSelected(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:TIMEStamp:SELECTED:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeTimestampSelectedChannel] = ( DefaultDictPassKeyToFactory( @@ -1900,7 +1900,7 @@ class HorizontalFastframeTimestampFrame(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:TIMEStamp:FRAMe:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeTimestampFrameChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeTimestampFrameChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2149,7 +2149,7 @@ class HorizontalFastframeTimestampDelta(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:TIMEStamp:DELTa:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeTimestampDeltaChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeTimestampDeltaChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2398,7 +2398,7 @@ class HorizontalFastframeTimestampBetween(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:TIMEStamp:BETWeen:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeTimestampBetweenChannel] = ( DefaultDictPassKeyToFactory( @@ -2649,7 +2649,7 @@ class HorizontalFastframeTimestampAll(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:TIMEStamp:ALL:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeTimestampAllChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeTimestampAllChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2794,7 +2794,7 @@ class HorizontalFastframeTimestamp(SCPICmdRead): - ``.selected``: The ``HORizontal:FASTframe:TIMEStamp:SELECTED`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = HorizontalFastframeTimestampAll(device, f"{self._cmd_syntax}:ALL") self._between = HorizontalFastframeTimestampBetween(device, f"{self._cmd_syntax}:BETWeen") @@ -3190,7 +3190,7 @@ class HorizontalFastframeSelected(SCPICmdRead): - ``.source``: The ``HORizontal:FASTframe:SELECTED:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeSelectedChannel] = DefaultDictPassKeyToFactory( lambda x: HorizontalFastframeSelectedChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3381,7 +3381,7 @@ class HorizontalFastframeRef(SCPICmdRead): - ``.source``: The ``HORizontal:FASTframe:REF:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frame = HorizontalFastframeRefFrame(device, f"{self._cmd_syntax}:FRAme") self._source = HorizontalFastframeRefSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3583,7 +3583,7 @@ class HorizontalFastframeMultipleframesNumframes(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:MULtipleframes:NUMFRames:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeMultipleframesNumframesChannel] = ( DefaultDictPassKeyToFactory( @@ -3904,7 +3904,7 @@ class HorizontalFastframeMultipleframesFramestart(SCPICmdRead): - ``.d``: The ``HORizontal:FASTframe:MULtipleframes:FRAMESTart:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, HorizontalFastframeMultipleframesFramestartChannel] = ( DefaultDictPassKeyToFactory( @@ -4071,7 +4071,7 @@ class HorizontalFastframeMultipleframes(SCPICmdRead): - ``.numframes``: The ``HORizontal:FASTframe:MULtipleframes:NUMFRames`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._framestart = HorizontalFastframeMultipleframesFramestart( device, f"{self._cmd_syntax}:FRAMESTart" @@ -4281,7 +4281,7 @@ class HorizontalFastframe(SCPICmdRead): - ``.xzero``: The ``HORizontal:FASTframe:XZEro`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = HorizontalFastframeCount(device, f"{self._cmd_syntax}:COUNt") self._framelock = HorizontalFastframeFramelock(device, f"{self._cmd_syntax}:FRAMELock") @@ -4755,7 +4755,7 @@ class HorizontalDigitalSamplerate(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:SAMPLERate:MAIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalSamplerateMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalSamplerateMain(device, f"{self._cmd_syntax}:MAIn") @@ -4864,7 +4864,7 @@ class HorizontalDigitalRecordlength(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:RECOrdlength:MAIn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalRecordlengthMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalRecordlengthMain(device, f"{self._cmd_syntax}:MAIn") @@ -4947,7 +4947,7 @@ class HorizontalDigitalMagnivu(SCPICmdRead): - ``.position``: The ``HORizontal:DIGital:MAGnivu:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = HorizontalDigitalMagnivuPosition(device, f"{self._cmd_syntax}:POSition") @@ -4991,7 +4991,7 @@ class HorizontalDigital(SCPICmdRead): - ``.samplerate``: The ``HORizontal:DIGital:SAMPLERate`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._recordlength = HorizontalDigitalRecordlength( @@ -5127,7 +5127,9 @@ class Horizontal(SCPICmdRead): - ``.timestamp``: The ``HORizontal:TIMEStamp`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._acqduration = HorizontalAcqduration(device, f"{self._cmd_syntax}:ACQDURATION") self._acqlength = HorizontalAcqlength(device, f"{self._cmd_syntax}:ACQLENGTH") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py index ee6634d7..8de8fb03 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LimitTemplateToleranceVertical(SCPICmdWrite, SCPICmdRead): @@ -137,7 +137,7 @@ class LimitTemplateTolerance(SCPICmdRead): - ``.vertical``: The ``LIMit:TEMPlate:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = LimitTemplateToleranceHorizontal( device, f"{self._cmd_syntax}:HORizontal" @@ -301,7 +301,7 @@ class LimitTemplate(SCPICmdRead): - ``.tolerance``: The ``LIMit:TEMPlate:TOLerance`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destination = LimitTemplateDestination(device, f"{self._cmd_syntax}:DESTination") self._source = LimitTemplateSource(device, f"{self._cmd_syntax}:SOUrce") @@ -576,7 +576,7 @@ class LimitSavewfm(SCPICmdWrite, SCPICmdRead): - ``.filename``: The ``LIMit:SAVEWFM:FILEName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = LimitSavewfmFilename(device, f"{self._cmd_syntax}:FILEName") @@ -713,7 +713,7 @@ class LimitHighlighthits(SCPICmdWrite, SCPICmdRead): - ``.reset``: The ``LIMit:HIGHLIGHTHits:RESet`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reset = LimitHighlighthitsReset(device, f"{self._cmd_syntax}:RESet") @@ -902,7 +902,7 @@ class LimitCompare(SCPICmdWrite, SCPICmdRead): - ``.ref``: The ``LIMit:COMpare:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, LimitCompareChannel] = DefaultDictPassKeyToFactory( lambda x: LimitCompareChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1063,7 +1063,7 @@ class Limit(SCPICmdRead): - ``.template``: The ``LIMit:TEMPlate`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LIMit") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LIMit") -> None: super().__init__(device, cmd_syntax) self._beep = LimitBeep(device, f"{self._cmd_syntax}:BEEP") self._compare = LimitCompare(device, f"{self._cmd_syntax}:COMpare") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py index a5f0cd1f..acefdfe5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkTotal(SCPICmdRead): @@ -110,7 +110,7 @@ class MarkSelectedZoom(SCPICmdRead): - ``.scale``: The ``MARK:SELECTED:ZOOm:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = MarkSelectedZoomPosition(device, f"{self._cmd_syntax}:POSition") self._scale = MarkSelectedZoomScale(device, f"{self._cmd_syntax}:SCAle") @@ -346,7 +346,7 @@ class MarkSelected(SCPICmdRead): - ``.zoom``: The ``MARK:SELECTED:ZOOm`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._end = MarkSelectedEnd(device, f"{self._cmd_syntax}:END") self._focus = MarkSelectedFocus(device, f"{self._cmd_syntax}:FOCUS") @@ -654,7 +654,7 @@ class Mark(SCPICmdWrite, SCPICmdRead): - ``.total``: The ``MARK:TOTal`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MARK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MARK") -> None: super().__init__(device, cmd_syntax) self._create = MarkCreate(device, f"{self._cmd_syntax}:CREATE") self._delete = MarkDelete(device, f"{self._cmd_syntax}:DELEte") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py index 0f703aff..5c0f152b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py @@ -185,7 +185,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): @@ -398,7 +398,7 @@ class MaskUserSegItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:USER:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskUserSegItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskUserSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -689,7 +689,7 @@ class MaskUser(SCPICmdRead): - ``.width``: The ``MASK:USER:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MaskUserAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._bitrate = MaskUserBitrate(device, f"{self._cmd_syntax}:BITRate") @@ -1182,7 +1182,7 @@ class MaskTestStop(SCPICmdRead): - ``.failure``: The ``MASK:TESt:STOP:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failure = MaskTestStopFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1337,7 +1337,7 @@ class MaskTestSrq(SCPICmdRead): - ``.failure``: The ``MASK:TESt:SRQ:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestSrqCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestSrqFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1468,7 +1468,7 @@ class MaskTestSavewfm(SCPICmdWrite, SCPICmdRead): - ``.filename``: The ``MASK:TESt:SAVEWFM:FILEName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filename = MaskTestSavewfmFilename(device, f"{self._cmd_syntax}:FILEName") @@ -1556,7 +1556,7 @@ class MaskTestSample(SCPICmdWrite, SCPICmdRead): - ``.threshold``: The ``MASK:TESt:SAMple:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._threshold = MaskTestSampleThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -1657,7 +1657,7 @@ class MaskTestLog(SCPICmdRead): - ``.failure``: The ``MASK:TESt:LOG:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failure = MaskTestLogFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1819,7 +1819,7 @@ class MaskTestBeep(SCPICmdRead): - ``.failure``: The ``MASK:TESt:BEEP:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestBeepCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestBeepFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1954,7 +1954,7 @@ class MaskTestAux(SCPICmdRead): - ``.failure``: The ``MASK:TESt:AUX:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestAuxCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestAuxFailure(device, f"{self._cmd_syntax}:FAILure") @@ -2046,7 +2046,7 @@ class MaskTest(SCPICmdRead): - ``.waveform``: The ``MASK:TESt:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._aux = MaskTestAux(device, f"{self._cmd_syntax}:AUX") self._beep = MaskTestBeep(device, f"{self._cmd_syntax}:BEEP") @@ -2722,7 +2722,7 @@ class MaskSegItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskSegItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -3158,7 +3158,7 @@ class MaskMaskpre(SCPICmdRead): - ``.width``: The ``MASK:MASKPRE:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MaskMaskpreAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._hscale = MaskMaskpreHscale(device, f"{self._cmd_syntax}:HSCAle") @@ -3583,7 +3583,7 @@ class MaskMargin(SCPICmdRead): - ``.state``: The ``MASK:MARgin:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._percent = MaskMarginPercent(device, f"{self._cmd_syntax}:PERCent") self._state = MaskMarginState(device, f"{self._cmd_syntax}:STATE") @@ -3755,7 +3755,7 @@ class MaskFilterOrr(SCPICmdRead): - ``.vert_index``: The ``MASK:FILTer:ORR:VERT_INDEX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._vert_index = MaskFilterOrrVertIndex(device, f"{self._cmd_syntax}:VERT_INDEX") @@ -3813,7 +3813,7 @@ class MaskFilter(SCPICmdWrite, SCPICmdRead): - ``.orr``: The ``MASK:FILTer:ORR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._orr = MaskFilterOrr(device, f"{self._cmd_syntax}:ORR") @@ -4000,7 +4000,7 @@ class MaskCountSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``MASK:COUNt:SEG:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskCountSegItemHits(device, f"{self._cmd_syntax}:HITS") @@ -4091,7 +4091,7 @@ class MaskCount(SCPICmdWrite, SCPICmdRead): - ``.waveforms``: The ``MASK:COUNt:WAVEFORMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failures = MaskCountFailures(device, f"{self._cmd_syntax}:FAILURES") self._hits = MaskCountHits(device, f"{self._cmd_syntax}:HITS") @@ -4304,7 +4304,7 @@ class MaskCopy(SCPICmdRead): - ``.user``: The ``MASK:COPy:USER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._user = MaskCopyUser(device, f"{self._cmd_syntax}:USER") @@ -4469,7 +4469,7 @@ class MaskAutosetUser(SCPICmdRead): - ``.zero``: The ``MASK:AUTOSet:USER:ZERo`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._one = MaskAutosetUserOne(device, f"{self._cmd_syntax}:ONE") self._type = MaskAutosetUserType(device, f"{self._cmd_syntax}:TYPe") @@ -4908,7 +4908,7 @@ class MaskAutoset(SCPICmdRead): - ``.vscale``: The ``MASK:AUTOSet:VSCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoadjust = MaskAutosetAutoadjust(device, f"{self._cmd_syntax}:AUTOAdjust") self._hpos = MaskAutosetHpos(device, f"{self._cmd_syntax}:HPOS") @@ -5428,7 +5428,7 @@ class MaskAutoadjust(SCPICmdWrite, SCPICmdRead): - ``.vdelta``: The ``MASK:AUTOAdjust:VDELTA`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hdelta = MaskAutoadjustHdelta(device, f"{self._cmd_syntax}:HDELTA") self._vdelta = MaskAutoadjustVdelta(device, f"{self._cmd_syntax}:VDELTA") @@ -5530,7 +5530,7 @@ class Mask(SCPICmdRead): - ``.user``: The ``MASK:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._autoadjust = MaskAutoadjust(device, f"{self._cmd_syntax}:AUTOAdjust") self._autoset = MaskAutoset(device, f"{self._cmd_syntax}:AUTOSet") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py index 54ec2468..fa4f1ea7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathItemVerticalScale(SCPICmdWrite, SCPICmdRead): @@ -202,7 +202,7 @@ class MathItemVertical(SCPICmdRead): - ``.scale``: The ``MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoscale = MathItemVerticalAutoscale(device, f"{self._cmd_syntax}:AUTOSCale") self._position = MathItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") @@ -814,7 +814,7 @@ class MathItemSpectral(SCPICmdRead): - ``.window``: The ``MATH:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._center = MathItemSpectralCenter(device, f"{self._cmd_syntax}:CENTER") self._gatepos = MathItemSpectralGatepos(device, f"{self._cmd_syntax}:GATEPOS") @@ -1376,7 +1376,7 @@ class MathItemLabel(SCPICmdRead): - ``.ypos``: The ``MATH:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = MathItemLabelName(device, f"{self._cmd_syntax}:NAMe") self._xpos = MathItemLabelXpos(device, f"{self._cmd_syntax}:XPOS") @@ -1535,7 +1535,7 @@ class MathItemFilter(SCPICmdRead): - ``.risetime``: The ``MATH:FILTer:RISetime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MathItemFilterMode(device, f"{self._cmd_syntax}:MODe") self._risetime = MathItemFilterRisetime(device, f"{self._cmd_syntax}:RISetime") @@ -1668,7 +1668,7 @@ class MathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH") -> None: super().__init__(device, cmd_syntax) self._define = MathItemDefine(device, f"{self._cmd_syntax}:DEFine") self._filter = MathItemFilter(device, f"{self._cmd_syntax}:FILTer") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py index 92faf6fc..3f9e1470 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MatharbfltItemReadfile(SCPICmdWrite): @@ -85,7 +85,7 @@ class MatharbfltItem(ValidatedDynamicNumberCmd, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATHArbflt" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATHArbflt" ) -> None: super().__init__(device, cmd_syntax) self._filepath = MatharbfltItemFilepath(device, f"{self._cmd_syntax}:FILepath") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py index 9ae8136b..7d9745e8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MchItemMinamplitude(SCPICmdWrite): @@ -164,7 +164,7 @@ class MchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.maxamplitude``: The ``MCH:MAXAMPLitude`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MCH") -> None: super().__init__(device, cmd_syntax) self._minamplitude = MchItemMinamplitude(device, f"{self._cmd_syntax}:MINAMPLitude") self._maxamplitude = MchItemMaxamplitude(device, f"{self._cmd_syntax}:MAXAMPLitude") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py index bc8134ad..4efa9122 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py @@ -139,7 +139,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): @@ -236,7 +236,7 @@ class MeasurementStatistics(SCPICmdRead): - ``.weighting``: The ``MEASUrement:STATIstics:WEIghting`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MeasurementStatisticsCount(device, f"{self._cmd_syntax}:COUNt") self._mode = MeasurementStatisticsMode(device, f"{self._cmd_syntax}:MODe") @@ -369,7 +369,7 @@ class MeasurementSource1(SCPICmdRead): - ``.sigtype``: The ``MEASUrement:SOUrce1:SIGType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sigtype = MeasurementSource1Sigtype(device, f"{self._cmd_syntax}:SIGType") @@ -502,7 +502,7 @@ class MeasurementReflevelPercent(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -730,7 +730,7 @@ class MeasurementReflevelAbsolute(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -852,7 +852,7 @@ class MeasurementReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -1307,7 +1307,7 @@ class MeasurementMeasItemSource1(SCPICmdWrite, SCPICmdRead): - ``.sigtype``: The ``MEASUrement:MEAS:SOUrce1:SIGType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sigtype = MeasurementMeasItemSource1Sigtype(device, f"{self._cmd_syntax}:SIGType") @@ -1454,7 +1454,7 @@ class MeasurementMeasItemReflevelPercent(SCPICmdRead): - ``.mid``: The ``MEASUrement:MEAS:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementMeasItemReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementMeasItemReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -1699,7 +1699,7 @@ class MeasurementMeasItemReflevelAbsolute(SCPICmdRead): - ``.mid``: The ``MEASUrement:MEAS:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementMeasItemReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementMeasItemReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -1825,7 +1825,7 @@ class MeasurementMeasItemReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:MEAS:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementMeasItemReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementMeasItemReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -2105,7 +2105,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementMeasItemDelayDirection(device, f"{self._cmd_syntax}:DIREction") self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -2236,7 +2236,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MeasurementMeasItemCount(device, f"{self._cmd_syntax}:COUNt") self._delay = MeasurementMeasItemDelay(device, f"{self._cmd_syntax}:DELay") @@ -3018,7 +3018,7 @@ class MeasurementImmedSource1(SCPICmdWrite, SCPICmdRead): - ``.sigtype``: The ``MEASUrement:IMMed:SOUrce1:SIGType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sigtype = MeasurementImmedSource1Sigtype(device, f"{self._cmd_syntax}:SIGType") @@ -3159,7 +3159,7 @@ class MeasurementImmedReflevelPercent(SCPICmdRead): - ``.mid``: The ``MEASUrement:IMMed:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementImmedReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementImmedReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -3395,7 +3395,7 @@ class MeasurementImmedReflevelAbsolute(SCPICmdRead): - ``.mid``: The ``MEASUrement:IMMed:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementImmedReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementImmedReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -3518,7 +3518,7 @@ class MeasurementImmedReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:IMMed:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementImmedReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementImmedReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -3766,7 +3766,7 @@ class MeasurementImmedDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:IMMed:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementImmedDelayDirection(device, f"{self._cmd_syntax}:DIREction") self._edge2 = MeasurementImmedDelayEdge2(device, f"{self._cmd_syntax}:EDGE2") @@ -3899,7 +3899,7 @@ class MeasurementImmed(SCPICmdRead): - ``.value``: The ``MEASUrement:IMMed:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = MeasurementImmedDelay(device, f"{self._cmd_syntax}:DELay") self._method = MeasurementImmedMethod(device, f"{self._cmd_syntax}:METHod") @@ -4499,7 +4499,7 @@ class MeasurementAnnotation(SCPICmdRead): - ``.y``: The ``MEASUrement:ANNOTation:Y`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._immedstate = MeasurementAnnotationImmedstate(device, f"{self._cmd_syntax}:IMMEDSTAte") self._numx = MeasurementAnnotationNumx(device, f"{self._cmd_syntax}:NUMX") @@ -4716,7 +4716,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._annotation = MeasurementAnnotation(device, f"{self._cmd_syntax}:ANNOTation") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py index 93ef910a..99c61547 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MultiscopeStatus(SCPICmdRead): @@ -118,7 +118,9 @@ class Multiscope(SCPICmdRead): - ``.status``: The ``MULTiscope:STATUS`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MULTiscope") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MULTiscope" + ) -> None: super().__init__(device, cmd_syntax) self._config = MultiscopeConfig(device, f"{self._cmd_syntax}:CONFig") self._exit = MultiscopeExit(device, f"{self._cmd_syntax}:EXIT") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py index 557a7f8d..caa4f386 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Opcextended(SCPICmdWrite, SCPICmdRead): @@ -78,6 +78,6 @@ class Opcextended(SCPICmdWrite, SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "OPCEXtended" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "OPCEXtended" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py index bd2a0fc1..083acf60 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pcenable(SCPICmdWrite, SCPICmdRead): @@ -42,5 +42,5 @@ class Pcenable(SCPICmdWrite, SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PCENable") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PCENable") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py index 15bf8b38..c9ba456b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): @@ -112,7 +112,7 @@ class RecallSetup(SCPICmdWrite, SCPICmdRead): - ``.deskew``: The ``RECAll:SETUp:DESKew`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deskew = RecallSetupDeskew(device, f"{self._cmd_syntax}:DESKew") @@ -184,7 +184,7 @@ class Recall(SCPICmdRead): - ``.waveform``: The ``RECAll:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RECAll") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RECAll") -> None: super().__init__(device, cmd_syntax) self._mask = RecallMask(device, f"{self._cmd_syntax}:MASK") self._setup = RecallSetup(device, f"{self._cmd_syntax}:SETUp") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py index 35e9a77a..9d0eba81 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): @@ -106,7 +106,7 @@ class RefItemVertical(SCPICmdRead): - ``.scale``: The ``REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RefItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RefItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -313,7 +313,7 @@ class RefItemLabel(SCPICmdRead): - ``.ypos``: The ``REF:LABel:YPOS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = RefItemLabelName(device, f"{self._cmd_syntax}:NAMe") self._xpos = RefItemLabelXpos(device, f"{self._cmd_syntax}:XPOS") @@ -455,7 +455,7 @@ class RefItemHorizontal(SCPICmdRead): - ``.position``: The ``REF:HORizontal:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RefItemHorizontalPosition(device, f"{self._cmd_syntax}:POSition") @@ -506,7 +506,7 @@ class RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``REF:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._horizontal = RefItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._label = RefItemLabel(device, f"{self._cmd_syntax}:LABel") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py index 433a7a87..96122273 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformForcesamefilesize(SCPICmdWrite, SCPICmdRead): @@ -181,7 +181,7 @@ class SaveWaveformData(SCPICmdRead): - ``.stop``: The ``SAVe:WAVEform:DATa:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = SaveWaveformDataStart(device, f"{self._cmd_syntax}:STARt") self._stop = SaveWaveformDataStop(device, f"{self._cmd_syntax}:STOP") @@ -261,7 +261,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.forcesamefilesize``: The ``SAVe:WAVEform:FORCESAMEFilesize`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SaveWaveformData(device, f"{self._cmd_syntax}:DATa") self._fileformat = SaveWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") @@ -478,7 +478,7 @@ class SaveEventtable(SCPICmdRead): - ``.bus``: The ``SAVe:EVENTtable:BUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus: Dict[int, SaveEventtableBusItem] = DefaultDictPassKeyToFactory( lambda x: SaveEventtableBusItem(device, f"{self._cmd_syntax}:BUS{x}") @@ -520,7 +520,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") self._marks = SaveMarks(device, f"{self._cmd_syntax}:MARKS") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py index bbca8e1a..e2af215f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sds(SCPICmdWrite): @@ -44,5 +44,5 @@ class Sds(SCPICmdWrite): from 1 through 10; using an out-of-range value causes an error. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*SDS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*SDS") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py index 1b892196..081ce0ac 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveform(SCPICmdWrite, SCPICmdRead): @@ -446,7 +446,7 @@ class SaveonFile(SCPICmdRead): - ``.type``: The ``SAVEON:FILE:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autoinc = SaveonFileAutoinc(device, f"{self._cmd_syntax}:AUTOInc") self._count = SaveonFileCount(device, f"{self._cmd_syntax}:COUNt") @@ -660,7 +660,7 @@ class Saveon(SCPICmdWrite, SCPICmdRead): - ``.waveform``: The ``SAVEON:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVEON") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVEON") -> None: super().__init__(device, cmd_syntax) self._count = SaveonCount(device, f"{self._cmd_syntax}:COUNt") self._file = SaveonFile(device, f"{self._cmd_syntax}:FILE") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py index 8a8d7b9f..17b17a3c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py @@ -726,7 +726,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchStop(SCPICmdWrite, SCPICmdRead): @@ -889,7 +889,7 @@ class SearchSearchItemTriggerAWindowThresholdLow(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:THReshold:LOW:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAWindowThresholdLowChannel] = ( DefaultDictPassKeyToFactory( @@ -1106,7 +1106,7 @@ class SearchSearchItemTriggerAWindowThresholdHigh(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:THReshold:HIGH:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAWindowThresholdHighChannel] = ( DefaultDictPassKeyToFactory( @@ -1232,7 +1232,7 @@ class SearchSearchItemTriggerAWindowThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:THReshold:LOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerAWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerAWindowThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -1322,7 +1322,7 @@ class SearchSearchItemTriggerAWindow(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:WINdow:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = SearchSearchItemTriggerAWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._threshold = SearchSearchItemTriggerAWindowThreshold( @@ -1543,7 +1543,7 @@ class SearchSearchItemTriggerAWidthPolarity(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:WIDth:POLarity:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAWidthPolarityChannel] = ( DefaultDictPassKeyToFactory( @@ -1724,7 +1724,7 @@ class SearchSearchItemTriggerAWidth(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAWidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -2028,7 +2028,7 @@ class SearchSearchItemTriggerATransitionThresholdLow(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:THReshold:LOW:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerATransitionThresholdLowChannel] = ( DefaultDictPassKeyToFactory( @@ -2246,7 +2246,7 @@ class SearchSearchItemTriggerATransitionThresholdHigh(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:THReshold:HIGH:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerATransitionThresholdHighChannel] = ( DefaultDictPassKeyToFactory( @@ -2373,7 +2373,7 @@ class SearchSearchItemTriggerATransitionThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:THReshold:LOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerATransitionThresholdHigh( device, f"{self._cmd_syntax}:HIGH" @@ -2536,7 +2536,7 @@ class SearchSearchItemTriggerATransitionPolarity(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:POLarity:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerATransitionPolarityChannel] = ( DefaultDictPassKeyToFactory( @@ -2702,7 +2702,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTATime" @@ -2944,7 +2944,7 @@ class SearchSearchItemTriggerATimeoutPolarity(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:POLarity:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerATimeoutPolarityChannel] = ( DefaultDictPassKeyToFactory( @@ -3072,7 +3072,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -3228,7 +3228,7 @@ class SearchSearchItemTriggerAStateClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:STATE:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerAStateClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerAStateClockSource( @@ -3311,7 +3311,7 @@ class SearchSearchItemTriggerAState(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerAStateClock(device, f"{self._cmd_syntax}:CLOCk") self._when = SearchSearchItemTriggerAStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3527,7 +3527,7 @@ class SearchSearchItemTriggerASetholdDataThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdDataThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3692,7 +3692,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -3861,7 +3861,7 @@ class SearchSearchItemTriggerASetholdClockThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -4052,7 +4052,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -4157,7 +4157,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.settime``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -4425,7 +4425,7 @@ class SearchSearchItemTriggerARuntThresholdLow(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:LOW:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerARuntThresholdLowChannel] = ( DefaultDictPassKeyToFactory( @@ -4640,7 +4640,7 @@ class SearchSearchItemTriggerARuntThresholdHigh(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:HIGH:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerARuntThresholdHighChannel] = ( DefaultDictPassKeyToFactory( @@ -4767,7 +4767,7 @@ class SearchSearchItemTriggerARuntThreshold(SCPICmdRead): - ``.low``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:THReshold:LOW`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerARuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = SearchSearchItemTriggerARuntThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -4922,7 +4922,7 @@ class SearchSearchItemTriggerARuntPolarity(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:POLarity:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerARuntPolarityChannel] = ( DefaultDictPassKeyToFactory( @@ -5065,7 +5065,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -5217,7 +5217,7 @@ class SearchSearchItemTriggerAPulse(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:PULse:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerAPulseSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5341,7 +5341,7 @@ class SearchSearchItemTriggerAPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerAPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -5419,7 +5419,7 @@ class SearchSearchItemTriggerAPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._when = SearchSearchItemTriggerAPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -5563,7 +5563,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -5785,7 +5785,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -5947,7 +5947,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -6127,7 +6127,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6393,7 +6393,7 @@ class SearchSearchItemTriggerAGlitchPolarity(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:GLItch:POLarity:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAGlitchPolarityChannel] = ( DefaultDictPassKeyToFactory( @@ -6522,7 +6522,7 @@ class SearchSearchItemTriggerAGlitch(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerAGlitchPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -6743,7 +6743,7 @@ class SearchSearchItemTriggerAEdgeSlope(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SLOpe:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAEdgeSlopeChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerAEdgeSlopeChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6867,7 +6867,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -7089,7 +7089,7 @@ class SearchSearchItemTriggerADdrmemoryReflevelStrobe(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRMemory:REFLevel:STROBE:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrmemoryReflevelStrobeHigh( device, f"{self._cmd_syntax}:HIGH" @@ -7289,7 +7289,7 @@ class SearchSearchItemTriggerADdrmemoryReflevelData(SCPICmdRead): - ``.mid``: The ``SEARCH:SEARCH:TRIGger:A:DDRMemory:REFLevel:DATa:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = SearchSearchItemTriggerADdrmemoryReflevelDataHigh( device, f"{self._cmd_syntax}:HIGH" @@ -7404,7 +7404,7 @@ class SearchSearchItemTriggerADdrmemoryReflevel(SCPICmdRead): - ``.strobe``: The ``SEARCH:SEARCH:TRIGger:A:DDRMemory:REFLevel:STROBE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerADdrmemoryReflevelData( device, f"{self._cmd_syntax}:DATa" @@ -7819,7 +7819,7 @@ class SearchSearchItemTriggerADdrmemory(SCPICmdRead): - ``.strobesource``: The ``SEARCH:SEARCH:TRIGger:A:DDRMemory:STROBEsource`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autobitrate = SearchSearchItemTriggerADdrmemoryAutobitrate( device, f"{self._cmd_syntax}:AUTOBitrate" @@ -8378,7 +8378,7 @@ class SearchSearchItemTriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -8464,7 +8464,7 @@ class SearchSearchItemTriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -8572,7 +8572,7 @@ class SearchSearchItemTriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbSplitPortFormat( device, f"{self._cmd_syntax}:FORMat" @@ -8711,7 +8711,7 @@ class SearchSearchItemTriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbSplitHubFormat( device, f"{self._cmd_syntax}:FORMat" @@ -8824,7 +8824,7 @@ class SearchSearchItemTriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -8882,7 +8882,7 @@ class SearchSearchItemTriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -9079,7 +9079,7 @@ class SearchSearchItemTriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = SearchSearchItemTriggerABusUsbSofFramenumber( @@ -9252,7 +9252,7 @@ class SearchSearchItemTriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, SearchSearchItemTriggerABusUsbPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -9422,7 +9422,7 @@ class SearchSearchItemTriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, SearchSearchItemTriggerABusUsbPatternCharItem] = ( DefaultDictPassKeyToFactory( @@ -9643,7 +9643,7 @@ class SearchSearchItemTriggerABusUsbPackets(SCPICmdWrite, SCPICmdRead): - ``.tppackets``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:PACKets:TPPACKets`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lmppackets = SearchSearchItemTriggerABusUsbPacketsLmppackets( device, f"{self._cmd_syntax}:LMPPACKets" @@ -9942,7 +9942,7 @@ class SearchSearchItemTriggerABusUsbError(SCPICmdRead): - ``.orderedset``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ERROR:ORDERedset`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusUsbErrorChar(device, f"{self._cmd_syntax}:CHAR") self._disparity = SearchSearchItemTriggerABusUsbErrorDisparity( @@ -10146,7 +10146,7 @@ class SearchSearchItemTriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbEndpointFormat( device, f"{self._cmd_syntax}:FORMat" @@ -10468,7 +10468,7 @@ class SearchSearchItemTriggerABusUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -10767,7 +10767,7 @@ class SearchSearchItemTriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = SearchSearchItemTriggerABusUsbCharacterSymbolMinus( device, f"{self._cmd_syntax}:MINus" @@ -10874,7 +10874,7 @@ class SearchSearchItemTriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = SearchSearchItemTriggerABusUsbCharacterSymbol( @@ -11031,7 +11031,7 @@ class SearchSearchItemTriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusUsbAddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -11166,7 +11166,7 @@ class SearchSearchItemTriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = SearchSearchItemTriggerABusUsbCharacter( @@ -11782,7 +11782,7 @@ class SearchSearchItemTriggerABusSpiData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusSpiDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -11920,7 +11920,7 @@ class SearchSearchItemTriggerABusSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -12076,7 +12076,7 @@ class SearchSearchItemTriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, SearchSearchItemTriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -12194,7 +12194,7 @@ class SearchSearchItemTriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, SearchSearchItemTriggerABusS8b10bPatternCharItem] = ( DefaultDictPassKeyToFactory( @@ -12355,7 +12355,7 @@ class SearchSearchItemTriggerABusS8b10bError(SCPICmdRead): - ``.disparity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:ERROR:DISParity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusS8b10bErrorChar(device, f"{self._cmd_syntax}:CHAR") self._disparity = SearchSearchItemTriggerABusS8b10bErrorDisparity( @@ -12558,7 +12558,7 @@ class SearchSearchItemTriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = SearchSearchItemTriggerABusS8b10bCharacterSymbolMinus( device, f"{self._cmd_syntax}:MINus" @@ -12665,7 +12665,7 @@ class SearchSearchItemTriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusS8b10bCharacterChar( device, f"{self._cmd_syntax}:CHAR" @@ -12740,7 +12740,7 @@ class SearchSearchItemTriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = SearchSearchItemTriggerABusS8b10bCharacter( device, f"{self._cmd_syntax}:CHARacter" @@ -12978,7 +12978,7 @@ class SearchSearchItemTriggerABusS64b66bBlockonethentwo(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusS64b66bBlockonethentwoFormat( device, f"{self._cmd_syntax}:FORMat" @@ -13111,7 +13111,7 @@ class SearchSearchItemTriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusS64b66bBlockonePatternFormat( device, f"{self._cmd_syntax}:FORMat" @@ -13281,7 +13281,7 @@ class SearchSearchItemTriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = SearchSearchItemTriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -13370,7 +13370,7 @@ class SearchSearchItemTriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``SEARCH:SEARCH:TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = SearchSearchItemTriggerABusS64b66bBlockone( device, f"{self._cmd_syntax}:BLOCKONE" @@ -13564,7 +13564,7 @@ class SearchSearchItemTriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusRs232cDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -13708,7 +13708,7 @@ class SearchSearchItemTriggerABusRs232c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13839,7 +13839,7 @@ class SearchSearchItemTriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, SearchSearchItemTriggerABusPciePatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -13992,7 +13992,7 @@ class SearchSearchItemTriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, SearchSearchItemTriggerABusPciePatternCharItem] = ( DefaultDictPassKeyToFactory( @@ -14279,7 +14279,7 @@ class SearchSearchItemTriggerABusPcieError(SCPICmdRead): - ``.sync``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:ERROR:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusPcieErrorChar(device, f"{self._cmd_syntax}:CHAR") self._disparity = SearchSearchItemTriggerABusPcieErrorDisparity( @@ -14533,7 +14533,7 @@ class SearchSearchItemTriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = SearchSearchItemTriggerABusPcieCharacterSymbolMinus( device, f"{self._cmd_syntax}:MINus" @@ -14642,7 +14642,7 @@ class SearchSearchItemTriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = SearchSearchItemTriggerABusPcieCharacterChar( device, f"{self._cmd_syntax}:CHAR" @@ -14718,7 +14718,7 @@ class SearchSearchItemTriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = SearchSearchItemTriggerABusPcieCharacter( device, f"{self._cmd_syntax}:CHARacter" @@ -14981,7 +14981,7 @@ class SearchSearchItemTriggerABusParallelData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusParallelDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -15063,7 +15063,7 @@ class SearchSearchItemTriggerABusParallel(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:PARallel:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusParallelData(device, f"{self._cmd_syntax}:DATa") @@ -15153,7 +15153,7 @@ class SearchSearchItemTriggerABusMipidsioneYcbcrY(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:YCBCR:Y:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneYcbcrYQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -15285,7 +15285,7 @@ class SearchSearchItemTriggerABusMipidsioneYcbcrCr(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:YCBCR:CR:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneYcbcrCrQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -15417,7 +15417,7 @@ class SearchSearchItemTriggerABusMipidsioneYcbcrCb(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:YCBCR:CB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneYcbcrCbQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -15497,7 +15497,7 @@ class SearchSearchItemTriggerABusMipidsioneYcbcr(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:YCBCR:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._cb = SearchSearchItemTriggerABusMipidsioneYcbcrCb(device, f"{self._cmd_syntax}:CB") self._cr = SearchSearchItemTriggerABusMipidsioneYcbcrCr(device, f"{self._cmd_syntax}:CR") @@ -15600,7 +15600,7 @@ class SearchSearchItemTriggerABusMipidsioneWc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:WC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipidsioneWcValue( device, f"{self._cmd_syntax}:VALue" @@ -15766,7 +15766,7 @@ class SearchSearchItemTriggerABusMipidsioneRgbRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:RGB:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneRgbRedQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -15910,7 +15910,7 @@ class SearchSearchItemTriggerABusMipidsioneRgbGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:RGB:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneRgbGreenQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -16054,7 +16054,7 @@ class SearchSearchItemTriggerABusMipidsioneRgbBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:RGB:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipidsioneRgbBlueQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -16140,7 +16140,7 @@ class SearchSearchItemTriggerABusMipidsioneRgb(SCPICmdRead): - ``.red``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:RGB:RED`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusMipidsioneRgbBlue( device, f"{self._cmd_syntax}:BLUe" @@ -16247,7 +16247,7 @@ class SearchSearchItemTriggerABusMipidsionePixel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:PIXel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipidsionePixelValue( device, f"{self._cmd_syntax}:VALue" @@ -16383,7 +16383,7 @@ class SearchSearchItemTriggerABusMipidsionePayload(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMipidsionePayloadFormat( device, f"{self._cmd_syntax}:FORMat" @@ -16589,7 +16589,7 @@ class SearchSearchItemTriggerABusMipidsionePacketdata(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMipidsionePacketdataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -16735,7 +16735,7 @@ class SearchSearchItemTriggerABusMipidsioneOffset(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:OFFset:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipidsioneOffsetValue( device, f"{self._cmd_syntax}:VALue" @@ -17062,7 +17062,7 @@ class SearchSearchItemTriggerABusMipidsione(SCPICmdRead): - ``.ycbcr``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPIDSIOne:YCBCR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ackerrreport = SearchSearchItemTriggerABusMipidsioneAckerrreport( device, f"{self._cmd_syntax}:ACKERRreport" @@ -17629,7 +17629,7 @@ class SearchSearchItemTriggerABusMipicsitwoYuvY(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:YUV:Y:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoYuvYQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -17772,7 +17772,7 @@ class SearchSearchItemTriggerABusMipicsitwoYuvV(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:YUV:V:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoYuvVQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -17915,7 +17915,7 @@ class SearchSearchItemTriggerABusMipicsitwoYuvU(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:YUV:U:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoYuvUQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -18001,7 +18001,7 @@ class SearchSearchItemTriggerABusMipicsitwoYuv(SCPICmdRead): - ``.y``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:YUV:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._u = SearchSearchItemTriggerABusMipicsitwoYuvU(device, f"{self._cmd_syntax}:U") self._v = SearchSearchItemTriggerABusMipicsitwoYuvV(device, f"{self._cmd_syntax}:V") @@ -18104,7 +18104,7 @@ class SearchSearchItemTriggerABusMipicsitwoWc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:WC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipicsitwoWcValue( device, f"{self._cmd_syntax}:VALue" @@ -18270,7 +18270,7 @@ class SearchSearchItemTriggerABusMipicsitwoRgbRed(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:RGB:RED:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoRgbRedQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -18414,7 +18414,7 @@ class SearchSearchItemTriggerABusMipicsitwoRgbGreen(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:RGB:GREen:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoRgbGreenQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -18558,7 +18558,7 @@ class SearchSearchItemTriggerABusMipicsitwoRgbBlue(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:RGB:BLUe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoRgbBlueQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -18644,7 +18644,7 @@ class SearchSearchItemTriggerABusMipicsitwoRgb(SCPICmdRead): - ``.red``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:RGB:RED`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blue = SearchSearchItemTriggerABusMipicsitwoRgbBlue( device, f"{self._cmd_syntax}:BLUe" @@ -18781,7 +18781,7 @@ class SearchSearchItemTriggerABusMipicsitwoRaw(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:RAW:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qualifier = SearchSearchItemTriggerABusMipicsitwoRawQualifier( device, f"{self._cmd_syntax}:QUAlifier" @@ -18892,7 +18892,7 @@ class SearchSearchItemTriggerABusMipicsitwoPixel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:PIXel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipicsitwoPixelValue( device, f"{self._cmd_syntax}:VALue" @@ -19027,7 +19027,7 @@ class SearchSearchItemTriggerABusMipicsitwoPayload(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:PAYLoad:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMipicsitwoPayloadFormat( device, f"{self._cmd_syntax}:FORMat" @@ -19198,7 +19198,7 @@ class SearchSearchItemTriggerABusMipicsitwoPacketdata(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:PACKetdata:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMipicsitwoPacketdataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -19310,7 +19310,7 @@ class SearchSearchItemTriggerABusMipicsitwoOffset(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:OFFset:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusMipicsitwoOffsetValue( device, f"{self._cmd_syntax}:VALue" @@ -19552,7 +19552,7 @@ class SearchSearchItemTriggerABusMipicsitwo(SCPICmdRead): - ``.yuv``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIPICSITWo:YUV`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusMipicsitwoCondition( device, f"{self._cmd_syntax}:CONDition" @@ -20075,7 +20075,7 @@ class SearchSearchItemTriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -20490,7 +20490,7 @@ class SearchSearchItemTriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -20919,7 +20919,7 @@ class SearchSearchItemTriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMil1553bStatusAddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -21036,7 +21036,7 @@ class SearchSearchItemTriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -21219,7 +21219,7 @@ class SearchSearchItemTriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMil1553bDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -21456,7 +21456,7 @@ class SearchSearchItemTriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmd _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -21588,7 +21588,7 @@ class SearchSearchItemTriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead) _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMil1553bCommandCountFormat( device, f"{self._cmd_syntax}:FORMat" @@ -21733,7 +21733,7 @@ class SearchSearchItemTriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusMil1553bCommandAddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -21858,7 +21858,7 @@ class SearchSearchItemTriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -22051,7 +22051,7 @@ class SearchSearchItemTriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -22286,7 +22286,7 @@ class SearchSearchItemTriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusLinIdentifierFormat( device, f"{self._cmd_syntax}:FORMat" @@ -22505,7 +22505,7 @@ class SearchSearchItemTriggerABusLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusLinDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -22666,7 +22666,7 @@ class SearchSearchItemTriggerABusLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -22898,7 +22898,7 @@ class SearchSearchItemTriggerABusI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -23194,7 +23194,7 @@ class SearchSearchItemTriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusI2cAddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -23341,7 +23341,7 @@ class SearchSearchItemTriggerABusI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = SearchSearchItemTriggerABusI2cCondition( @@ -23518,7 +23518,7 @@ class SearchSearchItemTriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusFlexrayIdentifierFormat( device, f"{self._cmd_syntax}:FORMat" @@ -23766,7 +23766,7 @@ class SearchSearchItemTriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = SearchSearchItemTriggerABusFlexrayHeaderCyclecount( @@ -24159,7 +24159,7 @@ class SearchSearchItemTriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusFlexrayDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -24411,7 +24411,7 @@ class SearchSearchItemTriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusFlexrayCyclecountFormat( device, f"{self._cmd_syntax}:FORMat" @@ -24552,7 +24552,7 @@ class SearchSearchItemTriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -24849,7 +24849,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSourceport(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetTcpheaderSourceportFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25000,7 +25000,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderSeqnum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetTcpheaderSeqnumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25151,7 +25151,7 @@ class SearchSearchItemTriggerABusEthernetTcpheaderAcknum(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetTcpheaderAcknumFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25242,7 +25242,7 @@ class SearchSearchItemTriggerABusEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acknum = SearchSearchItemTriggerABusEthernetTcpheaderAcknum( device, f"{self._cmd_syntax}:ACKnum" @@ -25419,7 +25419,7 @@ class SearchSearchItemTriggerABusEthernetQtag(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:QTAG:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetQtagFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25559,7 +25559,7 @@ class SearchSearchItemTriggerABusEthernetMacType(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:TYPe:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetMacTypeFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25695,7 +25695,7 @@ class SearchSearchItemTriggerABusEthernetMacLength(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:LENgth:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetMacLengthFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25839,7 +25839,7 @@ class SearchSearchItemTriggerABusEthernetMacAddressSource(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetMacAddressSourceFormat( device, f"{self._cmd_syntax}:FORMat" @@ -25925,7 +25925,7 @@ class SearchSearchItemTriggerABusEthernetMacAddress(SCPICmdRead): tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerABusEthernetMacAddressSource( device, f"{self._cmd_syntax}:SOUrce" @@ -25967,7 +25967,7 @@ class SearchSearchItemTriggerABusEthernetMac(SCPICmdRead): - ``.type``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:MAC:TYPe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusEthernetMacAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -26077,7 +26077,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -26193,7 +26193,7 @@ class SearchSearchItemTriggerABusEthernetIpheaderProtocol(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetIpheaderProtocolFormat( device, f"{self._cmd_syntax}:FORMat" @@ -26281,7 +26281,7 @@ class SearchSearchItemTriggerABusEthernetIpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._protocol = SearchSearchItemTriggerABusEthernetIpheaderProtocol( device, f"{self._cmd_syntax}:PROTOcol" @@ -26462,7 +26462,7 @@ class SearchSearchItemTriggerABusEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusEthernetDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -26653,7 +26653,7 @@ class SearchSearchItemTriggerABusEthernet(SCPICmdRead): - ``.tcpheader``: The ``SEARCH:SEARCH:TRIGger:A:BUS:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusEthernetCondition( device, f"{self._cmd_syntax}:CONDition" @@ -26966,7 +26966,7 @@ class SearchSearchItemTriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusCanIdentifierDirection( device, f"{self._cmd_syntax}:DIRection" @@ -27261,7 +27261,7 @@ class SearchSearchItemTriggerABusCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = SearchSearchItemTriggerABusCanDataFormat( device, f"{self._cmd_syntax}:FORMat" @@ -27430,7 +27430,7 @@ class SearchSearchItemTriggerABusCan(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:CAN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -27568,7 +27568,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = SearchSearchItemTriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._ethernet = SearchSearchItemTriggerABusEthernet(device, f"{self._cmd_syntax}:ETHERnet") @@ -27985,7 +27985,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.window``: The ``SEARCH:SEARCH:TRIGger:A:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._ddrmemory = SearchSearchItemTriggerADdrmemory(device, f"{self._cmd_syntax}:DDRMemory") @@ -28363,7 +28363,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -28433,7 +28433,7 @@ class SearchSearchItemTrigerABusPcie(SCPICmdRead): - ``.syncheader``: The ``SEARCH:SEARCH:TRIGer:A:BUS:PCIE:SYNCHeader`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._syncheader = SearchSearchItemTrigerABusPcieSyncheader( device, f"{self._cmd_syntax}:SYNCHeader" @@ -28477,7 +28477,7 @@ class SearchSearchItemTrigerABus(SCPICmdRead): - ``.pcie``: The ``SEARCH:SEARCH:TRIGer:A:BUS:PCIE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pcie = SearchSearchItemTrigerABusPcie(device, f"{self._cmd_syntax}:PCIE") @@ -28510,7 +28510,7 @@ class SearchSearchItemTrigerA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIGer:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigerABus(device, f"{self._cmd_syntax}:BUS") @@ -28541,7 +28541,7 @@ class SearchSearchItemTriger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGer:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigerA(device, f"{self._cmd_syntax}:A") @@ -28658,7 +28658,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._state = SearchSearchItemState(device, f"{self._cmd_syntax}:STATE") @@ -28806,7 +28806,7 @@ class Search(SCPICmdRead): - ``.stop``: The ``SEARCH:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._markallevents = SearchMarkallevents(device, f"{self._cmd_syntax}:MARKALLevents") self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py index 7d31ee7c..2b5f6a2f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -158,7 +158,7 @@ class SelectDigtraces(SCPICmdRead): - ``.list``: The ``SELect:DIGTraces:LISt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._combination = SelectDigtracesCombination(device, f"{self._cmd_syntax}:COMbination") self._list = SelectDigtracesList(device, f"{self._cmd_syntax}:LISt") @@ -378,7 +378,7 @@ class Select(SCPICmdRead): - ``.ref``: The ``SELect:REF`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SelectBItem] = DefaultDictPassKeyToFactory( lambda x: SelectBItem(device, f"{self._cmd_syntax}:B{x}") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py index d85ad858..85f7d1a1 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SetupName(SCPICmdWrite, SCPICmdReadWithArguments): @@ -64,7 +64,7 @@ class Setup(SCPICmdRead): - ``.name``: The ``SETUp:NAMe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SETUp") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SETUp") -> None: super().__init__(device, cmd_syntax) self._name = SetupName(device, f"{self._cmd_syntax}:NAMe") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py index e8bc9681..80ca9d9f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemSetup(SCPICmdWrite, SCPICmdRead): @@ -57,7 +57,7 @@ class System(SCPICmdRead): - ``.setup``: The ``SYSTem:SETup`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SYSTem") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SYSTem") -> None: super().__init__(device, cmd_syntax) self._setup = SystemSetup(device, f"{self._cmd_syntax}:SETup") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py index 9c95e247..c6c4e0eb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TeklinkRefclk(SCPICmdWrite, SCPICmdRead): @@ -81,7 +81,7 @@ class Teklink(SCPICmdRead): - ``.refclk``: The ``TEKLink:REFClk`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TEKLink") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TEKLink") -> None: super().__init__(device, cmd_syntax) self._connection = TeklinkConnection(device, f"{self._cmd_syntax}:CONNection") self._refclk = TeklinkRefclk(device, f"{self._cmd_syntax}:REFClk") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py index f6512d5c..2f9cf138 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TestStop(SCPICmdWriteNoArguments): @@ -86,7 +86,7 @@ class TestResults(SCPICmdRead): - ``.verbose``: The ``TEST:RESults:VERBose`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._verbose = TestResultsVerbose(device, f"{self._cmd_syntax}:VERBose") @@ -145,7 +145,7 @@ class Test(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TEST") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TEST") -> None: super().__init__(device, cmd_syntax) self._results = TestResults(device, f"{self._cmd_syntax}:RESults") self._stop = TestStop(device, f"{self._cmd_syntax}:STOP") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py index 498e2dd7..7893170f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TrigAPlockStandard(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class TrigAPlock(SCPICmdRead): - ``.standard``: The ``TRIG:A:PLOCK:STANDARD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._standard = TrigAPlockStandard(device, f"{self._cmd_syntax}:STANDARD") @@ -103,7 +103,7 @@ class TrigA(SCPICmdRead): - ``.plock``: The ``TRIG:A:PLOCK`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._plock = TrigAPlock(device, f"{self._cmd_syntax}:PLOCK") @@ -134,7 +134,7 @@ class Trig(SCPICmdRead): - ``.a``: The ``TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIG") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIG") -> None: super().__init__(device, cmd_syntax) self._a = TrigA(device, f"{self._cmd_syntax}:A") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py index a5f29fbf..8458c617 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): @@ -79,7 +79,7 @@ class UsbtmcVendorid(SCPICmdRead): - ``.hexadecimal``: The ``USBTMC:VENDORID:HEXadecimal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decimal = UsbtmcVendoridDecimal(device, f"{self._cmd_syntax}:DECimal") self._hexadecimal = UsbtmcVendoridHexadecimal(device, f"{self._cmd_syntax}:HEXadecimal") @@ -201,7 +201,7 @@ class UsbtmcProductid(SCPICmdRead): - ``.hexadecimal``: The ``USBTMC:PRODUCTID:HEXadecimal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._decimal = UsbtmcProductidDecimal(device, f"{self._cmd_syntax}:DECimal") self._hexadecimal = UsbtmcProductidHexadecimal(device, f"{self._cmd_syntax}:HEXadecimal") @@ -265,7 +265,7 @@ class Usbtmc(SCPICmdRead): - ``.vendorid``: The ``USBTMC:VENDORID`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "USBTMC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "USBTMC") -> None: super().__init__(device, cmd_syntax) self._productid = UsbtmcProductid(device, f"{self._cmd_syntax}:PRODUCTID") self._serialnumber = UsbtmcSerialnumber(device, f"{self._cmd_syntax}:SERIALnumber") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py index c16b5cbd..c0df0597 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py @@ -60,7 +60,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VisualFileSave(SCPICmdWrite): @@ -114,7 +114,7 @@ class VisualFile(SCPICmdRead): - ``.save``: The ``VISual:FILE:SAVE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recall = VisualFileRecall(device, f"{self._cmd_syntax}:RECALL") self._save = VisualFileSave(device, f"{self._cmd_syntax}:SAVE") @@ -608,7 +608,7 @@ class VisualAreaItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.yposition``: The ``VISual:AREA:YPOSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = VisualAreaItemDisplay(device, f"{self._cmd_syntax}:DISplay") self._flip = VisualAreaItemFlip(device, f"{self._cmd_syntax}:FLIP") @@ -996,7 +996,7 @@ class Visual(SCPICmdRead): - ``.file``: The ``VISual:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "VISual") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "VISual") -> None: super().__init__(device, cmd_syntax) self._area: Dict[int, VisualAreaItem] = DefaultDictPassKeyToFactory( lambda x: VisualAreaItem(device, f"{self._cmd_syntax}:AREA{x}") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py index 95f6ddb9..1601bf97 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wavfrmstream(SCPICmdRead): @@ -44,6 +44,6 @@ class Wavfrmstream(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WAVFRMStream" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "WAVFRMStream" ) -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py index 54c1b766..ef4622a7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): @@ -555,7 +555,7 @@ class Wfminpre(SCPICmdRead): - ``.yzero``: The ``WFMInpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMInpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMInpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfminpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfminpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py index 09121797..face5cd5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): @@ -498,7 +498,7 @@ class Wfmoutpre(SCPICmdRead): - ``.yzero``: The ``WFMOutpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMOutpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMOutpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfmoutpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfmoutpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py index 96fb3cde..b78ef3c0 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmpreNrFr(SCPICmdRead): @@ -53,7 +53,7 @@ class Wfmpre(SCPICmdRead): - ``.nr_fr``: The ``WFMPre:NR_FR`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMPre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMPre") -> None: super().__init__(device, cmd_syntax) self._nr_fr = WfmpreNrFr(device, f"{self._cmd_syntax}:NR_FR") diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py index 1f945e5c..a520a5f4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): @@ -241,7 +241,7 @@ class ZoomZoom1RefItemVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1RefItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1RefItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -383,7 +383,7 @@ class ZoomZoom1RefItemHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:REF:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1RefItemHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1RefItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -494,7 +494,7 @@ class ZoomZoom1RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``ZOOm:ZOOM1:REF:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = ZoomZoom1RefItemDisplay(device, f"{self._cmd_syntax}:DISplay") self._horizontal = ZoomZoom1RefItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -636,7 +636,7 @@ class ZoomZoom1MathItemVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1MathItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1MathItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -779,7 +779,7 @@ class ZoomZoom1MathItemHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:MATH:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1MathItemHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1MathItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -890,7 +890,7 @@ class ZoomZoom1MathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``ZOOm:ZOOM1:MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = ZoomZoom1MathItemDisplay(device, f"{self._cmd_syntax}:DISplay") self._horizontal = ZoomZoom1MathItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -1000,7 +1000,7 @@ class ZoomZoom1Dchan(SCPICmdRead): - ``.display``: The ``ZOOm:ZOOM1:DCHAN:DISplay`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = ZoomZoom1DchanDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -1108,7 +1108,7 @@ class ZoomZoom1DigitalBitVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:D:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1DigitalBitVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1DigitalBitVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1247,7 +1247,7 @@ class ZoomZoom1DigitalBitHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:D:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1DigitalBitHorizontalPosition( device, f"{self._cmd_syntax}:POSition" @@ -1360,7 +1360,7 @@ class ZoomZoom1DigitalBit(ValidatedDigitalBit, SCPICmdRead): - ``.vertical``: The ``ZOOm:ZOOM1:D:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = ZoomZoom1DigitalBitDisplay(device, f"{self._cmd_syntax}:DISplay") self._horizontal = ZoomZoom1DigitalBitHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -1500,7 +1500,7 @@ class ZoomZoom1ChannelVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:CH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1ChannelVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1ChannelVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1641,7 +1641,7 @@ class ZoomZoom1ChannelHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:CH:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1ChannelHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1ChannelHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1752,7 +1752,7 @@ class ZoomZoom1Channel(ValidatedChannel, SCPICmdRead): - ``.vertical``: The ``ZOOm:ZOOM1:CH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._display = ZoomZoom1ChannelDisplay(device, f"{self._cmd_syntax}:DISplay") self._horizontal = ZoomZoom1ChannelHorizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -1857,7 +1857,7 @@ class ZoomZoom1(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``ZOOm:ZOOM1:D`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dchan = ZoomZoom1Dchan(device, f"{self._cmd_syntax}:DCHAN") self._scrolllock = ZoomZoom1Scrolllock(device, f"{self._cmd_syntax}:SCROLLLock") @@ -2073,7 +2073,7 @@ class ZoomVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -2249,7 +2249,7 @@ class ZoomScroll(SCPICmdRead): - ``.speed``: The ``ZOOm:SCROLL:SPEED`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = ZoomScrollDirection(device, f"{self._cmd_syntax}:DIREction") self._lock = ZoomScrollLock(device, f"{self._cmd_syntax}:LOCk") @@ -2399,7 +2399,7 @@ class ZoomRefItemVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomRefItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomRefItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -2521,7 +2521,7 @@ class ZoomRefItemHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:REF:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomRefItemHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomRefItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -2594,7 +2594,7 @@ class ZoomRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``ZOOm:REF:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = ZoomRefItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._vertical = ZoomRefItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2713,7 +2713,7 @@ class ZoomMathItemVertical(SCPICmdRead): - ``.scale``: The ``ZOOm:MATH:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomMathItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomMathItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -2832,7 +2832,7 @@ class ZoomMathItemHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:MATH:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomMathItemHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomMathItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -2905,7 +2905,7 @@ class ZoomMathItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``ZOOm:MATH:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = ZoomMathItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._vertical = ZoomMathItemVertical(device, f"{self._cmd_syntax}:VERTical") @@ -3005,7 +3005,7 @@ class ZoomHorizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomHorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -3132,7 +3132,7 @@ class ZoomGraticule(SCPICmdRead): - ``.split``: The ``ZOOm:GRAticule:SPLit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = ZoomGraticuleSize(device, f"{self._cmd_syntax}:SIZE") self._split = ZoomGraticuleSplit(device, f"{self._cmd_syntax}:SPLit") @@ -3233,7 +3233,7 @@ class Zoom(SCPICmdWrite, SCPICmdRead): - ``.zoom1``: The ``ZOOm:ZOOM1`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ZOOm") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ZOOm") -> None: super().__init__(device, cmd_syntax) self._graticule = ZoomGraticule(device, f"{self._cmd_syntax}:GRAticule") self._horizontal = ZoomHorizontal(device, f"{self._cmd_syntax}:HORizontal") diff --git a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py index 93fd5f84..ef4cc3c7 100644 --- a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py +++ b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): @@ -51,5 +51,5 @@ class Time(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TIME") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TIME") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py index e808548d..34f3a2ef 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py @@ -175,7 +175,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): @@ -330,7 +330,7 @@ class ErrordetectorSymbolTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorSymbolTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorSymbolTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -525,7 +525,7 @@ class ErrordetectorSymbolTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorSymbolTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorSymbolTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -867,7 +867,7 @@ class ErrordetectorSymbolTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:SYMBOL:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorSymbolTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._bitcount = ErrordetectorSymbolTestBitcount(device, f"{self._cmd_syntax}:BITCOUNT") @@ -1191,7 +1191,7 @@ class ErrordetectorSymbol(SCPICmdRead): - ``.test``: The ``ERRORDetector:SYMBOL:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._test = ErrordetectorSymbolTest(device, f"{self._cmd_syntax}:TEST") @@ -1562,7 +1562,7 @@ class ErrordetectorPreset(SCPICmdWrite, SCPICmdRead): - ``.apply``: The ``ERRORDetector:PREset:APPLY`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._apply = ErrordetectorPresetApply(device, f"{self._cmd_syntax}:APPLY") @@ -1739,7 +1739,7 @@ class ErrordetectorFrameTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorFrameTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorFrameTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -1934,7 +1934,7 @@ class ErrordetectorFrameTestStatus(SCPICmdRead): - ``.start``: The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorFrameTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorFrameTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -2212,7 +2212,7 @@ class ErrordetectorFrameTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:FRAme:TEST:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._badchars = ErrordetectorFrameTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") self._count = ErrordetectorFrameTestCount(device, f"{self._cmd_syntax}:COUNt") @@ -2540,7 +2540,7 @@ class ErrordetectorFrame(SCPICmdRead): - ``.test``: The ``ERRORDetector:FRAme:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._eof = ErrordetectorFrameEof(device, f"{self._cmd_syntax}:EOF") self._initialcrcvalue = ErrordetectorFrameInitialcrcvalue( @@ -2758,7 +2758,7 @@ class ErrordetectorFile(SCPICmdRead): - ``.save``: The ``ERRORDetector:FILE:SAVe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recall = ErrordetectorFileRecall(device, f"{self._cmd_syntax}:RECAll") self._save = ErrordetectorFileSave(device, f"{self._cmd_syntax}:SAVe") @@ -2968,7 +2968,7 @@ class ErrordetectorDurationTime(SCPICmdWrite, SCPICmdRead): - ``.seconds``: The ``ERRORDetector:DURATION:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorDurationTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorDurationTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3152,7 +3152,7 @@ class ErrordetectorDuration(SCPICmdRead): - ``.time``: The ``ERRORDetector:DURATION:TIME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorDurationCount(device, f"{self._cmd_syntax}:COUNt") self._seconds = ErrordetectorDurationSeconds(device, f"{self._cmd_syntax}:SECOnds") @@ -3327,7 +3327,7 @@ class ErrordetectorBitrate(SCPICmdWrite, SCPICmdRead): - ``.value``: The ``ERRORDetector:BITRate:VALue`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = ErrordetectorBitrateValue(device, f"{self._cmd_syntax}:VALue") @@ -3458,7 +3458,7 @@ class ErrordetectorBitTestTime(SCPICmdRead): - ``.seconds``: The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._days = ErrordetectorBitTestTimeDays(device, f"{self._cmd_syntax}:DAYS") self._hours = ErrordetectorBitTestTimeHours(device, f"{self._cmd_syntax}:HOURS") @@ -3669,7 +3669,7 @@ class ErrordetectorBitTestStatus(SCPICmdRead): - ``.sync``: The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lock = ErrordetectorBitTestStatusLock(device, f"{self._cmd_syntax}:LOCK") self._max_ap = ErrordetectorBitTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") @@ -3929,7 +3929,7 @@ class ErrordetectorBitTest(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``ERRORDetector:BIT:TEST:TIME`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = ErrordetectorBitTestCount(device, f"{self._cmd_syntax}:COUNt") self._duration = ErrordetectorBitTestDuration(device, f"{self._cmd_syntax}:DURATION") @@ -4245,7 +4245,7 @@ class ErrordetectorBitSyncpattern(SCPICmdRead): - ``.plus``: The ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitstring = ErrordetectorBitSyncpatternBitstring( device, f"{self._cmd_syntax}:BITString" @@ -4403,7 +4403,7 @@ class ErrordetectorBit(SCPICmdRead): - ``.test``: The ``ERRORDetector:BIT:TEST`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._length = ErrordetectorBitLength(device, f"{self._cmd_syntax}:LENgth") self._syncpattern = ErrordetectorBitSyncpattern(device, f"{self._cmd_syntax}:SYNCPATtern") @@ -4698,7 +4698,7 @@ class ErrordetectorAlignprimitive(SCPICmdRead): - ``.symbols``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAlignprimitiveMinus(device, f"{self._cmd_syntax}:MINUS") self._minusx: Dict[int, ErrordetectorAlignprimitiveMinusItem] = DefaultDictPassKeyToFactory( @@ -4981,7 +4981,7 @@ class ErrordetectorAligncharacter(SCPICmdRead): - ``.symbol``: The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = ErrordetectorAligncharacterMinus(device, f"{self._cmd_syntax}:MINus") self._plus = ErrordetectorAligncharacterPlus(device, f"{self._cmd_syntax}:PLUS") @@ -5127,7 +5127,7 @@ class Errordetector(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ERRORDetector" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "ERRORDetector" ) -> None: super().__init__(device, cmd_syntax) self._alert = ErrordetectorAlert(device, f"{self._cmd_syntax}:ALERT") diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py index 7e62dfee..0d5afd1d 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py @@ -994,7 +994,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -1167,7 +1167,7 @@ class TriggerQualificationBus(SCPICmdRead): - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1278,7 +1278,7 @@ class TriggerQualification(SCPICmdRead): - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") @@ -1532,7 +1532,7 @@ class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") @@ -1690,7 +1690,7 @@ class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") @@ -1874,7 +1874,7 @@ class TriggerMainPulseWindow(SCPICmdRead): - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1923,7 +1923,7 @@ class TriggerMainPulse(SCPICmdRead): - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") @@ -1954,7 +1954,7 @@ class TriggerMain(SCPICmdRead): - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") @@ -2097,7 +2097,7 @@ class TriggerBUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2386,7 +2386,7 @@ class TriggerBScan(SCPICmdRead): - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") @@ -2947,7 +2947,7 @@ class TriggerBReset(SCPICmdRead): - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") self._accepttimeout = TriggerBResetAccepttimeout( @@ -3567,7 +3567,7 @@ class TriggerBPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -3752,7 +3752,7 @@ class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3842,7 +3842,7 @@ class TriggerBPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4170,7 +4170,7 @@ class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4311,7 +4311,7 @@ class TriggerBPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4634,7 +4634,7 @@ class TriggerBPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -4818,7 +4818,7 @@ class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4912,7 +4912,7 @@ class TriggerBPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -5203,7 +5203,7 @@ class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5298,7 +5298,7 @@ class TriggerBPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -5622,7 +5622,7 @@ class TriggerBPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -5804,7 +5804,7 @@ class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5870,7 +5870,7 @@ class TriggerBPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") @@ -6250,7 +6250,7 @@ class TriggerBPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -6609,7 +6609,7 @@ class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -6728,7 +6728,7 @@ class TriggerBPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( @@ -6978,7 +6978,7 @@ class TriggerBPulse(SCPICmdRead): - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -7313,7 +7313,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7399,7 +7399,7 @@ class TriggerBLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7505,7 +7505,7 @@ class TriggerBLogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7566,7 +7566,7 @@ class TriggerBLogicState(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -7761,7 +7761,7 @@ class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -7878,7 +7878,7 @@ class TriggerBLogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -8041,7 +8041,7 @@ class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -8193,7 +8193,7 @@ class TriggerBLogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -8355,7 +8355,7 @@ class TriggerBLogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -8603,7 +8603,7 @@ class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -8714,7 +8714,7 @@ class TriggerBLogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -8779,7 +8779,7 @@ class TriggerBLogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -8943,7 +8943,7 @@ class TriggerBLogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( @@ -9123,7 +9123,7 @@ class TriggerBLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -9387,7 +9387,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9466,7 +9466,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -9631,7 +9631,7 @@ class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -9694,7 +9694,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -9929,7 +9929,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") @@ -10587,7 +10587,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -10751,7 +10751,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") @@ -10874,7 +10874,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") @@ -11178,7 +11178,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -11350,7 +11350,7 @@ class TriggerASpiSs(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11522,7 +11522,7 @@ class TriggerASpiSclk(SCPICmdRead): - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") @@ -11772,7 +11772,7 @@ class TriggerASpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12002,7 +12002,7 @@ class TriggerASpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") @@ -12155,7 +12155,7 @@ class TriggerASpiData(SCPICmdRead): - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -12292,7 +12292,7 @@ class TriggerASpi(SCPICmdRead): - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") @@ -12593,7 +12593,7 @@ class TriggerASerialErrordetectorFile(SCPICmdRead): - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") @@ -12631,7 +12631,7 @@ class TriggerASerialErrordetector(SCPICmdRead): - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") @@ -12738,7 +12738,7 @@ class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") @@ -12842,7 +12842,7 @@ class TriggerASerialData(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") @@ -13021,7 +13021,7 @@ class TriggerASerialClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -13155,7 +13155,7 @@ class TriggerASerial(SCPICmdRead): - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") @@ -13641,7 +13641,7 @@ class TriggerAPulseWindowThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -13826,7 +13826,7 @@ class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -13911,7 +13911,7 @@ class TriggerAPulseWindowLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14005,7 +14005,7 @@ class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14067,7 +14067,7 @@ class TriggerAPulseWindowLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -14165,7 +14165,7 @@ class TriggerAPulseWindow(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") @@ -14535,7 +14535,7 @@ class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -14676,7 +14676,7 @@ class TriggerAPulseWidth(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -14999,7 +14999,7 @@ class TriggerAPulseTransitionThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15183,7 +15183,7 @@ class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15277,7 +15277,7 @@ class TriggerAPulseTransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -15568,7 +15568,7 @@ class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -15663,7 +15663,7 @@ class TriggerAPulseTimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( device, f"{self._cmd_syntax}:LOWPASSfilter" @@ -15987,7 +15987,7 @@ class TriggerAPulseRuntThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") @@ -16169,7 +16169,7 @@ class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16253,7 +16253,7 @@ class TriggerAPulseRuntLogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16347,7 +16347,7 @@ class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -16410,7 +16410,7 @@ class TriggerAPulseRuntLogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -16475,7 +16475,7 @@ class TriggerAPulseRunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -16881,7 +16881,7 @@ class TriggerAPulsePeriod(SCPICmdRead): - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -17241,7 +17241,7 @@ class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -17360,7 +17360,7 @@ class TriggerAPulseGlitch(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( @@ -17610,7 +17610,7 @@ class TriggerAPulse(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -17985,7 +17985,7 @@ class TriggerAPlock(SCPICmdRead): - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") @@ -18138,7 +18138,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18224,7 +18224,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18330,7 +18330,7 @@ class TriggerALogicStateInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18391,7 +18391,7 @@ class TriggerALogicState(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") @@ -18586,7 +18586,7 @@ class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -18703,7 +18703,7 @@ class TriggerALogicSetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -18866,7 +18866,7 @@ class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicSetholdClockThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -19018,7 +19018,7 @@ class TriggerALogicSetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") @@ -19180,7 +19180,7 @@ class TriggerALogicSethold(SCPICmdRead): - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") @@ -19428,7 +19428,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -19539,7 +19539,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -19604,7 +19604,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -19768,7 +19768,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( @@ -19948,7 +19948,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -20212,7 +20212,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20284,7 +20284,7 @@ class TriggerAI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -20328,7 +20328,7 @@ class TriggerAI2c(SCPICmdRead): - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") @@ -20448,7 +20448,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") @@ -20673,7 +20673,7 @@ class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -20736,7 +20736,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -20938,7 +20938,7 @@ class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") @@ -21046,7 +21046,7 @@ class TriggerACommunicationHdb3Threshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21149,7 +21149,7 @@ class TriggerACommunicationHdb3(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationHdb3Pulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21279,7 +21279,7 @@ class TriggerACommunicationCmi(SCPICmdRead): - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") @@ -21353,7 +21353,7 @@ class TriggerACommunicationClock(SCPICmdRead): - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -21479,7 +21479,7 @@ class TriggerACommunicationB8zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21582,7 +21582,7 @@ class TriggerACommunicationB8zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB8zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21707,7 +21707,7 @@ class TriggerACommunicationB6zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -21810,7 +21810,7 @@ class TriggerACommunicationB6zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB6zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -21935,7 +21935,7 @@ class TriggerACommunicationB3zsThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22038,7 +22038,7 @@ class TriggerACommunicationB3zs(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationB3zsPulseform( device, f"{self._cmd_syntax}:PULSEForm" @@ -22163,7 +22163,7 @@ class TriggerACommunicationAmiThreshold(SCPICmdRead): - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") @@ -22266,7 +22266,7 @@ class TriggerACommunicationAmi(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -22341,7 +22341,7 @@ class TriggerACommunication(SCPICmdRead): - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") @@ -22694,7 +22694,7 @@ class TriggerACanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -22921,7 +22921,7 @@ class TriggerACanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") @@ -23083,7 +23083,7 @@ class TriggerACan(SCPICmdRead): - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") @@ -23343,7 +23343,7 @@ class TriggerABusUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -23425,7 +23425,7 @@ class TriggerABusUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -23526,7 +23526,7 @@ class TriggerABusUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -23655,7 +23655,7 @@ class TriggerABusUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -23760,7 +23760,7 @@ class TriggerABusUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -23813,7 +23813,7 @@ class TriggerABusUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -23988,7 +23988,7 @@ class TriggerABusUsbSof(SCPICmdRead): - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") @@ -24148,7 +24148,7 @@ class TriggerABusUsbPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -24306,7 +24306,7 @@ class TriggerABusUsbPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -24617,7 +24617,7 @@ class TriggerABusUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -24913,7 +24913,7 @@ class TriggerABusUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25184,7 +25184,7 @@ class TriggerABusUsbCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -25277,7 +25277,7 @@ class TriggerABusUsbCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -25418,7 +25418,7 @@ class TriggerABusUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") @@ -25542,7 +25542,7 @@ class TriggerABusUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") @@ -26040,7 +26040,7 @@ class TriggerABusSpiData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -26166,7 +26166,7 @@ class TriggerABusSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") @@ -26305,7 +26305,7 @@ class TriggerABusS8b10bPatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusS8b10bPatternSymbolMinusItem] = ( DefaultDictPassKeyToFactory( @@ -26415,7 +26415,7 @@ class TriggerABusS8b10bPattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -26641,7 +26641,7 @@ class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -26741,7 +26741,7 @@ class TriggerABusS8b10bCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -26808,7 +26808,7 @@ class TriggerABusS8b10b(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -27049,7 +27049,7 @@ class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( device, f"{self._cmd_syntax}:SYNC" @@ -27180,7 +27180,7 @@ class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( device, f"{self._cmd_syntax}:SYNC" @@ -27288,7 +27288,7 @@ class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( @@ -27457,7 +27457,7 @@ class TriggerABusS64b66bBlockonePattern(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") @@ -27616,7 +27616,7 @@ class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blocktype = TriggerABusS64b66bBlockoneBlocktype( device, f"{self._cmd_syntax}:BLOCKType" @@ -27697,7 +27697,7 @@ class TriggerABusS64b66b(SCPICmdRead): - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( @@ -27876,7 +27876,7 @@ class TriggerABusRs232cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -28006,7 +28006,7 @@ class TriggerABusRs232c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") @@ -28123,7 +28123,7 @@ class TriggerABusPciePatternSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") @@ -28256,7 +28256,7 @@ class TriggerABusPciePattern(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") @@ -28501,7 +28501,7 @@ class TriggerABusPcieCharacterSymbol(SCPICmdRead): - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") @@ -28600,7 +28600,7 @@ class TriggerABusPcieCharacter(SCPICmdRead): - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") @@ -28667,7 +28667,7 @@ class TriggerABusPcie(SCPICmdRead): - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") @@ -28911,7 +28911,7 @@ class TriggerABusMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -29321,7 +29321,7 @@ class TriggerABusMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -29735,7 +29735,7 @@ class TriggerABusMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bStatusAddressQualifier( @@ -29846,7 +29846,7 @@ class TriggerABusMil1553bStatus(SCPICmdRead): - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -30017,7 +30017,7 @@ class TriggerABusMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") @@ -30238,7 +30238,7 @@ class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandSubaddressFormat( device, f"{self._cmd_syntax}:FORMat" @@ -30376,7 +30376,7 @@ class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") @@ -30513,7 +30513,7 @@ class TriggerABusMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusMil1553bCommandAddressQualifier( @@ -30628,7 +30628,7 @@ class TriggerABusMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") @@ -30811,7 +30811,7 @@ class TriggerABusMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -31018,7 +31018,7 @@ class TriggerABusLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -31212,7 +31212,7 @@ class TriggerABusLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -31354,7 +31354,7 @@ class TriggerABusLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") @@ -31560,7 +31560,7 @@ class TriggerABusI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -31827,7 +31827,7 @@ class TriggerABusI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") @@ -31962,7 +31962,7 @@ class TriggerABusI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -32124,7 +32124,7 @@ class TriggerABusFlexrayIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayIdentifierQualifier( @@ -32353,7 +32353,7 @@ class TriggerABusFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusFlexrayHeaderCyclecount( @@ -32701,7 +32701,7 @@ class TriggerABusFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -32933,7 +32933,7 @@ class TriggerABusFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") self._qualifier = TriggerABusFlexrayCyclecountQualifier( @@ -33062,7 +33062,7 @@ class TriggerABusFlexray(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") @@ -33282,7 +33282,7 @@ class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusEthernetIpheaderSourceaddrValue( device, f"{self._cmd_syntax}:VALue" @@ -33327,7 +33327,7 @@ class TriggerABusEthernetIpheader(SCPICmdRead): - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( device, f"{self._cmd_syntax}:SOUrceaddr" @@ -33387,7 +33387,7 @@ class TriggerABusEthernetData(SCPICmdRead): - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33433,7 +33433,7 @@ class TriggerABusEthernet(SCPICmdRead): - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") @@ -33533,7 +33533,7 @@ class TriggerABusData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") @@ -33704,7 +33704,7 @@ class TriggerABusCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") @@ -33974,7 +33974,7 @@ class TriggerABusCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34242,7 +34242,7 @@ class TriggerABusCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") @@ -34367,7 +34367,7 @@ class TriggerABusCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") @@ -34498,7 +34498,7 @@ class TriggerABus(SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") @@ -34824,7 +34824,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") @@ -35319,7 +35319,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py index 2fb033d1..0ef40f35 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CounterResultsValue(SCPICmdRead): @@ -176,7 +176,7 @@ class CounterResults(SCPICmdRead): - ``.value``: The ``COUnter:RESULTs:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._avgmean = CounterResultsAvgmean(device, f"{self._cmd_syntax}:AVGmean") self._deviation = CounterResultsDeviation(device, f"{self._cmd_syntax}:DEViation") @@ -323,7 +323,7 @@ class Counter(SCPICmdRead): - ``.results``: The ``COUnter:RESULTs`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "COUnter") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "COUnter") -> None: super().__init__(device, cmd_syntax) self._results = CounterResults(device, f"{self._cmd_syntax}:RESULTs") diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py index ecac8556..24b6eb0f 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LinktrainingSetup(SCPICmdWrite): @@ -300,7 +300,7 @@ class Linktraining(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LINKTRaining" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "LINKTRaining" ) -> None: super().__init__(device, cmd_syntax) self._acqtime = LinktrainingAcqtime(device, f"{self._cmd_syntax}:ACQTime") diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py index bc1108b0..a02eaaf1 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): @@ -142,7 +142,7 @@ class RoscOut(SCPICmdRead): - ``.frequency``: The ``ROSc:OUT:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._frequency = RoscOutFrequency(device, f"{self._cmd_syntax}:FREQuency") @@ -188,7 +188,7 @@ class Rosc(SCPICmdRead): - ``.tracking``: The ``ROSc:TRACking`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ROSc") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ROSc") -> None: super().__init__(device, cmd_syntax) self._out = RoscOut(device, f"{self._cmd_syntax}:OUT") self._source = RoscSource(device, f"{self._cmd_syntax}:SOUrce") diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py index b2ce69eb..f85ad9e8 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Tst(SCPICmdRead): @@ -42,7 +42,7 @@ class Tst(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*TST") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*TST") -> None: super().__init__(device, cmd_syntax) @@ -63,5 +63,5 @@ class Idn(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*IDN") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*IDN") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py index 3146f978..2fb2aafd 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wai(SCPICmdWriteNoArguments): @@ -48,7 +48,7 @@ class Wai(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*WAI") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*WAI") -> None: super().__init__(device, cmd_syntax) @@ -70,7 +70,7 @@ class Stb(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*STB") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*STB") -> None: super().__init__(device, cmd_syntax) @@ -110,7 +110,7 @@ class Rst(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*RST") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*RST") -> None: super().__init__(device, cmd_syntax) @@ -141,7 +141,7 @@ class Opc(SCPICmdWriteNoArguments, SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*OPC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*OPC") -> None: super().__init__(device, cmd_syntax) @@ -164,7 +164,7 @@ class Esr(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*ESR") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*ESR") -> None: super().__init__(device, cmd_syntax) @@ -190,5 +190,5 @@ class Cls(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*CLS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*CLS") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py index 13de7951..513feb18 100644 --- a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Opt(SCPICmdRead): @@ -45,5 +45,5 @@ class Opt(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*OPT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*OPT") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py index aa3cc9fa..56adf457 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Cal(SCPICmdRead): @@ -42,5 +42,5 @@ class Cal(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*CAL") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*CAL") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py index ec78e6f1..25958d78 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Trg(SCPICmdWriteNoArguments): @@ -39,5 +39,5 @@ class Trg(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*TRG") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*TRG") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py index 3f768c83..c33eeb8f 100644 --- a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sre(SCPICmdWrite, SCPICmdRead): @@ -53,7 +53,7 @@ class Sre(SCPICmdWrite, SCPICmdRead): previous power cycle value through the current power cycle. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*SRE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*SRE") -> None: super().__init__(device, cmd_syntax) @@ -82,5 +82,5 @@ class Ese(SCPICmdWrite, SCPICmdRead): 0 through 255. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*ESE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*ESE") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py index e813f710..44d9154c 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): @@ -123,7 +123,7 @@ class AliasDelete(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = AliasDeleteAll(device, f"{self._cmd_syntax}:ALL") self._name = AliasDeleteName(device, f"{self._cmd_syntax}:NAMe") @@ -246,7 +246,7 @@ class Alias(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``ALIas:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ALIas") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ALIas") -> None: super().__init__(device, cmd_syntax) self._catalog = AliasCatalog(device, f"{self._cmd_syntax}:CATalog") self._define = AliasDefine(device, f"{self._cmd_syntax}:DEFine") diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py index 71148f97..07696b52 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): @@ -56,5 +56,5 @@ class Psc(SCPICmdWrite, SCPICmdRead): prevents any SRQ assertion after power on. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*PSC") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*PSC") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py index 1bbdedb3..abc9cc9b 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Ddt(SCPICmdWrite, SCPICmdRead): @@ -54,5 +54,5 @@ class Ddt(SCPICmdWrite, SCPICmdRead): concatenating commands. The sequence must be less than or equal to 80 characters. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*DDT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*DDT") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py index 54675852..99b190f2 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Newpass(SCPICmdWrite): @@ -45,5 +45,5 @@ class Newpass(SCPICmdWrite): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "NEWpass") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "NEWpass") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py index 083f4ea8..c1bd40a6 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Password(SCPICmdWrite): @@ -50,5 +50,5 @@ class Password(SCPICmdWrite): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PASSWord") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "PASSWord") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py index 16653cee..106e254a 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Teksecure(SCPICmdWriteNoArguments): @@ -41,5 +41,5 @@ class Teksecure(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TEKSecure") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TEKSecure") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py index 1c0ab595..3596adf5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Allev(SCPICmdRead): @@ -43,5 +43,5 @@ class Allev(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ALLEv") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ALLEv") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py index 770dee7d..55ca8931 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Busy(SCPICmdRead): @@ -41,5 +41,5 @@ class Busy(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUSY") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUSY") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py index 4d8b974a..9f71f865 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Dese(SCPICmdWrite, SCPICmdRead): @@ -52,5 +52,5 @@ class Dese(SCPICmdWrite, SCPICmdRead): 1, the next bit to 0, etc.). """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DESE") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DESE") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py index 8e4e7f53..cbac9c51 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Event(SCPICmdRead): @@ -42,5 +42,5 @@ class Event(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EVENT") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EVENT") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py index 289451cc..6b8649e4 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Evmsg(SCPICmdRead): @@ -42,5 +42,5 @@ class Evmsg(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EVMsg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EVMsg") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py index d48a212f..5bc25ba8 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Evqty(SCPICmdRead): @@ -42,5 +42,5 @@ class Evqty(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "EVQty") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "EVQty") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py index 269599f0..2b6a4acb 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Factory(SCPICmdWriteNoArguments): @@ -45,5 +45,5 @@ class Factory(SCPICmdWriteNoArguments): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FACtory") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FACtory") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py index 72547a0a..886b70b2 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Header(SCPICmdWrite, SCPICmdRead): @@ -54,5 +54,5 @@ class Header(SCPICmdWrite, SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HEADer") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HEADer") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py index c797008f..6c8331de 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Id(SCPICmdRead): @@ -42,5 +42,5 @@ class Id(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ID") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ID") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py index 3f3f4ec6..a72a327a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Lrn(SCPICmdRead): @@ -43,5 +43,5 @@ class Lrn(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*LRN") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*LRN") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py index 12c0e63a..fd8647f5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Rem(SCPICmdWrite): @@ -45,5 +45,5 @@ class Rem(SCPICmdWrite): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REM") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REM") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py index 6bdb3939..b7662cf5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Set(SCPICmdRead): @@ -46,5 +46,5 @@ class Set(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SET") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SET") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py index 238c5b79..726eb451 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pud(SCPICmdWrite, SCPICmdRead): @@ -49,5 +49,5 @@ class Pud(SCPICmdWrite, SCPICmdRead): - ```` is a string containing up to 100 characters. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "*PUD") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "*PUD") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py index fda57afb..2370cd59 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Verbose(SCPICmdWrite): @@ -46,5 +46,5 @@ class Verbose(SCPICmdWrite): setting queries. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "VERBose") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "VERBose") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py index 9695f53a..bc6318d7 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wavfrm(SCPICmdRead): @@ -42,5 +42,5 @@ class Wavfrm(SCPICmdRead): ``` """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WAVFrm") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WAVFrm") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py index bc07229c..aab23dd7 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Lock(SCPICmdWrite, SCPICmdRead): @@ -56,5 +56,5 @@ class Lock(SCPICmdWrite, SCPICmdRead): Descriptions. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LOCk") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LOCk") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py index aa6faa0f..7f415a9b 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Unlock(SCPICmdWrite): @@ -43,5 +43,5 @@ class Unlock(SCPICmdWrite): - ``ALL`` specifies that all front panel buttons and knobs are unlocked. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "UNLock") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "UNLock") -> None: super().__init__(device, cmd_syntax) diff --git a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py index f34ca956..5430a2f2 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): @@ -244,7 +244,7 @@ class Acquire(SCPICmdRead): - ``.stopafter``: The ``ACQuire:STOPAfter`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._magnivu = AcquireMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._maxsamplerate = AcquireMaxsamplerate(device, f"{self._cmd_syntax}:MAXSamplerate") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/alias.py b/src/tm_devices/commands/gen_u301s_msodpo/alias.py index b56812b1..9f4c705f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/alias.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/alias.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): @@ -120,7 +120,7 @@ class AliasDelete(SCPICmdWrite, SCPICmdRead): _WRAP_ARG_WITH_QUOTES = True - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._all = AliasDeleteAll(device, f"{self._cmd_syntax}:ALL") self._name = AliasDeleteName(device, f"{self._cmd_syntax}:NAMe") @@ -242,7 +242,7 @@ class Alias(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``ALIas:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ALIas") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ALIas") -> None: super().__init__(device, cmd_syntax) self._catalog = AliasCatalog(device, f"{self._cmd_syntax}:CATalog") self._define = AliasDefine(device, f"{self._cmd_syntax}:DEFine") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py index f6e5b967..ec504792 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): @@ -71,7 +71,7 @@ class Autoset(SCPICmdWrite, SCPICmdRead): - ``.enable``: The ``AUTOSet:ENAble`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUTOSet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUTOSet") -> None: super().__init__(device, cmd_syntax) self._enable = AutosetEnable(device, f"{self._cmd_syntax}:ENAble") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py index e3de1f94..45638449 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinProbeUnits(SCPICmdRead): @@ -148,7 +148,7 @@ class AuxinProbeId(SCPICmdRead): - ``.type``: The ``AUXin:PRObe:ID:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = AuxinProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = AuxinProbeIdType(device, f"{self._cmd_syntax}:TYPE") @@ -283,7 +283,7 @@ class AuxinProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``AUXin:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = AuxinProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -382,7 +382,7 @@ class AuxinProbe(SCPICmdWriteNoArguments, SCPICmdRead): - ``.units``: The ``AUXin:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = AuxinProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._command = AuxinProbeCommand(device, f"{self._cmd_syntax}:COMMAND") @@ -621,7 +621,7 @@ class Auxin(SCPICmdRead): - ``.probe``: The ``AUXin:PRObe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "AUXin") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "AUXin") -> None: super().__init__(device, cmd_syntax) self._probe = AuxinProbe(device, f"{self._cmd_syntax}:PRObe") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/bus.py b/src/tm_devices/commands/gen_u301s_msodpo/bus.py index e96c00d6..cacca683 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/bus.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/bus.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): @@ -191,7 +191,7 @@ class BusUpperthreshold(SCPICmdRead): - ``.ch``: The ``BUS:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -292,7 +292,7 @@ class BusThreshold(SCPICmdRead): - ``.d``: The ``BUS:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -397,7 +397,7 @@ class BusLowerthreshold(SCPICmdRead): - ``.ch``: The ``BUS:LOWerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, BusLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: BusLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -545,7 +545,7 @@ class BusBItemSpiSs(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSsPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiSsSource(device, f"{self._cmd_syntax}:SOUrce") @@ -670,7 +670,7 @@ class BusBItemSpiSelect(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SELect:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSelectPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiSelectSource(device, f"{self._cmd_syntax}:SOUrce") @@ -795,7 +795,7 @@ class BusBItemSpiSclk(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiSclkPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiSclkSource(device, f"{self._cmd_syntax}:SOUrce") @@ -988,7 +988,7 @@ class BusBItemSpiDataOut(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATA:OUT:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataOutPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiDataOutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1113,7 +1113,7 @@ class BusBItemSpiDataMosi(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATA:MOSI:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataMosiPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiDataMosiSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1239,7 +1239,7 @@ class BusBItemSpiDataMiso(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATA:MISO:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataMisoPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiDataMisoSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1365,7 +1365,7 @@ class BusBItemSpiDataIn(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:DATA:IN:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiDataInPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiDataInSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1441,7 +1441,7 @@ class BusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``BUS:B:SPI:DATA:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = BusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = BusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -1600,7 +1600,7 @@ class BusBItemSpiClock(SCPICmdRead): - ``.source``: The ``BUS:B:SPI:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = BusBItemSpiClockPolarity(device, f"{self._cmd_syntax}:POLARity") self._source = BusBItemSpiClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1712,7 +1712,7 @@ class BusBItemSpi(SCPICmdRead): - ``.ss``: The ``BUS:B:SPI:SS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitorder = BusBItemSpiBitorder(device, f"{self._cmd_syntax}:BITOrder") self._data = BusBItemSpiData(device, f"{self._cmd_syntax}:DATA") @@ -1921,7 +1921,7 @@ class BusBItemRs232cTx(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:TX:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemRs232cTxSource(device, f"{self._cmd_syntax}:SOUrce") @@ -1993,7 +1993,7 @@ class BusBItemRs232cRx(SCPICmdRead): - ``.source``: The ``BUS:B:RS232C:RX:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemRs232cRxSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2204,7 +2204,7 @@ class BusBItemRs232c(SCPICmdRead): - ``.tx``: The ``BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemRs232cBitrate(device, f"{self._cmd_syntax}:BITRate") self._databits = BusBItemRs232cDatabits(device, f"{self._cmd_syntax}:DATABits") @@ -2549,7 +2549,7 @@ class BusBItemParallelClock(SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = BusBItemParallelClockEdge(device, f"{self._cmd_syntax}:EDGE") self._isclocked = BusBItemParallelClockIsclocked(device, f"{self._cmd_syntax}:ISCLOCKed") @@ -2679,7 +2679,7 @@ class BusBItemParallelBitItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.source``: The ``BUS:B:PARallel:BIT:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemParallelBitItemSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2727,7 +2727,7 @@ class BusBItemParallel(SCPICmdRead): - ``.width``: The ``BUS:B:PARallel:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bit: Dict[int, BusBItemParallelBitItem] = DefaultDictPassKeyToFactory( lambda x: BusBItemParallelBitItem(device, f"{self._cmd_syntax}:BIT{x}") @@ -2959,7 +2959,7 @@ class BusBItemLin(SCPICmdRead): - ``.standard``: The ``BUS:B:LIN:STANDard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemLinBitrate(device, f"{self._cmd_syntax}:BITRate") self._idformat = BusBItemLinIdformat(device, f"{self._cmd_syntax}:IDFORmat") @@ -3194,7 +3194,7 @@ class BusBItemI2cSdata(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:SDATA:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cSdataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3266,7 +3266,7 @@ class BusBItemI2cSclk(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:SCLK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cSclkSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3338,7 +3338,7 @@ class BusBItemI2cData(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:DATA:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cDataSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3410,7 +3410,7 @@ class BusBItemI2cClock(SCPICmdRead): - ``.source``: The ``BUS:B:I2C:CLOCK:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = BusBItemI2cClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3480,7 +3480,7 @@ class BusBItemI2cAddress(SCPICmdRead): - ``.rwinclude``: The ``BUS:B:I2C:ADDRess:RWINClude`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rwinclude = BusBItemI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") @@ -3527,7 +3527,7 @@ class BusBItemI2c(SCPICmdRead): - ``.sdata``: The ``BUS:B:I2C:SDATA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = BusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._clock = BusBItemI2cClock(device, f"{self._cmd_syntax}:CLOCK") @@ -3726,7 +3726,7 @@ class BusBItemFlexray(SCPICmdRead): - ``.source``: The ``BUS:B:FLEXray:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemFlexrayBitrate(device, f"{self._cmd_syntax}:BITRate") self._channel = BusBItemFlexrayChannel(device, f"{self._cmd_syntax}:CHannel") @@ -3909,7 +3909,7 @@ class BusBItemDisplay(SCPICmdRead): - ``.type``: The ``BUS:B:DISplay:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = BusBItemDisplayFormat(device, f"{self._cmd_syntax}:FORMAt") self._type = BusBItemDisplayType(device, f"{self._cmd_syntax}:TYPe") @@ -4090,7 +4090,7 @@ class BusBItemCan(SCPICmdRead): - ``.source``: The ``BUS:B:CAN:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bitrate = BusBItemCanBitrate(device, f"{self._cmd_syntax}:BITRate") self._probe = BusBItemCanProbe(device, f"{self._cmd_syntax}:PRObe") @@ -4232,7 +4232,7 @@ class BusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.type``: The ``BUS:B:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = BusBItemCan(device, f"{self._cmd_syntax}:CAN") self._display = BusBItemDisplay(device, f"{self._cmd_syntax}:DISplay") @@ -4518,7 +4518,7 @@ class Bus(SCPICmdWriteNoArguments, SCPICmdRead): - ``.upperthreshold``: The ``BUS:UPPerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "BUS") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "BUS") -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, BusBItem] = DefaultDictPassKeyToFactory( lambda x: BusBItem(device, f"{self._cmd_syntax}:B{x}") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py index be133bb8..487e2a28 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateTemperature(SCPICmdRead): @@ -112,7 +112,7 @@ class CalibrateResults(SCPICmdRead): - ``.spc``: The ``CALibrate:RESults:SPC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._factory = CalibrateResultsFactory(device, f"{self._cmd_syntax}:FACtory") self._spc = CalibrateResultsSpc(device, f"{self._cmd_syntax}:SPC") @@ -233,7 +233,7 @@ class CalibrateInternal(SCPICmdWriteNoArguments, SCPICmdRead): - ``.status``: The ``CALibrate:INTERNal:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._start = CalibrateInternalStart(device, f"{self._cmd_syntax}:STARt") self._status = CalibrateInternalStatus(device, f"{self._cmd_syntax}:STATus") @@ -323,7 +323,7 @@ class CalibrateFactory(SCPICmdWrite, SCPICmdRead): - ``.status``: The ``CALibrate:FACtory:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = CalibrateFactoryStatus(device, f"{self._cmd_syntax}:STATus") @@ -363,7 +363,7 @@ class Calibrate(SCPICmdRead): - ``.temperature``: The ``CALibrate:TEMPerature`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CALibrate") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CALibrate") -> None: super().__init__(device, cmd_syntax) self._factory = CalibrateFactory(device, f"{self._cmd_syntax}:FACtory") self._internal = CalibrateInternal(device, f"{self._cmd_syntax}:INTERNal") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ch.py b/src/tm_devices/commands/gen_u301s_msodpo/ch.py index e9cab735..ff49e08c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ch.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ch.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): @@ -294,7 +294,7 @@ class ChannelProbeId(SCPICmdRead): - ``.type``: The ``CH:PRObe:ID:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = ChannelProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = ChannelProbeIdType(device, f"{self._cmd_syntax}:TYPE") @@ -436,7 +436,7 @@ class ChannelProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``CH:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = ChannelProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -539,7 +539,7 @@ class ChannelProbe(SCPICmdRead): - ``.units``: The ``CH:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = ChannelProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._command = ChannelProbeCommand(device, f"{self._cmd_syntax}:COMMAND") @@ -1018,7 +1018,7 @@ class Channel(ValidatedChannel, SCPICmdRead): - ``.yunits``: The ``CH:YUNits`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CH") -> None: super().__init__(device, cmd_syntax) self._bandwidth = ChannelBandwidth(device, f"{self._cmd_syntax}:BANdwidth") self._coupling = ChannelCoupling(device, f"{self._cmd_syntax}:COUPling") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py index 84a5226e..b7346ca1 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py @@ -65,7 +65,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): @@ -144,7 +144,7 @@ class CursorXyRectangularY(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:Y:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularYDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularYPositionItem] = DefaultDictPassKeyToFactory( @@ -295,7 +295,7 @@ class CursorXyRectangularX(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:X:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularXDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularXPositionItem] = DefaultDictPassKeyToFactory( @@ -383,7 +383,7 @@ class CursorXyRectangular(SCPICmdRead): - ``.y``: The ``CURSor:XY:RECTangular:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CursorXyRectangularX(device, f"{self._cmd_syntax}:X") self._y = CursorXyRectangularY(device, f"{self._cmd_syntax}:Y") @@ -491,7 +491,7 @@ class CursorXyRatio(SCPICmdRead): - ``.units``: The ``CURSor:XY:RATIO:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRatioDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRatioPositionItem] = DefaultDictPassKeyToFactory( @@ -631,7 +631,7 @@ class CursorXyProduct(SCPICmdRead): - ``.units``: The ``CURSor:XY:PRODUCT:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyProductDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyProductPositionItem] = DefaultDictPassKeyToFactory( @@ -788,7 +788,7 @@ class CursorXyPolarTheta(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:THETA:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarThetaDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarThetaPositionItem] = DefaultDictPassKeyToFactory( @@ -925,7 +925,7 @@ class CursorXyPolarRadius(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:RADIUS:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarRadiusDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarRadiusPositionItem] = DefaultDictPassKeyToFactory( @@ -1007,7 +1007,7 @@ class CursorXyPolar(SCPICmdRead): - ``.theta``: The ``CURSor:XY:POLar:THETA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._radius = CursorXyPolarRadius(device, f"{self._cmd_syntax}:RADIUS") self._theta = CursorXyPolarTheta(device, f"{self._cmd_syntax}:THETA") @@ -1061,7 +1061,7 @@ class CursorXy(SCPICmdRead): - ``.rectangular``: The ``CURSor:XY:RECTangular`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polar = CursorXyPolar(device, f"{self._cmd_syntax}:POLar") self._proddelta = CursorXyProddelta(device, f"{self._cmd_syntax}:PRODDELta") @@ -1337,7 +1337,7 @@ class CursorVbars(SCPICmdRead): - ``.vdelta``: The ``CURSor:VBArs:VDELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alternate: Dict[int, CursorVbarsAlternateItem] = DefaultDictPassKeyToFactory( lambda x: CursorVbarsAlternateItem(device, f"{self._cmd_syntax}:ALTERNATE{x}") @@ -1669,7 +1669,7 @@ class CursorHbars(SCPICmdRead): - ``.use``: The ``CURSor:HBArs:USE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorHbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._position: Dict[int, CursorHbarsPositionItem] = DefaultDictPassKeyToFactory( @@ -1838,7 +1838,7 @@ class Cursor(SCPICmdRead): - ``.xy``: The ``CURSor:XY`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURSor") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURSor") -> None: super().__init__(device, cmd_syntax) self._function = CursorFunction(device, f"{self._cmd_syntax}:FUNCtion") self._hbars = CursorHbars(device, f"{self._cmd_syntax}:HBArs") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/d.py b/src/tm_devices/commands/gen_u301s_msodpo/d.py index 526eeba8..81a38a21 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/d.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): @@ -125,7 +125,7 @@ class DigitalBit(ValidatedDigitalBit, SCPICmdWriteNoArguments, SCPICmdRead): - ``.threshold``: The ``D:THREshold`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "D") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "D") -> None: super().__init__(device, cmd_syntax) self._label = DigitalBitLabel(device, f"{self._cmd_syntax}:LABel") self._position = DigitalBitPosition(device, f"{self._cmd_syntax}:POSition") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/data.py b/src/tm_devices/commands/gen_u301s_msodpo/data.py index 61151721..43e74f77 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/data.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): @@ -311,7 +311,7 @@ class DataComposition(SCPICmdWrite, SCPICmdRead): - ``.available``: The ``DATa:COMPosition:AVAILable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._available = DataCompositionAvailable(device, f"{self._cmd_syntax}:AVAILable") @@ -375,7 +375,7 @@ class Data(SCPICmdWrite, SCPICmdRead): - ``.width``: The ``DATa:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DATa") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DATa") -> None: super().__init__(device, cmd_syntax) self._composition = DataComposition(device, f"{self._cmd_syntax}:COMPosition") self._destination = DataDestination(device, f"{self._cmd_syntax}:DESTination") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/diag.py b/src/tm_devices/commands/gen_u301s_msodpo/diag.py index 69fc42da..0add4878 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/diag.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/diag.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): @@ -225,7 +225,7 @@ class DiagSelect(SCPICmdWrite, SCPICmdRead): - ``.rom``: The ``DIAg:SELect:ROM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acq = DiagSelectAcq(device, f"{self._cmd_syntax}:ACQ") self._appkey = DiagSelectAppkey(device, f"{self._cmd_syntax}:APPKey") @@ -426,7 +426,7 @@ class DiagResult(SCPICmdRead): - ``.log``: The ``DIAg:RESUlt:LOG`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._flag = DiagResultFlag(device, f"{self._cmd_syntax}:FLAg") self._log = DiagResultLog(device, f"{self._cmd_syntax}:LOG") @@ -539,7 +539,7 @@ class DiagLoopOption(SCPICmdWrite, SCPICmdRead): - ``.ntimes``: The ``DIAg:LOOP:OPTion:NTIMes`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ntimes = DiagLoopOptionNtimes(device, f"{self._cmd_syntax}:NTIMes") @@ -582,7 +582,7 @@ class DiagLoop(SCPICmdRead): - ``.stop``: The ``DIAg:LOOP:STOP`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._option = DiagLoopOption(device, f"{self._cmd_syntax}:OPTion") self._stop = DiagLoopStop(device, f"{self._cmd_syntax}:STOP") @@ -670,7 +670,7 @@ class DiagIndividual(SCPICmdRead): - ``.testnumber``: The ``DIAg:INDIvidual:TESTnumber`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._testnumber = DiagIndividualTestnumber(device, f"{self._cmd_syntax}:TESTnumber") @@ -715,7 +715,7 @@ class Diag(SCPICmdRead): - ``.state``: The ``DIAg:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DIAg") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DIAg") -> None: super().__init__(device, cmd_syntax) self._individual = DiagIndividual(device, f"{self._cmd_syntax}:INDIvidual") self._loop = DiagLoop(device, f"{self._cmd_syntax}:LOOP") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/display.py b/src/tm_devices/commands/gen_u301s_msodpo/display.py index 5ef9d781..8070f591 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/display.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/display.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayStyleDotsonly(SCPICmdWrite, SCPICmdRead): @@ -80,7 +80,7 @@ class DisplayStyle(SCPICmdRead): - ``.dotsonly``: The ``DISplay:STYle:DOTsonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dotsonly = DisplayStyleDotsonly(device, f"{self._cmd_syntax}:DOTsonly") @@ -269,7 +269,7 @@ class DisplayIntensity(SCPICmdRead): - ``.waveform``: The ``DISplay:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") self._glitch = DisplayIntensityGlitch(device, f"{self._cmd_syntax}:GLITch") @@ -495,7 +495,7 @@ class DisplayDigital(SCPICmdRead): - ``.height``: The ``DISplay:DIGital:HEIght`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._height = DisplayDigitalHeight(device, f"{self._cmd_syntax}:HEIght") @@ -584,7 +584,7 @@ class Display(SCPICmdRead): - ``.style``: The ``DISplay:STYle`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._clock = DisplayClock(device, f"{self._cmd_syntax}:CLOCk") self._digital = DisplayDigital(device, f"{self._cmd_syntax}:DIGital") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py index 2f97fd79..6fd64568 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): @@ -103,7 +103,7 @@ class EthernetPing(SCPICmdWrite, SCPICmdRead): - ``.status``: The ``ETHERnet:PING:STATUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._status = EthernetPingStatus(device, f"{self._cmd_syntax}:STATUS") @@ -265,7 +265,7 @@ class EthernetGateway(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:GATEWay:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetGatewayIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -326,7 +326,7 @@ class EthernetEnet(SCPICmdRead): - ``.address``: The ``ETHERnet:ENET:ADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = EthernetEnetAddress(device, f"{self._cmd_syntax}:ADDress") @@ -411,7 +411,7 @@ class EthernetDns(SCPICmdRead): - ``.ipaddress``: The ``ETHERnet:DNS:IPADDress`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ipaddress = EthernetDnsIpaddress(device, f"{self._cmd_syntax}:IPADDress") @@ -490,7 +490,7 @@ class Ethernet(SCPICmdRead): - ``.subnetmask``: The ``ETHERnet:SUBNETMask`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ETHERnet") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ETHERnet") -> None: super().__init__(device, cmd_syntax) self._dhcpbootp = EthernetDhcpbootp(device, f"{self._cmd_syntax}:DHCPbootp") self._dns = EthernetDns(device, f"{self._cmd_syntax}:DNS") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py index 4291580c..5f626086 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): @@ -311,7 +311,9 @@ class Filesystem(SCPICmdWriteNoArguments, SCPICmdRead): - ``.writefile``: The ``FILESystem:WRITEFile`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILESystem") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILESystem" + ) -> None: super().__init__(device, cmd_syntax) self._copy = FilesystemCopy(device, f"{self._cmd_syntax}:COPy") self._cwd = FilesystemCwd(device, f"{self._cmd_syntax}:CWD") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py index 14c8ba76..045ff2b8 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FiltervuFrequencyAvailable(SCPICmdRead): @@ -69,7 +69,7 @@ class FiltervuFrequency(SCPICmdWrite, SCPICmdRead): - ``.available``: The ``FILTERVu:FREQuency:AVAILable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._available = FiltervuFrequencyAvailable(device, f"{self._cmd_syntax}:AVAILable") @@ -107,7 +107,7 @@ class Filtervu(SCPICmdRead): - ``.frequency``: The ``FILTERVu:FREQuency`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FILTERVu") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FILTERVu") -> None: super().__init__(device, cmd_syntax) self._frequency = FiltervuFrequency(device, f"{self._cmd_syntax}:FREQuency") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py index d36b6064..25775221 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): @@ -119,7 +119,7 @@ class Fpanel(SCPICmdRead): - ``.turn``: The ``FPAnel:TURN`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "FPAnel") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "FPAnel") -> None: super().__init__(device, cmd_syntax) self._press = FpanelPress(device, f"{self._cmd_syntax}:PRESS") self._turn = FpanelTurn(device, f"{self._cmd_syntax}:TURN") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py index 9dbe392e..a4b3c9d2 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): @@ -52,7 +52,7 @@ class Gpibusb(SCPICmdRead): - ``.id``: The ``GPIBUsb:ID`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "GPIBUsb") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "GPIBUsb") -> None: super().__init__(device, cmd_syntax) self._id = GpibusbId(device, f"{self._cmd_syntax}:ID") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py index 13c35dbc..bab77a32 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): @@ -142,7 +142,7 @@ class HardcopyPrinter(SCPICmdRead): - ``.rename``: The ``HARDCopy:PRINTer:REName`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._add = HardcopyPrinterAdd(device, f"{self._cmd_syntax}:ADD") self._delete = HardcopyPrinterDelete(device, f"{self._cmd_syntax}:DELete") @@ -388,7 +388,7 @@ class Hardcopy(SCPICmdWrite, SCPICmdRead): - ``.printer``: The ``HARDCopy:PRINTer`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HARDCopy") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "HARDCopy") -> None: super().__init__(device, cmd_syntax) self._activeprinter = HardcopyActiveprinter(device, f"{self._cmd_syntax}:ACTIVeprinter") self._inksaver = HardcopyInksaver(device, f"{self._cmd_syntax}:INKSaver") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py index 3be30282..20b61583 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalTriggerPosition(SCPICmdWriteNoArguments, SCPICmdRead): @@ -83,7 +83,7 @@ class HorizontalTrigger(SCPICmdRead): - ``.position``: The ``HORizontal:TRIGger:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = HorizontalTriggerPosition(device, f"{self._cmd_syntax}:POSition") @@ -285,7 +285,7 @@ class HorizontalMainUnits(SCPICmdRead): - ``.string``: The ``HORizontal:MAIn:UNIts:STRing`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._string = HorizontalMainUnitsString(device, f"{self._cmd_syntax}:STRing") @@ -376,7 +376,7 @@ class HorizontalMain(SCPICmdRead): - ``.scale``: The ``HORizontal:MAIn:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._samplerate = HorizontalMainSamplerate(device, f"{self._cmd_syntax}:SAMPLERate") self._units = HorizontalMainUnits(device, f"{self._cmd_syntax}:UNIts") @@ -502,7 +502,7 @@ class HorizontalDigitalSamplerate(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:SAMPLERate:MAIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalSamplerateMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalSamplerateMain(device, f"{self._cmd_syntax}:MAIN") @@ -603,7 +603,7 @@ class HorizontalDigitalRecordlength(SCPICmdRead): - ``.main``: The ``HORizontal:DIGital:RECOrdlength:MAIN`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = HorizontalDigitalRecordlengthMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._main = HorizontalDigitalRecordlengthMain(device, f"{self._cmd_syntax}:MAIN") @@ -664,7 +664,7 @@ class HorizontalDigital(SCPICmdRead): - ``.samplerate``: The ``HORizontal:DIGital:SAMPLERate`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._recordlength = HorizontalDigitalRecordlength( device, f"{self._cmd_syntax}:RECOrdlength" @@ -787,7 +787,7 @@ class HorizontalDelay(SCPICmdRead): - ``.time``: The ``HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = HorizontalDelayMode(device, f"{self._cmd_syntax}:MODe") self._position = HorizontalDelayPosition(device, f"{self._cmd_syntax}:POSition") @@ -920,7 +920,9 @@ class Horizontal(SCPICmdRead): - ``.trigger``: The ``HORizontal:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "HORizontal") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "HORizontal" + ) -> None: super().__init__(device, cmd_syntax) self._acqlength = HorizontalAcqlength(device, f"{self._cmd_syntax}:ACQLENGTH") self._delay = HorizontalDelay(device, f"{self._cmd_syntax}:DELay") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/mark.py b/src/tm_devices/commands/gen_u301s_msodpo/mark.py index cd9954b4..8dcf9fbd 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/mark.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/mark.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkTotal(SCPICmdRead): @@ -82,7 +82,7 @@ class MarkSelectedZoom(SCPICmdRead): - ``.position``: The ``MARK:SELected:ZOOm:POSition`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = MarkSelectedZoomPosition(device, f"{self._cmd_syntax}:POSition") @@ -254,7 +254,7 @@ class MarkSelected(SCPICmdRead): - ``.zoom``: The ``MARK:SELected:ZOOm`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._end = MarkSelectedEnd(device, f"{self._cmd_syntax}:END") self._focus = MarkSelectedFocus(device, f"{self._cmd_syntax}:FOCUS") @@ -517,7 +517,7 @@ class Mark(SCPICmdWrite, SCPICmdRead): - ``.total``: The ``MARK:TOTal`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MARK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MARK") -> None: super().__init__(device, cmd_syntax) self._create = MarkCreate(device, f"{self._cmd_syntax}:CREATE") self._delete = MarkDelete(device, f"{self._cmd_syntax}:DELEte") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/math1.py b/src/tm_devices/commands/gen_u301s_msodpo/math1.py index 67dfbd82..00519d04 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/math1.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/math1.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Math1VerticalUnits(SCPICmdRead): @@ -131,7 +131,7 @@ class Math1Vertical(SCPICmdRead): - ``.units``: The ``MATH1:VERTical:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = Math1VerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = Math1VerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -383,7 +383,7 @@ class Math1SpectralGatingIndicators(SCPICmdWrite, SCPICmdRead): - ``.start``: The ``MATH1:SPECTral:GATing:INDICators:STARt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._end = Math1SpectralGatingIndicatorsEnd(device, f"{self._cmd_syntax}:END") self._start = Math1SpectralGatingIndicatorsStart(device, f"{self._cmd_syntax}:STARt") @@ -444,7 +444,7 @@ class Math1SpectralGating(SCPICmdRead): - ``.indicators``: The ``MATH1:SPECTral:GATing:INDICators`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._indicators = Math1SpectralGatingIndicators(device, f"{self._cmd_syntax}:INDICators") @@ -499,7 +499,7 @@ class Math1Spectral(SCPICmdRead): - ``.window``: The ``MATH1:SPECTral:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._gating = Math1SpectralGating(device, f"{self._cmd_syntax}:GATing") self._mag = Math1SpectralMag(device, f"{self._cmd_syntax}:MAG") @@ -706,7 +706,7 @@ class Math1Horizontal(SCPICmdRead): - ``.units``: The ``MATH1:HORizontal:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = Math1HorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = Math1HorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -911,7 +911,7 @@ class Math1(SCPICmdRead): - ``.vertical``: The ``MATH1:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MATH1") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MATH1") -> None: super().__init__(device, cmd_syntax) self._define = Math1Define(device, f"{self._cmd_syntax}:DEFine") self._horizontal = Math1Horizontal(device, f"{self._cmd_syntax}:HORizontal") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py index c486ec2c..44609b42 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py @@ -104,7 +104,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): @@ -185,7 +185,7 @@ class MeasurementStatistics(SCPICmdWrite, SCPICmdRead): - ``.weighting``: The ``MEASUrement:STATIstics:WEIghting`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MeasurementStatisticsMode(device, f"{self._cmd_syntax}:MODE") self._weighting = MeasurementStatisticsWeighting(device, f"{self._cmd_syntax}:WEIghting") @@ -418,7 +418,7 @@ class MeasurementReflevelPercent(SCPICmdRead): - ``.midx``: The ``MEASUrement:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -764,7 +764,7 @@ class MeasurementReflevelAbsolute(SCPICmdRead): - ``.midx``: The ``MEASUrement:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -946,7 +946,7 @@ class MeasurementReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -1462,7 +1462,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementMeasItemDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -1589,7 +1589,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MeasurementMeasItemCount(device, f"{self._cmd_syntax}:COUNt") self._delay = MeasurementMeasItemDelay(device, f"{self._cmd_syntax}:DELay") @@ -2126,7 +2126,7 @@ class MeasurementIndicators(SCPICmdRead): - ``.vert``: The ``MEASUrement:INDICators:VERT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horz: Dict[int, MeasurementIndicatorsHorzItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementIndicatorsHorzItem(device, f"{self._cmd_syntax}:HORZ{x}") @@ -2519,7 +2519,7 @@ class MeasurementImmedDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:IMMed:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementImmedDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementImmedDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -2613,7 +2613,7 @@ class MeasurementImmed(SCPICmdRead): - ``.value``: The ``MEASUrement:IMMed:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = MeasurementImmedDelay(device, f"{self._cmd_syntax}:DELay") self._source2 = MeasurementImmedSource2(device, f"{self._cmd_syntax}:SOUrce2") @@ -2923,7 +2923,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._clearsnapshot = MeasurementClearsnapshot(device, f"{self._cmd_syntax}:CLEARSNapshot") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py index 3f5ffc96..d7d25165 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PictbridgePrintqual(SCPICmdWrite): @@ -243,7 +243,9 @@ class Pictbridge(SCPICmdRead): - ``.printqual``: The ``PICTBridge:PRINTQual`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "PICTBridge") -> None: + def __init__( + self, device: Optional["PIControl"] = None, cmd_syntax: str = "PICTBridge" + ) -> None: super().__init__(device, cmd_syntax) self._dateprint = PictbridgeDateprint(device, f"{self._cmd_syntax}:DATEPrint") self._default = PictbridgeDefault(device, f"{self._cmd_syntax}:DEFault") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/recall.py b/src/tm_devices/commands/gen_u301s_msodpo/recall.py index caed1181..06439f8b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/recall.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): @@ -92,7 +92,7 @@ class Recall(SCPICmdRead): - ``.waveform``: The ``RECAll:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RECAll") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RECAll") -> None: super().__init__(device, cmd_syntax) self._setup = RecallSetup(device, f"{self._cmd_syntax}:SETUp") self._waveform = RecallWaveform(device, f"{self._cmd_syntax}:WAVEform") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ref.py b/src/tm_devices/commands/gen_u301s_msodpo/ref.py index 5f396e55..91d27e8b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ref.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ref.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): @@ -107,7 +107,7 @@ class RefItemVertical(SCPICmdRead): - ``.scale``: The ``REF:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RefItemVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RefItemVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -327,7 +327,7 @@ class RefItemHorizontalDelay(SCPICmdRead): - ``.time``: The ``REF:HORizontal:DELay:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = RefItemHorizontalDelayTime(device, f"{self._cmd_syntax}:TIMe") @@ -372,7 +372,7 @@ class RefItemHorizontal(SCPICmdRead): - ``.scale``: The ``REF:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = RefItemHorizontalDelay(device, f"{self._cmd_syntax}:DELay") self._scale = RefItemHorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -463,7 +463,7 @@ class RefItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.vertical``: The ``REF:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "REF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "REF") -> None: super().__init__(device, cmd_syntax) self._date = RefItemDate(device, f"{self._cmd_syntax}:DATE") self._horizontal = RefItemHorizontal(device, f"{self._cmd_syntax}:HORizontal") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/save.py b/src/tm_devices/commands/gen_u301s_msodpo/save.py index 6e6d6b3e..1953020b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/save.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/save.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSpreadsheetResolution(SCPICmdWrite, SCPICmdRead): @@ -82,7 +82,7 @@ class SaveWaveformSpreadsheet(SCPICmdRead): - ``.resolution``: The ``SAVe:WAVEform:SPREADSheet:RESOlution`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._resolution = SaveWaveformSpreadsheetResolution( device, f"{self._cmd_syntax}:RESOlution" @@ -212,7 +212,7 @@ class SaveWaveform(SCPICmdWrite, SCPICmdRead): - ``.spreadsheet``: The ``SAVe:WAVEform:SPREADSheet`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveWaveformFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._gating = SaveWaveformGating(device, f"{self._cmd_syntax}:GATIng") @@ -402,7 +402,7 @@ class SaveImage(SCPICmdWrite, SCPICmdRead): - ``.layout``: The ``SAVe:IMAGe:LAYout`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._fileformat = SaveImageFileformat(device, f"{self._cmd_syntax}:FILEFormat") self._layout = SaveImageLayout(device, f"{self._cmd_syntax}:LAYout") @@ -492,7 +492,7 @@ class SaveEventtable(SCPICmdRead): - ``.bus``: The ``SAVe:EVENTtable:BUS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus: Dict[int, SaveEventtableBusItem] = DefaultDictPassKeyToFactory( lambda x: SaveEventtableBusItem(device, f"{self._cmd_syntax}:BUS{x}") @@ -579,7 +579,7 @@ class SaveAssign(SCPICmdRead): - ``.type``: The ``SAVe:ASSIgn:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._folder = SaveAssignFolder(device, f"{self._cmd_syntax}:FOLder") self._type = SaveAssignType(device, f"{self._cmd_syntax}:TYPe") @@ -648,7 +648,7 @@ class Save(SCPICmdRead): - ``.waveform``: The ``SAVe:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SAVe") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SAVe") -> None: super().__init__(device, cmd_syntax) self._assign = SaveAssign(device, f"{self._cmd_syntax}:ASSIgn") self._eventtable = SaveEventtable(device, f"{self._cmd_syntax}:EVENTtable") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/search.py b/src/tm_devices/commands/gen_u301s_msodpo/search.py index 404ba248..16d10c0d 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/search.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/search.py @@ -260,7 +260,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( @@ -368,7 +368,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -652,7 +652,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -923,7 +923,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerASetholdThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -1199,7 +1199,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1376,7 +1376,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1493,7 +1493,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -1763,7 +1763,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2045,7 +2045,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2319,7 +2319,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerAPulsewidthPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2561,7 +2561,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -2778,7 +2778,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -2989,7 +2989,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ # noqa: E501 - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -3198,7 +3198,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3363,7 +3363,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3603,7 +3603,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -3723,7 +3723,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3933,7 +3933,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -4147,7 +4147,7 @@ class SearchSearchItemTriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4318,7 +4318,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4483,7 +4483,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -4561,7 +4561,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -4639,7 +4639,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -4717,7 +4717,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -4771,7 +4771,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -4919,7 +4919,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -5046,7 +5046,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -5125,7 +5125,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -5216,7 +5216,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -5294,7 +5294,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -5368,7 +5368,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -5487,7 +5487,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -5567,7 +5567,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -5774,7 +5774,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5962,7 +5962,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -6176,7 +6176,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -6412,7 +6412,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -6532,7 +6532,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -6791,7 +6791,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -7107,7 +7107,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7453,7 +7453,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7733,7 +7733,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -7890,7 +7890,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8212,7 +8212,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -8457,7 +8457,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -8709,7 +8709,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -8796,7 +8796,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -8955,7 +8955,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.spi``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = SearchSearchItemTriggerABusBItemCan(device, f"{self._cmd_syntax}:CAN") self._flexray = SearchSearchItemTriggerABusBItemFlexray( @@ -9128,7 +9128,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -9213,7 +9213,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -9513,7 +9513,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -9624,7 +9624,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._state = SearchSearchItemState(device, f"{self._cmd_syntax}:STATE") @@ -9737,7 +9737,7 @@ class Search(SCPICmdRead): - ``.search``: The ``SEARCH:SEARCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/select.py b/src/tm_devices/commands/gen_u301s_msodpo/select.py index c434e020..ec21e9e9 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/select.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/select.py @@ -37,7 +37,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): @@ -233,7 +233,7 @@ class Select(SCPICmdWrite, SCPICmdRead): - ``.ref``: The ``SELect:REF`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._bus: Dict[int, SelectBusItem] = DefaultDictPassKeyToFactory( lambda x: SelectBusItem(device, f"{self._cmd_syntax}:BUS{x}") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py index 0b9fa4d6..a4cf9f4f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py @@ -303,7 +303,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -410,7 +410,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -502,7 +502,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, TriggerBLowerthresholdDigitalBit] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdDigitalBit(device, f"{self._cmd_syntax}:D{x}") @@ -577,7 +577,7 @@ class TriggerBLevel(SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, TriggerBLevelDigitalBit] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelDigitalBit(device, f"{self._cmd_syntax}:D{x}") @@ -626,7 +626,7 @@ class TriggerB(SCPICmdRead): - ``.lowerthreshold``: The ``TRIGger:B:LOWerthreshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._level = TriggerBLevel(device, f"{self._cmd_syntax}:LEVel") self._lowerthreshold = TriggerBLowerthreshold(device, f"{self._cmd_syntax}:LOWerthreshold") @@ -830,7 +830,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLDoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -896,7 +896,7 @@ class TriggerAVideoHdtv(SCPICmdRead): - ``.format``: The ``TRIGger:A:VIDeo:HDtv:FORMat`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._format = TriggerAVideoHdtvFormat(device, f"{self._cmd_syntax}:FORMat") @@ -1111,7 +1111,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._scan = TriggerAVideoCustomScan(device, f"{self._cmd_syntax}:SCAN") @@ -1295,7 +1295,7 @@ class TriggerAVideo(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._hdtv = TriggerAVideoHdtv(device, f"{self._cmd_syntax}:HDtv") @@ -1577,7 +1577,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1784,7 +1784,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -1975,7 +1975,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2177,7 +2177,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -2343,7 +2343,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2458,7 +2458,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2719,7 +2719,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2978,7 +2978,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -3151,7 +3151,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -3323,7 +3323,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:Width`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerAPulsewidthPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerAPulsewidthSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3569,7 +3569,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.aux``: The ``TRIGger:A:LOWerthreshold:AUX`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3730,7 +3730,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3889,7 +3889,7 @@ class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") @@ -3991,7 +3991,7 @@ class TriggerALogicPatternInput(SCPICmdRead): - ``.d``: The ``TRIGger:A:LOGIc:PATtern:INPut:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._d: Dict[int, TriggerALogicPatternInputDigitalBit] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicPatternInputDigitalBit(device, f"{self._cmd_syntax}:D{x}") @@ -4082,7 +4082,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") @@ -4271,7 +4271,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4388,7 +4388,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.d``: The ``TRIGger:A:LOGIc:INPut:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4566,7 +4566,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -4829,7 +4829,7 @@ class TriggerALevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -4975,7 +4975,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -5119,7 +5119,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -5315,7 +5315,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -5393,7 +5393,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -5470,7 +5470,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -5546,7 +5546,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -5596,7 +5596,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -5737,7 +5737,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -5861,7 +5861,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -5935,7 +5935,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -6024,7 +6024,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -6098,7 +6098,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -6166,7 +6166,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -6274,7 +6274,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -6349,7 +6349,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -6541,7 +6541,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -6715,7 +6715,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -6915,7 +6915,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -7142,7 +7142,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -7253,7 +7253,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -7494,7 +7494,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -7796,7 +7796,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -8125,7 +8125,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -8399,7 +8399,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -8561,7 +8561,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -8857,7 +8857,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -9088,7 +9088,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._qualifier = TriggerABusBItemCanDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -9326,7 +9326,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -9407,7 +9407,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -9548,7 +9548,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.spi``: The ``TRIGger:A:BUS:B:SPI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._can = TriggerABusBItemCan(device, f"{self._cmd_syntax}:CAN") self._flexray = TriggerABusBItemFlexray(device, f"{self._cmd_syntax}:FLEXray") @@ -9709,7 +9709,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -9812,7 +9812,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = TriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -10278,7 +10278,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py index 4937072e..b866571c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): @@ -562,7 +562,7 @@ class Wfminpre(SCPICmdRead): - ``.yzero``: The ``WFMInpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMInpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMInpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfminpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfminpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py index 555c1554..c7949716 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): @@ -572,7 +572,7 @@ class Wfmoutpre(SCPICmdRead): - ``.yzero``: The ``WFMOutpre:YZEro`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "WFMOutpre") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "WFMOutpre") -> None: super().__init__(device, cmd_syntax) self._bit_nr = WfmoutpreBitNr(device, f"{self._cmd_syntax}:BIT_Nr") self._bn_fmt = WfmoutpreBnFmt(device, f"{self._cmd_syntax}:BN_Fmt") diff --git a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py index 280644e3..8ee075ee 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): @@ -172,7 +172,7 @@ class ZoomZoom1Horizontal(SCPICmdRead): - ``.scale``: The ``ZOOm:ZOOM1:HORizontal:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = ZoomZoom1HorizontalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = ZoomZoom1HorizontalScale(device, f"{self._cmd_syntax}:SCAle") @@ -272,7 +272,7 @@ class ZoomZoom1(SCPICmdRead): - ``.state``: The ``ZOOm:ZOOM1:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._factor = ZoomZoom1Factor(device, f"{self._cmd_syntax}:FACtor") self._horizontal = ZoomZoom1Horizontal(device, f"{self._cmd_syntax}:HORizontal") @@ -459,7 +459,7 @@ class Zoom(SCPICmdRead): - ``.state``: The ``ZOOm:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ZOOm") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ZOOm") -> None: super().__init__(device, cmd_syntax) self._zoom1 = ZoomZoom1(device, f"{self._cmd_syntax}:ZOOM1") self._mode = ZoomMode(device, f"{self._cmd_syntax}:MODe") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py index cbd5a689..bef3a2f0 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): @@ -161,7 +161,7 @@ class AcquireSequence(SCPICmdRead): - ``.numsequence``: The ``ACQuire:SEQuence:NUMSEQuence`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._current = AcquireSequenceCurrent(device, f"{self._cmd_syntax}:CURrent") self._numsequence = AcquireSequenceNumsequence(device, f"{self._cmd_syntax}:NUMSEQuence") @@ -446,7 +446,7 @@ class AcquireFastacq(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``ACQuire:FASTAcq:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._palette = AcquireFastacqPalette(device, f"{self._cmd_syntax}:PALEtte") self._state = AcquireFastacqState(device, f"{self._cmd_syntax}:STATE") @@ -543,7 +543,7 @@ class Acquire(SCPICmdRead): - ``.stopafter``: The ``ACQuire:STOPAfter`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ACQuire") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "ACQuire") -> None: super().__init__(device, cmd_syntax) self._fastacq = AcquireFastacq(device, f"{self._cmd_syntax}:FASTAcq") self._magnivu = AcquireMagnivu(device, f"{self._cmd_syntax}:MAGnivu") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py index a8493afb..fe34185f 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py @@ -61,7 +61,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationRosc(SCPICmdRead): @@ -176,7 +176,7 @@ class ConfigurationRf(SCPICmdRead): - ``.numchannels``: The ``CONFIGuration:RF:NUMCHANnels`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._advtrig = ConfigurationRfAdvtrig(device, f"{self._cmd_syntax}:ADVTRIG") self._bandwidth = ConfigurationRfBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -296,7 +296,7 @@ class ConfigurationRefs(SCPICmdRead): - ``.numrefs``: The ``CONFIGuration:REFS:NUMREFS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numrefs = ConfigurationRefsNumrefs(device, f"{self._cmd_syntax}:NUMREFS") @@ -484,7 +484,7 @@ class ConfigurationDigital(SCPICmdRead): - ``.numchannels``: The ``CONFIGuration:DIGITAl:NUMCHANnels`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._magnivu = ConfigurationDigitalMagnivu(device, f"{self._cmd_syntax}:MAGnivu") self._maxsamplerate = ConfigurationDigitalMaxsamplerate( @@ -602,7 +602,7 @@ class ConfigurationBuswaveformsUsb(SCPICmdRead): - ``.hs``: The ``CONFIGuration:BUSWAVEFORMS:USB:HS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hs = ConfigurationBuswaveformsUsbHs(device, f"{self._cmd_syntax}:HS") @@ -910,7 +910,7 @@ class ConfigurationBuswaveforms(SCPICmdRead): - ``.usb``: The ``CONFIGuration:BUSWAVEFORMS:USB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = ConfigurationBuswaveformsArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -1384,7 +1384,7 @@ class ConfigurationApplications(SCPICmdRead): - ``.vidpic``: The ``CONFIGuration:APPLications:VIDPIC`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custommask = ConfigurationApplicationsCustommask( device, f"{self._cmd_syntax}:CUSTOMMask" @@ -1633,7 +1633,7 @@ class ConfigurationAnalog(SCPICmdRead): - ``.vertinvert``: The ``CONFIGuration:ANALOg:VERTINVert`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = ConfigurationAnalogBandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._maxbandwidth = ConfigurationAnalogMaxbandwidth( @@ -1839,7 +1839,7 @@ class Configuration(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CONFIGuration" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "CONFIGuration" ) -> None: super().__init__(device, cmd_syntax) self._advmath = ConfigurationAdvmath(device, f"{self._cmd_syntax}:ADVMATH") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py index b3f19c3e..7587690b 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): @@ -148,7 +148,7 @@ class CursorXyRectangularY(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:Y:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularYDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularYPositionItem] = DefaultDictPassKeyToFactory( @@ -299,7 +299,7 @@ class CursorXyRectangularX(SCPICmdRead): - ``.units``: The ``CURSor:XY:RECTangular:X:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRectangularXDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRectangularXPositionItem] = DefaultDictPassKeyToFactory( @@ -387,7 +387,7 @@ class CursorXyRectangular(SCPICmdRead): - ``.y``: The ``CURSor:XY:RECTangular:Y`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._x = CursorXyRectangularX(device, f"{self._cmd_syntax}:X") self._y = CursorXyRectangularY(device, f"{self._cmd_syntax}:Y") @@ -521,7 +521,7 @@ class CursorXyRatio(SCPICmdRead): - ``.units``: The ``CURSor:XY:RATIO:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyRatioDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyRatioPositionItem] = DefaultDictPassKeyToFactory( @@ -661,7 +661,7 @@ class CursorXyProduct(SCPICmdRead): - ``.units``: The ``CURSor:XY:PRODUCT:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyProductDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyProductPositionItem] = DefaultDictPassKeyToFactory( @@ -798,7 +798,7 @@ class CursorXyPolarTheta(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:THETA:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarThetaDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarThetaPositionItem] = DefaultDictPassKeyToFactory( @@ -935,7 +935,7 @@ class CursorXyPolarRadius(SCPICmdRead): - ``.units``: The ``CURSor:XY:POLar:RADIUS:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorXyPolarRadiusDelta(device, f"{self._cmd_syntax}:DELta") self._position: Dict[int, CursorXyPolarRadiusPositionItem] = DefaultDictPassKeyToFactory( @@ -1017,7 +1017,7 @@ class CursorXyPolar(SCPICmdRead): - ``.theta``: The ``CURSor:XY:POLar:THETA`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._radius = CursorXyPolarRadius(device, f"{self._cmd_syntax}:RADIUS") self._theta = CursorXyPolarTheta(device, f"{self._cmd_syntax}:THETA") @@ -1071,7 +1071,7 @@ class CursorXy(SCPICmdRead): - ``.rectangular``: The ``CURSor:XY:RECTangular`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polar = CursorXyPolar(device, f"{self._cmd_syntax}:POLar") self._product = CursorXyProduct(device, f"{self._cmd_syntax}:PRODUCT") @@ -1353,7 +1353,7 @@ class CursorVbars(SCPICmdRead): - ``.vdelta``: The ``CURSor:VBArs:VDELTa`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._alternate: Dict[int, CursorVbarsAlternateItem] = DefaultDictPassKeyToFactory( lambda x: CursorVbarsAlternateItem(device, f"{self._cmd_syntax}:ALTERNATE{x}") @@ -1717,7 +1717,7 @@ class CursorHbars(SCPICmdRead): - ``.use``: The ``CURSor:HBArs:USE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delta = CursorHbarsDelta(device, f"{self._cmd_syntax}:DELTa") self._position: Dict[int, CursorHbarsPositionItem] = DefaultDictPassKeyToFactory( @@ -1899,7 +1899,7 @@ class Cursor(SCPICmdRead): - ``.xy``: The ``CURSor:XY`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "CURSor") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "CURSor") -> None: super().__init__(device, cmd_syntax) self._ddt = CursorDdt(device, f"{self._cmd_syntax}:DDT") self._function = CursorFunction(device, f"{self._cmd_syntax}:FUNCtion") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py index f9793826..4f6a6018 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): @@ -69,7 +69,7 @@ class Deskew(SCPICmdWrite, SCPICmdRead): - ``.display``: The ``DESkew:DISplay`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DESkew") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DESkew") -> None: super().__init__(device, cmd_syntax) self._display = DeskewDisplay(device, f"{self._cmd_syntax}:DISplay") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/display.py b/src/tm_devices/commands/gen_ujuvb_mdo/display.py index 9cb09979..a5ca9d8b 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/display.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/display.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): @@ -110,7 +110,7 @@ class DisplayXy(SCPICmdWrite, SCPICmdRead): - ``.withyt``: The ``DISplay:XY:WITHYT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._withyt = DisplayXyWithyt(device, f"{self._cmd_syntax}:WITHYT") @@ -202,7 +202,7 @@ class DisplayStyle(SCPICmdRead): - ``.dotsonly``: The ``DISplay:STYle:DOTsonly`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._dotsonly = DisplayStyleDotsonly(device, f"{self._cmd_syntax}:DOTsonly") @@ -384,7 +384,7 @@ class DisplayIntensityBacklightAutodim(SCPICmdRead): - ``.time``: The ``DISplay:INTENSITy:BACKLight:AUTODim:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = DisplayIntensityBacklightAutodimEnable(device, f"{self._cmd_syntax}:ENAble") self._time = DisplayIntensityBacklightAutodimTime(device, f"{self._cmd_syntax}:TIMe") @@ -478,7 +478,7 @@ class DisplayIntensityBacklight(SCPICmdWrite, SCPICmdRead): - ``.autodim``: The ``DISplay:INTENSITy:BACKLight:AUTODim`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autodim = DisplayIntensityBacklightAutodim(device, f"{self._cmd_syntax}:AUTODim") @@ -522,7 +522,7 @@ class DisplayIntensity(SCPICmdRead): - ``.waveform``: The ``DISplay:INTENSITy:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._backlight = DisplayIntensityBacklight(device, f"{self._cmd_syntax}:BACKLight") self._graticule = DisplayIntensityGraticule(device, f"{self._cmd_syntax}:GRAticule") @@ -704,7 +704,7 @@ class DisplayDigital(SCPICmdRead): - ``.height``: The ``DISplay:DIGital:HEIght`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._activity = DisplayDigitalActivity(device, f"{self._cmd_syntax}:ACTIVity") self._height = DisplayDigitalHeight(device, f"{self._cmd_syntax}:HEIght") @@ -807,7 +807,7 @@ class DisplayConfigure(SCPICmdRead): - ``.readout``: The ``DISplay:CONFIGure:READOut`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._readout = DisplayConfigureReadout(device, f"{self._cmd_syntax}:READOut") @@ -876,7 +876,7 @@ class DisplayColor(SCPICmdRead): - ``.mode``: The ``DISplay:COLor:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = DisplayColorMode(device, f"{self._cmd_syntax}:MODe") @@ -963,7 +963,7 @@ class Display(SCPICmdRead): - ``.xy``: The ``DISplay:XY`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "DISplay") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "DISplay") -> None: super().__init__(device, cmd_syntax) self._clock = DisplayClock(device, f"{self._cmd_syntax}:CLOCk") self._color = DisplayColor(device, f"{self._cmd_syntax}:COLor") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py index dc3f3052..6440db0e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LockTouchscreen(SCPICmdWrite, SCPICmdRead): @@ -148,7 +148,7 @@ class Lock(SCPICmdRead): - ``.touchscreen``: The ``LOCk:TOUCHscreen`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "LOCk") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "LOCk") -> None: super().__init__(device, cmd_syntax) self._all = LockAll(device, f"{self._cmd_syntax}:ALL") self._fpanel = LockFpanel(device, f"{self._cmd_syntax}:FPanel") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py index 1d68727a..02f8a53e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py @@ -115,7 +115,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): @@ -319,7 +319,7 @@ class MaskUserSegItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:USER:SEG:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskUserSegItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskUserSegItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -470,7 +470,7 @@ class MaskUserMaskItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): - ``.points``: The ``MASK:USER:MASK:POINTS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._nr_pt = MaskUserMaskItemNrPt(device, f"{self._cmd_syntax}:NR_Pt") self._points = MaskUserMaskItemPoints(device, f"{self._cmd_syntax}:POINTS") @@ -650,7 +650,7 @@ class MaskUser(SCPICmdRead): - ``.mask``: The ``MASK:USER:MASK`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MaskUserAmplitude(device, f"{self._cmd_syntax}:AMPLitude") self._hscale = MaskUserHscale(device, f"{self._cmd_syntax}:HSCAle") @@ -1109,7 +1109,7 @@ class MaskTestStop(SCPICmdRead): - ``.failure``: The ``MASK:TESt:STOP:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failure = MaskTestStopFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1264,7 +1264,7 @@ class MaskTestSrq(SCPICmdRead): - ``.failure``: The ``MASK:TESt:SRQ:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestSrqCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestSrqFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1525,7 +1525,7 @@ class MaskTestCompletion(SCPICmdRead): - ``.criterion``: The ``MASK:TESt:COMPLetion:CRITerion`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._criterion = MaskTestCompletionCriterion(device, f"{self._cmd_syntax}:CRITerion") @@ -1637,7 +1637,7 @@ class MaskTestAuxout(SCPICmdRead): - ``.failure``: The ``MASK:TESt:AUXout:FAILure`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._completion = MaskTestAuxoutCompletion(device, f"{self._cmd_syntax}:COMPLetion") self._failure = MaskTestAuxoutFailure(device, f"{self._cmd_syntax}:FAILure") @@ -1734,7 +1734,7 @@ class MaskTest(SCPICmdRead): - ``.waveform``: The ``MASK:TESt:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxout = MaskTestAuxout(device, f"{self._cmd_syntax}:AUXout") self._completion = MaskTestCompletion(device, f"{self._cmd_syntax}:COMPLetion") @@ -2170,7 +2170,7 @@ class MaskTemplateTolerance(SCPICmdRead): - ``.vertical``: The ``MASK:TEMPLate:TOLerance:VERTical`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horizontal = MaskTemplateToleranceHorizontal(device, f"{self._cmd_syntax}:HORizontal") self._vertical = MaskTemplateToleranceVertical(device, f"{self._cmd_syntax}:VERTical") @@ -2298,7 +2298,7 @@ class MaskTemplate(SCPICmdRead): - ``.tolerance``: The ``MASK:TEMPLate:TOLerance`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._createmask = MaskTemplateCreatemask(device, f"{self._cmd_syntax}:CREATEmask") self._source = MaskTemplateSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2521,7 +2521,7 @@ class MaskMargin(SCPICmdRead): - ``.percent``: The ``MASK:MARgin:PERCent`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._percent = MaskMarginPercent(device, f"{self._cmd_syntax}:PERCent") @@ -2727,7 +2727,7 @@ class MaskCountSegItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.hits``: The ``MASK:COUNt:SEG:HITS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hits = MaskCountSegItemHits(device, f"{self._cmd_syntax}:HITS") @@ -2816,7 +2816,7 @@ class MaskCount(SCPICmdWrite, SCPICmdRead): - ``.waveforms``: The ``MASK:COUNt:WAVEFORMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._failures = MaskCountFailures(device, f"{self._cmd_syntax}:FAILURES") self._hits = MaskCountHits(device, f"{self._cmd_syntax}:HITS") @@ -3041,7 +3041,7 @@ class MaskCopy(SCPICmdRead): - ``.user``: The ``MASK:COPy:USER`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = MaskCopySource(device, f"{self._cmd_syntax}:SOUrce") self._user = MaskCopyUser(device, f"{self._cmd_syntax}:USER") @@ -3167,7 +3167,7 @@ class MaskActonevent(SCPICmdRead): - ``.enable``: The ``MASK:ACTONEVent:ENable`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._enable = MaskActoneventEnable(device, f"{self._cmd_syntax}:ENable") @@ -3223,7 +3223,7 @@ class Mask(SCPICmdRead): - ``.user``: The ``MASK:USER`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MASK") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MASK") -> None: super().__init__(device, cmd_syntax) self._actonevent = MaskActonevent(device, f"{self._cmd_syntax}:ACTONEVent") self._copy = MaskCopy(device, f"{self._cmd_syntax}:COPy") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py index f4a1d05e..17c0133e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): @@ -198,7 +198,7 @@ class MeasurementStatistics(SCPICmdWrite, SCPICmdRead): - ``.weighting``: The ``MEASUrement:STATIstics:WEIghting`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = MeasurementStatisticsMode(device, f"{self._cmd_syntax}:MODe") self._weighting = MeasurementStatisticsWeighting(device, f"{self._cmd_syntax}:WEIghting") @@ -881,7 +881,7 @@ class MeasurementSnapshot(SCPICmdWriteNoArguments, SCPICmdRead): - ``.rms``: The ``MEASUrement:SNAPShot:RMS`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._amplitude = MeasurementSnapshotAmplitude(device, f"{self._cmd_syntax}:AMPlitude") self._area = MeasurementSnapshotArea(device, f"{self._cmd_syntax}:AREa") @@ -1627,7 +1627,7 @@ class MeasurementReflevelPercent(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:PERCent:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelPercentHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelPercentLow(device, f"{self._cmd_syntax}:LOW") @@ -1855,7 +1855,7 @@ class MeasurementReflevelAbsolute(SCPICmdRead): - ``.mid``: The ``MEASUrement:REFLevel:ABSolute:MID`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = MeasurementReflevelAbsoluteHigh(device, f"{self._cmd_syntax}:HIGH") self._low = MeasurementReflevelAbsoluteLow(device, f"{self._cmd_syntax}:LOW") @@ -1977,7 +1977,7 @@ class MeasurementReflevel(SCPICmdRead): - ``.percent``: The ``MEASUrement:REFLevel:PERCent`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._absolute = MeasurementReflevelAbsolute(device, f"{self._cmd_syntax}:ABSolute") self._method = MeasurementReflevelMethod(device, f"{self._cmd_syntax}:METHod") @@ -2466,7 +2466,7 @@ class MeasurementMeasItemDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:MEAS:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementMeasItemDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementMeasItemDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -2591,7 +2591,7 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.value``: The ``MEASUrement:MEAS:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = MeasurementMeasItemCount(device, f"{self._cmd_syntax}:COUNt") self._delay = MeasurementMeasItemDelay(device, f"{self._cmd_syntax}:DELay") @@ -3096,7 +3096,7 @@ class MeasurementIndicators(SCPICmdRead): - ``.vert``: The ``MEASUrement:INDICators:VERT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._horz: Dict[int, MeasurementIndicatorsHorzItem] = DefaultDictPassKeyToFactory( lambda x: MeasurementIndicatorsHorzItem(device, f"{self._cmd_syntax}:HORZ{x}") @@ -3489,7 +3489,7 @@ class MeasurementImmedDelay(SCPICmdRead): - ``.edge``: The ``MEASUrement:IMMed:DELay:EDGE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = MeasurementImmedDelayDirection(device, f"{self._cmd_syntax}:DIRection") self._edge: Dict[int, MeasurementImmedDelayEdgeItem] = DefaultDictPassKeyToFactory( @@ -3582,7 +3582,7 @@ class MeasurementImmed(SCPICmdRead): - ``.value``: The ``MEASUrement:IMMed:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._delay = MeasurementImmedDelay(device, f"{self._cmd_syntax}:DELay") self._source1 = MeasurementImmedSource1(device, f"{self._cmd_syntax}:SOUrce1") @@ -3890,7 +3890,7 @@ class Measurement(SCPICmdRead): """ def __init__( - self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MEASUrement" + self, device: Optional["PIControl"] = None, cmd_syntax: str = "MEASUrement" ) -> None: super().__init__(device, cmd_syntax) self._clearsnapshot = MeasurementClearsnapshot(device, f"{self._cmd_syntax}:CLEARSNapshot") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/message.py b/src/tm_devices/commands/gen_ujuvb_mdo/message.py index 80896bab..a93469d3 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/message.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/message.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): @@ -221,7 +221,7 @@ class MessageMessage1Item(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.state``: The ``MESSage:MESSAGE1:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._box = MessageMessage1ItemBox(device, f"{self._cmd_syntax}:BOX") self._clear = MessageMessage1ItemClear(device, f"{self._cmd_syntax}:CLEAR") @@ -423,7 +423,7 @@ class Message(SCPICmdWriteNoArguments, SCPICmdRead): - ``.state``: The ``MESSage:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "MESSage") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "MESSage") -> None: super().__init__(device, cmd_syntax) self._box = MessageBox(device, f"{self._cmd_syntax}:BOX") self._clear = MessageClear(device, f"{self._cmd_syntax}:CLEAR") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py index 093fe4c2..b84170d6 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): @@ -109,7 +109,7 @@ class RecallSetup(SCPICmdWrite, SCPICmdRead): - ``.demo3``: The ``RECAll:SETUp:DEMO3`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._demo3: Dict[int, RecallSetupDemo3Item] = DefaultDictPassKeyToFactory( lambda x: RecallSetupDemo3Item(device, f"{self._cmd_syntax}:DEMO3{x}") @@ -172,7 +172,7 @@ class Recall(SCPICmdRead): - ``.waveform``: The ``RECAll:WAVEform`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RECAll") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RECAll") -> None: super().__init__(device, cmd_syntax) self._mask = RecallMask(device, f"{self._cmd_syntax}:MASK") self._setup = RecallSetup(device, f"{self._cmd_syntax}:SETUp") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py index 12b4a9e7..667f225a 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py @@ -122,7 +122,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): @@ -385,7 +385,7 @@ class RfSpectrogram(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``RF:SPECTRogram:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numslices = RfSpectrogramNumslices(device, f"{self._cmd_syntax}:NUMSLICEs") self._sliceselect = RfSpectrogramSliceselect(device, f"{self._cmd_syntax}:SLICESELect") @@ -658,7 +658,7 @@ class RfRfVTime(SCPICmdRead): - ``.bandwidth``: The ``RF:RF_V_TIMe:BANDWidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = RfRfVTimeBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -720,7 +720,7 @@ class RfRfPhaseWrap(SCPICmdRead): - ``.state``: The ``RF:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -761,7 +761,7 @@ class RfRfPhase(SCPICmdRead): - ``.wrap``: The ``RF:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._wrap = RfRfPhaseWrap(device, f"{self._cmd_syntax}:WRAP") @@ -837,7 +837,7 @@ class RfRfAverage(SCPICmdRead): - ``.numavg``: The ``RF:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = RfRfAverageCount(device, f"{self._cmd_syntax}:COUNt") self._numavg = RfRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -957,7 +957,7 @@ class RfRfAmplitudeVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_AMPlitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfAmplitudeVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfAmplitudeVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1056,7 +1056,7 @@ class RfRfAmplitude(SCPICmdRead): - ``.vertical``: The ``RF:RF_AMPlitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfAmplitudeLabel(device, f"{self._cmd_syntax}:LABel") self._vertical = RfRfAmplitudeVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1187,7 +1187,7 @@ class RfRbw(SCPICmdWrite, SCPICmdRead): - ``.mode``: The ``RF:RBW:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfRbwMode(device, f"{self._cmd_syntax}:MODe") @@ -1354,7 +1354,7 @@ class RfProbePreamp(SCPICmdRead): - ``.status``: The ``RF:PRObe:PREAmp:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfProbePreampMode(device, f"{self._cmd_syntax}:MODe") self._status = RfProbePreampStatus(device, f"{self._cmd_syntax}:STATus") @@ -1471,7 +1471,7 @@ class RfProbeId(SCPICmdRead): - ``.type``: The ``RF:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = RfProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = RfProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -1601,7 +1601,7 @@ class RfProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -1716,7 +1716,7 @@ class RfProbeCalibrate(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:CALibrate:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = RfProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -1804,7 +1804,7 @@ class RfProbe(SCPICmdRead): - ``.units``: The ``RF:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = RfProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = RfProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -2261,7 +2261,7 @@ class RfMeasureObw(SCPICmdRead): - ``.upperfreq``: The ``RF:MEASUre:OBW:UPPERFreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureObwChanbw(device, f"{self._cmd_syntax}:CHANBW") self._lowerfreq = RfMeasureObwLowerfreq(device, f"{self._cmd_syntax}:LOWERFreq") @@ -2447,7 +2447,7 @@ class RfMeasureCp(SCPICmdRead): - ``.power``: The ``RF:MEASUre:CP:POWer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureCpChanbw(device, f"{self._cmd_syntax}:CHANBW") self._power = RfMeasureCpPower(device, f"{self._cmd_syntax}:POWer") @@ -2761,7 +2761,7 @@ class RfMeasureAcpr(SCPICmdRead): - ``.ua3db``: The ``RF:MEASUre:ACPR:UA3DB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjacentpairs = RfMeasureAcprAdjacentpairs( device, f"{self._cmd_syntax}:ADJACENTPAIRs" @@ -3041,7 +3041,7 @@ class RfMeasure(SCPICmdRead): - ``.type``: The ``RF:MEASUre:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acpr = RfMeasureAcpr(device, f"{self._cmd_syntax}:ACPR") self._cp = RfMeasureCp(device, f"{self._cmd_syntax}:CP") @@ -3371,7 +3371,7 @@ class RfDetectionmethod(SCPICmdRead): - ``.rf_normal``: The ``RF:DETECTionmethod:RF_NORMal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfDetectionmethodMode(device, f"{self._cmd_syntax}:MODe") self._rf_average = RfDetectionmethodRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") @@ -3601,7 +3601,7 @@ class Rf(SCPICmdRead): - ``.window``: The ``RF:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RF") -> None: super().__init__(device, cmd_syntax) self._clipping = RfClipping(device, f"{self._cmd_syntax}:CLIPPing") self._detectionmethod = RfDetectionmethod(device, f"{self._cmd_syntax}:DETECTionmethod") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py index 2b48ecf6..d13e9633 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RrbState(SCPICmdWrite, SCPICmdRead): @@ -59,7 +59,7 @@ class Rrb(SCPICmdRead): - ``.state``: The ``RRB:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RRB") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RRB") -> None: super().__init__(device, cmd_syntax) self._state = RrbState(device, f"{self._cmd_syntax}:STATE") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/search.py b/src/tm_devices/commands/gen_ujuvb_mdo/search.py index 88aa0843..74f5902e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/search.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/search.py @@ -395,7 +395,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( @@ -502,7 +502,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -794,7 +794,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1038,7 +1038,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1242,7 +1242,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1482,7 +1482,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1662,7 +1662,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1782,7 +1782,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2052,7 +2052,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2333,7 +2333,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2676,7 +2676,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -2989,7 +2989,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3199,7 +3199,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3406,7 +3406,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -3520,7 +3520,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3577,7 +3577,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3815,7 +3815,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -3937,7 +3937,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4149,7 +4149,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -4349,7 +4349,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4526,7 +4526,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4705,7 +4705,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -4792,7 +4792,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -4876,7 +4876,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -4959,7 +4959,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -5043,7 +5043,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -5101,7 +5101,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -5398,7 +5398,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -5591,7 +5591,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5860,7 +5860,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -5955,7 +5955,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -6368,7 +6368,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -6446,7 +6446,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -6524,7 +6524,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -6602,7 +6602,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -6656,7 +6656,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -6807,7 +6807,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -6937,7 +6937,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7016,7 +7016,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -7107,7 +7107,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7185,7 +7185,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -7257,7 +7257,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7374,7 +7374,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -7521,7 +7521,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -7966,7 +7966,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -8395,7 +8395,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -8522,7 +8522,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -8722,7 +8722,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -9081,7 +9081,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9210,7 +9210,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9404,7 +9404,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -9623,7 +9623,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -9835,7 +9835,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10024,7 +10024,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -10242,7 +10242,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -10478,7 +10478,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -10598,7 +10598,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10857,7 +10857,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -11176,7 +11176,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11528,7 +11528,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11814,7 +11814,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11974,7 +11974,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -12305,7 +12305,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetDataValue( device, f"{self._cmd_syntax}:VALue" @@ -12364,7 +12364,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemEthernetData( device, f"{self._cmd_syntax}:DATa" @@ -12494,7 +12494,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -12680,7 +12680,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -12934,7 +12934,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -13227,7 +13227,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -13317,7 +13317,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13654,7 +13654,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13875,7 +13875,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14099,7 +14099,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14351,7 +14351,7 @@ class SearchSearchItemTriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14510,7 +14510,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14720,7 +14720,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -15013,7 +15013,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15104,7 +15104,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -15418,7 +15418,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -15554,7 +15554,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -15692,7 +15692,7 @@ class Search(SCPICmdRead): - ``.search``: The ``SEARCH:SEARCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/select.py b/src/tm_devices/commands/gen_ujuvb_mdo/select.py index be283c9b..2582ce6f 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/select.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/select.py @@ -51,7 +51,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRfNormal(SCPICmdWrite, SCPICmdRead): @@ -435,7 +435,7 @@ class Select(SCPICmdRead): - ``.math1``: The ``SELect:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SELect") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SELect") -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SelectChannel] = DefaultDictPassKeyToFactory( lambda x: SelectChannel(device, f"{self._cmd_syntax}:CH{x}") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py index d49849f9..c0cb9317 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Setup1ItemTime(SCPICmdRead): @@ -96,7 +96,7 @@ class Setup1Item(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.time``: The ``SETUP1:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SETUP1") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SETUP1") -> None: super().__init__(device, cmd_syntax) self._date = Setup1ItemDate(device, f"{self._cmd_syntax}:DATE") self._label = Setup1ItemLabel(device, f"{self._cmd_syntax}:LABel") diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py index 43df5475..55a22bc2 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py @@ -446,7 +446,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -553,7 +553,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -751,7 +751,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -901,7 +901,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1013,7 +1013,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -1144,7 +1144,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -1296,7 +1296,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") @@ -1689,7 +1689,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._syncinterval = TriggerAVideoCustomSyncinterval( @@ -1827,7 +1827,7 @@ class TriggerAVideo(SCPICmdRead): - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._standard = TriggerAVideoStandard(device, f"{self._cmd_syntax}:STANdard") @@ -1954,7 +1954,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2166,7 +2166,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2391,7 +2391,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -2558,7 +2558,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2762,7 +2762,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -2935,7 +2935,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3054,7 +3054,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -3315,7 +3315,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3573,7 +3573,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -3752,7 +3752,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -3996,7 +3996,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4338,7 +4338,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ext``: The ``TRIGger:A:LOWerthreshold:EXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4531,7 +4531,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:LOGIc:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4685,7 +4685,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -4883,7 +4883,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5000,7 +5000,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:INPut:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5210,7 +5210,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -5463,7 +5463,7 @@ class TriggerALevel(SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -5611,7 +5611,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -5753,7 +5753,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -5952,7 +5952,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -6033,7 +6033,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -6111,7 +6111,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -6189,7 +6189,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -6241,7 +6241,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._port = TriggerABusBItemUsbSplitPort(device, f"{self._cmd_syntax}:PORT") @@ -6494,7 +6494,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -6671,7 +6671,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -6924,7 +6924,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7011,7 +7011,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -7385,7 +7385,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -7463,7 +7463,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -7540,7 +7540,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -7616,7 +7616,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -7666,7 +7666,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -7807,7 +7807,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -7931,7 +7931,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8005,7 +8005,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -8094,7 +8094,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8168,7 +8168,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -8234,7 +8234,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -8340,7 +8340,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -8478,7 +8478,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -8924,7 +8924,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -9334,7 +9334,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9454,7 +9454,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -9636,7 +9636,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -9984,7 +9984,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10106,7 +10106,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10286,7 +10286,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -10478,7 +10478,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -10672,7 +10672,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -10846,7 +10846,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -11048,7 +11048,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -11275,7 +11275,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -11386,7 +11386,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -11627,7 +11627,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADer:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -11931,7 +11931,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -12264,7 +12264,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -12542,7 +12542,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12706,7 +12706,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADer`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -12972,7 +12972,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -13021,7 +13021,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( device, f"{self._cmd_syntax}:DESTinationport" @@ -13057,7 +13057,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._tcpheader = TriggerABusBItemEthernetTcpheader(device, f"{self._cmd_syntax}:TCPHeader") @@ -13152,7 +13152,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -13322,7 +13322,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBIT") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBIT") @@ -13561,7 +13561,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -13840,7 +13840,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -13923,7 +13923,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -14231,7 +14231,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemAudioDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemAudioDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -14432,7 +14432,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -14642,7 +14642,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -14882,7 +14882,7 @@ class TriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aDataQualifier( @@ -15031,7 +15031,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15226,7 +15226,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -15491,7 +15491,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15585,7 +15585,7 @@ class TriggerABandwidthRf(SCPICmdRead): - ``.high``: The ``TRIGger:A:BANDWidth:RF:HIGH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerABandwidthRfHigh(device, f"{self._cmd_syntax}:HIGH") @@ -15624,7 +15624,7 @@ class TriggerABandwidth(SCPICmdRead): - ``.rf``: The ``TRIGger:A:BANDWidth:RF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = TriggerABandwidthRf(device, f"{self._cmd_syntax}:RF") @@ -15691,7 +15691,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = TriggerABandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") @@ -16161,7 +16161,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/gen_usaa3_mdo/rf.py b/src/tm_devices/commands/gen_usaa3_mdo/rf.py index 65b050b2..d31b7337 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/rf.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/rf.py @@ -132,7 +132,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): @@ -305,7 +305,7 @@ class RfSquelch(SCPICmdRead): - ``.threshold``: The ``RF:SQUELCH:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfSquelchState(device, f"{self._cmd_syntax}:STATE") self._threshold = RfSquelchThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -513,7 +513,7 @@ class RfSpectrogram(SCPICmdWrite, SCPICmdRead): - ``.time``: The ``RF:SPECTRogram:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._numslices = RfSpectrogramNumslices(device, f"{self._cmd_syntax}:NUMSLICEs") self._sliceselect = RfSpectrogramSliceselect(device, f"{self._cmd_syntax}:SLICESELect") @@ -815,7 +815,7 @@ class RfRfVTime(SCPICmdRead): - ``.bandwidth``: The ``RF:RF_V_TIMe:BANDWidth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = RfRfVTimeBandwidth(device, f"{self._cmd_syntax}:BANDWidth") @@ -901,7 +901,7 @@ class RfRfPhaseWrap(SCPICmdRead): - ``.state``: The ``RF:RF_PHASe:WRAP:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = RfRfPhaseWrapDegrees(device, f"{self._cmd_syntax}:DEGrees") self._state = RfRfPhaseWrapState(device, f"{self._cmd_syntax}:STATE") @@ -990,7 +990,7 @@ class RfRfPhaseReference(SCPICmdRead): - ``.degrees``: The ``RF:RF_PHASe:REFERence:DEGrees`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._degrees = RfRfPhaseReferenceDegrees(device, f"{self._cmd_syntax}:DEGrees") @@ -1032,7 +1032,7 @@ class RfRfPhase(SCPICmdRead): - ``.wrap``: The ``RF:RF_PHASe:WRAP`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._reference = RfRfPhaseReference(device, f"{self._cmd_syntax}:REFERence") self._wrap = RfRfPhaseWrap(device, f"{self._cmd_syntax}:WRAP") @@ -1124,7 +1124,7 @@ class RfRfAverage(SCPICmdRead): - ``.numavg``: The ``RF:RF_AVErage:NUMAVg`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = RfRfAverageCount(device, f"{self._cmd_syntax}:COUNt") self._numavg = RfRfAverageNumavg(device, f"{self._cmd_syntax}:NUMAVg") @@ -1244,7 +1244,7 @@ class RfRfAmplitudeVertical(SCPICmdRead): - ``.scale``: The ``RF:RF_AMPlitude:VERTical:SCAle`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._position = RfRfAmplitudeVerticalPosition(device, f"{self._cmd_syntax}:POSition") self._scale = RfRfAmplitudeVerticalScale(device, f"{self._cmd_syntax}:SCAle") @@ -1343,7 +1343,7 @@ class RfRfAmplitude(SCPICmdRead): - ``.vertical``: The ``RF:RF_AMPlitude:VERTical`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._label = RfRfAmplitudeLabel(device, f"{self._cmd_syntax}:LABel") self._vertical = RfRfAmplitudeVertical(device, f"{self._cmd_syntax}:VERTical") @@ -1474,7 +1474,7 @@ class RfRbw(SCPICmdWrite, SCPICmdRead): - ``.mode``: The ``RF:RBW:MODe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfRbwMode(device, f"{self._cmd_syntax}:MODe") @@ -1641,7 +1641,7 @@ class RfProbePreamp(SCPICmdRead): - ``.status``: The ``RF:PRObe:PREAmp:STATus`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfProbePreampMode(device, f"{self._cmd_syntax}:MODe") self._status = RfProbePreampStatus(device, f"{self._cmd_syntax}:STATus") @@ -1758,7 +1758,7 @@ class RfProbeId(SCPICmdRead): - ``.type``: The ``RF:PRObe:ID:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._sernumber = RfProbeIdSernumber(device, f"{self._cmd_syntax}:SERnumber") self._type = RfProbeIdType(device, f"{self._cmd_syntax}:TYPe") @@ -1888,7 +1888,7 @@ class RfProbeDegauss(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:DEGAUss:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._state = RfProbeDegaussState(device, f"{self._cmd_syntax}:STATE") @@ -2003,7 +2003,7 @@ class RfProbeCalibrate(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``RF:PRObe:CALibrate:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._calibratable = RfProbeCalibrateCalibratable( device, f"{self._cmd_syntax}:CALIBRATABLe" @@ -2091,7 +2091,7 @@ class RfProbe(SCPICmdRead): - ``.units``: The ``RF:PRObe:UNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._autozero = RfProbeAutozero(device, f"{self._cmd_syntax}:AUTOZero") self._calibrate = RfProbeCalibrate(device, f"{self._cmd_syntax}:CALibrate") @@ -2548,7 +2548,7 @@ class RfMeasureObw(SCPICmdRead): - ``.upperfreq``: The ``RF:MEASUre:OBW:UPPERFreq`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureObwChanbw(device, f"{self._cmd_syntax}:CHANBW") self._lowerfreq = RfMeasureObwLowerfreq(device, f"{self._cmd_syntax}:LOWERFreq") @@ -2734,7 +2734,7 @@ class RfMeasureCp(SCPICmdRead): - ``.power``: The ``RF:MEASUre:CP:POWer`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._chanbw = RfMeasureCpChanbw(device, f"{self._cmd_syntax}:CHANBW") self._power = RfMeasureCpPower(device, f"{self._cmd_syntax}:POWer") @@ -3048,7 +3048,7 @@ class RfMeasureAcpr(SCPICmdRead): - ``.ua3db``: The ``RF:MEASUre:ACPR:UA3DB`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._adjacentpairs = RfMeasureAcprAdjacentpairs( device, f"{self._cmd_syntax}:ADJACENTPAIRs" @@ -3328,7 +3328,7 @@ class RfMeasure(SCPICmdRead): - ``.type``: The ``RF:MEASUre:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._acpr = RfMeasureAcpr(device, f"{self._cmd_syntax}:ACPR") self._cp = RfMeasureCp(device, f"{self._cmd_syntax}:CP") @@ -3658,7 +3658,7 @@ class RfDetectionmethod(SCPICmdRead): - ``.rf_normal``: The ``RF:DETECTionmethod:RF_NORMal`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = RfDetectionmethodMode(device, f"{self._cmd_syntax}:MODe") self._rf_average = RfDetectionmethodRfAverage(device, f"{self._cmd_syntax}:RF_AVErage") @@ -3890,7 +3890,7 @@ class Rf(SCPICmdRead): - ``.window``: The ``RF:WINdow`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "RF") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "RF") -> None: super().__init__(device, cmd_syntax) self._clipping = RfClipping(device, f"{self._cmd_syntax}:CLIPPing") self._detectionmethod = RfDetectionmethod(device, f"{self._cmd_syntax}:DETECTionmethod") diff --git a/src/tm_devices/commands/gen_usaa3_mdo/search.py b/src/tm_devices/commands/gen_usaa3_mdo/search.py index ed4c2fd7..e8d497a4 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/search.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/search.py @@ -405,7 +405,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( @@ -512,7 +512,7 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -804,7 +804,7 @@ class SearchSearchItemTriggerATransition(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerATransitionDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -1048,7 +1048,7 @@ class SearchSearchItemTriggerATimeout(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerATimeoutPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -1252,7 +1252,7 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): - ``.math1``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold:MATH1`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( DefaultDictPassKeyToFactory( @@ -1492,7 +1492,7 @@ class SearchSearchItemTriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = SearchSearchItemTriggerASetholdDataSource( device, f"{self._cmd_syntax}:SOUrce" @@ -1672,7 +1672,7 @@ class SearchSearchItemTriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerASetholdClockSource( @@ -1792,7 +1792,7 @@ class SearchSearchItemTriggerASethold(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = SearchSearchItemTriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = SearchSearchItemTriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -2062,7 +2062,7 @@ class SearchSearchItemTriggerARunt(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = SearchSearchItemTriggerARuntPolarity( device, f"{self._cmd_syntax}:POLarity" @@ -2343,7 +2343,7 @@ class SearchSearchItemTriggerARisefall(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = SearchSearchItemTriggerARisefallDeltatime( device, f"{self._cmd_syntax}:DELTatime" @@ -2689,7 +2689,7 @@ class SearchSearchItemTriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``SEARCH:SEARCH:TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = SearchSearchItemTriggerAPulsewidthHighlimit( device, f"{self._cmd_syntax}:HIGHLimit" @@ -3070,7 +3070,7 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LOWerthreshold:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3350,7 +3350,7 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( DefaultDictPassKeyToFactory( @@ -3557,7 +3557,7 @@ class SearchSearchItemTriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): - ``.morelimit``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerALogicPatternWhenLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -3671,7 +3671,7 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): - ``.ch``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:INPut:CH`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( DefaultDictPassKeyToFactory( @@ -3728,7 +3728,7 @@ class SearchSearchItemTriggerALogicPattern(SCPICmdRead): - ``.when``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._input = SearchSearchItemTriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") self._when = SearchSearchItemTriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -3966,7 +3966,7 @@ class SearchSearchItemTriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = SearchSearchItemTriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = SearchSearchItemTriggerALogicInputClockSource( @@ -4088,7 +4088,7 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): - ``.ref``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:INPut:REF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( DefaultDictPassKeyToFactory( @@ -4300,7 +4300,7 @@ class SearchSearchItemTriggerALogic(SCPICmdRead): - ``.threshold``: The ``SEARCH:SEARCH:TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._function = SearchSearchItemTriggerALogicFunction( device, f"{self._cmd_syntax}:FUNCtion" @@ -4593,7 +4593,7 @@ class SearchSearchItemTriggerALevel(SCPICmdRead): - ``.rf_phase``: The ``SEARCH:SEARCH:TRIGger:A:LEVel:RF_PHASe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, SearchSearchItemTriggerALevelChannel] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -4872,7 +4872,7 @@ class SearchSearchItemTriggerAEdge(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._slope = SearchSearchItemTriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") self._source = SearchSearchItemTriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5051,7 +5051,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitSeValue( device, f"{self._cmd_syntax}:VALue" @@ -5138,7 +5138,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitScValue( device, f"{self._cmd_syntax}:VALue" @@ -5222,7 +5222,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitPortValue( device, f"{self._cmd_syntax}:VALue" @@ -5305,7 +5305,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitHubValue( device, f"{self._cmd_syntax}:VALue" @@ -5389,7 +5389,7 @@ class SearchSearchItemTriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbSplitEtValue( device, f"{self._cmd_syntax}:VALue" @@ -5447,7 +5447,7 @@ class SearchSearchItemTriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = SearchSearchItemTriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = SearchSearchItemTriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -5744,7 +5744,7 @@ class SearchSearchItemTriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemUsbEndpointValue( device, f"{self._cmd_syntax}:VALue" @@ -5937,7 +5937,7 @@ class SearchSearchItemTriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6206,7 +6206,7 @@ class SearchSearchItemTriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemUsbAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -6301,7 +6301,7 @@ class SearchSearchItemTriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemUsbAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -6714,7 +6714,7 @@ class SearchSearchItemTriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataOutValue( device, f"{self._cmd_syntax}:VALue" @@ -6792,7 +6792,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMosiValue( device, f"{self._cmd_syntax}:VALue" @@ -6870,7 +6870,7 @@ class SearchSearchItemTriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataMisoValue( device, f"{self._cmd_syntax}:VALue" @@ -6948,7 +6948,7 @@ class SearchSearchItemTriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemSpiDataInValue( device, f"{self._cmd_syntax}:VALue" @@ -7002,7 +7002,7 @@ class SearchSearchItemTriggerABusBItemSpiData(SCPICmdRead): - ``.out``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa:OUT`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._miso = SearchSearchItemTriggerABusBItemSpiDataMiso(device, f"{self._cmd_syntax}:MISO") @@ -7153,7 +7153,7 @@ class SearchSearchItemTriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemSpiCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7283,7 +7283,7 @@ class SearchSearchItemTriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cTxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7362,7 +7362,7 @@ class SearchSearchItemTriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cTxData( device, f"{self._cmd_syntax}:DATa" @@ -7453,7 +7453,7 @@ class SearchSearchItemTriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = SearchSearchItemTriggerABusBItemRs232cRxDataSize( device, f"{self._cmd_syntax}:SIZe" @@ -7531,7 +7531,7 @@ class SearchSearchItemTriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemRs232cRxData( device, f"{self._cmd_syntax}:DATa" @@ -7603,7 +7603,7 @@ class SearchSearchItemTriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemRs232cCondition( device, f"{self._cmd_syntax}:CONDition" @@ -7720,7 +7720,7 @@ class SearchSearchItemTriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemParallelValue( device, f"{self._cmd_syntax}:VALue" @@ -7867,7 +7867,7 @@ class SearchSearchItemTriggerABusBItemMil1553bTime(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = SearchSearchItemTriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -8312,7 +8312,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = SearchSearchItemTriggerABusBItemMil1553bStatusBitBcr( device, f"{self._cmd_syntax}:BCR" @@ -8741,7 +8741,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatusAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -8868,7 +8868,7 @@ class SearchSearchItemTriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bStatusAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9068,7 +9068,7 @@ class SearchSearchItemTriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = SearchSearchItemTriggerABusBItemMil1553bDataParity( device, f"{self._cmd_syntax}:PARity" @@ -9390,7 +9390,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommandAddress(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -9479,7 +9479,7 @@ class SearchSearchItemTriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -9671,7 +9671,7 @@ class SearchSearchItemTriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTriggerABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -9890,7 +9890,7 @@ class SearchSearchItemTriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemLinIdentifierValue( device, f"{self._cmd_syntax}:VALue" @@ -10102,7 +10102,7 @@ class SearchSearchItemTriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemLinDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10291,7 +10291,7 @@ class SearchSearchItemTriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemLinCondition( device, f"{self._cmd_syntax}:CONDition" @@ -10509,7 +10509,7 @@ class SearchSearchItemTriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemI2cDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -10745,7 +10745,7 @@ class SearchSearchItemTriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemI2cAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -10865,7 +10865,7 @@ class SearchSearchItemTriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = SearchSearchItemTriggerABusBItemI2cAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -11124,7 +11124,7 @@ class SearchSearchItemTriggerABusBItemFlexrayHeader(SCPICmdRead): command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = SearchSearchItemTriggerABusBItemFlexrayHeaderCrc( device, f"{self._cmd_syntax}:CRC" @@ -11443,7 +11443,7 @@ class SearchSearchItemTriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayFrameidHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -11795,7 +11795,7 @@ class SearchSearchItemTriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12081,7 +12081,7 @@ class SearchSearchItemTriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -12241,7 +12241,7 @@ class SearchSearchItemTriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemFlexrayCondition( device, f"{self._cmd_syntax}:CONDition" @@ -12572,7 +12572,7 @@ class SearchSearchItemTriggerABusBItemEthernetData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = SearchSearchItemTriggerABusBItemEthernetDataValue( device, f"{self._cmd_syntax}:VALue" @@ -12631,7 +12631,7 @@ class SearchSearchItemTriggerABusBItemEthernet(SCPICmdRead): - ``.frametype``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ETHERnet:FRAMETYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = SearchSearchItemTriggerABusBItemEthernetData( device, f"{self._cmd_syntax}:DATa" @@ -12761,7 +12761,7 @@ class SearchSearchItemTriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanIdentifierMode( device, f"{self._cmd_syntax}:MODe" @@ -12947,7 +12947,7 @@ class SearchSearchItemTriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = SearchSearchItemTriggerABusBItemCanFdBrsbit( device, f"{self._cmd_syntax}:BRSBIT" @@ -13201,7 +13201,7 @@ class SearchSearchItemTriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = SearchSearchItemTriggerABusBItemCanDataDirection( device, f"{self._cmd_syntax}:DIRection" @@ -13494,7 +13494,7 @@ class SearchSearchItemTriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = SearchSearchItemTriggerABusBItemCanAddressMode( device, f"{self._cmd_syntax}:MODe" @@ -13584,7 +13584,7 @@ class SearchSearchItemTriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemCanCondition( device, f"{self._cmd_syntax}:CONDition" @@ -13921,7 +13921,7 @@ class SearchSearchItemTriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemAudioDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14142,7 +14142,7 @@ class SearchSearchItemTriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemAudioCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14366,7 +14366,7 @@ class SearchSearchItemTriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aLabelHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14618,7 +14618,7 @@ class SearchSearchItemTriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = SearchSearchItemTriggerABusBItemArinc429aDataHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -14777,7 +14777,7 @@ class SearchSearchItemTriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = SearchSearchItemTriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -14987,7 +14987,7 @@ class SearchSearchItemTriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``SEARCH:SEARCH:TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = SearchSearchItemTriggerABusBItemArinc429a( device, f"{self._cmd_syntax}:ARINC429A" @@ -15280,7 +15280,7 @@ class SearchSearchItemTriggerABus(SCPICmdRead): - ``.source``: The ``SEARCH:SEARCH:TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15371,7 +15371,7 @@ class SearchSearchItemTriggerA(SCPICmdRead): - ``.risefall``: The ``SEARCH:SEARCH:TRIGger:A:RISEFall`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTriggerABus(device, f"{self._cmd_syntax}:BUS") self._edge = SearchSearchItemTriggerAEdge(device, f"{self._cmd_syntax}:EDGE") @@ -15691,7 +15691,7 @@ class SearchSearchItemTrigger(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIGger:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTriggerA(device, f"{self._cmd_syntax}:A") @@ -15771,7 +15771,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommandAddr(SCPICmdRead): - ``.qual``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR:QUAL`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._qual = SearchSearchItemTrigABusBItemMil1553bCommandAddrQual( device, f"{self._cmd_syntax}:QUAL" @@ -15828,7 +15828,7 @@ class SearchSearchItemTrigABusBItemMil1553bCommand(SCPICmdRead): - ``.addr``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND:ADDR`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._addr = SearchSearchItemTrigABusBItemMil1553bCommandAddr( device, f"{self._cmd_syntax}:ADDR" @@ -15866,7 +15866,7 @@ class SearchSearchItemTrigABusBItemMil1553b(SCPICmdRead): - ``.command``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B:COMMAND`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = SearchSearchItemTrigABusBItemMil1553bCommand( device, f"{self._cmd_syntax}:COMMAND" @@ -15902,7 +15902,7 @@ class SearchSearchItemTrigABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.mil1553b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B:MIL1553B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mil1553b = SearchSearchItemTrigABusBItemMil1553b( device, f"{self._cmd_syntax}:MIL1553B" @@ -15937,7 +15937,7 @@ class SearchSearchItemTrigABus(SCPICmdRead): - ``.b``: The ``SEARCH:SEARCH:TRIG:A:BUS:B`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, SearchSearchItemTrigABusBItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItemTrigABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -15972,7 +15972,7 @@ class SearchSearchItemTrigA(SCPICmdRead): - ``.bus``: The ``SEARCH:SEARCH:TRIG:A:BUS`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bus = SearchSearchItemTrigABus(device, f"{self._cmd_syntax}:BUS") @@ -16003,7 +16003,7 @@ class SearchSearchItemTrig(SCPICmdRead): - ``.a``: The ``SEARCH:SEARCH:TRIG:A`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._a = SearchSearchItemTrigA(device, f"{self._cmd_syntax}:A") @@ -16128,7 +16128,7 @@ class SearchSearchItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.trigger``: The ``SEARCH:SEARCH:TRIGger`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._copy = SearchSearchItemCopy(device, f"{self._cmd_syntax}:COPy") self._list = SearchSearchItemList(device, f"{self._cmd_syntax}:LIST") @@ -16281,7 +16281,7 @@ class Search(SCPICmdRead): - ``.search``: The ``SEARCH:SEARCH`` command tree. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "SEARCH") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "SEARCH") -> None: super().__init__(device, cmd_syntax) self._search: Dict[int, SearchSearchItem] = DefaultDictPassKeyToFactory( lambda x: SearchSearchItem(device, f"{self._cmd_syntax}:SEARCH{x}") diff --git a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py index a1cd005c..378a83e8 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py @@ -468,7 +468,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): @@ -575,7 +575,7 @@ class TriggerExternal(SCPICmdRead): - ``.yunits``: The ``TRIGger:EXTernal:YUNIts`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._probe = TriggerExternalProbe(device, f"{self._cmd_syntax}:PRObe") self._yunits = TriggerExternalYunits(device, f"{self._cmd_syntax}:YUNIts") @@ -773,7 +773,7 @@ class TriggerBLowerthreshold(SCPICmdRead): - ``.d``: The ``TRIGger:B:LOWerthreshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -923,7 +923,7 @@ class TriggerBLevel(SCPICmdWrite, SCPICmdRead): - ``.d``: The ``TRIGger:B:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -1035,7 +1035,7 @@ class TriggerBEvents(SCPICmdRead): - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") @@ -1166,7 +1166,7 @@ class TriggerBEdge(SCPICmdRead): - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -1318,7 +1318,7 @@ class TriggerB(SCPICmdWrite, SCPICmdRead): - ``.type``: The ``TRIGger:B:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") @@ -1731,7 +1731,7 @@ class TriggerAVideoHoldoff(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:HOLDoff:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") @@ -1915,7 +1915,7 @@ class TriggerAVideoCustom(SCPICmdRead): - ``.type``: The ``TRIGger:A:VIDeo:CUSTom:TYPe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") self._syncinterval = TriggerAVideoCustomSyncinterval( @@ -2068,7 +2068,7 @@ class TriggerAVideo(SCPICmdRead): - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") self._holdoff = TriggerAVideoHoldoff(device, f"{self._cmd_syntax}:HOLDoff") @@ -2390,7 +2390,7 @@ class TriggerAUpperthreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:UPPerthreshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -2635,7 +2635,7 @@ class TriggerATransition(SCPICmdRead): - ``.when``: The ``TRIGger:A:TRANsition:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerATransitionDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerATransitionPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -2860,7 +2860,7 @@ class TriggerATimeout(SCPICmdRead): - ``.time``: The ``TRIGger:A:TIMEOut:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerATimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerATimeoutSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3027,7 +3027,7 @@ class TriggerASetholdThreshold(SCPICmdRead): - ``.d``: The ``TRIGger:A:SETHold:THReshold:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerASetholdThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerASetholdThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -3231,7 +3231,7 @@ class TriggerASetholdData(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:DATa:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._source = TriggerASetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") self._threshold = TriggerASetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") @@ -3404,7 +3404,7 @@ class TriggerASetholdClock(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:CLOCk:THReshold`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerASetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerASetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -3523,7 +3523,7 @@ class TriggerASethold(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:SETHold:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._clock = TriggerASetholdClock(device, f"{self._cmd_syntax}:CLOCk") self._data = TriggerASetholdData(device, f"{self._cmd_syntax}:DATa") @@ -3789,7 +3789,7 @@ class TriggerARunt(SCPICmdRead): - ``.width``: The ``TRIGger:A:RUNT:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._polarity = TriggerARuntPolarity(device, f"{self._cmd_syntax}:POLarity") self._source = TriggerARuntSource(device, f"{self._cmd_syntax}:SOUrce") @@ -4052,7 +4052,7 @@ class TriggerARisefall(SCPICmdRead): - ``.when``: The ``TRIGger:A:RISEFall:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerARisefallDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._polarity = TriggerARisefallPolarity(device, f"{self._cmd_syntax}:POLarity") @@ -4231,7 +4231,7 @@ class TriggerAPulse(SCPICmdRead): - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") @@ -4475,7 +4475,7 @@ class TriggerAPulsewidth(SCPICmdRead): - ``.width``: The ``TRIGger:A:PULSEWidth:WIDth`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._highlimit = TriggerAPulsewidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") self._lowlimit = TriggerAPulsewidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") @@ -4848,7 +4848,7 @@ class TriggerALowerthreshold(SCPICmdRead): - ``.ext``: The ``TRIGger:A:LOWerthreshold:EXT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5101,7 +5101,7 @@ class TriggerALogicThreshold(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:THReshold:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5284,7 +5284,7 @@ class TriggerALogicPattern(SCPICmdRead): - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._deltatime = TriggerALogicPatternDeltatime(device, f"{self._cmd_syntax}:DELTatime") self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") @@ -5482,7 +5482,7 @@ class TriggerALogicInputClock(SCPICmdRead): - ``.source``: The ``TRIGger:A:LOGIc:INPut:CLOCk:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._edge = TriggerALogicInputClockEdge(device, f"{self._cmd_syntax}:EDGE") self._source = TriggerALogicInputClockSource(device, f"{self._cmd_syntax}:SOUrce") @@ -5599,7 +5599,7 @@ class TriggerALogicInput(SCPICmdRead): - ``.rf``: The ``TRIGger:A:LOGIc:INPut:RF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") @@ -5809,7 +5809,7 @@ class TriggerALogic(SCPICmdRead): - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") @@ -6063,7 +6063,7 @@ class TriggerALevel(SCPICmdRead): - ``.d``: The ``TRIGger:A:LEVel:D`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._auxin = TriggerALevelAuxin(device, f"{self._cmd_syntax}:AUXin") self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( @@ -6211,7 +6211,7 @@ class TriggerAHoldoff(SCPICmdRead): - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") @@ -6353,7 +6353,7 @@ class TriggerAEdge(SCPICmdRead): - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") @@ -6552,7 +6552,7 @@ class TriggerABusBItemUsbSplitSe(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SE:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") @@ -6633,7 +6633,7 @@ class TriggerABusBItemUsbSplitSc(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:SC:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") @@ -6711,7 +6711,7 @@ class TriggerABusBItemUsbSplitPort(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:PORT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") @@ -6788,7 +6788,7 @@ class TriggerABusBItemUsbSplitHub(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:HUB:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") @@ -6866,7 +6866,7 @@ class TriggerABusBItemUsbSplitEt(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:SPLit:ET:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") @@ -6919,7 +6919,7 @@ class TriggerABusBItemUsbSplit(SCPICmdRead): - ``.se``: The ``TRIGger:A:BUS:B:USB:SPLit:SE`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._et = TriggerABusBItemUsbSplitEt(device, f"{self._cmd_syntax}:ET") self._hub = TriggerABusBItemUsbSplitHub(device, f"{self._cmd_syntax}:HUB") @@ -7189,7 +7189,7 @@ class TriggerABusBItemUsbEndpoint(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ENDPoint:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") @@ -7366,7 +7366,7 @@ class TriggerABusBItemUsbData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -7619,7 +7619,7 @@ class TriggerABusBItemUsbAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:USB:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") self._value = TriggerABusBItemUsbAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -7706,7 +7706,7 @@ class TriggerABusBItemUsb(SCPICmdRead): - ``.tokentype``: The ``TRIGger:A:BUS:B:USB:TOKENType`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemUsbAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemUsbCondition(device, f"{self._cmd_syntax}:CONDition") @@ -8081,7 +8081,7 @@ class TriggerABusBItemSpiDataOut(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:OUT:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataOutValue(device, f"{self._cmd_syntax}:VALue") @@ -8159,7 +8159,7 @@ class TriggerABusBItemSpiDataMosi(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") @@ -8236,7 +8236,7 @@ class TriggerABusBItemSpiDataMiso(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:MISO:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") @@ -8312,7 +8312,7 @@ class TriggerABusBItemSpiDataIn(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:SPI:DATa:IN:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemSpiDataInValue(device, f"{self._cmd_syntax}:VALue") @@ -8362,7 +8362,7 @@ class TriggerABusBItemSpiData(SCPICmdRead): - ``.mosi``: The ``TRIGger:A:BUS:B:SPI:DATa:MOSI`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemSpiDataSize(device, f"{self._cmd_syntax}:SIZe") self._in = TriggerABusBItemSpiDataIn(device, f"{self._cmd_syntax}:IN") @@ -8503,7 +8503,7 @@ class TriggerABusBItemSpi(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:SPI:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemSpiCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemSpiData(device, f"{self._cmd_syntax}:DATa") @@ -8627,7 +8627,7 @@ class TriggerABusBItemRs232cTxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cTxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cTxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8701,7 +8701,7 @@ class TriggerABusBItemRs232cTx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:TX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cTxData(device, f"{self._cmd_syntax}:DATa") @@ -8790,7 +8790,7 @@ class TriggerABusBItemRs232cRxData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._size = TriggerABusBItemRs232cRxDataSize(device, f"{self._cmd_syntax}:SIZe") self._value = TriggerABusBItemRs232cRxDataValue(device, f"{self._cmd_syntax}:VALue") @@ -8864,7 +8864,7 @@ class TriggerABusBItemRs232cRx(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:RS232C:RX:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._data = TriggerABusBItemRs232cRxData(device, f"{self._cmd_syntax}:DATa") @@ -8930,7 +8930,7 @@ class TriggerABusBItemRs232c(SCPICmdRead): - ``.tx``: The ``TRIGger:A:BUS:B:RS232C:TX`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemRs232cCondition(device, f"{self._cmd_syntax}:CONDition") self._rx = TriggerABusBItemRs232cRx(device, f"{self._cmd_syntax}:RX") @@ -9036,7 +9036,7 @@ class TriggerABusBItemParallel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:PARallel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemParallelValue(device, f"{self._cmd_syntax}:VALue") @@ -9174,7 +9174,7 @@ class TriggerABusBItemMil1553bTime(SCPICmdRead): - ``.qualifier``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe:QUALifier`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._lesslimit = TriggerABusBItemMil1553bTimeLesslimit( device, f"{self._cmd_syntax}:LESSLimit" @@ -9620,7 +9620,7 @@ class TriggerABusBItemMil1553bStatusBit(SCPICmdRead): - ``.tf``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:BIT:TF`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bcr = TriggerABusBItemMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") self._busy = TriggerABusBItemMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") @@ -10030,7 +10030,7 @@ class TriggerABusBItemMil1553bStatusAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bStatusAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10150,7 +10150,7 @@ class TriggerABusBItemMil1553bStatus(SCPICmdRead): - ``.parity``: The ``TRIGger:A:BUS:B:MIL1553B:STATus:PARity`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") self._bit = TriggerABusBItemMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") @@ -10332,7 +10332,7 @@ class TriggerABusBItemMil1553bData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._parity = TriggerABusBItemMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") self._value = TriggerABusBItemMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") @@ -10680,7 +10680,7 @@ class TriggerABusBItemMil1553bCommandAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemMil1553bCommandAddressHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -10802,7 +10802,7 @@ class TriggerABusBItemMil1553bCommand(SCPICmdRead): - ``.trbit``: The ``TRIGger:A:BUS:B:MIL1553B:COMMAND:TRBit`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemMil1553bCommandAddress( device, f"{self._cmd_syntax}:ADDRess" @@ -10982,7 +10982,7 @@ class TriggerABusBItemMil1553b(SCPICmdRead): - ``.time``: The ``TRIGger:A:BUS:B:MIL1553B:TIMe`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._command = TriggerABusBItemMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") self._condition = TriggerABusBItemMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") @@ -11174,7 +11174,7 @@ class TriggerABusBItemLinIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -11368,7 +11368,7 @@ class TriggerABusBItemLinData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:LIN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemLinDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") @@ -11542,7 +11542,7 @@ class TriggerABusBItemLin(SCPICmdRead): - ``.identifier``: The ``TRIGger:A:BUS:B:LIN:IDentifier`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemLinCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemLinData(device, f"{self._cmd_syntax}:DATa") @@ -11744,7 +11744,7 @@ class TriggerABusBItemI2cData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") self._size = TriggerABusBItemI2cDataSize(device, f"{self._cmd_syntax}:SIZe") @@ -11971,7 +11971,7 @@ class TriggerABusBItemI2cAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:I2C:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemI2cAddressMode(device, f"{self._cmd_syntax}:MODe") self._type = TriggerABusBItemI2cAddressType(device, f"{self._cmd_syntax}:TYPe") @@ -12082,7 +12082,7 @@ class TriggerABusBItemI2c(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:I2C:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._address = TriggerABusBItemI2cAddress(device, f"{self._cmd_syntax}:ADDRess") self._condition = TriggerABusBItemI2cCondition(device, f"{self._cmd_syntax}:CONDition") @@ -12323,7 +12323,7 @@ class TriggerABusBItemFlexrayHeader(SCPICmdRead): - ``.paylength``: The ``TRIGger:A:BUS:B:FLEXray:HEADER:PAYLength`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._crc = TriggerABusBItemFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") self._cyclecount = TriggerABusBItemFlexrayHeaderCyclecount( @@ -12627,7 +12627,7 @@ class TriggerABusBItemFlexrayFrameid(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:FRAMEID:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayFrameidHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemFlexrayFrameidQualifier( @@ -12960,7 +12960,7 @@ class TriggerABusBItemFlexrayData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -13238,7 +13238,7 @@ class TriggerABusBItemFlexrayCyclecount(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:FLEXray:CYCLEcount:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemFlexrayCyclecountHivalue( device, f"{self._cmd_syntax}:HIVALue" @@ -13402,7 +13402,7 @@ class TriggerABusBItemFlexray(SCPICmdRead): - ``.header``: The ``TRIGger:A:BUS:B:FLEXray:HEADER`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") self._cyclecount = TriggerABusBItemFlexrayCyclecount( @@ -13668,7 +13668,7 @@ class TriggerABusBItemEthernetTcpheaderDestinationport(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader:DESTinationport:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._value = TriggerABusBItemEthernetTcpheaderDestinationportValue( device, f"{self._cmd_syntax}:VALue" @@ -13717,7 +13717,7 @@ class TriggerABusBItemEthernetTcpheader(SCPICmdRead): command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._destinationport = TriggerABusBItemEthernetTcpheaderDestinationport( device, f"{self._cmd_syntax}:DESTinationport" @@ -13753,7 +13753,7 @@ class TriggerABusBItemEthernet(SCPICmdRead): - ``.tcpheader``: The ``TRIGger:A:BUS:B:ETHERnet:TCPHeader`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._tcpheader = TriggerABusBItemEthernetTcpheader(device, f"{self._cmd_syntax}:TCPHeader") @@ -13848,7 +13848,7 @@ class TriggerABusBItemCanIdentifier(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:IDentifier:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") @@ -14018,7 +14018,7 @@ class TriggerABusBItemCanFd(SCPICmdRead): - ``.esibit``: The ``TRIGger:A:BUS:B:CAN:FD:ESIBIT`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._brsbit = TriggerABusBItemCanFdBrsbit(device, f"{self._cmd_syntax}:BRSBIT") self._esibit = TriggerABusBItemCanFdEsibit(device, f"{self._cmd_syntax}:ESIBIT") @@ -14257,7 +14257,7 @@ class TriggerABusBItemCanData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:DATa:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._direction = TriggerABusBItemCanDataDirection(device, f"{self._cmd_syntax}:DIRection") self._offset = TriggerABusBItemCanDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -14536,7 +14536,7 @@ class TriggerABusBItemCanAddress(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:CAN:ADDRess:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._mode = TriggerABusBItemCanAddressMode(device, f"{self._cmd_syntax}:MODe") self._value = TriggerABusBItemCanAddressValue(device, f"{self._cmd_syntax}:VALue") @@ -14619,7 +14619,7 @@ class TriggerABusBItemCan(SCPICmdRead): - ``.address``: The ``TRIGger:A:BUS:B:CAN:ADDRess`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemCanCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemCanData(device, f"{self._cmd_syntax}:DATa") @@ -14927,7 +14927,7 @@ class TriggerABusBItemAudioData(SCPICmdRead): - ``.word``: The ``TRIGger:A:BUS:B:AUDio:DATa:WORD`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemAudioDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._offset = TriggerABusBItemAudioDataOffset(device, f"{self._cmd_syntax}:OFFSet") @@ -15128,7 +15128,7 @@ class TriggerABusBItemAudio(SCPICmdRead): - ``.data``: The ``TRIGger:A:BUS:B:AUDio:DATa`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemAudioCondition(device, f"{self._cmd_syntax}:CONDition") self._data = TriggerABusBItemAudioData(device, f"{self._cmd_syntax}:DATa") @@ -15338,7 +15338,7 @@ class TriggerABusBItemArinc429aLabel(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:LABel:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aLabelHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aLabelQualifier( @@ -15578,7 +15578,7 @@ class TriggerABusBItemArinc429aData(SCPICmdRead): - ``.value``: The ``TRIGger:A:BUS:B:ARINC429A:DATA:VALue`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._hivalue = TriggerABusBItemArinc429aDataHivalue(device, f"{self._cmd_syntax}:HIVALue") self._qualifier = TriggerABusBItemArinc429aDataQualifier( @@ -15727,7 +15727,7 @@ class TriggerABusBItemArinc429a(SCPICmdRead): - ``.ssm``: The ``TRIGger:A:BUS:B:ARINC429A:SSM`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._condition = TriggerABusBItemArinc429aCondition( device, f"{self._cmd_syntax}:CONDition" @@ -15922,7 +15922,7 @@ class TriggerABusBItem(ValidatedDynamicNumberCmd, SCPICmdRead): - ``.usb``: The ``TRIGger:A:BUS:B:USB`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._arinc429a = TriggerABusBItemArinc429a(device, f"{self._cmd_syntax}:ARINC429A") self._audio = TriggerABusBItemAudio(device, f"{self._cmd_syntax}:AUDio") @@ -16187,7 +16187,7 @@ class TriggerABus(SCPICmdWrite, SCPICmdRead): - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._b: Dict[int, TriggerABusBItem] = DefaultDictPassKeyToFactory( lambda x: TriggerABusBItem(device, f"{self._cmd_syntax}:B{x}") @@ -16302,7 +16302,7 @@ class TriggerABandwidthRf(SCPICmdRead): - ``.low``: The ``TRIGger:A:BANDWidth:RF:LOW`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._high = TriggerABandwidthRfHigh(device, f"{self._cmd_syntax}:HIGH") self._low = TriggerABandwidthRfLow(device, f"{self._cmd_syntax}:LOW") @@ -16364,7 +16364,7 @@ class TriggerABandwidth(SCPICmdRead): - ``.rf``: The ``TRIGger:A:BANDWidth:RF`` command tree. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._rf = TriggerABandwidthRf(device, f"{self._cmd_syntax}:RF") @@ -16432,7 +16432,7 @@ class TriggerA(SCPICmdWrite, SCPICmdRead): - ``.risefall``: The ``TRIGger:A:RISEFall`` command. """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) self._bandwidth = TriggerABandwidth(device, f"{self._cmd_syntax}:BANDWidth") self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") @@ -16918,7 +16918,7 @@ class Trigger(SCPICmdWrite, SCPICmdRead): - ``.state``: The ``TRIGger:STATE`` command. """ - def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + def __init__(self, device: Optional["PIControl"] = None, cmd_syntax: str = "TRIGger") -> None: super().__init__(device, cmd_syntax) self._a = TriggerA(device, f"{self._cmd_syntax}:A") self._b = TriggerB(device, f"{self._cmd_syntax}:B") diff --git a/src/tm_devices/commands/helpers/generic_commands.py b/src/tm_devices/commands/helpers/generic_commands.py index ee38f2c2..4b5f32e6 100644 --- a/src/tm_devices/commands/helpers/generic_commands.py +++ b/src/tm_devices/commands/helpers/generic_commands.py @@ -10,10 +10,7 @@ from collections import defaultdict from functools import total_ordering -from typing import Any, Callable, DefaultDict, Optional, Type, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.device import Device +from typing import Any, Callable, DefaultDict, Optional, Type, Union END_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?$") MIDDLE_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?") @@ -70,7 +67,7 @@ class BaseCmd: The syntax is accessible through the ``.cmd_syntax`` property. """ - def __init__(self, device: Optional["Device"], cmd_syntax: str) -> None: + def __init__(self, device: Optional[Any], cmd_syntax: str) -> None: """Instantiate the command. Args: @@ -114,7 +111,7 @@ class ValidatedDynamicNumberCmd(BaseCmd): # pylint: disable=too-few-public-meth attribute) to determine if it is a valid dynamic item number (greater than or equal to 1). """ - def __init__(self, device: Optional["Device"], cmd_syntax: str) -> None: + def __init__(self, device: Optional[Any], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # Validate the dynamic item number diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index a5428eb1..a4be9c09 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -15,7 +15,7 @@ from .generic_commands import BaseCmd, END_OF_STRING_DIGITS, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl MAX_CHANNELS = 8 MAX_DIGITAL_BITS = 16 @@ -33,9 +33,9 @@ class BaseSCPICmd(BaseCmd): # pylint: disable=too-few-public-methods """A class to better type hint a member of a SCPI command tree.""" - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._device: Optional["PIDevice"] = device + self._device: Optional["PIControl"] = device class SCPICmdRead(BaseSCPICmd): @@ -58,7 +58,7 @@ def query(self) -> str: try: return self._device.query(self._cmd_syntax + "?") # type: ignore[union-attr] except AttributeError as error: - msg = "No PIDevice object was provided, the .query() method cannot be used." + msg = "No PIControl object was provided, the .query() method cannot be used." raise NoDeviceProvidedError(msg) from error def verify(self, value: Union[float, str]) -> Tuple[bool, str]: @@ -85,7 +85,7 @@ def verify(self, value: Union[float, str]) -> Tuple[bool, str]: self._cmd_syntax + "?", value ) except AttributeError as error: - msg = "No PIDevice object was provided, the .verify() method cannot be used." + msg = "No PIControl object was provided, the .verify() method cannot be used." raise NoDeviceProvidedError(msg) from error @@ -117,7 +117,7 @@ def query(self, argument: str) -> str: self._cmd_syntax + f"? {argument}".strip() ) except AttributeError as error: - msg = "No PIDevice object was provided, the .query() method cannot be used." + msg = "No PIControl object was provided, the .query() method cannot be used." raise NoDeviceProvidedError(msg) from error def verify(self, argument: str, value: Union[float, str]) -> Tuple[bool, str]: @@ -146,7 +146,7 @@ def verify(self, argument: str, value: Union[float, str]) -> Tuple[bool, str]: self._cmd_syntax + f"? {argument}".strip(), value ) except AttributeError as error: - msg = "No PIDevice object was provided, the .verify() method cannot be used." + msg = "No PIControl object was provided, the .verify() method cannot be used." raise NoDeviceProvidedError(msg) from error @@ -180,7 +180,7 @@ def write(self, value: Union[float, str], verify: bool = False) -> str: ) self._device.write(f"{self._cmd_syntax} {value}") # type: ignore[union-attr] except AttributeError as error: - msg = "No PIDevice object was provided, the .write() method cannot be used." + msg = "No PIControl object was provided, the .write() method cannot be used." raise NoDeviceProvidedError(msg) from error return "" @@ -199,7 +199,7 @@ def write(self) -> None: try: self._device.write(self._cmd_syntax) # type: ignore[union-attr] except AttributeError as error: - msg = "No PIDevice object was provided, the .write() method cannot be used." + msg = "No PIControl object was provided, the .write() method cannot be used." raise NoDeviceProvidedError(msg) from error @@ -211,7 +211,7 @@ class ValidatedDigitalBit(BaseSCPICmd): # pylint: disable=too-few-public-method maximum number of digital bits on the device). """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # Validate the bit number is correct @@ -232,7 +232,7 @@ class ValidatedChannel(BaseCmd): # pylint: disable=too-few-public-methods channels on the device). """ - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # Validate the channel @@ -286,7 +286,7 @@ def __init__( cmd_syntax: str, query_syntax: str, write_syntax: Optional[str] = None, - device: Optional["PIDevice"] = None, + device: Optional["PIControl"] = None, **kwargs: Any, ) -> None: """Create an instance of the class. diff --git a/src/tm_devices/commands/helpers/tsp_commands.py b/src/tm_devices/commands/helpers/tsp_commands.py index bcb191f4..75ef1a32 100644 --- a/src/tm_devices/commands/helpers/tsp_commands.py +++ b/src/tm_devices/commands/helpers/tsp_commands.py @@ -10,7 +10,7 @@ from .generic_commands import BaseCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl #################################################################################################### @@ -19,9 +19,9 @@ class BaseTSPCmd(BaseCmd): # pylint: disable=too-few-public-methods """A class to better type hint a member of a TSP command tree.""" - def __init__(self, device: Optional["TSPDevice"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["TSPControl"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._device: Optional["TSPDevice"] = device + self._device: Optional["TSPControl"] = device def _get_tsp_table_dict(self, table: str) -> Dict[Any, Any]: """Get the full content of a TSP table variable. diff --git a/src/tm_devices/commands/lpd6_commands.py b/src/tm_devices/commands/lpd6_commands.py index c5eba278..1eb61090 100644 --- a/src/tm_devices/commands/lpd6_commands.py +++ b/src/tm_devices/commands/lpd6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class LPD6Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class LPD6Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = LPD6CommandConstants() self._commands = LPD6Commands(device) diff --git a/src/tm_devices/commands/mdo3_commands.py b/src/tm_devices/commands/mdo3_commands.py index ca88dbaf..35bde1e2 100644 --- a/src/tm_devices/commands/mdo3_commands.py +++ b/src/tm_devices/commands/mdo3_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1ltpwt_mdomsodpo.actonevent import Actonevent from .gen_1ltpwt_mdomsodpo.afg import Afg @@ -736,7 +736,7 @@ class MDO3Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3280,7 +3280,7 @@ class MDO3Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MDO3CommandConstants() self._commands = MDO3Commands(device) diff --git a/src/tm_devices/commands/mdo3k_commands.py b/src/tm_devices/commands/mdo3k_commands.py index 4a05f2f0..5d3c2d02 100644 --- a/src/tm_devices/commands/mdo3k_commands.py +++ b/src/tm_devices/commands/mdo3k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1lcv3a_msodpomdo.message import Message @@ -739,7 +739,7 @@ class MDO3KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3290,7 +3290,7 @@ class MDO3KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MDO3KCommandConstants() self._commands = MDO3KCommands(device) diff --git a/src/tm_devices/commands/mdo4k_commands.py b/src/tm_devices/commands/mdo4k_commands.py index 0d66fb0b..55514a51 100644 --- a/src/tm_devices/commands/mdo4k_commands.py +++ b/src/tm_devices/commands/mdo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1kjd62_mdo.rf import Rf from .gen_1la1ym_msomdodpo.trigger import Trigger @@ -747,7 +747,7 @@ class MDO4KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3299,7 +3299,7 @@ class MDO4KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MDO4KCommandConstants() self._commands = MDO4KCommands(device) diff --git a/src/tm_devices/commands/mdo4kb_commands.py b/src/tm_devices/commands/mdo4kb_commands.py index 40942ea8..5ccd32d6 100644 --- a/src/tm_devices/commands/mdo4kb_commands.py +++ b/src/tm_devices/commands/mdo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kjd62_mdo.rf import Rf @@ -739,7 +739,7 @@ class MDO4KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3292,7 +3292,7 @@ class MDO4KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MDO4KBCommandConstants() self._commands = MDO4KBCommands(device) diff --git a/src/tm_devices/commands/mdo4kc_commands.py b/src/tm_devices/commands/mdo4kc_commands.py index 2d16ea20..89ba3efa 100644 --- a/src/tm_devices/commands/mdo4kc_commands.py +++ b/src/tm_devices/commands/mdo4kc_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1kdqwg_mdo.search import Search from .gen_1kdqwg_mdo.trigger import Trigger @@ -747,7 +747,7 @@ class MDO4KCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3300,7 +3300,7 @@ class MDO4KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MDO4KCCommandConstants() self._commands = MDO4KCCommands(device) diff --git a/src/tm_devices/commands/mso2_commands.py b/src/tm_devices/commands/mso2_commands.py index 6bc0998a..19fcf102 100644 --- a/src/tm_devices/commands/mso2_commands.py +++ b/src/tm_devices/commands/mso2_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1lwj1r_msomdodpo.rosc import Rosc from .gen_1zn03_mso.acquire import Acquire @@ -563,7 +563,7 @@ class MSO2Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -2808,7 +2808,7 @@ class MSO2Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO2CommandConstants() self._commands = MSO2Commands(device) diff --git a/src/tm_devices/commands/mso2k_commands.py b/src/tm_devices/commands/mso2k_commands.py index 1117cf53..6921249f 100644 --- a/src/tm_devices/commands/mso2k_commands.py +++ b/src/tm_devices/commands/mso2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -539,7 +539,7 @@ class MSO2KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -2666,7 +2666,7 @@ class MSO2KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO2KCommandConstants() self._commands = MSO2KCommands(device) diff --git a/src/tm_devices/commands/mso2kb_commands.py b/src/tm_devices/commands/mso2kb_commands.py index 3e87b637..b08995cb 100644 --- a/src/tm_devices/commands/mso2kb_commands.py +++ b/src/tm_devices/commands/mso2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -539,7 +539,7 @@ class MSO2KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -2666,7 +2666,7 @@ class MSO2KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO2KBCommandConstants() self._commands = MSO2KBCommands(device) diff --git a/src/tm_devices/commands/mso4_commands.py b/src/tm_devices/commands/mso4_commands.py index 1ece7972..0a425aa7 100644 --- a/src/tm_devices/commands/mso4_commands.py +++ b/src/tm_devices/commands/mso4_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO4Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO4Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO4CommandConstants() self._commands = MSO4Commands(device) diff --git a/src/tm_devices/commands/mso4b_commands.py b/src/tm_devices/commands/mso4b_commands.py index 90a6bcd2..76cc8a1a 100644 --- a/src/tm_devices/commands/mso4b_commands.py +++ b/src/tm_devices/commands/mso4b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO4BCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO4BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO4BCommandConstants() self._commands = MSO4BCommands(device) diff --git a/src/tm_devices/commands/mso4k_commands.py b/src/tm_devices/commands/mso4k_commands.py index 43fedb87..f006afe3 100644 --- a/src/tm_devices/commands/mso4k_commands.py +++ b/src/tm_devices/commands/mso4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message @@ -747,7 +747,7 @@ class MSO4KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3297,7 +3297,7 @@ class MSO4KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO4KCommandConstants() self._commands = MSO4KCommands(device) diff --git a/src/tm_devices/commands/mso4kb_commands.py b/src/tm_devices/commands/mso4kb_commands.py index aa5c0460..48c003e1 100644 --- a/src/tm_devices/commands/mso4kb_commands.py +++ b/src/tm_devices/commands/mso4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1la1ym_msomdodpo.trigger import Trigger @@ -747,7 +747,7 @@ class MSO4KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3298,7 +3298,7 @@ class MSO4KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO4KBCommandConstants() self._commands = MSO4KBCommands(device) diff --git a/src/tm_devices/commands/mso5_commands.py b/src/tm_devices/commands/mso5_commands.py index 3e4ab8b3..eec4f2b9 100644 --- a/src/tm_devices/commands/mso5_commands.py +++ b/src/tm_devices/commands/mso5_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO5Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO5Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO5CommandConstants() self._commands = MSO5Commands(device) diff --git a/src/tm_devices/commands/mso5b_commands.py b/src/tm_devices/commands/mso5b_commands.py index 780330e1..2166f414 100644 --- a/src/tm_devices/commands/mso5b_commands.py +++ b/src/tm_devices/commands/mso5b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO5BCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO5BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO5BCommandConstants() self._commands = MSO5BCommands(device) diff --git a/src/tm_devices/commands/mso5k_commands.py b/src/tm_devices/commands/mso5k_commands.py index 00d29b49..9a41527e 100644 --- a/src/tm_devices/commands/mso5k_commands.py +++ b/src/tm_devices/commands/mso5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -896,7 +896,7 @@ class MSO5KCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3784,7 +3784,7 @@ class MSO5KMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO5KCommandConstants() self._commands = MSO5KCommands(device) diff --git a/src/tm_devices/commands/mso5kb_commands.py b/src/tm_devices/commands/mso5kb_commands.py index 946fe913..2146c8de 100644 --- a/src/tm_devices/commands/mso5kb_commands.py +++ b/src/tm_devices/commands/mso5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5ri0nj_dpomso.bus import Bus from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -906,7 +906,7 @@ class MSO5KBCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3876,7 +3876,7 @@ class MSO5KBMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO5KBCommandConstants() self._commands = MSO5KBCommands(device) diff --git a/src/tm_devices/commands/mso5lp_commands.py b/src/tm_devices/commands/mso5lp_commands.py index b779de12..e0fcf0ca 100644 --- a/src/tm_devices/commands/mso5lp_commands.py +++ b/src/tm_devices/commands/mso5lp_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO5LPCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO5LPMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO5LPCommandConstants() self._commands = MSO5LPCommands(device) diff --git a/src/tm_devices/commands/mso6_commands.py b/src/tm_devices/commands/mso6_commands.py index cc33c4b7..39f6e4e1 100644 --- a/src/tm_devices/commands/mso6_commands.py +++ b/src/tm_devices/commands/mso6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO6Commands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO6Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO6CommandConstants() self._commands = MSO6Commands(device) diff --git a/src/tm_devices/commands/mso6b_commands.py b/src/tm_devices/commands/mso6b_commands.py index dcb96df5..e545c981 100644 --- a/src/tm_devices/commands/mso6b_commands.py +++ b/src/tm_devices/commands/mso6b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -1365,7 +1365,7 @@ class MSO6BCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._actonevent = Actonevent(device) self._afg = Afg(device) @@ -3819,7 +3819,7 @@ class MSO6BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO6BCommandConstants() self._commands = MSO6BCommands(device) diff --git a/src/tm_devices/commands/mso70kc_commands.py b/src/tm_devices/commands/mso70kc_commands.py index 3ebf4a31..3e6a3e35 100644 --- a/src/tm_devices/commands/mso70kc_commands.py +++ b/src/tm_devices/commands/mso70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5ri0nj_dpomso.bus import Bus from .gen_5vmwut_dpodsamso.trigger import Trigger @@ -899,7 +899,7 @@ class MSO70KCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3854,7 +3854,7 @@ class MSO70KCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO70KCCommandConstants() self._commands = MSO70KCCommands(device) diff --git a/src/tm_devices/commands/mso70kdx_commands.py b/src/tm_devices/commands/mso70kdx_commands.py index 9756e980..129f5f92 100644 --- a/src/tm_devices/commands/mso70kdx_commands.py +++ b/src/tm_devices/commands/mso70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_5xwdsk_dpodsamso.errordetector import Errordetector from .gen_5y90wx_dpodsamso.dpojet import Dpojet @@ -901,7 +901,7 @@ class MSO70KDXCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._acquire = Acquire(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3856,7 +3856,7 @@ class MSO70KDXMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = MSO70KDXCommandConstants() self._commands = MSO70KDXCommands(device) diff --git a/src/tm_devices/commands/smu2450_commands.py b/src/tm_devices/commands/smu2450_commands.py index 84042f73..00089d9e 100644 --- a/src/tm_devices/commands/smu2450_commands.py +++ b/src/tm_devices/commands/smu2450_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_6w7311_smu.trigger import Trigger from .gen_7kqm9p_smu.buffervar import Buffervar @@ -468,7 +468,7 @@ class SMU2450Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._buffer = Buffer(device) @@ -1382,7 +1382,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1408,7 +1408,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1433,7 +1433,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1455,7 +1455,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1478,7 +1478,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1503,7 +1503,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1536,7 +1536,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1564,7 +1564,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1590,7 +1590,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1616,7 +1616,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1630,7 +1632,7 @@ class SMU2450Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2450CommandConstants() self._commands = SMU2450Commands(device) diff --git a/src/tm_devices/commands/smu2460_commands.py b/src/tm_devices/commands/smu2460_commands.py index 75c2eb48..f0a56b31 100644 --- a/src/tm_devices/commands/smu2460_commands.py +++ b/src/tm_devices/commands/smu2460_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_6ocqvh_smu.buffer import Buffer from .gen_6srh1x_smu.smu import Smu @@ -492,7 +492,7 @@ class SMU2460Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._buffer = Buffer(device) @@ -1439,7 +1439,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1465,7 +1465,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1490,7 +1490,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1512,7 +1512,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1535,7 +1535,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1560,7 +1560,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1593,7 +1593,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1621,7 +1621,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1647,7 +1647,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1673,7 +1673,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1687,7 +1689,7 @@ class SMU2460Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2460CommandConstants() self._commands = SMU2460Commands(device) diff --git a/src/tm_devices/commands/smu2461_commands.py b/src/tm_devices/commands/smu2461_commands.py index eefaf536..9935ce47 100644 --- a/src/tm_devices/commands/smu2461_commands.py +++ b/src/tm_devices/commands/smu2461_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_6ocqvh_smu.buffer import Buffer from .gen_6vynmi_smu.acal import Acal @@ -489,7 +489,7 @@ class SMU2461Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._acal = Acal(device) self._beeper = Beeper(device) @@ -1447,7 +1447,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1473,7 +1473,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1498,7 +1498,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1520,7 +1520,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1543,7 +1543,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1568,7 +1568,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1601,7 +1601,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1629,7 +1629,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1655,7 +1655,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1681,7 +1681,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1695,7 +1697,7 @@ class SMU2461Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2461CommandConstants() self._commands = SMU2461Commands(device) diff --git a/src/tm_devices/commands/smu2470_commands.py b/src/tm_devices/commands/smu2470_commands.py index 218b156c..f535c669 100644 --- a/src/tm_devices/commands/smu2470_commands.py +++ b/src/tm_devices/commands/smu2470_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_6w7311_smu.trigger import Trigger from .gen_6xiuc2_smu.buffer import Buffer @@ -468,7 +468,7 @@ class SMU2470Commands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._buffer = Buffer(device) @@ -1383,7 +1383,7 @@ def available(self, functionality: str) -> str: f"print(available({functionality}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``available()`` function." + msg = "No TSPControl object was provided, unable to run the ``available()`` function." raise NoDeviceProvidedError(msg) from error def createconfigscript(self, script_name: str) -> None: @@ -1409,7 +1409,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -1434,7 +1434,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -1456,7 +1456,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -1479,7 +1479,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -1504,7 +1504,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1537,7 +1537,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1565,7 +1565,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1591,7 +1591,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1617,7 +1617,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1631,7 +1633,7 @@ class SMU2470Mixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2470CommandConstants() self._commands = SMU2470Commands(device) diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 7e33b90f..2e16c4e4 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_7s6wr5_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -661,7 +661,7 @@ class SMU2601BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1508,7 +1508,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1593,7 +1593,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1678,7 +1678,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1760,7 +1760,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1845,7 +1845,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1930,7 +1930,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1959,7 +1959,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1989,7 +1989,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2022,9 +2022,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2057,9 +2055,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2088,7 +2084,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2121,7 +2117,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2151,7 +2147,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2185,7 +2181,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2219,7 +2215,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2250,7 +2246,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2283,7 +2279,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2308,7 +2304,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2330,7 +2326,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2355,7 +2351,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2387,7 +2383,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2419,7 +2415,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2468,7 +2464,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2525,7 +2521,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2554,7 +2550,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2583,7 +2579,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2609,7 +2605,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2632,7 +2628,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2657,7 +2653,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2689,7 +2685,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2717,7 +2713,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2743,7 +2739,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2771,7 +2767,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2796,7 +2792,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2840,7 +2836,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2866,7 +2862,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2880,7 +2878,7 @@ class SMU2601BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2601BCommandConstants() self._commands = SMU2601BCommands(device) diff --git a/src/tm_devices/commands/smu2601b_pulse_commands.py b/src/tm_devices/commands/smu2601b_pulse_commands.py index efb8ffe7..613de571 100644 --- a/src/tm_devices/commands/smu2601b_pulse_commands.py +++ b/src/tm_devices/commands/smu2601b_pulse_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_7s2p1p_smu.beeper import Beeper from .gen_7s2p1p_smu.buffervar import Buffervar @@ -641,7 +641,7 @@ class SMU2601BPulseCommands: - ``.tspnet``: The ``tspnet`` command tree. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._beeper = Beeper(device) self._buffer_var: Dict[str, Buffervar] = DefaultDictPassKeyToFactory( lambda x: Buffervar(device, str(x)) @@ -1174,7 +1174,7 @@ class SMU2601BPulseMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2601BPulseCommandConstants() self._commands = SMU2601BPulseCommands(device) diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index cda10a77..682bc351 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_7s43m8_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -731,7 +731,7 @@ class SMU2602BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1614,7 +1614,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1699,7 +1699,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1784,7 +1784,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1866,7 +1866,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1951,7 +1951,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -2036,7 +2036,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2065,7 +2065,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -2095,7 +2095,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2128,9 +2128,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2163,9 +2161,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2194,7 +2190,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2227,7 +2223,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2257,7 +2253,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2291,7 +2287,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2325,7 +2321,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2356,7 +2352,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2389,7 +2385,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2414,7 +2410,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2436,7 +2432,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2461,7 +2457,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2493,7 +2489,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2525,7 +2521,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2574,7 +2570,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2631,7 +2627,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2660,7 +2656,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2689,7 +2685,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2715,7 +2711,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2738,7 +2734,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2763,7 +2759,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2795,7 +2791,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2823,7 +2819,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2849,7 +2845,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2877,7 +2873,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2902,7 +2898,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2946,7 +2942,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2972,7 +2968,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2986,7 +2984,7 @@ class SMU2602BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2602BCommandConstants() self._commands = SMU2602BCommands(device) diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index 86b96f25..a2993593 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_7ryhce_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -575,7 +575,7 @@ class SMU2604BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1396,7 +1396,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1481,7 +1481,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1566,7 +1566,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1648,7 +1648,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1733,7 +1733,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1818,7 +1818,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1847,7 +1847,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1877,7 +1877,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -1910,9 +1910,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1945,9 +1943,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -1976,7 +1972,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2009,7 +2005,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2039,7 +2035,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2073,7 +2069,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2107,7 +2103,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2138,7 +2134,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2171,7 +2167,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2196,7 +2192,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2218,7 +2214,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2243,7 +2239,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2275,7 +2271,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2307,7 +2303,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2356,7 +2352,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2413,7 +2409,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2442,7 +2438,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2471,7 +2467,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2497,7 +2493,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2520,7 +2516,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2545,7 +2541,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2577,7 +2573,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2605,7 +2601,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2631,7 +2627,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2659,7 +2655,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2684,7 +2680,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2728,7 +2724,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2754,7 +2750,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2768,7 +2766,7 @@ class SMU2604BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2604BCommandConstants() self._commands = SMU2604BCommands(device) diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index 1d7f3e93..9436d8f2 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_8ojdkz_smu.display import Display from .gen_8ojdkz_smu.node import NodeItem @@ -724,7 +724,7 @@ class SMU2606BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1581,7 +1581,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1666,7 +1666,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1751,7 +1751,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1833,7 +1833,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1918,7 +1918,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -2003,7 +2003,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2032,7 +2032,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -2062,7 +2062,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2095,9 +2095,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2130,9 +2128,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2161,7 +2157,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2194,7 +2190,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2224,7 +2220,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2258,7 +2254,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2292,7 +2288,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2323,7 +2319,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2356,7 +2352,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2381,7 +2377,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2403,7 +2399,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2428,7 +2424,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2460,7 +2456,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2492,7 +2488,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2541,7 +2537,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2598,7 +2594,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2627,7 +2623,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2656,7 +2652,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2682,7 +2678,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2705,7 +2701,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2730,7 +2726,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2762,7 +2758,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2790,7 +2786,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2816,7 +2812,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2844,7 +2840,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2869,7 +2865,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2913,7 +2909,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2939,7 +2935,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2953,7 +2951,7 @@ class SMU2606BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2606BCommandConstants() self._commands = SMU2606BCommands(device) diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index 4b2643fa..2453d9bc 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_9ncc6e_smu.display import Display @@ -660,7 +660,7 @@ class SMU2611BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1505,7 +1505,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1590,7 +1590,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1675,7 +1675,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1757,7 +1757,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1842,7 +1842,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1927,7 +1927,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1956,7 +1956,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1986,7 +1986,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2019,9 +2019,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2054,9 +2052,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2085,7 +2081,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2118,7 +2114,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2148,7 +2144,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2182,7 +2178,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2216,7 +2212,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2247,7 +2243,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2280,7 +2276,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2305,7 +2301,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2327,7 +2323,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2352,7 +2348,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2384,7 +2380,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2416,7 +2412,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2465,7 +2461,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2522,7 +2518,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2551,7 +2547,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2580,7 +2576,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2606,7 +2602,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2629,7 +2625,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2654,7 +2650,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2686,7 +2682,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2714,7 +2710,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2740,7 +2736,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2768,7 +2764,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2793,7 +2789,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2837,7 +2833,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2863,7 +2859,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2877,7 +2875,7 @@ class SMU2611BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2611BCommandConstants() self._commands = SMU2611BCommands(device) diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index 0cec9daf..ef9e2efb 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_ahkybr_smu.beeper import Beeper @@ -730,7 +730,7 @@ class SMU2612BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1611,7 +1611,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1696,7 +1696,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1781,7 +1781,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1863,7 +1863,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1948,7 +1948,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -2033,7 +2033,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2062,7 +2062,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -2092,7 +2092,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2125,9 +2125,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2160,9 +2158,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2191,7 +2187,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2224,7 +2220,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2254,7 +2250,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2288,7 +2284,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2322,7 +2318,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2353,7 +2349,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2386,7 +2382,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2411,7 +2407,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2433,7 +2429,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2458,7 +2454,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2490,7 +2486,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2522,7 +2518,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2571,7 +2567,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2628,7 +2624,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2657,7 +2653,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2686,7 +2682,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2712,7 +2708,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2735,7 +2731,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2760,7 +2756,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2792,7 +2788,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2820,7 +2816,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2846,7 +2842,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2874,7 +2870,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2899,7 +2895,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2943,7 +2939,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2969,7 +2965,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2983,7 +2981,7 @@ class SMU2612BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2612BCommandConstants() self._commands = SMU2612BCommands(device) diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index 457875b7..45a807ea 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_9mzp2j_smu.digio import Digio @@ -574,7 +574,7 @@ class SMU2614BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1393,7 +1393,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1478,7 +1478,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1563,7 +1563,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1645,7 +1645,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1730,7 +1730,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1815,7 +1815,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1844,7 +1844,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1874,7 +1874,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -1907,9 +1907,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1942,9 +1940,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -1973,7 +1969,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2006,7 +2002,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2036,7 +2032,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2070,7 +2066,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2104,7 +2100,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2135,7 +2131,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2168,7 +2164,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2193,7 +2189,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2215,7 +2211,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2240,7 +2236,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2272,7 +2268,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2304,7 +2300,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2353,7 +2349,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2410,7 +2406,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2439,7 +2435,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2468,7 +2464,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2494,7 +2490,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2517,7 +2513,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2542,7 +2538,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2574,7 +2570,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2602,7 +2598,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2628,7 +2624,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2656,7 +2652,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2681,7 +2677,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2725,7 +2721,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2751,7 +2747,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2765,7 +2763,7 @@ class SMU2614BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2614BCommandConstants() self._commands = SMU2614BCommands(device) diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index a30e894d..8f39ae96 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_9mzp2j_smu.digio import Digio from .gen_9mzp2j_smu.display import Display @@ -575,7 +575,7 @@ class SMU2634BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1395,7 +1395,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1480,7 +1480,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1565,7 +1565,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1647,7 +1647,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1732,7 +1732,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1817,7 +1817,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1846,7 +1846,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1876,7 +1876,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -1909,9 +1909,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1944,9 +1942,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -1975,7 +1971,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2008,7 +2004,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2038,7 +2034,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2072,7 +2068,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2106,7 +2102,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2137,7 +2133,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2170,7 +2166,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2195,7 +2191,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2217,7 +2213,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2242,7 +2238,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2274,7 +2270,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2306,7 +2302,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2355,7 +2351,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2412,7 +2408,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2441,7 +2437,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2470,7 +2466,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2496,7 +2492,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2519,7 +2515,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2544,7 +2540,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2576,7 +2572,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2604,7 +2600,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2630,7 +2626,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2658,7 +2654,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2683,7 +2679,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2727,7 +2723,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2753,7 +2749,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2767,7 +2765,7 @@ class SMU2634BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2634BCommandConstants() self._commands = SMU2634BCommands(device) diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index ded2cb9a..a9c96e4c 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_9ncc6e_smu.display import Display from .gen_9slyux_smu.status import Status @@ -661,7 +661,7 @@ class SMU2635BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1507,7 +1507,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1592,7 +1592,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1677,7 +1677,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1759,7 +1759,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1844,7 +1844,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1929,7 +1929,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -1958,7 +1958,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -1988,7 +1988,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2021,9 +2021,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2056,9 +2054,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2087,7 +2083,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2120,7 +2116,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2150,7 +2146,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2184,7 +2180,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2218,7 +2214,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2249,7 +2245,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2282,7 +2278,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2307,7 +2303,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2329,7 +2325,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2354,7 +2350,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2386,7 +2382,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2418,7 +2414,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2467,7 +2463,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2524,7 +2520,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2553,7 +2549,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2582,7 +2578,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2608,7 +2604,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2631,7 +2627,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2656,7 +2652,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2688,7 +2684,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2716,7 +2712,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2742,7 +2738,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2770,7 +2766,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2795,7 +2791,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2839,7 +2835,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2865,7 +2861,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2879,7 +2877,7 @@ class SMU2635BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2635BCommandConstants() self._commands = SMU2635BCommands(device) diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index 40c4d525..0f6e9a4c 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -731,7 +731,7 @@ class SMU2636BCommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1613,7 +1613,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1698,7 +1698,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1783,7 +1783,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1865,7 +1865,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1950,7 +1950,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -2035,7 +2035,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2064,7 +2064,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: @@ -2094,7 +2094,7 @@ def initiate_pulse_test_dual(self, tag1: int, tag2: int) -> str: f"print(InitiatePulseTestDual({tag1}, {tag2}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTestDual()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2127,9 +2127,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2162,9 +2160,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2193,7 +2189,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_lin_measure_v( @@ -2226,7 +2222,7 @@ def sweep_i_lin_measure_v( f"SweepILinMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILinMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str) -> None: @@ -2256,7 +2252,7 @@ def sweep_i_list_measure_v(self, smu_x: str, ilist: str, stime: str, points: str f"SweepIListMeasureV({smu_x}, {ilist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepIListMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_i_log_measure_v( @@ -2290,7 +2286,7 @@ def sweep_i_log_measure_v( f"SweepILogMeasureV({smu_x}, {starti}, {stopi}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepILogMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_lin_measure_i( @@ -2324,7 +2320,7 @@ def sweep_v_lin_measure_i( f"SweepVLinMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLinMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str) -> None: @@ -2355,7 +2351,7 @@ def sweep_v_list_measure_i(self, smu_x: str, vlist: str, stime: str, points: str f"SweepVListMeasureI({smu_x}, {vlist}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVListMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def sweep_v_log_measure_i( @@ -2388,7 +2384,7 @@ def sweep_v_log_measure_i( f"SweepVLogMeasureI({smu_x}, {startv}, {stopv}, {stime}, {points})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``SweepVLogMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2413,7 +2409,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2435,7 +2431,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2460,7 +2456,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2492,7 +2488,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2524,7 +2520,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def i_leakage_measure( @@ -2573,7 +2569,7 @@ def i_leakage_measure( f"{measuredelay}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_measure()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments @@ -2630,7 +2626,7 @@ def i_leakage_threshold( f"{timeout}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``i_leakage_threshold()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2659,7 +2655,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2688,7 +2684,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2714,7 +2710,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2737,7 +2733,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2762,7 +2758,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2794,7 +2790,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2822,7 +2818,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2848,7 +2844,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2876,7 +2872,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2901,7 +2897,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2945,7 +2941,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2971,7 +2967,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2985,7 +2983,7 @@ class SMU2636BMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2636BCommandConstants() self._commands = SMU2636BCommands(device) diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index 767ac715..f6a3e81d 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -699,7 +699,7 @@ class SMU2651ACommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1574,7 +1574,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1659,7 +1659,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1744,7 +1744,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1826,7 +1826,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1911,7 +1911,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1996,7 +1996,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2025,7 +2025,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2058,9 +2058,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2093,9 +2091,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2124,7 +2120,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2149,7 +2145,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2171,7 +2167,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2196,7 +2192,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2228,7 +2224,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2260,7 +2256,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2289,7 +2285,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2318,7 +2314,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2344,7 +2340,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2367,7 +2363,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2392,7 +2388,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2424,7 +2420,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2452,7 +2448,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2478,7 +2474,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2506,7 +2502,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2531,7 +2527,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2575,7 +2571,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2601,7 +2597,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2615,7 +2613,7 @@ class SMU2651AMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2651ACommandConstants() self._commands = SMU2651ACommands(device) diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index 82bd258e..ed8f0c7d 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -699,7 +699,7 @@ class SMU2657ACommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -1573,7 +1573,7 @@ def config_pulse_i_measure_v( f"print(ConfigPulseIMeasureV({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1658,7 +1658,7 @@ def config_pulse_i_measure_v_sweep_lin( f"print(ConfigPulseIMeasureVSweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1743,7 +1743,7 @@ def config_pulse_i_measure_v_sweep_log( f"print(ConfigPulseIMeasureVSweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseIMeasureVSweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1825,7 +1825,7 @@ def config_pulse_v_measure_i( f"print(ConfigPulseVMeasureI({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1910,7 +1910,7 @@ def config_pulse_v_measure_i_sweep_lin( f"print(ConfigPulseVMeasureISweepLin({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLin()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error # pylint: disable=too-many-arguments,too-many-locals @@ -1995,7 +1995,7 @@ def config_pulse_v_measure_i_sweep_log( f"print(ConfigPulseVMeasureISweepLog({function_args}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``ConfigPulseVMeasureISweepLog()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def initiate_pulse_test(self, tag: int) -> str: @@ -2024,7 +2024,7 @@ def initiate_pulse_test(self, tag: int) -> str: f"print(InitiatePulseTest({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``InitiatePulseTest()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_i_measure_v( @@ -2057,9 +2057,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseIMeasureV()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2092,9 +2090,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = ( - "No TSPDevice object was provided, unable to run the ``PulseVMeasureI()`` function." - ) + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: @@ -2123,7 +2119,7 @@ def query_pulse_config(self, tag: int) -> str: f"print(QueryPulseConfig({tag}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -2148,7 +2144,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -2170,7 +2166,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -2195,7 +2191,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: @@ -2227,7 +2223,7 @@ def gm_isweep(self, smu: str, start_i: str, stop_i: str, points: str) -> str: f"print(gm_isweep({smu}, {start_i}, {stop_i}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_isweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_isweep()`` function." raise NoDeviceProvidedError(msg) from error def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: @@ -2259,7 +2255,7 @@ def gm_vsweep(self, smu: str, start_v: str, stop_v: str, points: str) -> str: f"print(gm_vsweep({smu}, {start_v}, {stop_v}, {points}))" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gm_vsweep()`` function." + msg = "No TSPControl object was provided, unable to run the ``gm_vsweep()`` function." raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -2288,7 +2284,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -2317,7 +2313,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def meminfo(self) -> str: @@ -2343,7 +2339,7 @@ def meminfo(self) -> str: "print(meminfo())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." + msg = "No TSPControl object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -2366,7 +2362,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -2391,7 +2387,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -2423,7 +2419,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -2451,7 +2447,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -2477,7 +2473,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: @@ -2505,7 +2501,7 @@ def savebuffer(self, buffer: str, format_type: str, file_name: str) -> None: f'savebuffer({buffer}, "{format_type}", "{file_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``savebuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``savebuffer()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -2530,7 +2526,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -2574,7 +2570,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -2600,7 +2596,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -2614,7 +2612,7 @@ class SMU2657AMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SMU2657ACommandConstants() self._commands = SMU2657ACommands(device) diff --git a/src/tm_devices/commands/ss3706a_commands.py b/src/tm_devices/commands/ss3706a_commands.py index 4e3b2746..698820bb 100644 --- a/src/tm_devices/commands/ss3706a_commands.py +++ b/src/tm_devices/commands/ss3706a_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from .gen_e3pief_ss.beeper import Beeper from .gen_e3pief_ss.buffervar import Buffervar @@ -125,7 +125,7 @@ class SS3706ACommands: - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - def __init__(self, device: Optional[TSPDevice] = None) -> None: + def __init__(self, device: Optional[TSPControl] = None) -> None: self._device = device self._beeper = Beeper(device) self._bit = Bit(device) @@ -794,7 +794,7 @@ def createconfigscript(self, script_name: str) -> None: f'createconfigscript("{script_name}")' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 + msg = "No TSPControl object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def delay(self, seconds: int) -> None: @@ -819,7 +819,7 @@ def delay(self, seconds: int) -> None: f"delay({seconds})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." + msg = "No TSPControl object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error def exit(self) -> None: @@ -841,7 +841,7 @@ def exit(self) -> None: "exit()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." + msg = "No TSPControl object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error def gettimezone(self) -> str: @@ -866,7 +866,7 @@ def gettimezone(self) -> str: "print(gettimezone())" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error def makegetter(self, table: str, attribute_name: str) -> str: @@ -895,7 +895,7 @@ def makegetter(self, table: str, attribute_name: str) -> str: f'print(makegetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makegetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makegetter()`` function." raise NoDeviceProvidedError(msg) from error def makesetter(self, table: str, attribute_name: str) -> str: @@ -924,7 +924,7 @@ def makesetter(self, table: str, attribute_name: str) -> str: f'print(makesetter({table}, "{attribute_name}"))' ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``makesetter()`` function." + msg = "No TSPControl object was provided, unable to run the ``makesetter()`` function." raise NoDeviceProvidedError(msg) from error def opc(self) -> None: @@ -947,7 +947,7 @@ def opc(self) -> None: "opc()" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." + msg = "No TSPControl object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error def print(self, value: str) -> None: @@ -972,7 +972,7 @@ def print(self, value: str) -> None: f"print({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``print()`` function." + msg = "No TSPControl object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: @@ -1005,7 +1005,7 @@ def printbuffer(self, start_index: int, end_index: int, buffer_var: str) -> str: f"printbuffer({start_index}, {end_index}, {buffer_var})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printbuffer()`` function." + msg = "No TSPControl object was provided, unable to run the ``printbuffer()`` function." raise NoDeviceProvidedError(msg) from error def printnumber(self, value: str) -> str: @@ -1033,7 +1033,7 @@ def printnumber(self, value: str) -> str: f"printnumber({value})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." + msg = "No TSPControl object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error def reset(self, system: Optional[str] = None) -> None: @@ -1059,7 +1059,7 @@ def reset(self, system: Optional[str] = None) -> None: f"reset({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." + msg = "No TSPControl object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error def settime(self, time: str) -> None: @@ -1084,7 +1084,7 @@ def settime(self, time: str) -> None: f"settime({time})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." + msg = "No TSPControl object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error def settimezone( @@ -1128,7 +1128,7 @@ def settimezone( f"settimezone({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." + msg = "No TSPControl object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error def waitcomplete(self, group: Optional[str] = None) -> None: @@ -1154,7 +1154,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: f"waitcomplete({function_args})" ) except AttributeError as error: - msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." + msg = ( + "No TSPControl object was provided, unable to run the ``waitcomplete()`` function." + ) raise NoDeviceProvidedError(msg) from error @@ -1168,7 +1170,7 @@ class SS3706AMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPDevice) else None + device = self if isinstance(self, TSPControl) else None self._command_argument_constants = SS3706ACommandConstants() self._commands = SS3706ACommands(device) diff --git a/src/tm_devices/commands/tekscopepc_commands.py b/src/tm_devices/commands/tekscopepc_commands.py index 74564049..6d39a09f 100644 --- a/src/tm_devices/commands/tekscopepc_commands.py +++ b/src/tm_devices/commands/tekscopepc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from .gen_c3g61_tekscopepc.actonevent import Actonevent from .gen_c3g61_tekscopepc.bus import Bus @@ -1192,7 +1192,7 @@ class TekScopePCCommands: """ # pylint: disable=too-many-statements - def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + def __init__(self, device: Optional[PIControl] = None) -> None: # noqa: PLR0915 self._actonevent = Actonevent(device) self._alias = Alias(device) self._allev = Allev(device) @@ -3085,7 +3085,7 @@ class TekScopePCMixin: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - device = self if isinstance(self, PIDevice) else None + device = self if isinstance(self, PIControl) else None self._command_argument_constants = TekScopePCCommandConstants() self._commands = TekScopePCCommands(device) diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index 6bcc5532..b42c85d2 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -17,9 +17,8 @@ from typing_extensions import TypeVar from tm_devices.components import DMConfigParser -from tm_devices.driver_mixins.device_control.device import Device -from tm_devices.driver_mixins.device_control.pi_device import PIDevice -from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control.rest_api_control import RESTAPIControl # noinspection PyProtectedMember from tm_devices.drivers._device_driver_mapping import ( @@ -30,6 +29,7 @@ from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) +from tm_devices.drivers.device import Device from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit @@ -136,7 +136,7 @@ def __init__( # Set up the DeviceManager self.__is_open = False self.__verbose_visa = False - self.__devices: Dict[str, Union[PIDevice, RESTAPIDevice]] = AliasDict() + self.__devices: Dict[str, Union[PIControl, RESTAPIControl]] = AliasDict() self._external_device_drivers = external_device_drivers # initialize for __set_options() self.__verbose: bool = NotImplemented @@ -198,7 +198,7 @@ def default_visa_timeout(self, value: int) -> None: self.__default_visa_timeout = value @property - def devices(self) -> Mapping[str, Union[RESTAPIDevice, PIDevice]]: + def devices(self) -> Mapping[str, Union[RESTAPIControl, PIControl]]: """Return the dictionary of devices.""" return MappingProxyType(self.__devices) @@ -850,7 +850,7 @@ def get_device( device_type: Optional[str] = None, device_number: Optional[Union[int, str]] = None, alias: Optional[str] = None, - ) -> Union[RESTAPIDevice, PIDevice]: + ) -> Union[RESTAPIControl, PIControl]: """Get the driver for the given device. Either `device_type` and `device_number` or `alias` must be provided when using this method. @@ -1118,7 +1118,7 @@ def _add_device( # noqa: PLR0913 serial_config: Optional[SerialConfig] = None, device_driver: Optional[str] = None, gpib_board_number: Optional[int] = None, - ) -> Union[RESTAPIDevice, PIDevice]: + ) -> Union[RESTAPIControl, PIControl]: """Add a device to the DeviceManager. Args: @@ -1248,7 +1248,7 @@ def __create_device( device_config_name: str, device_config: DeviceConfigEntry, warning_stacklevel: int, - ) -> Union[RESTAPIDevice, PIDevice]: + ) -> Union[RESTAPIControl, PIControl]: """Create a new device driver and add it to the device dictionary. Args: @@ -1282,10 +1282,10 @@ def __create_device( stacklevel=warning_stacklevel, ) print_with_timestamp(f"Creating Connection to {device_config_name}{alias_string}") - new_device: Union[RESTAPIDevice, PIDevice] + new_device: Union[RESTAPIControl, PIControl] if device_config.connection_type == ConnectionTypes.REST_API: device_driver_class = device_drivers[str(device_config.device_driver)] - new_device = cast(RESTAPIDevice, device_driver_class(device_config, self.__verbose)) + new_device = cast(RESTAPIControl, device_driver_class(device_config, self.__verbose)) else: # Create VISA connection and determine proper device driver try: @@ -1369,7 +1369,7 @@ def __select_visa_device_driver( visa_resource: MessageBasedResource, device_config: DeviceConfigEntry, device_drivers: Mapping[str, Type[Device]], - ) -> PIDevice: + ) -> PIControl: """Select the correct VISA device driver based on the ``*IDN?`` response. Be sure to handle removing the device from the config on a SystemError. @@ -1389,7 +1389,7 @@ def __select_visa_device_driver( model_series = "" try: model_series = get_model_series(idn_response.split(",")[1]) - device_driver = cast(Type[PIDevice], device_drivers[model_series]) + device_driver = cast(Type[PIControl], device_drivers[model_series]) new_device = device_driver( device_config, self.__verbose, diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py index d51a82e7..52f0f3b0 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py @@ -6,21 +6,21 @@ from tm_devices.driver_mixins.abstract_device_functionality.base_source_channel import ( BaseSourceChannel, ) -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers.enums import SignalGeneratorFunctionBase class BaseAFGSourceChannel(BaseSourceChannel): """Base AFG source channel driver.""" - def __init__(self, pi_device: PIDevice, channel_name: str) -> None: + def __init__(self, pi_control: PIControl, channel_name: str) -> None: """Create an AFG source channel. Args: - pi_device: A PI device. + pi_control: A PI device. channel_name: The channel name for the AFG source channel. """ - super().__init__(pi_device=pi_device, channel_name=channel_name) + super().__init__(pi_control=pi_control, channel_name=channel_name) @abstractmethod def set_function_properties( # noqa: PLR0913 diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py index 72992b20..97eff413 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py @@ -3,24 +3,24 @@ from abc import ABC, abstractmethod from typing import Optional -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl class BaseSourceChannel(ABC): """Base source channel driver.""" - def __init__(self, pi_device: PIDevice, channel_name: str) -> None: + def __init__(self, pi_control: PIControl, channel_name: str) -> None: """Create a source channel. Args: - pi_device: A PI device. + pi_control: A PI device. channel_name: The channel name for the source channel. """ self._name = channel_name self._num = None if channel_num := "".join(filter(str.isdigit, channel_name)): self._num = int(channel_num) - self._pi_device = pi_device + self._pi_control = pi_control @property def name(self) -> str: diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py new file mode 100644 index 00000000..529a9d2a --- /dev/null +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py @@ -0,0 +1,58 @@ +"""A mixin class that provides access to methods for controlling channels on a device.""" + +from abc import ABC, abstractmethod +from typing import final, Tuple + +# noinspection PyPep8Naming +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 + + +class ChannelControlMixin(ABC): + """A mixin class which adds methods and properties for controlling channels on a device.""" + + ################################################################################################ + # Abstract Properties + ################################################################################################ + @property + @abstractmethod + def all_channel_names_list(self) -> Tuple[str, ...]: + """Return a tuple containing all the channel names.""" + + @cached_property + @abstractmethod + def total_channels(self) -> int: + """Return the total number of channels (all types).""" + + ################################################################################################ + # Abstract Methods + ################################################################################################ + @abstractmethod + def turn_channel_off(self, channel_str: str) -> None: + """Turn off the specified channel. + + Args: + channel_str: The name of the channel to turn off. + """ + + @abstractmethod + def turn_channel_on(self, channel_str: str) -> None: + """Turn on the specified channel. + + Args: + channel_str: The name of the channel to turn on. + """ + + ################################################################################################ + # Public Methods + ################################################################################################ + @final + def turn_all_channels_off(self) -> None: + """Turn all channels off.""" + for ch_str in self.all_channel_names_list: + self.turn_channel_off(ch_str) + + @final + def turn_all_channels_on(self) -> None: + """Turn all channels on.""" + for ch_str in self.all_channel_names_list: + self.turn_channel_on(ch_str) diff --git a/src/tm_devices/driver_mixins/device_control/pi_device.py b/src/tm_devices/driver_mixins/device_control/pi_control.py similarity index 94% rename from src/tm_devices/driver_mixins/device_control/pi_device.py rename to src/tm_devices/driver_mixins/device_control/pi_control.py index 601644f9..34864e69 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_device.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -1,7 +1,5 @@ -# pylint: disable=too-many-lines # pyright: reportUnnecessaryTypeIgnoreComment=none -"""Base Programmable Interface (PI) device driver module.""" +"""Base Programmable Interface (PI) control class module.""" -import inspect import os import socket import time @@ -17,7 +15,6 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.driver_mixins.device_control.device import Device from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( check_visa_connection, @@ -33,9 +30,23 @@ # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 +# noinspection PyProtectedMember +from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import VerificationMethodsMixin -class PIDevice(Device, ABC): # pylint: disable=too-many-public-methods - """Base Programmable Interface (PI) device driver.""" + +class PIControl(VerificationMethodsMixin, ABC): # pylint: disable=too-many-public-methods + """Base Programmable Interface (PI) control class. + + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. + """ + + # These attributes are provided by the top-level Device class + _config_entry: DeviceConfigEntry + _enable_verification: bool + _name_and_alias: str + _verbose: bool # This is a class constant that can be overwritten by children which defines # the class to use for the IEEE 488.2 commands. @@ -77,15 +88,6 @@ def __init__( ################################################################################################ # Abstract Properties ################################################################################################ - @property - @abstractmethod - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - - @cached_property - @abstractmethod - def total_channels(self) -> int: - """Return the total number of channels (all types).""" ################################################################################################ # Abstract Methods @@ -112,36 +114,6 @@ def get_eventlog_status(self) -> Tuple[bool, str]: """ # TODO: nfelt14: in v3 - This will be deprecated by the has_errors - def turn_channel_off(self, channel_str: str) -> None: - """Turn off the specified channel. - - Args: - channel_str: The name of the channel to turn off. - - Raises: - NotImplementedError: Indicates the current driver has not implemented this method. - """ - # TODO: implement for all driver subclasses then remove this blanket NotImplementedError - raise NotImplementedError( - f"``.{inspect.currentframe().f_code.co_name}()``" # pyright: ignore[reportOptionalMemberAccess] - f" is not yet implemented for the {self.__class__.__name__} driver" - ) - - def turn_channel_on(self, channel_str: str) -> None: - """Turn on the specified channel. - - Args: - channel_str: The name of the channel to turn on. - - Raises: - NotImplementedError: Indicates the current driver has not implemented this method. - """ - # TODO: implement for all driver subclasses then remove this blanket NotImplementedError - raise NotImplementedError( - f"``.{inspect.currentframe().f_code.co_name}()``" # pyright: ignore[reportOptionalMemberAccess] - f" is not yet implemented for the {self.__class__.__name__} driver" - ) - ################################################################################################ # Properties ################################################################################################ @@ -584,7 +556,7 @@ def query_response( custom_message_prefix: str = "", allow_empty: bool = False, ) -> Tuple[bool, str]: - """Query the and verify the result. + """Query the device and verify the result. Args: query: The query that is being checked. @@ -620,7 +592,7 @@ def query_response_not( remove_quotes: bool = False, custom_message_prefix: str = "", ) -> Tuple[bool, str]: - """Query the and verify the result is not the given value. + """Query the device and verify the result is not the given value. Args: query: The query that is being checked. @@ -768,18 +740,6 @@ def set_if_needed( # noqa: PLR0913 actual_value = "" return not query_passed, actual_value - @final - def turn_all_channels_off(self) -> None: - """Turn all channels off.""" - for ch_str in self.all_channel_names_list: - self.turn_channel_off(ch_str) - - @final - def turn_all_channels_on(self) -> None: - """Turn all channels on.""" - for ch_str in self.all_channel_names_list: - self.turn_channel_on(ch_str) - def wait_for_srq_event(self, timeout: int) -> visa.resources.resource.WaitResponse: """Wait for the service request event to happen, up to the given timeout. @@ -870,7 +830,7 @@ def write(self, command: str, opc: bool = False, verbose: bool = True) -> None: if self._verbose and verbose: if "\n" in command: # Format any multiline command to print out with a single timestamp - # followed by as many (whitespace padded) f'>> {cmd}' lines as it has + # followed by as many (whitespace padded) f">> {cmd}" lines as it has commands_iter = iter(repr(command.strip()).split("\\n")) spaces = " " * len( print_with_timestamp( diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_device.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py similarity index 96% rename from src/tm_devices/driver_mixins/device_control/rest_api_device.py rename to src/tm_devices/driver_mixins/device_control/rest_api_control.py index b80b11ef..350f1352 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_device.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -1,4 +1,4 @@ -"""Base REST Application Programming Interface (API) device driver module.""" +"""Base REST Application Programming Interface (API) control class module.""" import json import time @@ -9,13 +9,27 @@ import requests -from tm_devices.driver_mixins.device_control.device import Device +# noinspection PyProtectedMember +from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( + VerificationMethodsMixin, +) from tm_devices.helpers import DeviceConfigEntry, print_with_timestamp, SupportedRequestTypes -class RESTAPIDevice(Device, ABC): - """Base REST Application Programming Interface (API) device driver.""" +class RESTAPIControl(VerificationMethodsMixin, ABC): + """Base REST Application Programming Interface (API) control class. + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. + """ + + # These attributes are provided by the top-level Device class + ip_address: str + _name_and_alias: str + _verbose: bool + + # These constants are defined by child classes API_VERSIONS: Mapping[int, str] = MappingProxyType({}) """A mapping of supported API version numbers with the corresponding API URL.""" diff --git a/src/tm_devices/driver_mixins/device_control/tsp_device.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py similarity index 95% rename from src/tm_devices/driver_mixins/device_control/tsp_device.py rename to src/tm_devices/driver_mixins/device_control/tsp_control.py index 60142f29..98b17814 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_device.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -1,11 +1,11 @@ -"""Base Test Script Processing (TSP) device driver module.""" +"""Base Test Script Processing (TSP) control class module.""" from __future__ import annotations from abc import ABC from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands from tm_devices.helpers import print_with_timestamp @@ -13,8 +13,13 @@ import os -class TSPDevice(PIDevice, ABC): - """Base Test Script Processing (TSP) device driver.""" +class TSPControl(PIControl, ABC): + """Base Test Script Processing (TSP) control class. + + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. + """ _IEEE_COMMANDS_CLASS = TSPIEEE4882Commands diff --git a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py new file mode 100644 index 00000000..519d89c7 --- /dev/null +++ b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py @@ -0,0 +1,203 @@ +"""A class that provides common methods for verifying values.""" + +from abc import ABC, abstractmethod +from typing import final, Tuple, Union + +from tm_devices.helpers import get_timestamp_string + + +# TODO: nfelt14: convert this entire class to a set of helper functions +class VerificationMethodsMixin(ABC): + """A mixin class providing common methods for verifying values.""" + + ################################################################################################ + # Abstract Properties + ################################################################################################ + @property + @abstractmethod + def _name_and_alias(self) -> str: + """Return the name and alias of the device.""" + + ################################################################################################ + # Public Methods + ################################################################################################ + @final + def raise_error(self, message: str) -> None: + """Raise an AssertionError with the provided message indicating there was an error. + + Args: + message: The message to add to the AssertionError. + + Raises: + AssertionError: Prints out the error message with a traceback. + """ + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) + message = f"{get_timestamp_string()} - ERROR: ({self._name_and_alias}) : {message}" + raise AssertionError(message) + + @final + def raise_failure(self, message: str) -> None: + """Raise an AssertionError with the provided message indicating there was a failure. + + Args: + message: The message to add to the AssertionError. + + Raises: + AssertionError: Prints out the failure message with a traceback. + """ + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) + message = f"{get_timestamp_string()} - FAILURE: ({self._name_and_alias}) : {message}" + raise AssertionError(message) + + @final + def verify_values( + self, + expected_value: Union[str, float], + actual_value: Union[str, float], + tolerance: float = 0, + percentage: bool = False, + custom_message_prefix: str = "", + log_error: bool = False, + expect_fail: bool = False, + ) -> bool: + """Compare and verify actual value with expected value. + + Args: + expected_value: The expected value. + actual_value: The actual value. + tolerance: The acceptable difference between two floating point values, e.g. 0.0005 + percentage: A boolean indicating what kind of tolerance check to perform. + False means absolute tolerance: +/- tolerance. + True means percent tolerance: +/- (tolerance / 100) * value. + custom_message_prefix: A custom message to be prepended to the failure message. + log_error: Indicate if an error should be logged instead of a failure + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Boolean indicating whether the check passed or failed. + """ + message = custom_message_prefix + "\n" if custom_message_prefix else "" + + try: + _ = float(tolerance) + _ = float(expected_value) + _ = float(actual_value) + number_comparison = True + except ValueError: + number_comparison = False + + if number_comparison: + expected_value = float(expected_value) + actual_value = float(actual_value) + if percentage: + tolerance = abs((tolerance / 100.0) * expected_value) + message, verify_passed = self._verify_numerical_value( + expected_value, actual_value, tolerance, message, expect_fail + ) + else: + expected_value = str(expected_value) + actual_value = str(actual_value) + message, verify_passed = self._verify_string_value( + expected_value, actual_value, message, expect_fail + ) + # Mark as pass/fail + if not verify_passed: + if log_error: + self.raise_error(message) + else: + self.raise_failure(message) + + return verify_passed + + ################################################################################################ + # Private Methods + ################################################################################################ + @staticmethod + @final + def _verify_numerical_value( + expected_value: float, + actual_value: float, + tolerance: float, + message: str, + expect_fail: bool, + ) -> Tuple[str, bool]: + """Compare and verify a numerical value with expected value. + + Args: + expected_value: The expected value. + actual_value: The actual value. + tolerance: The acceptable difference between two floating point values, e.g. 0.0005 + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Tuple containing the failure message and a boolean indicating if the check passed. + """ + max_value = expected_value + tolerance + min_value = expected_value - tolerance + # Verify that the number is within the tolerance. + # Also check to make sure that the string of each number is + # identical, this prevents issues from returned values that have + # a trailing zero or some other non-contributing character that + # will cause comparison issues. + if ( + not expect_fail + and ( + abs(expected_value - actual_value) <= tolerance + or str(expected_value) == str(actual_value) + ) + ) or ( + expect_fail + and not ( + abs(expected_value - actual_value) <= tolerance + or str(expected_value) == str(actual_value) + ) + ): + verify_passed = True + else: + message += ( + f"Actual result {'does not match' if not expect_fail else 'matches'} " + f"the expected result within a tolerance of {tolerance}" + f"\n max: {max_value}" + f"\n act: {actual_value}" + f"\n min: {min_value}" + ) + verify_passed = False + + return message, verify_passed + + @staticmethod + @final + def _verify_string_value( + expected_value: str, + actual_value: str, + message: str, + expect_fail: bool, + ) -> Tuple[str, bool]: + """Compare and verify a string value with expected value. + + Args: + expected_value: The expected value. + actual_value: The actual value. + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Tuple containing the failure message and a boolean indicating if the check passed. + """ + if (not expect_fail and expected_value == actual_value) or ( + expect_fail and expected_value != actual_value + ): + verify_passed = True + else: + message += ( + f"Actual result {'does not match' if not expect_fail else 'matches'} " + f"the expected result" + f"\n exp{' != ' if expect_fail else ': '}{expected_value}" + f"\n act{' == ' if expect_fail else ': '}{actual_value}" + ) + verify_passed = False + + return message, verify_passed diff --git a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py index cac24684..97e96828 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py +++ b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py @@ -3,7 +3,7 @@ from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_device import PIDevice + from tm_devices.driver_mixins.device_control.pi_control import PIControl class IEEE4882Commands: @@ -12,9 +12,9 @@ class IEEE4882Commands: ################################################################################################ # Magic Methods ################################################################################################ - def __init__(self, pi_device: "PIDevice") -> None: + def __init__(self, pi_control: "PIControl") -> None: """Create an instance of the IEEE 488.2 commands class.""" - self._pi_device = pi_device + self._pi_control = pi_control ################################################################################################ # Public Methods @@ -36,7 +36,7 @@ def cls(self) -> None: ``*CLS`` can suppress a Service Request that is to be generated by an ``*OPC``. """ - self._pi_device.write("*CLS") + self._pi_control.write("*CLS") def ese(self, value: Optional[int] = None) -> str: """Send or query the ``*ESE`` (Event Status Enable) command. @@ -60,8 +60,8 @@ def ese(self, value: Optional[int] = None) -> str: if not 0 <= value <= 255: # noqa: PLR2004 msg = f"{value=} is not a valid value. The value must be between 0 and 255." raise ValueError(msg) - return self._pi_device.set_and_check("*ESE", value) - return self._pi_device.query("*ESE?") + return self._pi_control.set_and_check("*ESE", value) + return self._pi_control.query("*ESE?") def esr(self) -> str: """Query the ``*ESR?`` (Standard Event Status Register) command. @@ -72,7 +72,7 @@ def esr(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*ESR?") + return self._pi_control.query("*ESR?") def idn(self) -> str: """Query the ``*IDN?`` (Identification) command. @@ -82,7 +82,7 @@ def idn(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*IDN?") + return self._pi_control.query("*IDN?") def lrn(self) -> str: """Query the ``*LRN?`` (Learn) command. @@ -92,7 +92,7 @@ def lrn(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*LRN?") + return self._pi_control.query("*LRN?") def opc(self, write: bool = False) -> str: r"""Send or query the ``*OPC`` (Operation Complete) command. @@ -112,9 +112,9 @@ def opc(self, write: bool = False) -> str: The output of the query, otherwise an empty string. """ if write: - self._pi_device.write("*OPC") + self._pi_control.write("*OPC") return "" - return self._pi_device.query("*OPC?") + return self._pi_control.query("*OPC?") def opt(self) -> str: """Query the ``*OPT?`` (Options) command. @@ -127,7 +127,7 @@ def opt(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*OPT?") + return self._pi_control.query("*OPT?") def psc(self, value: Optional[bool] = None) -> str: """Send or query the ``*PSC`` (Power-on Status Clear) command. @@ -145,9 +145,9 @@ def psc(self, value: Optional[bool] = None) -> str: The output of the query. """ if value is not None: - return self._pi_device.set_and_check("*PSC", int(value)) + return self._pi_control.set_and_check("*PSC", int(value)) - return self._pi_device.query("*PSC?") + return self._pi_control.query("*PSC?") def rst(self) -> None: r"""Send the ``*RST`` (Reset) command. @@ -165,7 +165,7 @@ def rst(self) -> None: ``*RST`` only resets the programmable interface settings, it does not change any user interface settings. """ - self._pi_device.write("*RST") + self._pi_control.write("*RST") def sre(self, value: Optional[int] = None) -> str: """Send or query the ``*SRE`` (Service Request Enable) command. @@ -186,8 +186,8 @@ def sre(self, value: Optional[int] = None) -> str: if not 0 <= value <= 255: # noqa: PLR2004 msg = f"{value=} is not a valid value. The value must be between 0 and 255." raise ValueError(msg) - return self._pi_device.set_and_check("*SRE", value) - return self._pi_device.query("*SRE?") + return self._pi_control.set_and_check("*SRE", value) + return self._pi_control.query("*SRE?") def stb(self) -> str: """Query the ``*STB?`` (Status Byte) command. @@ -198,7 +198,7 @@ def stb(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*STB?") + return self._pi_control.query("*STB?") def tst(self) -> str: """Send the ``*TST?`` (Self-Test) command. @@ -208,7 +208,7 @@ def tst(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("*TST?") + return self._pi_control.query("*TST?") def wai(self) -> None: """Send the ``*WAI`` (Wait) command. @@ -216,7 +216,7 @@ def wai(self) -> None: The ``*WAI`` (Wait) command (no query form) prevents the instrument from executing further commands or queries until all pending commands that generate an OPC message are complete. """ - self._pi_device.write("*WAI") + self._pi_control.write("*WAI") class TSPIEEE4882Commands(IEEE4882Commands): @@ -234,8 +234,8 @@ def cls(self) -> None: - Standard Event Status Register - Status Byte Register """ - self._pi_device.write("errorqueue.clear()") - self._pi_device.write("status.reset()") + self._pi_control.write("errorqueue.clear()") + self._pi_control.write("status.reset()") def ese(self, value: Optional[int] = None) -> str: """Send or query the Event Status Enable (``status.standard.enable``) command. @@ -256,8 +256,8 @@ def ese(self, value: Optional[int] = None) -> str: if not 0 <= value <= 255: # noqa: PLR2004 msg = f"{value=} is not a valid value. The value must be between 0 and 255." raise ValueError(msg) - return self._pi_device.set_and_check("status.standard.enable", value) - return self._pi_device.query("print(status.standard.enable)") + return self._pi_control.set_and_check("status.standard.enable", value) + return self._pi_control.query("print(status.standard.enable)") def esr(self) -> str: """Query the Standard Event Status Register (``print(status.standard.event)``) command. @@ -268,7 +268,7 @@ def esr(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("print(status.standard.event)") + return self._pi_control.query("print(status.standard.event)") def opc(self, write: bool = False) -> str: r"""Send or query the Operation Complete command. @@ -284,13 +284,13 @@ def opc(self, write: bool = False) -> str: The output of the query, otherwise an empty string. """ if write: - self._pi_device.write("opc()") + self._pi_control.write("opc()") return "" - return self._pi_device.query("waitcomplete() print([[1]])") + return self._pi_control.query("waitcomplete() print([[1]])") def rst(self) -> None: r"""Send the Reset (``reset()``) command.""" - self._pi_device.write("reset()") + self._pi_control.write("reset()") def sre(self, value: Optional[int] = None) -> str: """Send or query the Service Request Enable (``status.request_enable``) command. @@ -311,8 +311,8 @@ def sre(self, value: Optional[int] = None) -> str: if not 0 <= value <= 255: # noqa: PLR2004 msg = f"{value=} is not a valid value. The value must be between 0 and 255." raise ValueError(msg) - return self._pi_device.set_and_check("status.request_enable", value) - return self._pi_device.query("print(status.request_enable)") + return self._pi_control.set_and_check("status.request_enable", value) + return self._pi_control.query("print(status.request_enable)") def stb(self) -> str: """Query the Status Byte (``print(status.condition)``) command. @@ -320,7 +320,7 @@ def stb(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("print(status.condition)") + return self._pi_control.query("print(status.condition)") def tst(self) -> str: """Send the (``print([[0]])``) (Self-Test) command. @@ -330,11 +330,11 @@ def tst(self) -> str: Returns: The output of the query. """ - return self._pi_device.query("print([[0]])") + return self._pi_control.query("print([[0]])") def wai(self) -> None: """Send the ``waitcomplete()`` command.""" - self._pi_device.write("waitcomplete()") + self._pi_control.write("waitcomplete()") class LegacyTSPIEEE4882Commands(TSPIEEE4882Commands): @@ -352,5 +352,5 @@ def cls(self) -> None: - Standard Event Status Register - Status Byte Register """ - self._pi_device.write("eventlog.clear()") - self._pi_device.write("status.clear()") + self._pi_control.write("eventlog.clear()") + self._pi_control.write("status.clear()") diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 01c6f358..39c77c71 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -6,7 +6,7 @@ from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( SignalGeneratorMixin, ) -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import print_with_timestamp @@ -14,8 +14,8 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: remove PIDevice inheritance if possible, maybe even remove this class entirely? -class TekAFGAWG(PIDevice, SignalGeneratorMixin, ExtendableMixin, ABC): +# TODO: nfelt14: remove PIControl inheritance if possible, maybe even remove this class entirely? +class TekAFGAWG(PIControl, SignalGeneratorMixin, ExtendableMixin, ABC): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" ################################################################################################ diff --git a/src/tm_devices/drivers/_device_driver_mapping.py b/src/tm_devices/drivers/_device_driver_mapping.py index fb344b38..34a1297e 100644 --- a/src/tm_devices/drivers/_device_driver_mapping.py +++ b/src/tm_devices/drivers/_device_driver_mapping.py @@ -105,7 +105,7 @@ from tm_devices.helpers.enums import SupportedModels if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.device import Device + from tm_devices.drivers.device import Device #################################################################################################### # Private Attributes diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 9e705c6f..3913d9ec 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -15,8 +15,8 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming @@ -34,9 +34,9 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAFG] = SignalGeneratorFunctionsAFG -# TODO: nfelt14: remove PIDevice inheritance if possible +# TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(TekAFGAWG, ABC): +class AFG(Device, TekAFGAWG, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value @@ -261,7 +261,7 @@ def __init__(self, afg: AFG, channel_name: str) -> None: afg: An AFG. channel_name: The channel name for the AFG source channel. """ - super().__init__(pi_device=afg, channel_name=channel_name) + super().__init__(pi_control=afg, channel_name=channel_name) self._afg = afg ################################################################################################ diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index 1ad2ab49..9adf04bf 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -13,9 +13,9 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG # noinspection PyPep8Naming @@ -34,8 +34,8 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAWG] = SignalGeneratorFunctionsAWG -# TODO: nfelt14: remove PIDevice inheritance if possible -class AWG(TekAFGAWG, ABC): +# TODO: nfelt14: remove PIControl inheritance if possible +class AWG(Device, TekAFGAWG, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 @@ -368,7 +368,7 @@ def __init__(self, awg: AWG, channel_name: str) -> None: awg: An AWG. channel_name: The channel name for the AWG source channel. """ - super().__init__(pi_device=awg, channel_name=channel_name) + super().__init__(pi_control=awg, channel_name=channel_name) self._awg = awg ################################################################################################ diff --git a/src/tm_devices/drivers/awgs/awg5200.py b/src/tm_devices/drivers/awgs/awg5200.py index c93178c6..f5b99b84 100644 --- a/src/tm_devices/drivers/awgs/awg5200.py +++ b/src/tm_devices/drivers/awgs/awg5200.py @@ -7,13 +7,13 @@ import pyvisa as visa from tm_devices.commands import AWG5200Mixin -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, ParameterBounds, ) +from tm_devices.drivers.device import family_base_class from tm_devices.helpers import ( DeviceConfigEntry, SASSetWaveformFileTypes, diff --git a/src/tm_devices/drivers/awgs/awg5k.py b/src/tm_devices/drivers/awgs/awg5k.py index d1da1140..8b33888d 100644 --- a/src/tm_devices/drivers/awgs/awg5k.py +++ b/src/tm_devices/drivers/awgs/awg5k.py @@ -6,13 +6,13 @@ import pyvisa as visa from tm_devices.commands import AWG5KMixin -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, ParameterBounds, ) +from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/awgs/awg70ka.py b/src/tm_devices/drivers/awgs/awg70ka.py index 0b8d0c0a..daee2c0d 100644 --- a/src/tm_devices/drivers/awgs/awg70ka.py +++ b/src/tm_devices/drivers/awgs/awg70ka.py @@ -7,13 +7,13 @@ import pyvisa as visa from tm_devices.commands import AWG70KAMixin -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, AWGSourceDeviceConstants, ParameterBounds, ) +from tm_devices.drivers.device import family_base_class from tm_devices.helpers import ( DeviceConfigEntry, SASSetWaveformFileTypes, diff --git a/src/tm_devices/drivers/awgs/awg7k.py b/src/tm_devices/drivers/awgs/awg7k.py index 01d07173..38688221 100644 --- a/src/tm_devices/drivers/awgs/awg7k.py +++ b/src/tm_devices/drivers/awgs/awg7k.py @@ -6,7 +6,6 @@ import pyvisa as visa from tm_devices.commands import AWG7KMixin -from tm_devices.driver_mixins.device_control.device import family_base_class from tm_devices.drivers.awgs.awg import ( AWG, AWGSourceChannel, @@ -17,6 +16,7 @@ AWG5K, AWG5KSourceChannel, ) +from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 2f466a55..18d3f072 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,22 +5,21 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) +from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming -from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class -class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem, TSPDevice): +class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem, TSPControl): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -48,21 +47,12 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return tuple(f"{x+1}" for x in range(self.total_channels)) @property def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds # pyright: ignore[reportReturnType] - @cached_property - def total_channels(self) -> int: - """Return the total number of channels (all types).""" - return 1 - ################################################################################################ # Public Methods ################################################################################################ diff --git a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py index 4ce1c8ac..b56adbd0 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py +++ b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py @@ -2,11 +2,12 @@ from abc import ABC +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes # pylint: disable=too-few-public-methods -class DataAcquisitionSystem(ABC): # noqa: B024 +class DataAcquisitionSystem(Device, ABC): """Base Data Acquisition (DAQ) device driver.""" _DEVICE_TYPE = DeviceTypes.DAQ.value diff --git a/src/tm_devices/driver_mixins/device_control/device.py b/src/tm_devices/drivers/device.py similarity index 77% rename from src/tm_devices/driver_mixins/device_control/device.py rename to src/tm_devices/drivers/device.py index fdfb9cd1..c79a2731 100644 --- a/src/tm_devices/driver_mixins/device_control/device.py +++ b/src/tm_devices/drivers/device.py @@ -13,7 +13,6 @@ Optional, Tuple, TypeVar, - Union, ) from packaging.version import Version @@ -24,7 +23,6 @@ check_port_connection, ConnectionTypes, DeviceConfigEntry, - get_timestamp_string, print_with_timestamp, ) @@ -218,7 +216,7 @@ def commands(self) -> Any: """Return the device commands.""" return self._commands - @property + @cached_property def config_entry(self) -> DeviceConfigEntry: """Return the device config.""" return self._config_entry @@ -437,36 +435,6 @@ def has_errors(self) -> bool: # TODO: nfelt14: update this with new behavior return self._has_errors() - @final - def raise_error(self, message: str) -> None: - """Raise an AssertionError with the provided message indicating there was an error. - - Args: - message: The message to add to the AssertionError. - - Raises: - AssertionError: Prints out the error message with a traceback. - """ - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) - message = f"{get_timestamp_string()} - ERROR: ({self._name_and_alias}) : {message}" - raise AssertionError(message) - - @final - def raise_failure(self, message: str) -> None: - """Raise an AssertionError with the provided message indicating there was a failure. - - Args: - message: The message to add to the AssertionError. - - Raises: - AssertionError: Prints out the failure message with a traceback. - """ - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) - message = f"{get_timestamp_string()} - FAILURE: ({self._name_and_alias}) : {message}" - raise AssertionError(message) - @final def reboot(self, quiet_period: int = 0) -> bool: """Reboot the device and reconnect all its used resources and components. @@ -504,67 +472,6 @@ def reboot(self, quiet_period: int = 0) -> bool: ) return rebooted - # TODO: nfelt14: move to mixin - @final - def verify_values( - self, - expected_value: Union[str, float], - actual_value: Union[str, float], - tolerance: float = 0, - percentage: bool = False, - custom_message_prefix: str = "", - log_error: bool = False, - expect_fail: bool = False, - ) -> bool: - """Compare and verify actual value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - tolerance: The acceptable difference between two floating point values, e.g. 0.0005 - percentage: A boolean indicating what kind of tolerance check to perform. - False means absolute tolerance: +/- tolerance. - True means percent tolerance: +/- (tolerance / 100) * value. - custom_message_prefix: A custom message to be prepended to the failure message. - log_error: Indicate if an error should be logged instead of a failure - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Boolean indicating whether the check passed or failed. - """ - message = custom_message_prefix + "\n" if custom_message_prefix else "" - - try: - _ = float(tolerance) - _ = float(expected_value) - _ = float(actual_value) - number_comparison = True - except ValueError: - number_comparison = False - - if number_comparison: - expected_value = float(expected_value) - actual_value = float(actual_value) - if percentage: - tolerance = abs((tolerance / 100.0) * expected_value) - message, verify_passed = self._verify_numerical_value( - expected_value, actual_value, tolerance, message, expect_fail - ) - else: - expected_value = str(expected_value) - actual_value = str(actual_value) - message, verify_passed = self._verify_string_value( - expected_value, actual_value, message, expect_fail - ) - # Mark as pass/fail - if not verify_passed: - if log_error: - self.raise_error(message) - else: - self.raise_failure(message) - - return verify_passed - @final def wait_for_network_connection( self, @@ -692,7 +599,6 @@ def wait_for_port_connection( ################################################################################################ # Private Methods ################################################################################################ - def _get_self_properties(self) -> Tuple[str, ...]: """Get a complete list of all the properties of the device.""" return tuple( @@ -700,91 +606,3 @@ def _get_self_properties(self) -> Tuple[str, ...]: for p in dir(self.__class__) if isinstance(getattr(self.__class__, p), (functools_cached_property, property)) ) - - @staticmethod - @final - def _verify_numerical_value( - expected_value: float, - actual_value: float, - tolerance: float, - message: str, - expect_fail: bool, - ) -> Tuple[str, bool]: - """Compare and verify a numerical value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - tolerance: The acceptable difference between two floating point values, e.g. 0.0005 - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Tuple containing the failure message and a boolean indicating if the check passed. - """ - max_value = expected_value + tolerance - min_value = expected_value - tolerance - # Verify that the number is within the tolerance. - # Also check to make sure that the string of each number is - # identical, this prevents issues from returned values that have - # a trailing zero or some other non-contributing character that - # will cause comparison issues. - if ( - not expect_fail - and ( - abs(expected_value - actual_value) <= tolerance - or str(expected_value) == str(actual_value) - ) - ) or ( - expect_fail - and not ( - abs(expected_value - actual_value) <= tolerance - or str(expected_value) == str(actual_value) - ) - ): - verify_passed = True - else: - message += ( - f"Actual result {'does not match' if not expect_fail else 'matches'} " - f"the expected result within a tolerance of {tolerance}" - f"\n max: {max_value}" - f"\n act: {actual_value}" - f"\n min: {min_value}" - ) - verify_passed = False - - return message, verify_passed - - @staticmethod - @final - def _verify_string_value( - expected_value: str, - actual_value: str, - message: str, - expect_fail: bool, - ) -> Tuple[str, bool]: - """Compare and verify a string value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Tuple containing the failure message and a boolean indicating if the check passed. - """ - if (not expect_fail and expected_value == actual_value) or ( - expect_fail and expected_value != actual_value - ): - verify_passed = True - else: - message += ( - f"Actual result {'does not match' if not expect_fail else 'matches'} " - f"the expected result" - f"\n exp{' != ' if expect_fail else ': '}{expected_value}" - f"\n act{' == ' if expect_fail else ': '}{actual_value}" - ) - verify_passed = False - - return message, verify_passed diff --git a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py index 544b2150..249da576 100644 --- a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py +++ b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py @@ -2,11 +2,12 @@ from abc import ABC +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes # pylint: disable=too-few-public-methods -class DigitalMultimeter(ABC): # noqa: B024 +class DigitalMultimeter(Device, ABC): """Base Digital Multimeter (DMM) device driver.""" _DEVICE_TYPE = DeviceTypes.DMM.value diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index 2643d0bf..43776cbe 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,17 +5,17 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.helpers import DeviceConfigEntry @family_base_class -class DMM6500(DMM6500Mixin, DigitalMultimeter, TSPDevice): +class DMM6500(DMM6500Mixin, DigitalMultimeter, TSPControl): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -44,10 +44,6 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return () @property def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 9a7faf2d..2ab4bf94 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,17 +5,17 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter from tm_devices.helpers import DeviceConfigEntry @family_base_class -class DMM75xx(DigitalMultimeter, TSPDevice, ABC): +class DMM75xx(DigitalMultimeter, TSPControl, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -44,10 +44,6 @@ def __init__( # pylint: disable=useless-parent-delegation ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return () @property def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index ec940207..5232294a 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -9,8 +9,8 @@ from packaging.version import Version from requests.structures import CaseInsensitiveDict -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.rest_api_device import RESTAPIDevice +from tm_devices.driver_mixins.device_control.rest_api_control import RESTAPIControl +from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceConfigEntry, DeviceTypes # noinspection PyPep8Naming @@ -18,7 +18,7 @@ @family_base_class -class MarginTester(RESTAPIDevice, ABC): +class MarginTester(Device, RESTAPIControl, ABC): """Base Margin Tester device driver.""" _DEVICE_TYPE = DeviceTypes.MT.value diff --git a/src/tm_devices/drivers/power_supplies/power_supply.py b/src/tm_devices/drivers/power_supplies/power_supply.py index 0788234a..6d419b5b 100644 --- a/src/tm_devices/drivers/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/power_supplies/power_supply.py @@ -7,10 +7,11 @@ from typing import Tuple, Union from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes -class PowerSupplyUnit(ABC): # noqa: B024 +class PowerSupplyUnit(Device, ABC): """Base Power Supply Unit (PSU) device driver.""" _DEVICE_TYPE = DeviceTypes.PSU.value diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 4f835cc3..0b6e2a38 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -1,11 +1,9 @@ """2200 Base device driver for the 22xx family of power supplies.""" -from typing import Tuple - from packaging.version import Version -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version @@ -14,7 +12,7 @@ @family_base_class -class PSU2200(PowerSupplyUnit, PIDevice): +class PSU2200(PowerSupplyUnit, PIControl): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ @@ -24,15 +22,6 @@ class PSU2200(PowerSupplyUnit, PIDevice): ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return tuple(f"SOURCE{x+1}" for x in range(self.total_channels)) - - @cached_property - def total_channels(self) -> int: - """Return the total number of channels (all types).""" - return max(1, int(self.model[2])) if self.model[2].isdecimal() else 1 ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index 8911ff97..4728ac91 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -1,46 +1,33 @@ """Base Scope device driver module.""" -import inspect - from abc import ABC -from typing import Any, List, Optional, Tuple, Union +from typing import Tuple, Union -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: remove PIDevice inheritance if possible -class Scope(PIDevice, ABC): +# TODO: nfelt14: remove PIControl inheritance if possible +class Scope(PIControl, Device, ABC): """Base Scope device driver.""" _DEVICE_TYPE = DeviceTypes.SCOPE.value ################################################################################################ - # Abstract Methods + # Abstract Properties ################################################################################################ - def single_sequence(self) -> None: - """Perform a single sequence. - Raises: - NotImplementedError: Indicates the current driver has not implemented this method. - """ - # TODO: implement for all driver subclasses then convert to abstractmethod - raise NotImplementedError( - f"``.{inspect.currentframe().f_code.co_name}()``" # pyright: ignore[reportOptionalMemberAccess] - f" is not yet implemented for the {self.__class__.__name__} driver" - ) + ################################################################################################ + # Abstract Methods + ################################################################################################ ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return tuple(f"CH{x+1}" for x in range(self.total_channels)) - @cached_property def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" @@ -49,26 +36,6 @@ def opt_string(self) -> str: ################################################################################################ # Public Methods ################################################################################################ - def curve_query( - self, - channel_num: int, - wfm_type: str = "TimeDomain", - output_csv_file: Optional[str] = None, - ) -> List[Any]: - """Perform a curve query on a specific channel. - - Args: - channel_num: The channel number to perform the curve query on. - wfm_type: The type of waveform to query. - output_csv_file: An optional file path to a csv file to save the curve query data in. - - Raises: - NotImplementedError: Indicates the current driver has not implemented this method. - """ - raise NotImplementedError( - f"``.{inspect.currentframe().f_code.co_name}()``" # pyright: ignore[reportOptionalMemberAccess] - f" is not yet implemented for the {self.__class__.__name__} driver" - ) def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: r"""Check for the expected number of errors and output string. diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 680c4175..61f19126 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -35,6 +35,9 @@ from tm_devices.driver_mixins.abstract_device_functionality.base_afg_source_channel import ( BaseAFGSourceChannel, ) +from tm_devices.driver_mixins.abstract_device_functionality.channel_control_mixin import ( + ChannelControlMixin, +) from tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin import LicensedMixin from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( ExtendedSourceDeviceConstants, @@ -43,7 +46,7 @@ SourceDeviceConstants, ) from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG @@ -85,6 +88,7 @@ class AbstractTekScope( # pylint: disable=too-many-public-methods PlotMixin, PowerMixin, USBDrivesMixin, + ChannelControlMixin, ABC, ): """Base TekScope scope device driver.""" @@ -123,6 +127,11 @@ def __init__( ################################################################################################ # Properties ################################################################################################ + @property + def all_channel_names_list(self) -> Tuple[str, ...]: + """Return a tuple containing all the channel names.""" + return tuple(f"CH{x+1}" for x in range(self.total_channels)) + @cached_property def channel(self) -> "MappingProxyType[str, TekScopeChannel]": """Mapping of channel names to any detectable properties, attributes, and settings.""" @@ -918,7 +927,7 @@ def __init__(self, tekscope: TekScope) -> None: Args: tekscope: A TekScope. """ - super().__init__(pi_device=tekscope, channel_name="AFG") + super().__init__(pi_control=tekscope, channel_name="AFG") self._tekscope = tekscope def __getattribute__(self, item: Any) -> Any: diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py index 19578299..aa7e873b 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import TekScopePCMixin -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.tekscope.tekscope import AbstractTekScope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py index c9a05030..22f1bb1e 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py @@ -5,7 +5,10 @@ from abc import ABC from typing import Any, List, Optional -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.driver_mixins.abstract_device_functionality.channel_control_mixin import ( + ChannelControlMixin, +) +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming @@ -13,7 +16,7 @@ @family_base_class -class TekScope2k(Scope, ABC): +class TekScope2k(Scope, ChannelControlMixin, ABC): """Base TekScope2k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py index ea3b5f36..479967f8 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -2,7 +2,7 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index 373b29eb..a8b033ab 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -4,7 +4,7 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/scopes/tso/tsovu.py b/src/tm_devices/drivers/scopes/tso/tsovu.py index bdb749a1..cc0976b8 100644 --- a/src/tm_devices/drivers/scopes/tso/tsovu.py +++ b/src/tm_devices/drivers/scopes/tso/tsovu.py @@ -2,7 +2,7 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.device import family_base_class +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index c047c4de..c806da80 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,11 +9,11 @@ SMU2461Commands, SMU2470Commands, ) -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -21,7 +21,7 @@ @family_base_class -class SMU24xxInteractive(SourceMeasureUnit, TSPDevice, ABC): +class SMU24xxInteractive(SourceMeasureUnit, TSPControl, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 6a4ca2cc..36e24e02 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,9 +5,9 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING, Union -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -18,7 +18,7 @@ @family_base_class -class SMU24xxStandard(SourceMeasureUnit, PIDevice, ABC): +class SMU24xxStandard(SourceMeasureUnit, PIControl, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 34e1eda1..48022365 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,8 +20,8 @@ SMU2651ACommands, SMU2657ACommands, ) -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -29,7 +29,7 @@ @family_base_class -class SMU26xx(SourceMeasureUnit, TSPDevice, ABC): +class SMU26xx(TSPControl, SourceMeasureUnit, ABC): """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 64598fbb..23ceb9e4 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -5,9 +5,9 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING, Union -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit # noinspection PyPep8Naming @@ -18,7 +18,7 @@ @family_base_class -class SMU6xxx(SourceMeasureUnit, PIDevice, ABC): +class SMU6xxx(SourceMeasureUnit, PIControl, ABC): """Base SMU6xxx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py index 5621476b..448f8b44 100644 --- a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py +++ b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py @@ -5,11 +5,12 @@ from abc import ABC +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes # pylint: disable=too-few-public-methods -class SourceMeasureUnit(ABC): # noqa: B024 +class SourceMeasureUnit(Device, ABC): """Base Source Measure Unit (SMU) device driver.""" _DEVICE_TYPE = DeviceTypes.SMU.value diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 17f3a2a0..53b00eba 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -5,8 +5,8 @@ import pyvisa as visa from tm_devices.commands import SS3706AMixin -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.drivers.device import family_base_class from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import DeviceConfigEntry @@ -15,7 +15,7 @@ @family_base_class -class SS3706A(SS3706AMixin, SystemsSwitch, TSPDevice): +class SS3706A(TSPControl, SS3706AMixin, SystemsSwitch): """SS3706A device driver.""" ################################################################################################ @@ -42,15 +42,6 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return tuple(f"{x+1}" for x in range(self.total_channels)) - - @cached_property - def total_channels(self) -> int: - """Return the total number of channels (all types).""" - return 576 ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/systems_switches/systems_switch.py b/src/tm_devices/drivers/systems_switches/systems_switch.py index 6c061a6a..ed4eabdc 100644 --- a/src/tm_devices/drivers/systems_switches/systems_switch.py +++ b/src/tm_devices/drivers/systems_switches/systems_switch.py @@ -2,11 +2,12 @@ from abc import ABC +from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes # pylint: disable=too-few-public-methods -class SystemsSwitch(ABC): # noqa: B024 +class SystemsSwitch(Device, ABC): """Base Systems Switch (SS) device driver.""" _DEVICE_TYPE = DeviceTypes.SS.value diff --git a/src/tm_devices/helpers/enums.py b/src/tm_devices/helpers/enums.py index 58a291b7..605d9bf9 100644 --- a/src/tm_devices/helpers/enums.py +++ b/src/tm_devices/helpers/enums.py @@ -199,7 +199,7 @@ class SupportedModels(CustomStrEnum): class SupportedRequestTypes(CustomStrEnum): - """All request types supported by a [`RESTAPIDevice`][tm_devices.driver_mixins.device_control.rest_api_device.RESTAPIDevice].""" # noqa: E501 + """All request types supported by a [`RESTAPIControl`][tm_devices.driver_mixins.device_control.rest_api_control.RESTAPIControl].""" # noqa: E501 GET = "GET" POST = "POST" diff --git a/tests/samples/golden_stubs/driver_mixins/device_control/pi_device.pyi b/tests/samples/golden_stubs/driver_mixins/device_control/pi_control.pyi similarity index 90% rename from tests/samples/golden_stubs/driver_mixins/device_control/pi_device.pyi rename to tests/samples/golden_stubs/driver_mixins/device_control/pi_control.pyi index c5b6d988..2c13d144 100644 --- a/tests/samples/golden_stubs/driver_mixins/device_control/pi_device.pyi +++ b/tests/samples/golden_stubs/driver_mixins/device_control/pi_control.pyi @@ -4,7 +4,7 @@ from abc import ABC from tm_devices.helpers import DeviceConfigEntry -class PIDevice(ABC, metaclass=abc.ABCMeta): +class PIControl(ABC, metaclass=abc.ABCMeta): def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ... def already_exists(self) -> None: """Return nothing.""" diff --git a/tests/samples/golden_stubs/driver_mixins/device_control/tsp_device.pyi b/tests/samples/golden_stubs/driver_mixins/device_control/tsp_control.pyi similarity index 90% rename from tests/samples/golden_stubs/driver_mixins/device_control/tsp_device.pyi rename to tests/samples/golden_stubs/driver_mixins/device_control/tsp_control.pyi index 08faec22..7e223357 100644 --- a/tests/samples/golden_stubs/driver_mixins/device_control/tsp_device.pyi +++ b/tests/samples/golden_stubs/driver_mixins/device_control/tsp_control.pyi @@ -5,7 +5,7 @@ from dataclasses import dataclass from tm_devices.helpers import DeviceConfigEntry -class TSPDevice(ABC, metaclass=abc.ABCMeta): +class TSPControl(ABC, metaclass=abc.ABCMeta): def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ... def already_exists(self) -> None: """Return nothing.""" diff --git a/tests/samples/golden_stubs/driver_mixins/device_control/device.pyi b/tests/samples/golden_stubs/drivers/device.pyi similarity index 100% rename from tests/samples/golden_stubs/driver_mixins/device_control/device.pyi rename to tests/samples/golden_stubs/drivers/device.pyi diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index b76b7fd0..f9cedc08 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -17,12 +17,12 @@ import pytest from tm_devices import DeviceManager -from tm_devices.driver_mixins.device_control.device import Device -from tm_devices.driver_mixins.device_control.pi_device import PIDevice -from tm_devices.driver_mixins.device_control.tsp_device import TSPDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.afgs.afg import AFG +from tm_devices.drivers.device import Device from tm_devices.drivers.scopes.scope import Scope INITIAL_DEVICE_INPUT = '''import abc @@ -53,7 +53,7 @@ def function_2(arg1: str, arg2: int = 2) -> bool: ... from tm_devices.helpers import DeviceConfigEntry -class PIDevice(ABC, metaclass=abc.ABCMeta): +class PIControl(ABC, metaclass=abc.ABCMeta): def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ... def already_exists(self) -> None: """Return nothing.""" @@ -67,7 +67,7 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ... from dataclasses import dataclass from tm_devices.helpers import DeviceConfigEntry -class TSPDevice(ABC, metaclass=abc.ABCMeta): +class TSPControl(ABC, metaclass=abc.ABCMeta): def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ... def already_exists(self) -> None: """Return nothing.""" @@ -99,8 +99,8 @@ def _remove_added_methods() -> Iterator[None]: (AFG, "custom_model_getter_afg"), (AFG3K, "custom_model_getter_afg3k"), (AFG3KC, "custom_model_getter_afg3kc"), - (PIDevice, "added_method"), - (TSPDevice, "added_tsp_method"), + (PIControl, "added_method"), + (TSPControl, "added_tsp_method"), ): with contextlib.suppress(AttributeError): delattr(obj, name) @@ -138,8 +138,8 @@ def gen_count() -> Iterator[int]: golden_stub_dir = Path(__file__).parent / "samples" / "golden_stubs" stub_device_filepath = Path("driver_mixins/device_control/device.pyi") - stub_pi_device_filepath = Path("driver_mixins/device_control/pi_device.pyi") - stub_tsp_device_filepath = Path("driver_mixins/device_control/tsp_device.pyi") + stub_pi_control_filepath = Path("driver_mixins/device_control/pi_control.pyi") + stub_tsp_control_filepath = Path("driver_mixins/device_control/tsp_control.pyi") generated_stub_dir = ( Path(__file__).parent / "samples/generated_stubs" @@ -147,12 +147,12 @@ def gen_count() -> Iterator[int]: ) generated_device_stub_file = generated_stub_dir / stub_device_filepath generated_device_stub_file.parent.mkdir(parents=True, exist_ok=True) - generated_pi_device_stub_file = generated_stub_dir / stub_pi_device_filepath - generated_tsp_device_stub_file = generated_stub_dir / stub_tsp_device_filepath - generated_pi_device_stub_file.parent.mkdir(parents=True, exist_ok=True) + generated_pi_control_stub_file = generated_stub_dir / stub_pi_control_filepath + generated_tsp_control_stub_file = generated_stub_dir / stub_tsp_control_filepath + generated_pi_control_stub_file.parent.mkdir(parents=True, exist_ok=True) generated_device_stub_file.write_text(INITIAL_DEVICE_INPUT, encoding="utf-8") - generated_pi_device_stub_file.write_text(INITIAL_PI_DEVICE_INPUT, encoding="utf-8") - generated_tsp_device_stub_file.write_text(INITIAL_TSP_DEVICE_INPUT, encoding="utf-8") + generated_pi_control_stub_file.write_text(INITIAL_PI_DEVICE_INPUT, encoding="utf-8") + generated_tsp_control_stub_file.write_text(INITIAL_TSP_DEVICE_INPUT, encoding="utf-8") with mock.patch.dict("os.environ", {"TM_DEVICES_STUB_DIR": str(generated_stub_dir)}): # noinspection PyUnusedLocal,PyShadowingNames @Device.add_property(is_cached=True) @@ -201,11 +201,11 @@ def custom_return_none() -> None: def already_exists() -> None: """Return nothing.""" - @PIDevice.add_method + @PIControl.add_method def added_method() -> None: """Return nothing.""" - @TSPDevice.add_method + @TSPControl.add_method def added_tsp_method() -> None: """Return nothing.""" @@ -273,16 +273,16 @@ def custom_model_getter_afg3kc(device: AFG3KC, value: str) -> str: golden_device_contents = (golden_stub_dir / stub_device_filepath).read_text(encoding="utf-8") generated_device_contents = generated_device_stub_file.read_text(encoding="utf-8") assert generated_device_contents == golden_device_contents - golden_pi_device_contents = (golden_stub_dir / stub_pi_device_filepath).read_text( + golden_pi_control_contents = (golden_stub_dir / stub_pi_control_filepath).read_text( encoding="utf-8" ) - generated_pi_device_contents = generated_pi_device_stub_file.read_text(encoding="utf-8") - assert generated_pi_device_contents == golden_pi_device_contents - golden_tsp_device_contents = (golden_stub_dir / stub_tsp_device_filepath).read_text( + generated_pi_control_contents = generated_pi_control_stub_file.read_text(encoding="utf-8") + assert generated_pi_control_contents == golden_pi_control_contents + golden_tsp_control_contents = (golden_stub_dir / stub_tsp_control_filepath).read_text( encoding="utf-8" ) - generated_tsp_device_contents = generated_tsp_device_stub_file.read_text(encoding="utf-8") - assert generated_tsp_device_contents == golden_tsp_device_contents + generated_tsp_control_contents = generated_tsp_control_stub_file.read_text(encoding="utf-8") + assert generated_tsp_control_contents == golden_tsp_control_contents # Test the custom added properties afg = device_manager.add_afg("afg3252c-hostname", alias="testing") diff --git a/tests/test_pi_device.py b/tests/test_pi_device.py index 097160ba..ffa2a653 100644 --- a/tests/test_pi_device.py +++ b/tests/test_pi_device.py @@ -1,5 +1,5 @@ # pyright: reportPrivateUsage=none -"""Test generic PIDevice functionality.""" +"""Test generic PIControl functionality.""" from unittest import mock @@ -9,10 +9,10 @@ from tm_devices import DeviceManager -def test_pi_device( # noqa: PLR0915 +def test_pi_control( # noqa: PLR0915 device_manager: DeviceManager, capsys: pytest.CaptureFixture[str] ) -> None: - """Test generic PIDevice functionality. + """Test generic PIControl functionality. Args: device_manager: The DeviceManager object. diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 016be1d7..ddf50379 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -1,5 +1,5 @@ # pyright: reportPrivateUsage=none -"""Unit tests for rest_api_device.py.""" +"""Unit tests for rest_api_control.py.""" from types import MappingProxyType from unittest import mock @@ -10,11 +10,11 @@ from packaging.version import Version from mock_server import INDEX_RESPONSE, PORT -from tm_devices.driver_mixins.device_control.device import family_base_class -from tm_devices.driver_mixins.device_control.rest_api_device import ( - RESTAPIDevice, +from tm_devices.driver_mixins.device_control.rest_api_control import ( + RESTAPIControl, SupportedRequestTypes, ) +from tm_devices.drivers.device import family_base_class # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -27,7 +27,7 @@ ################################################################################################ # noinspection PyAbstractClass @family_base_class -class CustomRestApiDevice(RESTAPIDevice): +class CustomRestApiDevice(RESTAPIControl): """Custom Rest API Device class.""" _DEVICE_TYPE = "CUSTOM" @@ -74,14 +74,14 @@ def sw_version(self) -> Version: ################################################################################################ # Fixtures ################################################################################################ -@pytest.fixture(scope="module", name="rest_api_device") -def fixture_rest_api_device(mock_http_server: None) -> CustomRestApiDevice: # noqa: ARG001 +@pytest.fixture(scope="module", name="rest_api_control") +def fixture_rest_api_control(mock_http_server: None) -> CustomRestApiDevice: # noqa: ARG001 """Fixture that connects the Rest API Device to the mock server. Returns: The Rest API device. """ - rest_api_device = CustomRestApiDevice( + rest_api_control = CustomRestApiDevice( config_entry=DeviceConfigEntry( device_type=DeviceTypes.MT, device_driver="TMT4", # needed to create the custom device, not actually used @@ -95,110 +95,110 @@ def fixture_rest_api_device(mock_http_server: None) -> CustomRestApiDevice: # n # noinspection PyProtectedMember # Change base_url from https to http as the mock server # can only handle http requests. Also add port number. - rest_api_device._base_url = ( # noqa: SLF001 - rest_api_device._base_url.replace("https", "http") + f":{PORT}" # noqa: SLF001 + rest_api_control._base_url = ( # noqa: SLF001 + rest_api_control._base_url.replace("https", "http") + f":{PORT}" # noqa: SLF001 ) - rest_api_device._api_url = rest_api_device.base_url + "/api" # noqa: SLF001 - return rest_api_device + rest_api_control._api_url = rest_api_control.base_url + "/api" # noqa: SLF001 + return rest_api_control ################################################################################################ # Test Code ################################################################################################ -def test_delete(rest_api_device: CustomRestApiDevice) -> None: +def test_delete(rest_api_control: CustomRestApiDevice) -> None: """Test DELETE request. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - _, res_json, _, _ = rest_api_device.delete(url="/delete") + _, res_json, _, _ = rest_api_control.delete(url="/delete") assert not isinstance(res_json, bytes) assert res_json["message"] == str(SupportedRequestTypes.DELETE) -def test_patch(rest_api_device: CustomRestApiDevice) -> None: +def test_patch(rest_api_control: CustomRestApiDevice) -> None: """Test PATCH request. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - _, res_json, _, _ = rest_api_device.patch( + _, res_json, _, _ = rest_api_control.patch( url="/update", json_body={"message": str(SupportedRequestTypes.PATCH)} ) assert not isinstance(res_json, bytes) assert res_json["message"] == str(SupportedRequestTypes.PATCH) -def test_post(rest_api_device: CustomRestApiDevice) -> None: +def test_post(rest_api_control: CustomRestApiDevice) -> None: """Test POST request. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - _, res_json, _, _ = rest_api_device.post( + _, res_json, _, _ = rest_api_control.post( url="/update", json_body={"message": str(SupportedRequestTypes.POST)} ) assert not isinstance(res_json, bytes) assert res_json["message"] == str(SupportedRequestTypes.POST) -def test_put(rest_api_device: CustomRestApiDevice) -> None: +def test_put(rest_api_control: CustomRestApiDevice) -> None: """Test PUT request. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - _, res_json, _, _ = rest_api_device.put( + _, res_json, _, _ = rest_api_control.put( url="/update", json_body={"message": str(SupportedRequestTypes.PUT)} ) assert not isinstance(res_json, bytes) assert res_json["message"] == str(SupportedRequestTypes.PUT) -def test_unsupported_request_type(rest_api_device: CustomRestApiDevice) -> None: +def test_unsupported_request_type(rest_api_control: CustomRestApiDevice) -> None: """Verify sending an unsupported request type raises a ValueError. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ with pytest.raises(ValueError, match="UNSUPPORTED is an unsupported request type."): - rest_api_device._send_request( # noqa: SLF001 + rest_api_control._send_request( # noqa: SLF001 request_type="UNSUPPORTED", # type: ignore[arg-type] url="/api", ) -def test_api_url(rest_api_device: CustomRestApiDevice) -> None: +def test_api_url(rest_api_control: CustomRestApiDevice) -> None: """Verify API URL is the Base URL with /api at the end. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - assert rest_api_device.api_url == rest_api_device.base_url + "/api" + assert rest_api_control.api_url == rest_api_control.base_url + "/api" -def test_set_api_version_non_verbose(rest_api_device: CustomRestApiDevice) -> None: +def test_set_api_version_non_verbose(rest_api_control: CustomRestApiDevice) -> None: """Verify switching API versions changes the API URL. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ - rest_api_device.API_VERSIONS = MappingProxyType({1: "/api", 2: "/api2"}) - rest_api_device.set_api_version(api_version=2, verbose=False) - assert rest_api_device.api_url == rest_api_device.base_url + rest_api_device.API_VERSIONS[2] + rest_api_control.API_VERSIONS = MappingProxyType({1: "/api", 2: "/api2"}) + rest_api_control.set_api_version(api_version=2, verbose=False) + assert rest_api_control.api_url == rest_api_control.base_url + rest_api_control.API_VERSIONS[2] -def test_send_request(rest_api_device: CustomRestApiDevice) -> None: +def test_send_request(rest_api_control: CustomRestApiDevice) -> None: """Test send_request with different url args. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ # Test with url parameter that includes the base url. Include return_bytes arg as True. - rest_api_device._verbose = True # noqa: SLF001 - _, res, _, _ = rest_api_device._send_request( # noqa: SLF001 + rest_api_control._verbose = True # noqa: SLF001 + _, res, _, _ = rest_api_control._send_request( # noqa: SLF001 request_type=SupportedRequestTypes.GET, - url=f"{rest_api_device.base_url}/api", + url=f"{rest_api_control.base_url}/api", headers={"headers": "headers"}, json_body={"body": "body"}, return_bytes=True, @@ -206,60 +206,60 @@ def test_send_request(rest_api_device: CustomRestApiDevice) -> None: assert res == b'{"message":"home"}\n' # Test with url parameter that does not start with '/'. - _, res, _, _ = rest_api_device._send_request( # noqa: SLF001 + _, res, _, _ = rest_api_control._send_request( # noqa: SLF001 request_type=SupportedRequestTypes.GET, url="api" ) assert not isinstance(res, bytes) assert res["message"] == INDEX_RESPONSE # Test with url parameter that start with API_VERSIONS. - _, res, _, _ = rest_api_device._send_request( # noqa: SLF001 - request_type=SupportedRequestTypes.GET, url=f"{rest_api_device.API_VERSIONS[1]}" + _, res, _, _ = rest_api_control._send_request( # noqa: SLF001 + request_type=SupportedRequestTypes.GET, url=f"{rest_api_control.API_VERSIONS[1]}" ) assert not isinstance(res, bytes) assert res["message"] == INDEX_RESPONSE def test_wait_for_api_connection( - rest_api_device: CustomRestApiDevice, capsys: pytest.CaptureFixture[str] + rest_api_control: CustomRestApiDevice, capsys: pytest.CaptureFixture[str] ) -> None: """Test waiting for an API connection. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. capsys: The captured stdout and stderr. """ # Test an immediate connection - rest_api_device.wait_for_api_connection(5, accept_immediate_connection=True) + rest_api_control.wait_for_api_connection(5, accept_immediate_connection=True) stdout = capsys.readouterr().out assert "Attempting to establish an API connection with " in stdout assert "Successfully established an API connection with " in stdout # Test when unable to connect with mock.patch("requests.get", mock.MagicMock(side_effect=requests.RequestException())): - rest_api_device.wait_for_api_connection(0.01, accept_immediate_connection=False) + rest_api_control.wait_for_api_connection(0.01, accept_immediate_connection=False) stdout = capsys.readouterr().out assert "Attempting to establish an API connection with " in stdout assert "Unable to establish an API connection with " in stdout # Test connecting on the first try when it shouldn't happen with pytest.raises(AssertionError): - rest_api_device.wait_for_api_connection(10, accept_immediate_connection=False) + rest_api_control.wait_for_api_connection(10, accept_immediate_connection=False) -def test_send_request_exceptions(rest_api_device: CustomRestApiDevice) -> None: +def test_send_request_exceptions(rest_api_control: CustomRestApiDevice) -> None: """Verify send_request handles bad urls. Args: - rest_api_device: Rest API Device. + rest_api_control: Rest API Device. """ with pytest.raises(AssertionError): - rest_api_device._send_request( # noqa: SLF001 + rest_api_control._send_request( # noqa: SLF001 request_type=SupportedRequestTypes.GET, url="/error" ) # Same as above but with 'allow_errors' arg set to True. - success, _, status_code, _ = rest_api_device._send_request( # noqa: SLF001 + success, _, status_code, _ = rest_api_control._send_request( # noqa: SLF001 request_type=SupportedRequestTypes.GET, url="/error", allow_errors=True ) assert not success diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index b8bb1096..e2d11cba 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -24,7 +24,7 @@ # noinspection PyProtectedMember -from tm_devices.driver_mixins.device_control.device import ( +from tm_devices.drivers.device import ( _FAMILY_BASE_CLASS_PROPERTY_NAME, # pyright: ignore [reportPrivateUsage] Device, ) diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 7d68f0b8..d4024720 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -7,13 +7,13 @@ import pytest from tm_devices import DeviceManager -from tm_devices.driver_mixins.device_control.pi_device import PIDevice +from tm_devices.driver_mixins.device_control.pi_control import PIControl # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class CustomUnsupportedDeviceUnitTestOnly(PIDevice): +class CustomUnsupportedDeviceUnitTestOnly(PIControl): """A custom device that is not one of the officially supported devices for unit tests.""" _DEVICE_TYPE = "CustomDeviceType" From f9e6c603e46ecd31681867fe03c9d69e696c4075 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 10:00:13 -0700 Subject: [PATCH 11/52] refactor: Checkpoint commit during the process of converting the PIDevice/TSPDevice/RESTAPIDevice classes into true control mixins (PIControl/TSPControl/RESTAPIControl). This commit updates tests and ruff formatting/linting to pass. --- CHANGELOG.md | 2 +- .../custom_device_driver_support.py | 22 +- src/tm_devices/commands/smu2601b_commands.py | 4 +- src/tm_devices/commands/smu2602b_commands.py | 4 +- src/tm_devices/commands/smu2604b_commands.py | 4 +- src/tm_devices/commands/smu2606b_commands.py | 4 +- src/tm_devices/commands/smu2611b_commands.py | 4 +- src/tm_devices/commands/smu2612b_commands.py | 4 +- src/tm_devices/commands/smu2614b_commands.py | 4 +- src/tm_devices/commands/smu2634b_commands.py | 4 +- src/tm_devices/commands/smu2635b_commands.py | 4 +- src/tm_devices/commands/smu2636b_commands.py | 4 +- src/tm_devices/commands/smu2651a_commands.py | 4 +- src/tm_devices/commands/smu2657a_commands.py | 4 +- src/tm_devices/device_manager.py | 19 +- .../device_control/pi_control.py | 40 +- .../device_control/rest_api_control.py | 7 +- .../device_control/tsp_control.py | 57 +-- .../_verification_methods_mixin.py | 19 +- .../common_tsp_error_check_methods.py | 87 +++++ src/tm_devices/drivers/afgs/afg.py | 2 +- src/tm_devices/drivers/awgs/awg.py | 2 +- .../data_acquisition_systems/daq6510.py | 13 +- .../drivers/digital_multimeters/dmm6500.py | 6 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 6 +- .../drivers/power_supplies/psu22xx/psu2200.py | 6 +- src/tm_devices/drivers/scopes/scope.py | 11 +- .../drivers/scopes/tekscope/tekscope.py | 4 - .../smu24xx/smu24xx_interactive.py | 6 +- .../smu24xx/smu24xx_standard.py | 2 +- .../source_measure_units/smu26xx/smu26xx.py | 22 +- .../source_measure_units/smu60xx/smu6xxx.py | 2 +- .../drivers/systems_switches/ss3706a.py | 28 +- tests/test_all_device_drivers.py | 344 ++++++++++-------- tests/test_devices_legacy_tsp_ieee_cmds.py | 4 +- tests/test_extension_mixin.py | 2 +- tests/test_psu.py | 2 - tests/test_rest_api_device.py | 4 +- tests/test_ss.py | 4 +- tests/test_tm_devices.py | 4 + tests/test_unsupported_device_type.py | 14 +- 41 files changed, 405 insertions(+), 384 deletions(-) create mode 100644 src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 2765a8ac..37e61a50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ Things to be included in the next release go here. NOTE: Despite all the officially breaking changes, the actual drivers were only affected in very minor ways. The primary impact to the drivers was simply the removal of previously -deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. +deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. However, please read through all changes to be aware of what may potentially impact your code. - BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 27699b2f..4a94a2fb 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -1,10 +1,9 @@ """An example of external device support via a custom driver.""" -from typing import Tuple, Union - from tm_devices import DeviceManager, register_additional_usbtmc_mapping from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers import MSO5 +from tm_devices.drivers.device import Device from tm_devices.drivers.scopes.scope import Scope # noinspection PyPep8Naming @@ -28,26 +27,15 @@ def custom_method(self, value: str) -> None: # Custom devices that do not inherit from a supported device type can be defined by inheriting from -# a parent class further up the inheritance tree. This custom class must implement all abstract +# a parent class further up the inheritance tree as well as a control mixin class to provide the +# necessary methods for controlling the device. This custom class must also implement all abstract # methods defined by the abstract parent classes. -class CustomDevice(PIControl): +class CustomDevice(PIControl, Device): """A custom device that is not one of the officially supported devices.""" # Custom device types not officially supported need to define what type of device they are. _DEVICE_TYPE = "CustomDevice" - # This is an abstract method that must be implemented by the custom device driver. - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - # The contents of this method would need to be properly implemented, - # this is just example code. :) - return True, "" - - # This is an abstract method that must be implemented by the custom device driver. - def get_eventlog_status(self) -> Tuple[bool, str]: - # The contents of this method would need to be properly implemented, - # this is just example code. :) - return True, "" - def custom_device_method(self, value: int) -> None: """Add a custom method to the custom device driver.""" print(f"{self.name}, {value=}") @@ -86,6 +74,6 @@ def custom_device_method(self, value: int) -> None: # Custom device types still inherit methods from their parent classes, though device type # specific functionality is not defined by default - custom_device.expect_esr(0) # check for no errors + assert not custom_device.has_errors() # check for no errors # Custom devices can also use any custom methods added to the custom class custom_device.custom_device_method(10) diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 2e16c4e4..35bc6421 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -2022,7 +2022,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2055,7 +2055,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index 682bc351..37067749 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -2128,7 +2128,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2161,7 +2161,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index a2993593..32535b4b 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -1910,7 +1910,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1943,7 +1943,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index 9436d8f2..144564d2 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -2095,7 +2095,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2128,7 +2128,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index 2453d9bc..132ea8ac 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -2019,7 +2019,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2052,7 +2052,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index ef9e2efb..725e8dec 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -2125,7 +2125,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2158,7 +2158,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index 45a807ea..1a6b8454 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -1907,7 +1907,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1940,7 +1940,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index 8f39ae96..6a90585f 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -1909,7 +1909,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -1942,7 +1942,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index a9c96e4c..a51020b1 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -2021,7 +2021,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2054,7 +2054,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index 0f6e9a4c..df209949 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -2127,7 +2127,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2160,7 +2160,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index f6a3e81d..65b2ca7c 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -2058,7 +2058,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2091,7 +2091,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index ed8f0c7d..19d0487d 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -2057,7 +2057,7 @@ def pulse_i_measure_v( f"PulseIMeasureV({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseIMeasureV()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def pulse_v_measure_i( @@ -2090,7 +2090,7 @@ def pulse_v_measure_i( f"PulseVMeasureI({smu}, {bias}, {level}, {ton}, {toff}, {points})" ) except AttributeError as error: - msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." + msg = "No TSPControl object was provided, unable to run the ``PulseVMeasureI()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error def query_pulse_config(self, tag: int) -> str: diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index b42c85d2..ee98025b 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -18,7 +18,6 @@ from tm_devices.components import DMConfigParser from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.device_control.rest_api_control import RESTAPIControl # noinspection PyProtectedMember from tm_devices.drivers._device_driver_mapping import ( @@ -136,7 +135,7 @@ def __init__( # Set up the DeviceManager self.__is_open = False self.__verbose_visa = False - self.__devices: Dict[str, Union[PIControl, RESTAPIControl]] = AliasDict() + self.__devices: Dict[str, Device] = AliasDict() self._external_device_drivers = external_device_drivers # initialize for __set_options() self.__verbose: bool = NotImplemented @@ -198,7 +197,7 @@ def default_visa_timeout(self, value: int) -> None: self.__default_visa_timeout = value @property - def devices(self) -> Mapping[str, Union[RESTAPIControl, PIControl]]: + def devices(self) -> Mapping[str, Device]: """Return the dictionary of devices.""" return MappingProxyType(self.__devices) @@ -850,7 +849,7 @@ def get_device( device_type: Optional[str] = None, device_number: Optional[Union[int, str]] = None, alias: Optional[str] = None, - ) -> Union[RESTAPIControl, PIControl]: + ) -> Device: """Get the driver for the given device. Either `device_type` and `device_number` or `alias` must be provided when using this method. @@ -1118,7 +1117,7 @@ def _add_device( # noqa: PLR0913 serial_config: Optional[SerialConfig] = None, device_driver: Optional[str] = None, gpib_board_number: Optional[int] = None, - ) -> Union[RESTAPIControl, PIControl]: + ) -> Device: """Add a device to the DeviceManager. Args: @@ -1248,7 +1247,7 @@ def __create_device( device_config_name: str, device_config: DeviceConfigEntry, warning_stacklevel: int, - ) -> Union[RESTAPIControl, PIControl]: + ) -> Device: """Create a new device driver and add it to the device dictionary. Args: @@ -1282,10 +1281,10 @@ def __create_device( stacklevel=warning_stacklevel, ) print_with_timestamp(f"Creating Connection to {device_config_name}{alias_string}") - new_device: Union[RESTAPIControl, PIControl] + new_device: Device if device_config.connection_type == ConnectionTypes.REST_API: device_driver_class = device_drivers[str(device_config.device_driver)] - new_device = cast(RESTAPIControl, device_driver_class(device_config, self.__verbose)) + new_device = cast(Device, device_driver_class(device_config, self.__verbose)) else: # Create VISA connection and determine proper device driver try: @@ -1369,7 +1368,7 @@ def __select_visa_device_driver( visa_resource: MessageBasedResource, device_config: DeviceConfigEntry, device_drivers: Mapping[str, Type[Device]], - ) -> PIControl: + ) -> Device: """Select the correct VISA device driver based on the ``*IDN?`` response. Be sure to handle removing the device from the config on a SystemError. @@ -1404,7 +1403,7 @@ def __select_visa_device_driver( message += f" *IDN? returned {idn_response!r}" raise SystemError(message) from error - return new_device + return cast(Device, new_device) def __set_options(self, verbose: bool) -> None: """Set the options for the DeviceManager. diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index 34864e69..aa4a7b6f 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -5,7 +5,7 @@ import time import warnings -from abc import ABC, abstractmethod +from abc import ABC from contextlib import contextmanager from typing import final, Generator, List, Optional, Sequence, Tuple, Union @@ -15,6 +15,11 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError +# noinspection PyProtectedMember +from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( + VerificationMethodsMixin, +) +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( check_visa_connection, @@ -30,16 +35,14 @@ # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# noinspection PyProtectedMember -from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import VerificationMethodsMixin - -class PIControl(VerificationMethodsMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(VerificationMethodsMixin, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. - Any class that inherits this control Mixin must also inherit a descendant of the - [`Device`][tm_devices.drivers.device.Device] class in order to have access to the - attributes required by this class. + !!! important + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. """ # These attributes are provided by the top-level Device class @@ -92,27 +95,6 @@ def __init__( ################################################################################################ # Abstract Methods ################################################################################################ - @abstractmethod - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - - @abstractmethod - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - # TODO: nfelt14: in v3 - This will be deprecated by the has_errors ################################################################################################ # Properties diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 350f1352..65dbfe5b 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -19,9 +19,10 @@ class RESTAPIControl(VerificationMethodsMixin, ABC): """Base REST Application Programming Interface (API) control class. - Any class that inherits this control Mixin must also inherit a descendant of the - [`Device`][tm_devices.drivers.device.Device] class in order to have access to the - attributes required by this class. + !!! important + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. """ # These attributes are provided by the top-level Device class diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index 98b17814..6f41cff4 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -3,11 +3,10 @@ from __future__ import annotations from abc import ABC -from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands -from tm_devices.helpers import print_with_timestamp if TYPE_CHECKING: import os @@ -16,9 +15,10 @@ class TSPControl(PIControl, ABC): """Base Test Script Processing (TSP) control class. - Any class that inherits this control Mixin must also inherit a descendant of the - [`Device`][tm_devices.drivers.device.Device] class in order to have access to the - attributes required by this class. + !!! important + Any class that inherits this control Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. """ _IEEE_COMMANDS_CLASS = TSPIEEE4882Commands @@ -38,53 +38,6 @@ def ieee_cmds(self) -> TSPIEEE4882Commands: ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the equivalent of ``*ESR?`` and system error queries. - - Args: - esr: Expected ``*ESR?`` value. - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character. - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - failure_message = "" - if not int(esr): - error_string = '0,"No events to report - queue empty"' - - # Verify that an allev reply is specified - if not error_string: - raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 - - result = True - esr_result_str = self.query("print(status.standard.event)") - try: - self.verify_values(esr, esr_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - _, allev_result_str = self.get_eventlog_status() - - if allev_result_str != error_string: - result &= False - print_with_timestamp( - f"FAILURE: ({self._name_and_alias}) : Incorrect eventlog status returned:\n" - f" exp: {error_string!r}\n act: {allev_result_str!r}" - ) - - if not result: - failure_message = ( - f"expect_esr failed: " - f"print(status.standard.event) {esr_result_str!r} != {esr!r}, " - f"eventlog {allev_result_str!r} != {error_string!r}" - ) - self.raise_failure(failure_message) - - return result, failure_message - def export_buffers(self, filepath: str, *args: str, sep: str = ",") -> None: """Export one or more of the device's buffers to the given filepath. diff --git a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py index 519d89c7..495bd483 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py @@ -1,6 +1,6 @@ """A class that provides common methods for verifying values.""" -from abc import ABC, abstractmethod +from abc import ABC from typing import final, Tuple, Union from tm_devices.helpers import get_timestamp_string @@ -8,15 +8,16 @@ # TODO: nfelt14: convert this entire class to a set of helper functions class VerificationMethodsMixin(ABC): - """A mixin class providing common methods for verifying values.""" + """A mixin class providing common methods for verifying values. - ################################################################################################ - # Abstract Properties - ################################################################################################ - @property - @abstractmethod - def _name_and_alias(self) -> str: - """Return the name and alias of the device.""" + !!! important + Any class that inherits this Mixin must also inherit a descendant of the + [`Device`][tm_devices.drivers.device.Device] class in order to have access to the + attributes required by this class. + """ + + # These attributes are provided by the top-level Device class + _name_and_alias: str ################################################################################################ # Public Methods diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py new file mode 100644 index 00000000..fa05db9c --- /dev/null +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py @@ -0,0 +1,87 @@ +"""A mixin class that contains common TSP methods for checking the device for errors.""" + +from abc import ABC +from typing import Tuple, Union + +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( + VerificationMethodsMixin, +) +from tm_devices.helpers import print_with_timestamp + + +class CommonTSPErrorCheckMethods(TSPControl, VerificationMethodsMixin, ABC): + """A mixin class that contains common TSP methods for checking the device for errors. + + !!! note + This class also inherits from the + [`TSPControl`][tm_devices.driver_mixins.device_control.tsp_control.TSPControl] mixin and + therefore provides access to the TSP control methods. + """ + + ################################################################################################ + # Public Methods + ################################################################################################ + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: + r"""Check for the expected number of errors and output string. + + Sends the equivalent of ``*ESR?`` and system error queries. + + Args: + esr: Expected ``*ESR?`` value. + error_string: Expected error buffer string. + Multiple errors should be separated by a \n character. + + Returns: + Boolean indicating if the check passed or failed and a string with the results. + """ + failure_message = "" + if not int(esr): + error_string = '0,"No events to report - queue empty"' + + # Verify that an allev reply is specified + if not error_string: + raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 + + result = True + esr_result_str = self.query("print(status.standard.event)") + try: + self.verify_values(esr, esr_result_str) + except AssertionError as exc: + result &= False + print(exc) # the exception already contains the timestamp + _, allev_result_str = self.get_eventlog_status() + + if allev_result_str != error_string: + result &= False + print_with_timestamp( + f"FAILURE: ({self._name_and_alias}) : Incorrect eventlog status returned:\n" + f" exp: {error_string!r}\n act: {allev_result_str!r}" + ) + + if not result: + failure_message = ( + f"expect_esr failed: " + f"print(status.standard.event) {esr_result_str!r} != {esr!r}, " + f"eventlog {allev_result_str!r} != {error_string!r}" + ) + self.raise_failure(failure_message) + + return result, failure_message + + def get_eventlog_status(self) -> Tuple[bool, str]: + """Help function for getting the eventlog status. + + Returns: + Boolean indicating no error, String containing concatenated contents of event log. + """ + result_allev = False + allev_result_str = '0,"No events to report - queue empty"' + + # instrument returns exponential numbers so converting to float before int + if not (err_count := int(float(self.query("print(errorqueue.count)")))): + result_allev = True + else: + allev_result_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] + allev_result_str = ",".join(allev_result_list) + return result_allev, allev_result_str diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 3913d9ec..7eb43784 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -36,7 +36,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(Device, TekAFGAWG, ABC): +class AFG(TekAFGAWG, Device, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index 9adf04bf..e1ca3837 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -35,7 +35,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible -class AWG(Device, TekAFGAWG, ABC): +class AWG(TekAFGAWG, Device, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 18d3f072..4e18f500 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,7 +5,9 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -16,10 +18,11 @@ from tm_devices.helpers import DeviceConfigEntry # noinspection PyPep8Naming +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class -class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem, TSPControl): +class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -47,12 +50,16 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @property def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds # pyright: ignore[reportReturnType] + @cached_property + def total_channels(self) -> int: + """Return the total number of channels (all types).""" + return 1 + ################################################################################################ # Public Methods ################################################################################################ diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index 43776cbe..37554b7d 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,7 +5,9 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -15,7 +17,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, DigitalMultimeter, TSPControl): +class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 2ab4bf94..5db3daee 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,7 +5,9 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -15,7 +17,7 @@ @family_base_class -class DMM75xx(DigitalMultimeter, TSPControl, ABC): +class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 0b6e2a38..6b95bbf4 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -12,7 +12,7 @@ @family_base_class -class PSU2200(PowerSupplyUnit, PIControl): +class PSU2200(PIControl, PowerSupplyUnit): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ @@ -22,6 +22,10 @@ class PSU2200(PowerSupplyUnit, PIControl): ################################################################################################ # Properties ################################################################################################ + @cached_property + def total_channels(self) -> int: + """Return the total number of channels (all types).""" + return max(1, int(self.model[2])) if self.model[2].isdecimal() else 1 ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index 4728ac91..734dd44a 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -1,6 +1,6 @@ """Base Scope device driver module.""" -from abc import ABC +from abc import ABC, abstractmethod from typing import Tuple, Union from tm_devices.driver_mixins.device_control.pi_control import PIControl @@ -20,6 +20,10 @@ class Scope(PIControl, Device, ABC): ################################################################################################ # Abstract Properties ################################################################################################ + @cached_property + @abstractmethod + def total_channels(self) -> int: + """Return the total number of channels (all types).""" ################################################################################################ # Abstract Methods @@ -28,6 +32,11 @@ class Scope(PIControl, Device, ABC): ################################################################################################ # Properties ################################################################################################ + @property + def all_channel_names_list(self) -> Tuple[str, ...]: + """Return a tuple containing all the channel names.""" + return tuple(f"CH{x+1}" for x in range(self.total_channels)) + @cached_property def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 61f19126..d710cfae 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -127,10 +127,6 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @property - def all_channel_names_list(self) -> Tuple[str, ...]: - """Return a tuple containing all the channel names.""" - return tuple(f"CH{x+1}" for x in range(self.total_channels)) @cached_property def channel(self) -> "MappingProxyType[str, TekScopeChannel]": diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index c806da80..adee0594 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,7 +9,9 @@ SMU2461Commands, SMU2470Commands, ) -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, ) @@ -21,7 +23,7 @@ @family_base_class -class SMU24xxInteractive(SourceMeasureUnit, TSPControl, ABC): +class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 36e24e02..1e8222a2 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -18,7 +18,7 @@ @family_base_class -class SMU24xxStandard(SourceMeasureUnit, PIControl, ABC): +class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 48022365..8f6a0cc4 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,7 +20,9 @@ SMU2651ACommands, SMU2657ACommands, ) -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -29,7 +31,7 @@ @family_base_class -class SMU26xx(TSPControl, SourceMeasureUnit, ABC): +class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU26xx device driver.""" ################################################################################################ @@ -74,22 +76,6 @@ def commands( ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - # instrument returns exponential numbers so converting to float before int - if not (err_count := int(float(self.query("print(errorqueue.count)")))): - result_allev = True - else: - allev_result_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 23ceb9e4..53dfa557 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -18,7 +18,7 @@ @family_base_class -class SMU6xxx(SourceMeasureUnit, PIControl, ABC): +class SMU6xxx(PIControl, SourceMeasureUnit, ABC): """Base SMU6xxx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 53b00eba..9531d7f2 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -1,11 +1,11 @@ """SS3706A device driver module.""" -from typing import Tuple - import pyvisa as visa from tm_devices.commands import SS3706AMixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( + CommonTSPErrorCheckMethods, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import DeviceConfigEntry @@ -15,7 +15,7 @@ @family_base_class -class SS3706A(TSPControl, SS3706AMixin, SystemsSwitch): +class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): """SS3706A device driver.""" ################################################################################################ @@ -42,26 +42,14 @@ def __init__( ################################################################################################ # Properties ################################################################################################ + @cached_property + def total_channels(self) -> int: + """Return the total number of channels (all types).""" + return 576 ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - # instrument returns exponential numbers so converting to float before int - if not (err_count := int(float(self.query("print(errorqueue.count)")))): - result_allev = True - else: - allev_result_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str ################################################################################################ # Private Methods diff --git a/tests/test_all_device_drivers.py b/tests/test_all_device_drivers.py index 91d00743..24328226 100644 --- a/tests/test_all_device_drivers.py +++ b/tests/test_all_device_drivers.py @@ -2,183 +2,209 @@ """Verify that all device drivers and connection types can be used.""" from collections import Counter -from typing import List +from typing import Generator, List, Optional + +import pytest from mock_server import PORT from tm_devices import DeviceManager from tm_devices.helpers import ConnectionTypes, SupportedModels +# A list of entries containing: (device_type, address, port, connection_type, device_driver) +SIMULATED_DEVICE_LIST = ( + ("AFG", "AFG3051-HOSTNAME", None, None, None), + ("AFG", "AFG3022B-HOSTNAME", None, None, None), + ("AFG", "AFG3252C-HOSTNAME", 10001, "SOCKET", None), + ("AFG", "AFG31021-HOSTNAME", None, None, None), + ("AWG", "AWG5200OPT50-HOSTNAME", None, None, None), + ("AWG", "AWG5012-HOSTNAME", None, None, None), + ("AWG", "AWG5002B-HOSTNAME", None, None, None), + ("AWG", "AWG5012C-HOSTNAME", None, None, None), + ("AWG", "AWG7051OPT01-HOSTNAME", None, None, None), + ("AWG", "AWG7062BOPT02-HOSTNAME", None, None, None), + ("AWG", "AWG7082COPT01-HOSTNAME", None, None, None), + ("AWG", "AWG70001AOPT150-HOSTNAME", None, None, None), + ("AWG", "AWG70002BOPT208-HOSTNAME", None, None, None), + ("SCOPE", "MSO22-HOSTNAME", None, None, None), + ("SCOPE", "MSO56-SERIAL1", None, "USB", None), + ("SCOPE", "MSO44-HOSTNAME", None, None, None), + ("SCOPE", "MSO44B-HOSTNAME", None, None, None), + ("SCOPE", "MSO58B-HOSTNAME", None, None, None), + ("SCOPE", "MSO58LP-HOSTNAME", None, None, None), + ("SCOPE", "LPD64-HOSTNAME", None, None, None), + ("SCOPE", "MSO64-HOSTNAME", None, None, None), + ("SCOPE", "MSO68B-HOSTNAME", None, None, None), + ("SCOPE", "DPO70K-HOSTNAME", None, None, None), + ("SCOPE", "DPO70KDX-HOSTNAME", None, None, None), + ("SCOPE", "DPO70KSX-HOSTNAME", None, None, None), + ("SCOPE", "TSOVU-HOSTNAME", None, None, None), + ("SCOPE", "TEKSCOPEPC-HOSTNAME", None, None, None), + ("SCOPE", "MSO2K-HOSTNAME", None, None, None), + ("SCOPE", "MSO2KB-HOSTNAME", None, None, None), + ("SCOPE", "DPO2K-HOSTNAME", None, None, None), + ("SCOPE", "DPO2KB-HOSTNAME", None, None, None), + ("SCOPE", "MDO3-HOSTNAME", None, None, None), + ("SCOPE", "MDO4K-HOSTNAME", None, None, None), + ("SCOPE", "MDO4KB-HOSTNAME", None, None, None), + ("SCOPE", "MDO4KC-HOSTNAME", None, None, None), + ("SCOPE", "MSO4K-HOSTNAME", None, None, None), + ("SCOPE", "MSO4KB-HOSTNAME", None, None, None), + ("SCOPE", "DPO4K-HOSTNAME", None, None, None), + ("SCOPE", "DPO4KB-HOSTNAME", None, None, None), + ("SCOPE", "192.168.0.101", None, None, None), + ("SCOPE", "127.0.0.1", None, None, None), + ("SCOPE", "MSO70KDX-HOSTNAME", None, None, None), + ("SMU", "SMU-HOSTNAME", None, None, None), # smu2612b + ("SMU", "SMU2450-HOSTNAME", None, None, None), + ("SMU", "SMU2460-HOSTNAME", None, None, None), + ("SMU", "SMU2461-HOSTNAME", None, None, None), + ("SMU", "SMU2470-HOSTNAME", None, None, None), + ("SMU", "SMU2601B-HOSTNAME", None, None, None), + ("SMU", "SMU2601B-PULSE-HOSTNAME", None, None, None), + ("SMU", "SMU2602B-HOSTNAME", None, None, None), + ("SMU", "SMU2604B-HOSTNAME", None, None, None), + ("SMU", "SMU2606B-HOSTNAME", None, None, None), + ("SMU", "SMU2611B-HOSTNAME", None, None, None), + ("SMU", "1", None, "SERIAL", None), # smu2614b + ("SMU", "SMU2634B-HOSTNAME", None, None, None), + ("SMU", "SMU2635B-HOSTNAME", None, None, None), + ("SMU", "1", None, "GPIB", None), # smu2636b + ("SMU", "SMU2651A-HOSTNAME", None, None, None), + ("SMU", "SMU2657A-HOSTNAME", None, None, None), + ("PSU", "PSU-HOSTNAME", None, None, None), + ("PSU", "PSU2220-HOSTNAME", None, None, None), + ("DMM", "DMM6500-HOSTNAME", None, None, None), + ("DMM", "DMM7510-HOSTNAME", None, None, None), + ("DMM", "DMM7512-HOSTNAME", None, None, None), + ("SMU", "SMU2601A-HOSTNAME", None, None, None), + ("SMU", "SMU2602A-HOSTNAME", None, None, None), + ("SMU", "SMU2604A-HOSTNAME", None, None, None), + ("SMU", "SMU2611A-HOSTNAME", None, None, None), + ("SMU", "SMU2612A-HOSTNAME", None, None, None), + ("SMU", "SMU2614A-HOSTNAME", None, None, None), + ("SMU", "SMU2634A-HOSTNAME", None, None, None), + ("SMU", "SMU2635A-HOSTNAME", None, None, None), + ("SMU", "SMU2636A-HOSTNAME", None, None, None), + ("SMU", "SMU6430-HOSTNAME", None, None, None), + ("SMU", "SMU6514-HOSTNAME", None, None, None), + ("SMU", "SMU6517B-HOSTNAME", None, None, None), + ("SMU", "SMU2400-HOSTNAME", None, None, None), + ("SMU", "SMU2401-HOSTNAME", None, None, None), + ("SMU", "SMU2410-HOSTNAME", None, None, None), + ("SS", "SS3706A-HOSTNAME", None, None, None), + ("PSU", "PSU2200-HOSTNAME", None, None, None), + ("PSU", "PSU2231-HOSTNAME", None, None, None), + ("PSU", "PSU2231A-HOSTNAME", None, None, None), + ("PSU", "PSU2280-HOSTNAME", None, None, None), + ("PSU", "PSU2281-HOSTNAME", None, None, None), + ("MT", "127.0.0.1", PORT, "REST_API", "TMT4"), + ("DAQ", "DAQ6510-HOSTNAME", None, None, None), + ("SCOPE", "DPO5K-HOSTNAME", None, None, None), + ("SCOPE", "DPO5KB-HOSTNAME", None, None, None), + ("SCOPE", "DPO7K-HOSTNAME", None, None, None), + ("SCOPE", "DPO7KC-HOSTNAME", None, None, None), + ("SCOPE", "DPO70KC-HOSTNAME", None, None, None), + ("SCOPE", "DPO70KD-HOSTNAME", None, None, None), + ("SCOPE", "DSA70K-HOSTNAME", None, None, None), + ("SCOPE", "DSA70KC-HOSTNAME", None, None, None), + ("SCOPE", "DSA70KD-HOSTNAME", None, None, None), + ("SCOPE", "MSO5K-HOSTNAME", None, None, None), + ("SCOPE", "MSO5KB-HOSTNAME", None, None, None), + ("SCOPE", "MSO70KC-HOSTNAME", None, None, None), +) + +# Global variables for this test module +created_connections_list: List[str] = [] +created_models_list: List[str] = [] +drivers_with_auto_generated_commands: List[str] = [] + + +@pytest.fixture(autouse=True, scope="module") +def _reset_dm(device_manager: DeviceManager) -> Generator[None, None, None]: # pyright: ignore[reportUnusedFunction] + """Reset the device_manager settings before and after running the tests in this module. + + Args: + device_manager: The device manager fixture. + """ + device_manager.remove_all_devices() + yield + device_manager.remove_all_devices() -# pylint: disable=too-many-locals -def test_all_device_drivers( + +# noinspection PyUnusedLocal +@pytest.mark.order(1) +@pytest.mark.parametrize( + ("dev_type", "address", "port", "connection_type", "device_driver"), SIMULATED_DEVICE_LIST +) +def test_device_driver( device_manager: DeviceManager, + dev_type: str, + address: str, + port: Optional[int], + connection_type: Optional[str], + device_driver: Optional[str], mock_http_server: None, # noqa: ARG001 ) -> None: """Verify all device drivers can be used. Args: device_manager: The Device Manager object. + dev_type: The device type. + address: The device address. + port: The device port. + connection_type: The device connection type. + device_driver: The device driver. mock_http_server: The mock http server. """ - # A list of entries containing: (device_type, address, port, connection_type, device_driver) - simulated_device_list = ( - ("AFG", "AFG3051-HOSTNAME", None, None, None), - ("AFG", "AFG3022B-HOSTNAME", None, None, None), - ("AFG", "AFG3252C-HOSTNAME", 10001, "SOCKET", None), - ("AFG", "AFG31021-HOSTNAME", None, None, None), - ("AWG", "AWG5200OPT50-HOSTNAME", None, None, None), - ("AWG", "AWG5012-HOSTNAME", None, None, None), - ("AWG", "AWG5002B-HOSTNAME", None, None, None), - ("AWG", "AWG5012C-HOSTNAME", None, None, None), - ("AWG", "AWG7051OPT01-HOSTNAME", None, None, None), - ("AWG", "AWG7062BOPT02-HOSTNAME", None, None, None), - ("AWG", "AWG7082COPT01-HOSTNAME", None, None, None), - ("AWG", "AWG70001AOPT150-HOSTNAME", None, None, None), - ("AWG", "AWG70002BOPT208-HOSTNAME", None, None, None), - ("SCOPE", "MSO22-HOSTNAME", None, None, None), - ("SCOPE", "MSO56-SERIAL1", None, "USB", None), - ("SCOPE", "MSO44-HOSTNAME", None, None, None), - ("SCOPE", "MSO44B-HOSTNAME", None, None, None), - ("SCOPE", "MSO58B-HOSTNAME", None, None, None), - ("SCOPE", "MSO58LP-HOSTNAME", None, None, None), - ("SCOPE", "LPD64-HOSTNAME", None, None, None), - ("SCOPE", "MSO64-HOSTNAME", None, None, None), - ("SCOPE", "MSO68B-HOSTNAME", None, None, None), - ("SCOPE", "DPO70K-HOSTNAME", None, None, None), - ("SCOPE", "DPO70KDX-HOSTNAME", None, None, None), - ("SCOPE", "DPO70KSX-HOSTNAME", None, None, None), - ("SCOPE", "TSOVU-HOSTNAME", None, None, None), - ("SCOPE", "TEKSCOPEPC-HOSTNAME", None, None, None), - ("SCOPE", "MSO2K-HOSTNAME", None, None, None), - ("SCOPE", "MSO2KB-HOSTNAME", None, None, None), - ("SCOPE", "DPO2K-HOSTNAME", None, None, None), - ("SCOPE", "DPO2KB-HOSTNAME", None, None, None), - ("SCOPE", "MDO3-HOSTNAME", None, None, None), - ("SCOPE", "MDO4K-HOSTNAME", None, None, None), - ("SCOPE", "MDO4KB-HOSTNAME", None, None, None), - ("SCOPE", "MDO4KC-HOSTNAME", None, None, None), - ("SCOPE", "MSO4K-HOSTNAME", None, None, None), - ("SCOPE", "MSO4KB-HOSTNAME", None, None, None), - ("SCOPE", "DPO4K-HOSTNAME", None, None, None), - ("SCOPE", "DPO4KB-HOSTNAME", None, None, None), - ("SCOPE", "192.168.0.101", None, None, None), - ("SCOPE", "127.0.0.1", None, None, None), - ("SCOPE", "MSO70KDX-HOSTNAME", None, None, None), - ("SMU", "SMU-HOSTNAME", None, None, None), # smu2612b - ("SMU", "SMU2450-HOSTNAME", None, None, None), - ("SMU", "SMU2460-HOSTNAME", None, None, None), - ("SMU", "SMU2461-HOSTNAME", None, None, None), - ("SMU", "SMU2470-HOSTNAME", None, None, None), - ("SMU", "SMU2601B-HOSTNAME", None, None, None), - ("SMU", "SMU2601B-PULSE-HOSTNAME", None, None, None), - ("SMU", "SMU2602B-HOSTNAME", None, None, None), - ("SMU", "SMU2604B-HOSTNAME", None, None, None), - ("SMU", "SMU2606B-HOSTNAME", None, None, None), - ("SMU", "SMU2611B-HOSTNAME", None, None, None), - ("SMU", "1", None, "SERIAL", None), # smu2614b - ("SMU", "SMU2634B-HOSTNAME", None, None, None), - ("SMU", "SMU2635B-HOSTNAME", None, None, None), - ("SMU", "1", None, "GPIB", None), # smu2636b - ("SMU", "SMU2651A-HOSTNAME", None, None, None), - ("SMU", "SMU2657A-HOSTNAME", None, None, None), - ("PSU", "PSU-HOSTNAME", None, None, None), - ("PSU", "PSU2220-HOSTNAME", None, None, None), - ("DMM", "DMM6500-HOSTNAME", None, None, None), - ("DMM", "DMM7510-HOSTNAME", None, None, None), - ("DMM", "DMM7512-HOSTNAME", None, None, None), - ("SMU", "SMU2601A-HOSTNAME", None, None, None), - ("SMU", "SMU2602A-HOSTNAME", None, None, None), - ("SMU", "SMU2604A-HOSTNAME", None, None, None), - ("SMU", "SMU2611A-HOSTNAME", None, None, None), - ("SMU", "SMU2612A-HOSTNAME", None, None, None), - ("SMU", "SMU2614A-HOSTNAME", None, None, None), - ("SMU", "SMU2634A-HOSTNAME", None, None, None), - ("SMU", "SMU2635A-HOSTNAME", None, None, None), - ("SMU", "SMU2636A-HOSTNAME", None, None, None), - ("SMU", "SMU6430-HOSTNAME", None, None, None), - ("SMU", "SMU6514-HOSTNAME", None, None, None), - ("SMU", "SMU6517B-HOSTNAME", None, None, None), - ("SMU", "SMU2400-HOSTNAME", None, None, None), - ("SMU", "SMU2401-HOSTNAME", None, None, None), - ("SMU", "SMU2410-HOSTNAME", None, None, None), - ("SS", "SS3706A-HOSTNAME", None, None, None), - ("PSU", "PSU2200-HOSTNAME", None, None, None), - ("PSU", "PSU2231-HOSTNAME", None, None, None), - ("PSU", "PSU2231A-HOSTNAME", None, None, None), - ("PSU", "PSU2280-HOSTNAME", None, None, None), - ("PSU", "PSU2281-HOSTNAME", None, None, None), - ("MT", "127.0.0.1", PORT, "REST_API", "TMT4"), - ("DAQ", "DAQ6510-HOSTNAME", None, None, None), - ("SCOPE", "DPO5K-HOSTNAME", None, None, None), - ("SCOPE", "DPO5KB-HOSTNAME", None, None, None), - ("SCOPE", "DPO7K-HOSTNAME", None, None, None), - ("SCOPE", "DPO7KC-HOSTNAME", None, None, None), - ("SCOPE", "DPO70KC-HOSTNAME", None, None, None), - ("SCOPE", "DPO70KD-HOSTNAME", None, None, None), - ("SCOPE", "DSA70K-HOSTNAME", None, None, None), - ("SCOPE", "DSA70KC-HOSTNAME", None, None, None), - ("SCOPE", "DSA70KD-HOSTNAME", None, None, None), - ("SCOPE", "MSO5K-HOSTNAME", None, None, None), - ("SCOPE", "MSO5KB-HOSTNAME", None, None, None), - ("SCOPE", "MSO70KC-HOSTNAME", None, None, None), + device = device_manager._add_device( # noqa: SLF001 + dev_type, + address, + port=port, + connection_type=connection_type, + device_driver=device_driver, ) + device.cleanup() + assert not device.has_errors() + assert device.commands is not None + assert device.command_argument_constants is not None + created_models_list.append(device.__class__.__name__) + created_connections_list.append(device.connection_type) + if device.commands != NotImplemented: + drivers_with_auto_generated_commands.append(device.__class__.__name__) - # Remove all previous devices. - device_manager.remove_all_devices() - try: - # Create a list of all supported models and connections - supported_connections_list: List[str] = sorted( - x.value for x in ConnectionTypes if not str(x.value).startswith(("_", "MOCK")) - ) - created_connections_list: List[str] = [] - supported_models_list: List[str] = sorted(x.value for x in SupportedModels) - created_models_list: List[str] = [] - drivers_with_auto_generated_commands: List[str] = [] - - # Add devices to the Device Manager and add the models to the list of created models - for dev_type, address, port, connection_type, device_driver in simulated_device_list: - device = device_manager._add_device( # noqa: SLF001 - dev_type, - address, - port=port, - connection_type=connection_type, - device_driver=device_driver, - ) - device.cleanup() - assert not device.has_errors() - assert device.commands is not None - assert device.command_argument_constants is not None - created_models_list.append(device.__class__.__name__) - created_connections_list.append(device.connection_type) - if device.commands != NotImplemented: - drivers_with_auto_generated_commands.append(device.__class__.__name__) - - created_models_list.sort() - created_connections_list = sorted(set(created_connections_list)) - - # Verify all supported models - models_without_testing = set(supported_models_list) - set(created_models_list) - created_counts = Counter(created_models_list) - assert all( - count == 1 for _, count in created_counts.items() - ), f"Some drivers were instantiated more than once: {created_counts.most_common(1)[0]}" - assert ( - created_models_list == supported_models_list - ), f"Some models are not tested: {models_without_testing=}" - - # Verify all supported connections - connections_without_testing = set(supported_connections_list) - set( - created_connections_list - ) - assert ( - created_connections_list == supported_connections_list - ), f"Some connections are not tested: {connections_without_testing=}" - finally: - # Remove all devices after testing. - device_manager.remove_all_devices() - - print(f"\nVerified all {len(simulated_device_list)} device drivers") +@pytest.mark.order(2) +@pytest.mark.depends(on=["test_device_driver"]) +def test_all_device_drivers() -> None: + """Verify all device drivers can be created and all connection types are tested.""" + # Create a list of all supported models and connections + supported_connections_list: List[str] = sorted( + x.value for x in ConnectionTypes if not str(x.value).startswith(("_", "MOCK")) + ) + supported_models_list: List[str] = sorted(x.value for x in SupportedModels) + + created_models_list.sort() + sorted_created_connections_list = sorted(set(created_connections_list)) + + # Verify all supported models + models_without_testing = set(supported_models_list) - set(created_models_list) + created_counts = Counter(created_models_list) + assert all( + count == 1 for _, count in created_counts.items() + ), f"Some drivers were instantiated more than once: {created_counts.most_common(1)[0]}" + assert ( + created_models_list == supported_models_list + ), f"Some models are not tested: {models_without_testing=}" + + # Verify all supported connections + connections_without_testing = set(supported_connections_list) - set( + sorted_created_connections_list + ) + assert ( + sorted_created_connections_list == supported_connections_list + ), f"Some connections are not tested: {connections_without_testing=}" + + print(f"\nVerified all {len(SIMULATED_DEVICE_LIST)} device drivers") print( f"{len(drivers_with_auto_generated_commands)} device drivers have auto-generated commands" ) diff --git a/tests/test_devices_legacy_tsp_ieee_cmds.py b/tests/test_devices_legacy_tsp_ieee_cmds.py index b9b7139a..59735f50 100644 --- a/tests/test_devices_legacy_tsp_ieee_cmds.py +++ b/tests/test_devices_legacy_tsp_ieee_cmds.py @@ -30,7 +30,6 @@ def test_dmm6500(device_manager: DeviceManager) -> None: ), pytest.raises(visa.errors.Error): dmm.query_expect_timeout("INVALID?", timeout_ms=1) assert dmm.expect_esr(32, "Command error,No Error")[0] - assert dmm.all_channel_names_list == () def test_dmm75xx(device_manager: DeviceManager) -> None: @@ -49,7 +48,6 @@ def test_dmm75xx(device_manager: DeviceManager) -> None: ), pytest.raises(visa.errors.Error): dmm.query_expect_timeout("INVALID?", timeout_ms=1) assert dmm.expect_esr(32, "Command error,No Error")[0] - assert dmm.all_channel_names_list == () def test_daq6510(device_manager: DeviceManager) -> None: @@ -70,4 +68,4 @@ def test_daq6510(device_manager: DeviceManager) -> None: ), pytest.raises(visa.errors.Error): daq.query_expect_timeout("INVALID?", timeout_ms=1) assert daq.expect_esr(32, "Command error,No Error")[0] - assert daq.all_channel_names_list == ("1",) + assert daq.total_channels == 1 diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index f9cedc08..ed7d8a93 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -137,7 +137,7 @@ def gen_count() -> Iterator[int]: local_count = gen_count() golden_stub_dir = Path(__file__).parent / "samples" / "golden_stubs" - stub_device_filepath = Path("driver_mixins/device_control/device.pyi") + stub_device_filepath = Path("drivers/device.pyi") stub_pi_control_filepath = Path("driver_mixins/device_control/pi_control.pyi") stub_tsp_control_filepath = Path("driver_mixins/device_control/tsp_control.pyi") generated_stub_dir = ( diff --git a/tests/test_psu.py b/tests/test_psu.py index 9f57785c..57bf7a87 100644 --- a/tests/test_psu.py +++ b/tests/test_psu.py @@ -29,5 +29,3 @@ def test_psu(device_manager: DeviceManager) -> None: assert psu.expect_esr(0)[0] assert psu.get_eventlog_status() == (True, '0,"No error"') - - assert psu.all_channel_names_list == ("SOURCE1", "SOURCE2", "SOURCE3") diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index ddf50379..1ea3d135 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -14,7 +14,7 @@ RESTAPIControl, SupportedRequestTypes, ) -from tm_devices.drivers.device import family_base_class +from tm_devices.drivers.device import Device, family_base_class # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -27,7 +27,7 @@ ################################################################################################ # noinspection PyAbstractClass @family_base_class -class CustomRestApiDevice(RESTAPIControl): +class CustomRestApiDevice(RESTAPIControl, Device): """Custom Rest API Device class.""" _DEVICE_TYPE = "CUSTOM" diff --git a/tests/test_ss.py b/tests/test_ss.py index f398f301..2437992b 100644 --- a/tests/test_ss.py +++ b/tests/test_ss.py @@ -33,6 +33,4 @@ def test_ss(device_manager: DeviceManager) -> None: ), pytest.raises(visa.errors.Error): switch.query_expect_timeout("INVALID?", timeout_ms=1) assert switch.expect_esr(32, "Command error,No Error")[0] - - expected_ch_names = tuple(str(x) for x in range(1, switch.total_channels + 1)) - assert switch.all_channel_names_list == expected_ch_names + assert switch.total_channels == 576 diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index e2d11cba..2c3f4270 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -40,6 +40,8 @@ def get_all_subclasses(class_object: Type[object]) -> Set[Type[object]]: Returns: The set of all subclasses for the given class. """ + if not class_object: + return set() return set(class_object.__subclasses__()).union( [s for c in class_object.__subclasses__() for s in get_all_subclasses(c)] ) @@ -93,6 +95,8 @@ def test_device_types() -> None: raise ValueError(msg) +# TODO: nfelt14: Consider breaking this up into smaller tests +# and updating to use parametrization to make failures more granular def test_device_method_abstraction() -> None: """Verify the abstract device inheritance structure is being followed.""" # dynamically determine all device drivers diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index d4024720..bf81340e 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -2,36 +2,26 @@ """Test the usage of unsupported device types.""" from pathlib import Path -from typing import Tuple, Union import pytest from tm_devices import DeviceManager from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.drivers.device import Device # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class CustomUnsupportedDeviceUnitTestOnly(PIControl): +class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): """A custom device that is not one of the officially supported devices for unit tests.""" _DEVICE_TYPE = "CustomDeviceType" - @property - def all_channel_names_list(self) -> Tuple[str, ...]: # noqa: D102 - return tuple(f"CH{x+1}" for x in range(self.total_channels)) - @cached_property def total_channels(self) -> int: # noqa: D102 return 4 - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: # noqa: D102,ARG002 - return True, "" - - def get_eventlog_status(self) -> Tuple[bool, str]: # noqa: D102 - return True, "" - def test_unsupported_device_type_class(device_manager: DeviceManager) -> None: """Test using the DeviceManager to connect to an unsupported device type.""" From c0d589bb04910826fdba23a3a6de96fa946d32fd Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 11:12:24 -0700 Subject: [PATCH 12/52] refactor: First revision completed of converting the PIDevice/TSPDevice/RESTAPIDevice classes into true control mixins (PIControl/TSPControl/RESTAPIControl). Plenty of TODO items remain, but tests and linting are all passing. --- .../custom_device_driver_support.py | 10 ++++++- pyproject.toml | 3 +- .../commands/helpers/scpi_commands.py | 6 ++-- src/tm_devices/device_manager.py | 2 +- .../device_control/pi_control.py | 28 +++++++++++++++-- .../device_control/rest_api_control.py | 11 +++++-- .../_verification_methods_mixin.py | 6 +++- .../tek_afg_awg_mixin.py | 7 ++++- src/tm_devices/drivers/afgs/afg.py | 2 +- src/tm_devices/drivers/awgs/awg.py | 2 +- .../data_acquisition_systems/daq6510.py | 4 +-- .../data_acquisition_system.py | 1 - .../digital_multimeters/digital_multimeter.py | 1 - .../drivers/digital_multimeters/dmm6500.py | 2 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 2 +- .../drivers/margin_testers/margin_tester.py | 2 +- .../drivers/power_supplies/power_supply.py | 26 ---------------- .../drivers/power_supplies/psu22xx/psu2200.py | 30 ++++++++++++++++++- src/tm_devices/drivers/scopes/scope.py | 2 +- .../smu24xx/smu24xx_interactive.py | 4 +-- .../smu24xx/smu24xx_standard.py | 4 +-- .../source_measure_units/smu26xx/smu26xx.py | 2 +- .../source_measure_units/smu60xx/smu6xxx.py | 4 +-- .../source_measure_unit.py | 1 - .../drivers/systems_switches/ss3706a.py | 4 +-- .../systems_switches/systems_switch.py | 1 - tests/test_rest_api_device.py | 2 +- tests/test_scopes.py | 2 +- tests/test_unsupported_device_type.py | 8 +++-- 29 files changed, 114 insertions(+), 65 deletions(-) diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 4a94a2fb..fffec354 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -1,5 +1,7 @@ """An example of external device support via a custom driver.""" +from typing import Tuple, Union + from tm_devices import DeviceManager, register_additional_usbtmc_mapping from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers import MSO5 @@ -30,12 +32,18 @@ def custom_method(self, value: str) -> None: # a parent class further up the inheritance tree as well as a control mixin class to provide the # necessary methods for controlling the device. This custom class must also implement all abstract # methods defined by the abstract parent classes. -class CustomDevice(PIControl, Device): +class CustomDevice(PIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """A custom device that is not one of the officially supported devices.""" # Custom device types not officially supported need to define what type of device they are. _DEVICE_TYPE = "CustomDevice" + # This is an abstract method that must be implemented by the custom device driver. + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: + # The contents of this method would need to be properly implemented, + # this is just example code. :) + return True, "" + def custom_device_method(self, value: int) -> None: """Add a custom method to the custom device driver.""" print(f"{self.name}, {value=}") diff --git a/pyproject.toml b/pyproject.toml index f1c9f21c..83e52302 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -217,6 +217,7 @@ disable = [ "line-too-long", # caught by ruff "locally-disabled", # allowed "missing-class-docstring", # caught by ruff + "missing-function-docstring", # caught by ruff "missing-module-docstring", # caught by ruff "no-member", # caught by pyright "protected-access", # caught by ruff @@ -242,7 +243,7 @@ disable = [ # 'convention', and 'info' which contain the number of messages in each category, # as well as 'statement' which is the total number of statements analyzed. This # score is used by the global evaluation report (RP0004). -evaluation = "max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention + info) / statement) * 10))" +evaluation = "max(0, 0 if fatal else 10.0 - ((float(5.0 * error + (warning + refactor + convention + info)) / statement) * 10.0))" score = true output-format = "text" # colorized could be another option diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index a4be9c09..41a9d448 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -232,14 +232,14 @@ class ValidatedChannel(BaseCmd): # pylint: disable=too-few-public-methods channels on the device). """ - def __init__(self, device: Optional["PIControl"], cmd_syntax: str) -> None: + def __init__(self, device: Optional["Any"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) # Validate the channel channel: Union[str, int] valid_channels: Set[Union[str, int]] - if device is not None: - valid_channel_strings = set(device.all_channel_names_list) + if device is not None and hasattr(device, "all_channel_names_list"): + valid_channel_strings: Set[str] = set(device.all_channel_names_list) else: valid_channel_numbers = set(range(1, MAX_CHANNELS + 1)) valid_channel_strings = {f"CH{x}" for x in valid_channel_numbers} diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index ee98025b..23ca324e 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -1284,7 +1284,7 @@ def __create_device( new_device: Device if device_config.connection_type == ConnectionTypes.REST_API: device_driver_class = device_drivers[str(device_config.device_driver)] - new_device = cast(Device, device_driver_class(device_config, self.__verbose)) + new_device = device_driver_class(device_config, self.__verbose) else: # Create VISA connection and determine proper device driver try: diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index aa4a7b6f..018caf73 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -5,7 +5,7 @@ import time import warnings -from abc import ABC +from abc import ABC, abstractmethod from contextlib import contextmanager from typing import final, Generator, List, Optional, Sequence, Tuple, Union @@ -45,11 +45,16 @@ class PIControl(VerificationMethodsMixin, ExtendableMixin, ABC): # pylint: disa attributes required by this class. """ - # These attributes are provided by the top-level Device class + ################################################################################################ + # Attributes and properties provided by the top-level Device class + ################################################################################################ + # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this + # and Device can inherit from? There must be a better way to handle this multiple inheritance. _config_entry: DeviceConfigEntry _enable_verification: bool _name_and_alias: str _verbose: bool + _is_open: bool # This is a class constant that can be overwritten by children which defines # the class to use for the IEEE 488.2 commands. @@ -73,7 +78,8 @@ def __init__( visa_resource: The VISA resource object. default_visa_timeout: The default VISA timeout value in milliseconds. """ - super().__init__(config_entry, verbose) + # TODO: nfelt14: Figure out how to get this super call to not raise pyright errors + super().__init__(config_entry, verbose) # pyright: ignore[reportCallIssue] self._visa_resource: visa.resources.MessageBasedResource = visa_resource self._resource_expression = str(self._visa_resource.resource_info.resource_name) self._visa_library_path = self._visa_resource.visalib.library_path.path @@ -95,6 +101,22 @@ def __init__( ################################################################################################ # Abstract Methods ################################################################################################ + @abstractmethod + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: + r"""Check for the expected number of errors and output string. + + Args: + esr: Expected ``*ESR?`` value + error_string: Expected error buffer string. + Multiple errors should be separated by a \n character + + Returns: + Boolean indicating if the check passed or failed and a string with the results. + + Raises: + AssertionError: Indicating that the device's ESR and error buffer string don't match the + expected values. + """ ################################################################################################ # Properties diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 65dbfe5b..3058aa24 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -15,6 +15,8 @@ ) from tm_devices.helpers import DeviceConfigEntry, print_with_timestamp, SupportedRequestTypes +# noinspection PyPep8Naming + class RESTAPIControl(VerificationMethodsMixin, ABC): """Base REST Application Programming Interface (API) control class. @@ -25,7 +27,11 @@ class RESTAPIControl(VerificationMethodsMixin, ABC): attributes required by this class. """ - # These attributes are provided by the top-level Device class + ################################################################################################ + # Attributes and properties provided by the top-level Device class + ################################################################################################ + # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this + # and Device can inherit from? There must be a better way to handle this multiple inheritance. ip_address: str _name_and_alias: str _verbose: bool @@ -44,7 +50,8 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: config_entry: A config entry object parsed by the DMConfigParser. verbose: A boolean indicating if verbose output should be printed. """ - super().__init__(config_entry, verbose) + # TODO: nfelt14: Figure out how to get this super call to not raise pyright errors + super().__init__(config_entry, verbose) # pyright: ignore[reportCallIssue] # The URL to use for REST API requests self._base_url = f"https://{self.ip_address}" diff --git a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py index 495bd483..dcda5b88 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py @@ -16,7 +16,11 @@ class VerificationMethodsMixin(ABC): attributes required by this class. """ - # These attributes are provided by the top-level Device class + ################################################################################################ + # Attributes and properties provided by the top-level Device class + ################################################################################################ + # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this + # and Device can inherit from? There must be a better way to handle this multiple inheritance. _name_and_alias: str ################################################################################################ diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 39c77c71..3e651715 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -1,6 +1,6 @@ """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" -from abc import ABC +from abc import ABC, abstractmethod from typing import Tuple, Union from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( @@ -31,6 +31,11 @@ def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" return self.query("*OPT?") + @cached_property + @abstractmethod + def total_channels(self) -> int: + """Return the total number of channels.""" + ################################################################################################ # Public Methods ################################################################################################ diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 7eb43784..dc85f905 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -36,7 +36,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(TekAFGAWG, Device, ABC): +class AFG(TekAFGAWG, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index e1ca3837..9d96a745 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -35,7 +35,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible -class AWG(TekAFGAWG, Device, ABC): +class AWG(TekAFGAWG, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 4e18f500..e08ab1cd 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -22,7 +22,7 @@ @family_base_class -class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): +class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -56,7 +56,7 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: return self._ieee_cmds # pyright: ignore[reportReturnType] @cached_property - def total_channels(self) -> int: + def total_channels(self) -> int: # pylint: disable=no-self-use """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py index b56adbd0..2f6c9dfb 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py +++ b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py @@ -6,7 +6,6 @@ from tm_devices.helpers import DeviceTypes -# pylint: disable=too-few-public-methods class DataAcquisitionSystem(Device, ABC): """Base Data Acquisition (DAQ) device driver.""" diff --git a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py index 249da576..ad2f6682 100644 --- a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py +++ b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py @@ -6,7 +6,6 @@ from tm_devices.helpers import DeviceTypes -# pylint: disable=too-few-public-methods class DigitalMultimeter(Device, ABC): """Base Digital Multimeter (DMM) device driver.""" diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index 37554b7d..a38fa79b 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -17,7 +17,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): +class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 5db3daee..e32ea4e2 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -17,7 +17,7 @@ @family_base_class -class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): +class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index 5232294a..43f842d6 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -18,7 +18,7 @@ @family_base_class -class MarginTester(Device, RESTAPIControl, ABC): +class MarginTester(Device, RESTAPIControl, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base Margin Tester device driver.""" _DEVICE_TYPE = DeviceTypes.MT.value diff --git a/src/tm_devices/drivers/power_supplies/power_supply.py b/src/tm_devices/drivers/power_supplies/power_supply.py index 6d419b5b..1e4abb95 100644 --- a/src/tm_devices/drivers/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/power_supplies/power_supply.py @@ -4,9 +4,7 @@ """ from abc import ABC -from typing import Tuple, Union -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes @@ -19,27 +17,3 @@ class PowerSupplyUnit(Device, ABC): ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] - - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 6b95bbf4..1a08206e 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -1,8 +1,11 @@ """2200 Base device driver for the 22xx family of power supplies.""" +from typing import Tuple, Union + from packaging.version import Version from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version @@ -12,7 +15,7 @@ @family_base_class -class PSU2200(PIControl, PowerSupplyUnit): +class PSU2200(PIControl, PowerSupplyUnit): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ @@ -30,6 +33,22 @@ def total_channels(self) -> int: ################################################################################################ # Public Methods ################################################################################################ + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: + r"""Check for the expected number of errors and output string. + + Sends the ``*ESR?`` and SYSTEM:ERROR? queries. + + Args: + esr: Expected ``*ESR?`` value + error_string: Expected error buffer string. + Multiple errors should be separated by a \n character + + Returns: + Boolean indicating if the check passed or failed and a string with the results. + """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it + return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] + @cached_property def fpga_version(self) -> Version: """Return the fpga version of the device.""" @@ -40,6 +59,15 @@ def fpga_version(self) -> Version: return get_version(split_sw[1]) return Version("0") # pragma: no cover + def get_eventlog_status(self) -> Tuple[bool, str]: + """Help function for getting the eventlog status. + + Returns: + Boolean indicating no error, String containing concatenated contents of event log. + """ + # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it + return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] + ################################################################################################ # Private Methods ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index 734dd44a..d7c2122e 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -12,7 +12,7 @@ # TODO: nfelt14: remove PIControl inheritance if possible -class Scope(PIControl, Device, ABC): +class Scope(PIControl, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base Scope device driver.""" _DEVICE_TYPE = DeviceTypes.SCOPE.value diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index adee0594..5ab10235 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -23,7 +23,7 @@ @family_base_class -class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -53,7 +53,7 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: return self._ieee_cmds # pyright: ignore[reportReturnType] @cached_property - def total_channels(self) -> int: + def total_channels(self) -> int: # pylint: disable=no-self-use """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 1e8222a2..4aa8d365 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -18,7 +18,7 @@ @family_base_class -class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): +class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base SMU24xxStandard device driver.""" ################################################################################################ @@ -39,7 +39,7 @@ def ieee_cmds(self) -> IEEE4882Commands: return self._ieee_cmds @cached_property - def total_channels(self) -> int: + def total_channels(self) -> int: # pylint: disable=no-self-use """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 8f6a0cc4..12832f9d 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -31,7 +31,7 @@ @family_base_class -class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 53dfa557..d2df0d60 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -18,7 +18,7 @@ @family_base_class -class SMU6xxx(PIControl, SourceMeasureUnit, ABC): +class SMU6xxx(PIControl, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Base SMU6xxx device driver.""" ################################################################################################ @@ -39,7 +39,7 @@ def ieee_cmds(self) -> IEEE4882Commands: return self._ieee_cmds @cached_property - def total_channels(self) -> int: + def total_channels(self) -> int: # pylint: disable=no-self-use """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py index 448f8b44..9e49483e 100644 --- a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py +++ b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py @@ -9,7 +9,6 @@ from tm_devices.helpers import DeviceTypes -# pylint: disable=too-few-public-methods class SourceMeasureUnit(Device, ABC): """Base Source Measure Unit (SMU) device driver.""" diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 9531d7f2..31a1f213 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -15,7 +15,7 @@ @family_base_class -class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): +class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """SS3706A device driver.""" ################################################################################################ @@ -43,7 +43,7 @@ def __init__( # Properties ################################################################################################ @cached_property - def total_channels(self) -> int: + def total_channels(self) -> int: # pylint: disable=no-self-use """Return the total number of channels (all types).""" return 576 diff --git a/src/tm_devices/drivers/systems_switches/systems_switch.py b/src/tm_devices/drivers/systems_switches/systems_switch.py index ed4eabdc..dfdd1f32 100644 --- a/src/tm_devices/drivers/systems_switches/systems_switch.py +++ b/src/tm_devices/drivers/systems_switches/systems_switch.py @@ -6,7 +6,6 @@ from tm_devices.helpers import DeviceTypes -# pylint: disable=too-few-public-methods class SystemsSwitch(Device, ABC): """Base Systems Switch (SS) device driver.""" diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 1ea3d135..3c46b93f 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -27,7 +27,7 @@ ################################################################################################ # noinspection PyAbstractClass @family_base_class -class CustomRestApiDevice(RESTAPIControl, Device): +class CustomRestApiDevice(RESTAPIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """Custom Rest API Device class.""" _DEVICE_TYPE = "CUSTOM" diff --git a/tests/test_scopes.py b/tests/test_scopes.py index c2f9903e..b1d0948b 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -355,7 +355,7 @@ def test_exceptions(device_manager: DeviceManager) -> None: device_manager: The DeviceManager object. """ # Test that visa errors are caught appropriately - scope = device_manager.add_scope("mso22-timeout") + scope: MSO2 = device_manager.add_scope("mso22-timeout") with pytest.raises(visa.errors.Error): scope.turn_channel_on("CH1") with pytest.raises(AssertionError): diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index bf81340e..26e4e236 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -2,6 +2,7 @@ """Test the usage of unsupported device types.""" from pathlib import Path +from typing import Tuple, Union import pytest @@ -13,15 +14,18 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): +class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this """A custom device that is not one of the officially supported devices for unit tests.""" _DEVICE_TYPE = "CustomDeviceType" @cached_property - def total_channels(self) -> int: # noqa: D102 + def total_channels(self) -> int: # noqa: D102 # pylint: disable=no-self-use return 4 + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: # noqa: D102,ARG002 + return True, "" + def test_unsupported_device_type_class(device_manager: DeviceManager) -> None: """Test using the DeviceManager to connect to an unsupported device type.""" From 237a712a35a1eea283c10d1a38fc7ca688aae758 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 12:24:44 -0700 Subject: [PATCH 13/52] refactor: Converted the verify_values(), raise_error(), and raise_failure() methods into separate functions. Also implemented a super high-level abstract class to enable better type checking of control mixin classes. --- CHANGELOG.md | 2 + .../custom_device_driver_support.py | 2 +- .../_abstract_device_control.py | 34 +++ .../device_control/pi_control.py | 37 ++-- .../device_control/rest_api_control.py | 31 +-- .../device_control/tsp_control.py | 4 +- .../_verification_methods_mixin.py | 208 ------------------ .../common_tsp_error_check_methods.py | 11 +- .../tek_afg_awg_mixin.py | 6 +- src/tm_devices/drivers/afgs/afg.py | 2 +- src/tm_devices/drivers/awgs/awg.py | 2 +- .../data_acquisition_systems/daq6510.py | 2 +- src/tm_devices/drivers/device.py | 4 +- .../drivers/digital_multimeters/dmm6500.py | 2 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 2 +- .../drivers/margin_testers/margin_tester.py | 2 +- .../drivers/power_supplies/psu22xx/psu2200.py | 2 +- src/tm_devices/drivers/scopes/scope.py | 10 +- .../drivers/scopes/tekscope/tekscope.py | 12 +- .../smu24xx/smu24xx_interactive.py | 2 +- .../smu24xx/smu24xx_standard.py | 2 +- .../source_measure_units/smu26xx/smu26xx.py | 2 +- .../source_measure_units/smu60xx/smu6xxx.py | 2 +- .../drivers/systems_switches/ss3706a.py | 2 +- src/tm_devices/helpers/__init__.py | 4 + .../helpers/verification_functions.py | 191 ++++++++++++++++ tests/test_rest_api_device.py | 2 +- tests/test_smu.py | 3 - tests/test_unsupported_device_type.py | 2 +- tests/test_verification_functions.py | 28 +++ 30 files changed, 324 insertions(+), 291 deletions(-) create mode 100644 src/tm_devices/driver_mixins/device_control/_abstract_device_control.py delete mode 100644 src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py create mode 100644 src/tm_devices/helpers/verification_functions.py create mode 100644 tests/test_verification_functions.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e61a50..4c695c6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,8 @@ However, please read through all changes to be aware of what may potentially imp - BREAKING CHANGE: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. - BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant. - BREAKING CHANGE: Removed many hacky implementations of `total_channels` and `all_channel_names_list` properties from drivers that don't need them anymore. +- BREAKING CHANGE: Removed the `verify_values()`, `raise_failure()`, and `raise_error()` methods from all device drivers. + - These methods have been converted to helper functions and can be imported from the `tm_devices.helpers` subpackage now. --- diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index fffec354..dad5ac4f 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -32,7 +32,7 @@ def custom_method(self, value: str) -> None: # a parent class further up the inheritance tree as well as a control mixin class to provide the # necessary methods for controlling the device. This custom class must also implement all abstract # methods defined by the abstract parent classes. -class CustomDevice(PIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class CustomDevice(PIControl, Device): """A custom device that is not one of the officially supported devices.""" # Custom device types not officially supported need to define what type of device they are. diff --git a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py new file mode 100644 index 00000000..bbedebb0 --- /dev/null +++ b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py @@ -0,0 +1,34 @@ +"""A class containing properties and attributes shared between devices and control mixins.""" + +from abc import ABC, abstractmethod + +from tm_devices.helpers import DeviceConfigEntry + +# noinspection PyPep8Naming +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 + + +class AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods + """Abstract class with properties and attributes shared between devices and control mixins.""" + + def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: + """Create a device. + + Args: + config_entry: A config entry object parsed by the DMConfigParser. + verbose: A boolean indicating if verbose output should be printed. + """ + self._is_open = False + self._verbose = verbose + self._config_entry = config_entry + self._enable_verification = True + + @property + @abstractmethod + def _name_and_alias(self) -> str: + """A string containing the device name and alias.""" + + @cached_property + @abstractmethod + def ip_address(self) -> str: + """The IP address of the device.""" diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index 018caf73..eec91b5c 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -15,10 +15,7 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -# noinspection PyProtectedMember -from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( - VerificationMethodsMixin, -) +from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( @@ -30,13 +27,15 @@ get_visa_backend, print_with_timestamp, PYVISA_PY_BACKEND, + raise_failure, + verify_values, ) # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class PIControl(VerificationMethodsMixin, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. !!! important @@ -45,17 +44,6 @@ class PIControl(VerificationMethodsMixin, ExtendableMixin, ABC): # pylint: disa attributes required by this class. """ - ################################################################################################ - # Attributes and properties provided by the top-level Device class - ################################################################################################ - # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this - # and Device can inherit from? There must be a better way to handle this multiple inheritance. - _config_entry: DeviceConfigEntry - _enable_verification: bool - _name_and_alias: str - _verbose: bool - _is_open: bool - # This is a class constant that can be overwritten by children which defines # the class to use for the IEEE 488.2 commands. _IEEE_COMMANDS_CLASS = IEEE4882Commands @@ -78,8 +66,7 @@ def __init__( visa_resource: The VISA resource object. default_visa_timeout: The default VISA timeout value in milliseconds. """ - # TODO: nfelt14: Figure out how to get this super call to not raise pyright errors - super().__init__(config_entry, verbose) # pyright: ignore[reportCallIssue] + super().__init__(config_entry, verbose) self._visa_resource: visa.resources.MessageBasedResource = visa_resource self._resource_expression = str(self._visa_resource.resource_info.resource_name) self._visa_library_path = self._visa_resource.visalib.library_path.path @@ -505,10 +492,11 @@ def query_less_than( ) ) or (not allow_equal and abs(actual_value) >= (abs(value) + tolerance)): max_value = value + tolerance - self.raise_failure( + raise_failure( + self._name_and_alias, f"query_less_than failed for query: {query}\n " f"max ({'inclusive' if allow_equal else 'exclusive'}): " - f"{max_value}\n act: {actual_value}" + f"{max_value}\n act: {actual_value}", ) return query_passed @@ -580,7 +568,8 @@ def query_response( message_prefix = f"query_response failed for query: {query}" if custom_message_prefix: message_prefix = f"{custom_message_prefix}\n{message_prefix}" - query_passed = self.verify_values( + query_passed = verify_values( + self._name_and_alias, value, actual_value, tolerance=tolerance, @@ -611,7 +600,8 @@ def query_response_not( message_prefix = f"query_response_not failed for query: {query}" if custom_message_prefix: message_prefix = f"{custom_message_prefix}\n{message_prefix}" - query_passed = self.verify_values( + query_passed = verify_values( + self._name_and_alias, value, actual_value, custom_message_prefix=message_prefix, @@ -668,7 +658,8 @@ def set_and_check( # noqa: PLR0913 message_prefix = f"Failed to set {command} to {value}" if custom_message_prefix: message_prefix = f"{custom_message_prefix}\n{message_prefix}" - self.verify_values( + verify_values( + self._name_and_alias, value if expected_value is None else expected_value, check, tolerance=tolerance, diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 3058aa24..5ab83df5 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -9,16 +9,16 @@ import requests -# noinspection PyProtectedMember -from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( - VerificationMethodsMixin, +from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl +from tm_devices.helpers import ( + DeviceConfigEntry, + print_with_timestamp, + raise_failure, + SupportedRequestTypes, ) -from tm_devices.helpers import DeviceConfigEntry, print_with_timestamp, SupportedRequestTypes -# noinspection PyPep8Naming - -class RESTAPIControl(VerificationMethodsMixin, ABC): +class RESTAPIControl(AbstractDeviceControl, ABC): """Base REST Application Programming Interface (API) control class. !!! important @@ -27,15 +27,6 @@ class RESTAPIControl(VerificationMethodsMixin, ABC): attributes required by this class. """ - ################################################################################################ - # Attributes and properties provided by the top-level Device class - ################################################################################################ - # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this - # and Device can inherit from? There must be a better way to handle this multiple inheritance. - ip_address: str - _name_and_alias: str - _verbose: bool - # These constants are defined by child classes API_VERSIONS: Mapping[int, str] = MappingProxyType({}) """A mapping of supported API version numbers with the corresponding API URL.""" @@ -50,8 +41,7 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: config_entry: A config entry object parsed by the DMConfigParser. verbose: A boolean indicating if verbose output should be printed. """ - # TODO: nfelt14: Figure out how to get this super call to not raise pyright errors - super().__init__(config_entry, verbose) # pyright: ignore[reportCallIssue] + super().__init__(config_entry, verbose) # The URL to use for REST API requests self._base_url = f"https://{self.ip_address}" @@ -523,8 +513,9 @@ def _send_request( # noqa: PLR0913,PLR0912,C901 response.raise_for_status() except requests.exceptions.RequestException as error: if not allow_errors: - self.raise_failure( - f"A RequestException occurred (status code {response.status_code}): {error}" + raise_failure( + self._name_and_alias, + f"A RequestException occurred (status code {response.status_code}): {error}", ) try: status_code = response.status_code diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index 6f41cff4..14e1948d 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -7,6 +7,7 @@ from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands +from tm_devices.helpers import verify_values if TYPE_CHECKING: import os @@ -206,7 +207,8 @@ def set_and_check( # noqa: PLR0913 message_prefix = f"Failed to set {command} to {value}" if custom_message_prefix: message_prefix = f"{custom_message_prefix}\n{message_prefix}" - self.verify_values( + verify_values( + self._name_and_alias, value if expected_value is None else expected_value, check, tolerance=tolerance, diff --git a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py deleted file mode 100644 index dcda5b88..00000000 --- a/src/tm_devices/driver_mixins/shared_implementations/_verification_methods_mixin.py +++ /dev/null @@ -1,208 +0,0 @@ -"""A class that provides common methods for verifying values.""" - -from abc import ABC -from typing import final, Tuple, Union - -from tm_devices.helpers import get_timestamp_string - - -# TODO: nfelt14: convert this entire class to a set of helper functions -class VerificationMethodsMixin(ABC): - """A mixin class providing common methods for verifying values. - - !!! important - Any class that inherits this Mixin must also inherit a descendant of the - [`Device`][tm_devices.drivers.device.Device] class in order to have access to the - attributes required by this class. - """ - - ################################################################################################ - # Attributes and properties provided by the top-level Device class - ################################################################################################ - # TODO: nfelt14: Look into moving these into an even higher-level abstract class that this - # and Device can inherit from? There must be a better way to handle this multiple inheritance. - _name_and_alias: str - - ################################################################################################ - # Public Methods - ################################################################################################ - @final - def raise_error(self, message: str) -> None: - """Raise an AssertionError with the provided message indicating there was an error. - - Args: - message: The message to add to the AssertionError. - - Raises: - AssertionError: Prints out the error message with a traceback. - """ - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) - message = f"{get_timestamp_string()} - ERROR: ({self._name_and_alias}) : {message}" - raise AssertionError(message) - - @final - def raise_failure(self, message: str) -> None: - """Raise an AssertionError with the provided message indicating there was a failure. - - Args: - message: The message to add to the AssertionError. - - Raises: - AssertionError: Prints out the failure message with a traceback. - """ - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) - message = f"{get_timestamp_string()} - FAILURE: ({self._name_and_alias}) : {message}" - raise AssertionError(message) - - @final - def verify_values( - self, - expected_value: Union[str, float], - actual_value: Union[str, float], - tolerance: float = 0, - percentage: bool = False, - custom_message_prefix: str = "", - log_error: bool = False, - expect_fail: bool = False, - ) -> bool: - """Compare and verify actual value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - tolerance: The acceptable difference between two floating point values, e.g. 0.0005 - percentage: A boolean indicating what kind of tolerance check to perform. - False means absolute tolerance: +/- tolerance. - True means percent tolerance: +/- (tolerance / 100) * value. - custom_message_prefix: A custom message to be prepended to the failure message. - log_error: Indicate if an error should be logged instead of a failure - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Boolean indicating whether the check passed or failed. - """ - message = custom_message_prefix + "\n" if custom_message_prefix else "" - - try: - _ = float(tolerance) - _ = float(expected_value) - _ = float(actual_value) - number_comparison = True - except ValueError: - number_comparison = False - - if number_comparison: - expected_value = float(expected_value) - actual_value = float(actual_value) - if percentage: - tolerance = abs((tolerance / 100.0) * expected_value) - message, verify_passed = self._verify_numerical_value( - expected_value, actual_value, tolerance, message, expect_fail - ) - else: - expected_value = str(expected_value) - actual_value = str(actual_value) - message, verify_passed = self._verify_string_value( - expected_value, actual_value, message, expect_fail - ) - # Mark as pass/fail - if not verify_passed: - if log_error: - self.raise_error(message) - else: - self.raise_failure(message) - - return verify_passed - - ################################################################################################ - # Private Methods - ################################################################################################ - @staticmethod - @final - def _verify_numerical_value( - expected_value: float, - actual_value: float, - tolerance: float, - message: str, - expect_fail: bool, - ) -> Tuple[str, bool]: - """Compare and verify a numerical value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - tolerance: The acceptable difference between two floating point values, e.g. 0.0005 - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Tuple containing the failure message and a boolean indicating if the check passed. - """ - max_value = expected_value + tolerance - min_value = expected_value - tolerance - # Verify that the number is within the tolerance. - # Also check to make sure that the string of each number is - # identical, this prevents issues from returned values that have - # a trailing zero or some other non-contributing character that - # will cause comparison issues. - if ( - not expect_fail - and ( - abs(expected_value - actual_value) <= tolerance - or str(expected_value) == str(actual_value) - ) - ) or ( - expect_fail - and not ( - abs(expected_value - actual_value) <= tolerance - or str(expected_value) == str(actual_value) - ) - ): - verify_passed = True - else: - message += ( - f"Actual result {'does not match' if not expect_fail else 'matches'} " - f"the expected result within a tolerance of {tolerance}" - f"\n max: {max_value}" - f"\n act: {actual_value}" - f"\n min: {min_value}" - ) - verify_passed = False - - return message, verify_passed - - @staticmethod - @final - def _verify_string_value( - expected_value: str, - actual_value: str, - message: str, - expect_fail: bool, - ) -> Tuple[str, bool]: - """Compare and verify a string value with expected value. - - Args: - expected_value: The expected value. - actual_value: The actual value. - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass - - Returns: - Tuple containing the failure message and a boolean indicating if the check passed. - """ - if (not expect_fail and expected_value == actual_value) or ( - expect_fail and expected_value != actual_value - ): - verify_passed = True - else: - message += ( - f"Actual result {'does not match' if not expect_fail else 'matches'} " - f"the expected result" - f"\n exp{' != ' if expect_fail else ': '}{expected_value}" - f"\n act{' == ' if expect_fail else ': '}{actual_value}" - ) - verify_passed = False - - return message, verify_passed diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py index fa05db9c..2cb0f102 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py @@ -4,13 +4,10 @@ from typing import Tuple, Union from tm_devices.driver_mixins.device_control.tsp_control import TSPControl -from tm_devices.driver_mixins.shared_implementations._verification_methods_mixin import ( - VerificationMethodsMixin, -) -from tm_devices.helpers import print_with_timestamp +from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values -class CommonTSPErrorCheckMethods(TSPControl, VerificationMethodsMixin, ABC): +class CommonTSPErrorCheckMethods(TSPControl, ABC): """A mixin class that contains common TSP methods for checking the device for errors. !!! note @@ -46,7 +43,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool result = True esr_result_str = self.query("print(status.standard.event)") try: - self.verify_values(esr, esr_result_str) + verify_values(self._name_and_alias, esr, esr_result_str) except AssertionError as exc: result &= False print(exc) # the exception already contains the timestamp @@ -65,7 +62,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool f"print(status.standard.event) {esr_result_str!r} != {esr!r}, " f"eventlog {allev_result_str!r} != {error_string!r}" ) - self.raise_failure(failure_message) + raise_failure(self._name_and_alias, failure_message) return result, failure_message diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 3e651715..15a13ede 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -8,7 +8,7 @@ ) from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.helpers import print_with_timestamp +from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -64,7 +64,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool result = True esr_result_str = self.query("*ESR?") try: - self.verify_values(esr, esr_result_str) + verify_values(self._name_and_alias, esr, esr_result_str) except AssertionError as exc: result &= False print(exc) # the exception already contains the timestamp @@ -92,7 +92,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " f"SYSTEM:ERROR? {returned_errors!r} != {error_string!r}" ) - self.raise_failure(failure_message) + raise_failure(self._name_and_alias, failure_message) return result, failure_message diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index dc85f905..7eb43784 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -36,7 +36,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(TekAFGAWG, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class AFG(TekAFGAWG, Device, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index 9d96a745..e1ca3837 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -35,7 +35,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible -class AWG(TekAFGAWG, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class AWG(TekAFGAWG, Device, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index e08ab1cd..e9fb19d5 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -22,7 +22,7 @@ @family_base_class -class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index c79a2731..5813c105 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -17,6 +17,7 @@ from packaging.version import Version +from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import ( check_network_connection, @@ -44,7 +45,7 @@ def family_base_class(cls: _T) -> _T: # pylint: disable=too-many-instance-attributes,too-many-public-methods -class Device(ExtendableMixin, ABC): +class Device(AbstractDeviceControl, ExtendableMixin, ABC): """Base device driver that all devices inherit from.""" _DEVICE_TYPE: str # should be implemented by device type base classes @@ -71,6 +72,7 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: config_entry: A config entry object parsed by the DMConfigParser. verbose: A boolean indicating if verbose output should be printed. """ + super().__init__(config_entry, verbose) self._is_open = True self._verbose = verbose self._config_entry = config_entry diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index a38fa79b..37554b7d 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -17,7 +17,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index e32ea4e2..5db3daee 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -17,7 +17,7 @@ @family_base_class -class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index 43f842d6..5232294a 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -18,7 +18,7 @@ @family_base_class -class MarginTester(Device, RESTAPIControl, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class MarginTester(Device, RESTAPIControl, ABC): """Base Margin Tester device driver.""" _DEVICE_TYPE = DeviceTypes.MT.value diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 1a08206e..80ea374b 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -15,7 +15,7 @@ @family_base_class -class PSU2200(PIControl, PowerSupplyUnit): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class PSU2200(PIControl, PowerSupplyUnit): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index d7c2122e..78edccd4 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -5,14 +5,14 @@ from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers.device import Device -from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import DeviceTypes, raise_failure, verify_values # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 # TODO: nfelt14: remove PIControl inheritance if possible -class Scope(PIControl, Device, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class Scope(PIControl, Device, ABC): """Base Scope device driver.""" _DEVICE_TYPE = DeviceTypes.SCOPE.value @@ -70,13 +70,13 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool result = True esr_result_str = self.ieee_cmds.esr() try: - self.verify_values(esr, esr_result_str) + verify_values(self._name_and_alias, esr, esr_result_str) except AssertionError as exc: result &= False print(exc) # the exception already contains the timestamp allev_result_str = self.query(":ALLev?") try: - self.verify_values(error_string, allev_result_str) + verify_values(self._name_and_alias, error_string, allev_result_str) except AssertionError as exc: result &= False print(exc) # the exception already contains the timestamp @@ -86,7 +86,7 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " f":ALLev? {allev_result_str!r} != {error_string!r}" ) - self.raise_failure(failure_message) + raise_failure(self._name_and_alias, failure_message) return result, failure_message diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index d710cfae..aca46bbf 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -48,7 +48,7 @@ from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope -from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG +from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG, raise_error # noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -634,14 +634,16 @@ def _add_or_delete_dynamic_item( if delete_item: if item_name in item_list: - self.raise_error( + raise_error( + self._name_and_alias, f"Failed to delete {item_name}\n" - f":{item_type}:LIST? returned \"{','.join(item_list)}\"" + f":{item_type}:LIST? returned \"{','.join(item_list)}\"", ) elif item_name not in item_list: - self.raise_error( + raise_error( + self._name_and_alias, f"Failed to add {item_name}\n" - f":{item_type}:LIST? returned \"{','.join(item_list)}\"" + f":{item_type}:LIST? returned \"{','.join(item_list)}\"", ) def _reboot(self) -> None: diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 5ab10235..fabb15f1 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -23,7 +23,7 @@ @family_base_class -class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 4aa8d365..e26395b7 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -18,7 +18,7 @@ @family_base_class -class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 12832f9d..8f6a0cc4 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -31,7 +31,7 @@ @family_base_class -class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index d2df0d60..8892ed49 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -18,7 +18,7 @@ @family_base_class -class SMU6xxx(PIControl, SourceMeasureUnit, ABC): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class SMU6xxx(PIControl, SourceMeasureUnit, ABC): """Base SMU6xxx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 31a1f213..ca1583b3 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -15,7 +15,7 @@ @family_base_class -class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): """SS3706A device driver.""" ################################################################################################ diff --git a/src/tm_devices/helpers/__init__.py b/src/tm_devices/helpers/__init__.py index 01ed7e9f..de918cb5 100644 --- a/src/tm_devices/helpers/__init__.py +++ b/src/tm_devices/helpers/__init__.py @@ -41,6 +41,7 @@ from tm_devices.helpers.read_only_cached_property import ReadOnlyCachedProperty from tm_devices.helpers.singleton_metaclass import Singleton from tm_devices.helpers.standalone_functions import validate_address +from tm_devices.helpers.verification_functions import raise_error, raise_failure, verify_values __all__ = [ "AliasDict", @@ -63,6 +64,8 @@ "ping_address", "print_with_timestamp", "PYVISA_PY_BACKEND", + "raise_error", + "raise_failure", "register_additional_usbtmc_mapping", "sanitize_enum", "SerialConfig", @@ -74,6 +77,7 @@ "USBTMCConfiguration", "VALID_DEVICE_CONNECTION_TYPES", "validate_address", + "verify_values", "VISA_RESOURCE_EXPRESSION_REGEX", "ReadOnlyCachedProperty", "SASSetWaveformFileTypes", diff --git a/src/tm_devices/helpers/verification_functions.py b/src/tm_devices/helpers/verification_functions.py new file mode 100644 index 00000000..a395e21a --- /dev/null +++ b/src/tm_devices/helpers/verification_functions.py @@ -0,0 +1,191 @@ +"""Common functions for verifying values and printing out errors and failures.""" + +from typing import Tuple, Union + +from tm_devices.helpers.functions import get_timestamp_string + + +def raise_error(unique_identifier: str, message: str) -> None: + """Raise an AssertionError with the provided message indicating there was an error. + + Args: + unique_identifier: A unique identifier to add to the AssertionError, e.g. the device name. + message: The message to add to the AssertionError. + + Raises: + AssertionError: Prints out the error message with a traceback. + """ + # TODO: integrate this with logging + # https://github.com/tektronix/tm_devices/issues/316 + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) + message = f"{get_timestamp_string()} - ERROR: ({unique_identifier}) : {message}" + raise AssertionError(message) + + +def raise_failure(unique_identifier: str, message: str) -> None: + """Raise an AssertionError with the provided message indicating there was a failure. + + Args: + unique_identifier: A unique identifier to add to the AssertionError, e.g. the device name. + message: The message to add to the AssertionError. + + Raises: + AssertionError: Prints out the failure message with a traceback. + """ + # TODO: integrate this with logging + # https://github.com/tektronix/tm_devices/issues/316 + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) + message = f"{get_timestamp_string()} - FAILURE: ({unique_identifier}) : {message}" + raise AssertionError(message) + + +def verify_values( # noqa: PLR0913 + unique_identifier: str, + expected_value: Union[str, float], + actual_value: Union[str, float], + tolerance: float = 0, + percentage: bool = False, + custom_message_prefix: str = "", + log_error: bool = False, + expect_fail: bool = False, +) -> bool: + """Compare and verify actual value with expected value. + + Args: + unique_identifier: A unique identifier to add to the AssertionError, e.g. the device name. + expected_value: The expected value. + actual_value: The actual value. + tolerance: The acceptable difference between two floating point values, e.g. 0.0005 + percentage: A boolean indicating what kind of tolerance check to perform. + False means absolute tolerance: +/- tolerance. + True means percent tolerance: +/- (tolerance / 100) * value. + custom_message_prefix: A custom message to be prepended to the failure message. + log_error: Indicate if an error should be logged instead of a failure + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Boolean indicating whether the check passed or failed. + """ + message = custom_message_prefix + "\n" if custom_message_prefix else "" + + try: + _ = float(tolerance) + _ = float(expected_value) + _ = float(actual_value) + number_comparison = True + except ValueError: + number_comparison = False + + if number_comparison: + expected_value = float(expected_value) + actual_value = float(actual_value) + if percentage: + tolerance = abs((tolerance / 100.0) * expected_value) + message, verify_passed = _verify_numerical_value( + expected_value, actual_value, tolerance, message, expect_fail + ) + else: + expected_value = str(expected_value) + actual_value = str(actual_value) + message, verify_passed = _verify_string_value( + expected_value, actual_value, message, expect_fail + ) + # Mark as pass/fail + if not verify_passed: + if log_error: + raise_error(unique_identifier, message) + else: + raise_failure(unique_identifier, message) + + return verify_passed + + +################################################################################################ +# Private Methods +################################################################################################ +def _verify_numerical_value( + expected_value: float, + actual_value: float, + tolerance: float, + message: str, + expect_fail: bool, +) -> Tuple[str, bool]: + """Compare and verify a numerical value with expected value. + + Args: + expected_value: The expected value. + actual_value: The actual value. + tolerance: The acceptable difference between two floating point values, e.g. 0.0005 + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Tuple containing the failure message and a boolean indicating if the check passed. + """ + max_value = expected_value + tolerance + min_value = expected_value - tolerance + # Verify that the number is within the tolerance. + # Also check to make sure that the string of each number is + # identical, this prevents issues from returned values that have + # a trailing zero or some other non-contributing character that + # will cause comparison issues. + if ( + not expect_fail + and ( + abs(expected_value - actual_value) <= tolerance + or str(expected_value) == str(actual_value) + ) + ) or ( + expect_fail + and not ( + abs(expected_value - actual_value) <= tolerance + or str(expected_value) == str(actual_value) + ) + ): + verify_passed = True + else: + message += ( + f"Actual result {'does not match' if not expect_fail else 'matches'} " + f"the expected result within a tolerance of {tolerance}" + f"\n max: {max_value}" + f"\n act: {actual_value}" + f"\n min: {min_value}" + ) + verify_passed = False + + return message, verify_passed + + +def _verify_string_value( + expected_value: str, + actual_value: str, + message: str, + expect_fail: bool, +) -> Tuple[str, bool]: + """Compare and verify a string value with expected value. + + Args: + expected_value: The expected value. + actual_value: The actual value. + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass + + Returns: + Tuple containing the failure message and a boolean indicating if the check passed. + """ + if (not expect_fail and expected_value == actual_value) or ( + expect_fail and expected_value != actual_value + ): + verify_passed = True + else: + message += ( + f"Actual result {'does not match' if not expect_fail else 'matches'} " + f"the expected result" + f"\n exp{' != ' if expect_fail else ': '}{expected_value}" + f"\n act{' == ' if expect_fail else ': '}{actual_value}" + ) + verify_passed = False + + return message, verify_passed diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 3c46b93f..1ea3d135 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -27,7 +27,7 @@ ################################################################################################ # noinspection PyAbstractClass @family_base_class -class CustomRestApiDevice(RESTAPIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class CustomRestApiDevice(RESTAPIControl, Device): """Custom Rest API Device class.""" _DEVICE_TYPE = "CUSTOM" diff --git a/tests/test_smu.py b/tests/test_smu.py index 017e8d67..533a1922 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -179,9 +179,6 @@ def test_smu( # noqa: PLR0915 assert smu.address == "SMU2601B-HOSTNAME" assert smu.alias == "SMU-DEVICE" assert smu.connection_type == "TCPIP" - assert smu.verify_values(expected_value="True", actual_value="True") - with pytest.raises(AssertionError): - smu.verify_values(expected_value="0.1", actual_value="0.2", percentage=True, log_error=True) with mock.patch("socket.socket.connect", mock.MagicMock(return_value=None)), mock.patch( "socket.socket.shutdown", mock.MagicMock(return_value=None) ): diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 26e4e236..7530dba4 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -14,7 +14,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): # pyright: ignore[reportIncompatibleVariableOverride] # TODO: nfelt14: figure out how to not need this +class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): """A custom device that is not one of the officially supported devices for unit tests.""" _DEVICE_TYPE = "CustomDeviceType" diff --git a/tests/test_verification_functions.py b/tests/test_verification_functions.py new file mode 100644 index 00000000..57d7d98d --- /dev/null +++ b/tests/test_verification_functions.py @@ -0,0 +1,28 @@ +"""Tests for the verification_functions.py module.""" + +import pytest + +from tm_devices.helpers import verify_values + + +def test_verify_values_pass() -> None: + """Test the verify_values function.""" + assert verify_values( + unique_identifier="passing-check", expected_value="True", actual_value="True" + ) + + +def test_verify_values_fail() -> None: + """Test the verify_values function with an expected failing check.""" + with pytest.raises(AssertionError) as assertion_info: + verify_values( + unique_identifier="failing-check", + expected_value="0.1", + actual_value="0.2", + percentage=True, + log_error=True, + ) + assert ( + " - ERROR: (failing-check) : Actual result does not match the expected " + "result within a tolerance of 0.0, max: 0.1, act: 0.2, min: 0.1" + ) in str(assertion_info.value) From f048e71e7086b01f6bf6bc5a1e9b76fe79abcb38 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 13:29:03 -0700 Subject: [PATCH 14/52] refactor: Updated the ReadOnlyCachedProperty decorator to be able to be used to decorate an abstractmethod while still maintaining the checks that abstractmethods perform to prevent instantiation of an object that doesn't implement all abstract methods. Updated the TSOVu driver to be able to be instantiated properly by implementing all required abstract methods. --- examples/miscellaneous/custom_device_driver_support.py | 2 -- pyproject.toml | 5 +++++ .../channel_control_mixin.py | 1 - .../abstract_device_functionality/licensed_mixin.py | 1 - .../abstract_device_functionality/usb_drives_mixin.py | 1 - .../device_control/_abstract_device_control.py | 2 -- .../driver_mixins/device_control/pi_control.py | 2 -- .../shared_implementations/tek_afg_awg_mixin.py | 2 -- src/tm_devices/drivers/afgs/afg.py | 2 -- src/tm_devices/drivers/awgs/awg.py | 2 -- src/tm_devices/drivers/awgs/awg5k.py | 2 -- src/tm_devices/drivers/awgs/awg7k.py | 2 -- .../drivers/data_acquisition_systems/daq6510.py | 2 -- src/tm_devices/drivers/device.py | 2 -- src/tm_devices/drivers/margin_testers/margin_tester.py | 2 -- src/tm_devices/drivers/margin_testers/tmt4.py | 2 -- .../drivers/power_supplies/psu22xx/psu2200.py | 2 -- src/tm_devices/drivers/scopes/scope.py | 2 -- src/tm_devices/drivers/scopes/tekscope/mso2.py | 2 -- src/tm_devices/drivers/scopes/tekscope/tekscope.py | 2 -- src/tm_devices/drivers/scopes/tekscope/tekscopepc.py | 2 -- .../drivers/scopes/tekscope_2k/tekscope_2k.py | 2 -- src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py | 2 -- .../drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py | 2 -- .../scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 2 -- src/tm_devices/drivers/scopes/tso/tsovu.py | 9 +++++++++ .../smu24xx/smu24xx_interactive.py | 2 -- .../source_measure_units/smu24xx/smu24xx_standard.py | 2 -- .../drivers/source_measure_units/smu26xx/smu26xx.py | 2 -- .../drivers/source_measure_units/smu60xx/smu6xxx.py | 2 -- src/tm_devices/drivers/systems_switches/ss3706a.py | 2 -- src/tm_devices/helpers/read_only_cached_property.py | 10 ++++++++++ tests/test_helpers.py | 2 -- tests/test_rest_api_device.py | 2 -- tests/test_scopes.py | 9 ++++++++- tests/test_unsupported_device_type.py | 2 -- 36 files changed, 32 insertions(+), 62 deletions(-) diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index dad5ac4f..31926462 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -7,8 +7,6 @@ from tm_devices.drivers import MSO5 from tm_devices.drivers.device import Device from tm_devices.drivers.scopes.scope import Scope - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/pyproject.toml b/pyproject.toml index 83e52302..0c46922d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,6 +170,11 @@ good-names = ["_"] [tool.pylint.design] max-args = 7 +[tool.pylint.dunder] +good-dunder-names = [ + "__isabstractmethod__" +] + [tool.pylint.main] fail-under = 10.0 ignore-patterns = [ diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py index 529a9d2a..6f6b21f8 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/channel_control_mixin.py @@ -3,7 +3,6 @@ from abc import ABC, abstractmethod from typing import final, Tuple -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py index 1ec393d0..68c1e868 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/licensed_mixin.py @@ -3,7 +3,6 @@ from abc import ABC, abstractmethod from typing import final, Tuple -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py index d9c29dd9..14df52c4 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/usb_drives_mixin.py @@ -3,7 +3,6 @@ from abc import ABC, abstractmethod from typing import Tuple -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py index bbedebb0..a4b1e142 100644 --- a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py +++ b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py @@ -3,8 +3,6 @@ from abc import ABC, abstractmethod from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index eec91b5c..d1958394 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -30,8 +30,6 @@ raise_failure, verify_values, ) - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 15a13ede..6c40c17b 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -9,8 +9,6 @@ from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 7eb43784..6f7cb623 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -18,8 +18,6 @@ from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import ( SignalGeneratorFunctionsAFG, diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index e1ca3837..b810a55a 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -17,8 +17,6 @@ from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import ( SignalGeneratorFunctionsAWG, diff --git a/src/tm_devices/drivers/awgs/awg5k.py b/src/tm_devices/drivers/awgs/awg5k.py index 8b33888d..d92444f2 100644 --- a/src/tm_devices/drivers/awgs/awg5k.py +++ b/src/tm_devices/drivers/awgs/awg5k.py @@ -14,8 +14,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import SignalGeneratorOutputPathsBase diff --git a/src/tm_devices/drivers/awgs/awg7k.py b/src/tm_devices/drivers/awgs/awg7k.py index 38688221..a53d1c24 100644 --- a/src/tm_devices/drivers/awgs/awg7k.py +++ b/src/tm_devices/drivers/awgs/awg7k.py @@ -18,8 +18,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import SignalGeneratorOutputPathsBase diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index e9fb19d5..aa5603e4 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -16,8 +16,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 5813c105..1f376c16 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -26,8 +26,6 @@ DeviceConfigEntry, print_with_timestamp, ) - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 _T = TypeVar("_T") diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index 5232294a..2c9d0dbe 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -12,8 +12,6 @@ from tm_devices.driver_mixins.device_control.rest_api_control import RESTAPIControl from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceConfigEntry, DeviceTypes - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/margin_testers/tmt4.py b/src/tm_devices/drivers/margin_testers/tmt4.py index 38d778de..0254210b 100644 --- a/src/tm_devices/drivers/margin_testers/tmt4.py +++ b/src/tm_devices/drivers/margin_testers/tmt4.py @@ -9,8 +9,6 @@ from tm_devices.drivers.margin_testers.margin_tester import MarginTester from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 80ea374b..0df02e54 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -9,8 +9,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index 78edccd4..a1d0ed72 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -6,8 +6,6 @@ from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes, raise_failure, verify_values - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope/mso2.py b/src/tm_devices/drivers/scopes/tekscope/mso2.py index c081e4a9..b094c63e 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso2.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso2.py @@ -7,8 +7,6 @@ from tm_devices.commands import MSO2Mixin from tm_devices.drivers.scopes.tekscope.tekscope import TekScope from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index aca46bbf..78803830 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -49,8 +49,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG, raise_error - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import ( SignalGeneratorFunctionsIAFG, diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py index aa7e873b..d6165b47 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py @@ -8,8 +8,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.tekscope.tekscope import AbstractTekScope from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py index 22f1bb1e..c40bd89a 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py @@ -10,8 +10,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py index c770dab2..f635c4f3 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py @@ -5,8 +5,6 @@ from tm_devices.commands import MDO3Mixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py index 479967f8..5f8c9db2 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -4,8 +4,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index a8b033ab..4a9e3c9b 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -7,8 +7,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/scopes/tso/tsovu.py b/src/tm_devices/drivers/scopes/tso/tsovu.py index cc0976b8..d84a1e82 100644 --- a/src/tm_devices/drivers/scopes/tso/tsovu.py +++ b/src/tm_devices/drivers/scopes/tso/tsovu.py @@ -5,6 +5,7 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class @@ -32,6 +33,14 @@ def __init__( super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) self.write("HEADER OFF", verbose=False) + ################################################################################################ + # Properties + ################################################################################################ + @cached_property + def total_channels(self) -> int: + """Return the total number of channels.""" + return 0 + ################################################################################################ # Private Methods ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index fabb15f1..7ceb265a 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -17,8 +17,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index e26395b7..24a84099 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -9,8 +9,6 @@ from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 if TYPE_CHECKING: diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 8f6a0cc4..34f0f4fb 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -25,8 +25,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 8892ed49..b6345f5e 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -9,8 +9,6 @@ from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 if TYPE_CHECKING: diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index ca1583b3..66b4fc1e 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -9,8 +9,6 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch from tm_devices.helpers import DeviceConfigEntry - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 diff --git a/src/tm_devices/helpers/read_only_cached_property.py b/src/tm_devices/helpers/read_only_cached_property.py index af4df55c..ca243538 100644 --- a/src/tm_devices/helpers/read_only_cached_property.py +++ b/src/tm_devices/helpers/read_only_cached_property.py @@ -44,6 +44,11 @@ def __delete__(self, instance: object) -> None: with contextlib.suppress(KeyError): del cache[self.attrname] # pyright: ignore[reportArgumentType] + @property + def __isabstractmethod__(self) -> bool: + """Provide a way to check if the decorated method is an abstract method.""" + return getattr(self.func, "__isabstractmethod__", False) + except TypeError: # pragma: py-gte-39 # pylint: disable=unsubscriptable-object,useless-suppression class ReadOnlyCachedProperty(cached_property): # pyright: ignore[reportMissingTypeArgument] @@ -79,3 +84,8 @@ def __delete__(self, instance: object) -> None: # attribute already doesn't exist and therefore doesn't need to be deleted. with contextlib.suppress(KeyError): del cache[self.attrname] # pyright: ignore[reportArgumentType] + + @property + def __isabstractmethod__(self) -> bool: + """Provide a way to check if the decorated method is an abstract method.""" + return getattr(self.func, "__isabstractmethod__", False) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index e7b8f252..c9862c23 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -40,8 +40,6 @@ SupportedModels, VALID_DEVICE_CONNECTION_TYPES, ) - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 MODEL_SERIES_LIST = SupportedModels.list_values() diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 1ea3d135..936c577f 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -15,8 +15,6 @@ SupportedRequestTypes, ) from tm_devices.drivers.device import Device, family_base_class - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.constants_and_dataclasses import DeviceConfigEntry from tm_devices.helpers.enums import ConnectionTypes, DeviceTypes diff --git a/tests/test_scopes.py b/tests/test_scopes.py index b1d0948b..4008edb6 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -15,7 +15,7 @@ from packaging.version import Version from tm_devices import DeviceManager, register_additional_usbtmc_mapping -from tm_devices.drivers import MSO2, MSO2KB, MSO5, MSO5B, MSO6, MSO70KDX, TekScopePC +from tm_devices.drivers import MSO2, MSO2KB, MSO5, MSO5B, MSO6, MSO70KDX, TekScopePC, TSOVu from tm_devices.drivers.scopes.tekscope.tekscope import ( AbstractTekScope, ExtendedSourceDeviceConstants, @@ -530,3 +530,10 @@ def test_tekscope2k(device_manager: DeviceManager, tmp_path: pathlib.Path) -> No assert scope.curve_query(5, wfm_type="TimeDomain") == [] assert scope.curve_query(0, wfm_type="Digital") == [1, 0, 1, 0, 1] + + +def test_tsovu(device_manager: DeviceManager) -> None: + """Test the TSOVu device driver.""" + scope: TSOVu = device_manager.add_scope("TSOVU-HOSTNAME") + assert scope.hostname == "TSOVU-HOSTNAME" + assert scope.total_channels == 0 # pylint: disable=use-implicit-booleaness-not-comparison-to-zero diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 7530dba4..6b385aeb 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -9,8 +9,6 @@ from tm_devices import DeviceManager from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers.device import Device - -# noinspection PyPep8Naming from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 From 1a5fb3677af796b01fcfab9def818884f7f8a424 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 14:24:52 -0700 Subject: [PATCH 15/52] refactor: Simplified the sharing of common method implementations by creating a mixin class that implements the common system:error PI logic necessary for certain device's expect_esr() implementations --- .../common_pi_system_error_check_methods.py | 94 +++++++++++++++++++ .../common_tsp_error_check_methods.py | 4 +- .../tek_afg_awg_mixin.py | 82 +--------------- .../drivers/power_supplies/psu22xx/psu2200.py | 34 +------ .../smu24xx/smu24xx_standard.py | 33 +------ .../source_measure_units/smu60xx/smu6xxx.py | 33 +------ 6 files changed, 115 insertions(+), 165 deletions(-) create mode 100644 src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py new file mode 100644 index 00000000..fa0391f4 --- /dev/null +++ b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py @@ -0,0 +1,94 @@ +"""A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR.""" + +from abc import ABC +from typing import Tuple, Union + +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values + + +class CommonPISystemErrorCheckMethods(PIControl, ABC): + """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR. + + !!! note + This class also inherits from the + [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin and + therefore provides access to the PI control methods. + """ + + ################################################################################################ + # Public Methods + ################################################################################################ + def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: + r"""Check for the expected number of errors and output string. + + Sends the ``*ESR?`` and SYSTEM:ERROR? queries. + + Args: + esr: Expected ``*ESR?`` value + error_string: Expected error buffer string. + Multiple errors should be separated by a \n character + + Returns: + Boolean indicating if the check passed or failed and a string with the results. + """ + failure_message = "" + no_error = '0,"No error"' + if not int(esr): + error_string = no_error + + # Verify that an allev reply is specified + if not error_string: + raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 + + result = True + esr_result_str = self.query("*ESR?") + try: + verify_values(self._name_and_alias, esr, esr_result_str) + except AssertionError as exc: + result &= False + print(exc) # the exception already contains the timestamp + + # return the errors if any + returned_errors = "" + error = "" + while error != no_error: + error = str(self.query("SYSTEM:ERROR?")) + returned_errors += error + if error != no_error: + returned_errors += "\n" + + if returned_errors != error_string: + result &= False + print_with_timestamp( + f"FAILURE: ({self._name_and_alias}) : Incorrect SYSTEM:ERROR? returned:\n" + f" exp: {error_string!r}\n act: {returned_errors!r}" + ) + + if not result: + returned_errors = returned_errors.replace("\n", ", ") + error_string = error_string.replace("\n", ", ") + failure_message = ( + f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " + f"SYSTEM:ERROR? {returned_errors!r} != {error_string!r}" + ) + raise_failure(self._name_and_alias, failure_message) + + return result, failure_message + + def get_eventlog_status(self) -> Tuple[bool, str]: + """Help function for getting the eventlog status. + + Returns: + Boolean indicating no error, String containing concatenated contents of event log. + """ + result = not int(self.query("*ESR?").strip()) + + # return the errors if any + returned_errors = "" + error = "" + while error != '0,"No error"': + error = str(self.query("SYSTEM:ERROR?")) + returned_errors += error + + return result, returned_errors.rstrip() diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py index 2cb0f102..8ab4b116 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py @@ -1,4 +1,4 @@ -"""A mixin class that contains common TSP methods for checking the device for errors.""" +"""A mixin class that contains common methods for checking the TSP device for errors.""" from abc import ABC from typing import Tuple, Union @@ -8,7 +8,7 @@ class CommonTSPErrorCheckMethods(TSPControl, ABC): - """A mixin class that contains common TSP methods for checking the device for errors. + """A mixin class that contains common methods for checking the TSP device for errors. !!! note This class also inherits from the diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index 6c40c17b..d1f3b410 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -1,19 +1,20 @@ """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" from abc import ABC, abstractmethod -from typing import Tuple, Union +from typing import Tuple from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( SignalGeneratorMixin, ) -from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( + CommonPISystemErrorCheckMethods, +) from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 # TODO: nfelt14: remove PIControl inheritance if possible, maybe even remove this class entirely? -class TekAFGAWG(PIControl, SignalGeneratorMixin, ExtendableMixin, ABC): +class TekAFGAWG(CommonPISystemErrorCheckMethods, SignalGeneratorMixin, ExtendableMixin, ABC): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" ################################################################################################ @@ -37,79 +38,6 @@ def total_channels(self) -> int: ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - failure_message = "" - no_error = '0,"No error"' - if not int(esr): - error_string = no_error - - # Verify that an allev reply is specified - if not error_string: - raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 - - result = True - esr_result_str = self.query("*ESR?") - try: - verify_values(self._name_and_alias, esr, esr_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - - # return the errors if any - returned_errors = "" - error = "" - while error != no_error: - error = str(self.query("SYSTEM:ERROR?")) - returned_errors += error - if error != no_error: - returned_errors += "\n" - - if returned_errors != error_string: - result &= False - print_with_timestamp( - f"FAILURE: ({self._name_and_alias}) : Incorrect SYSTEM:ERROR? returned:\n" - f" exp: {error_string!r}\n act: {returned_errors!r}" - ) - - if not result: - returned_errors = returned_errors.replace("\n", ", ") - error_string = error_string.replace("\n", ", ") - failure_message = ( - f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " - f"SYSTEM:ERROR? {returned_errors!r} != {error_string!r}" - ) - raise_failure(self._name_and_alias, failure_message) - - return result, failure_message - - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result = not int(self.query("*ESR?").strip()) - - # return the errors if any - returned_errors = "" - error = "" - while error != '0,"No error"': - error = str(self.query("SYSTEM:ERROR?")) - returned_errors += error - - return result, returned_errors.rstrip() ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 0df02e54..c2933f0d 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -1,11 +1,10 @@ """2200 Base device driver for the 22xx family of power supplies.""" -from typing import Tuple, Union - from packaging.version import Version -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( + CommonPISystemErrorCheckMethods, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit from tm_devices.helpers import get_version @@ -13,7 +12,7 @@ @family_base_class -class PSU2200(PIControl, PowerSupplyUnit): +class PSU2200(CommonPISystemErrorCheckMethods, PowerSupplyUnit): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ @@ -31,22 +30,6 @@ def total_channels(self) -> int: ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] - @cached_property def fpga_version(self) -> Version: """Return the fpga version of the device.""" @@ -57,15 +40,6 @@ def fpga_version(self) -> Version: return get_version(split_sw[1]) return Version("0") # pragma: no cover - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] - ################################################################################################ # Private Methods ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 24a84099..2ebc6084 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -3,10 +3,11 @@ from __future__ import annotations from abc import ABC -from typing import Tuple, TYPE_CHECKING, Union +from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( + CommonPISystemErrorCheckMethods, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -16,7 +17,7 @@ @family_base_class -class SMU24xxStandard(PIControl, SourceMeasureUnit, ABC): +class SMU24xxStandard(CommonPISystemErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ @@ -44,30 +45,6 @@ def total_channels(self) -> int: # pylint: disable=no-self-use ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] - - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index b6345f5e..0784b372 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -3,10 +3,11 @@ from __future__ import annotations from abc import ABC -from typing import Tuple, TYPE_CHECKING, Union +from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( + CommonPISystemErrorCheckMethods, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -16,7 +17,7 @@ @family_base_class -class SMU6xxx(PIControl, SourceMeasureUnit, ABC): +class SMU6xxx(CommonPISystemErrorCheckMethods, SourceMeasureUnit, ABC): """Base SMU6xxx device driver.""" ################################################################################################ @@ -44,30 +45,6 @@ def total_channels(self) -> int: # pylint: disable=no-self-use ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.expect_esr(self, esr, error_string) # type: ignore[arg-type] - - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - # TODO: nfelt14: Move this shared implementation into a mixin for all classes that use it - return TekAFGAWG.get_eventlog_status(self) # type: ignore[arg-type] ################################################################################################ # Private Methods From a84abe40126dc744eb70abbc2d7312cb09cc24f1 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 14 Oct 2024 16:53:36 -0700 Subject: [PATCH 16/52] refactor: Removed the get_eventlog_status() method and replaced it with a new get_errors() method. All devices are now required to implement a _get_errors() method with the necessary implementation to get the current error code and error messages. --- CHANGELOG.md | 3 ++ .../custom_device_driver_support.py | 6 +++ .../_abstract_device_control.py | 2 +- .../device_control/pi_control.py | 16 +++----- .../device_control/rest_api_control.py | 6 ++- ... => common_pi_system_error_check_mixin.py} | 24 ++++++----- ...ods.py => common_tsp_error_check_mixin.py} | 38 +++++++++--------- .../tek_afg_awg_mixin.py | 9 +++-- src/tm_devices/drivers/afgs/afg.py | 4 +- src/tm_devices/drivers/awgs/awg.py | 4 +- .../data_acquisition_systems/daq6510.py | 37 ++++++++--------- src/tm_devices/drivers/device.py | 40 ++++++++++++++----- .../drivers/digital_multimeters/dmm6500.py | 37 ++++++++--------- .../digital_multimeters/dmm75xx/dmm75xx.py | 37 ++++++++--------- .../drivers/margin_testers/margin_tester.py | 12 ++++-- .../drivers/power_supplies/psu22xx/psu2200.py | 6 +-- src/tm_devices/drivers/scopes/scope.py | 22 ++++++---- .../drivers/scopes/tekscope/tekscope.py | 5 ++- .../smu24xx/smu24xx_interactive.py | 31 +++++++------- .../smu24xx/smu24xx_standard.py | 6 +-- .../source_measure_units/smu26xx/smu26xx.py | 6 +-- .../source_measure_units/smu60xx/smu6xxx.py | 6 +-- .../drivers/systems_switches/ss3706a.py | 6 +-- tests/test_device_manager.py | 1 + tests/test_extension_mixin.py | 8 ++-- tests/test_generate_waveform.py | 16 ++++---- tests/test_psu.py | 2 +- tests/test_rest_api_device.py | 7 ++-- tests/test_scopes.py | 4 +- tests/test_smu.py | 4 +- tests/test_ss.py | 2 +- tests/test_unsupported_device_type.py | 3 ++ 32 files changed, 232 insertions(+), 178 deletions(-) rename src/tm_devices/driver_mixins/shared_implementations/{common_pi_system_error_check_methods.py => common_pi_system_error_check_mixin.py} (82%) rename src/tm_devices/driver_mixins/shared_implementations/{common_tsp_error_check_methods.py => common_tsp_error_check_mixin.py} (71%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c695c6b..4d5ca34c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Things to be included in the next release go here. ### Added - Testing/linting on Python 3.13. +- Added the `get_errors()` method to the `Device` class to enable easy access to the current error code and messages on any device. ### Changed @@ -34,6 +35,8 @@ However, please read through all changes to be aware of what may potentially imp - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. - BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. +- BREAKING CHANGE: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. + - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. ### Removed diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 31926462..06e787ea 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -36,6 +36,12 @@ class CustomDevice(PIControl, Device): # Custom device types not officially supported need to define what type of device they are. _DEVICE_TYPE = "CustomDevice" + # This is an abstract method that must be implemented by the custom device driver. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + # The contents of this method would need to be properly implemented, + # this is just example code. :) + return 0, () + # This is an abstract method that must be implemented by the custom device driver. def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: # The contents of this method would need to be properly implemented, diff --git a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py index a4b1e142..2df01d78 100644 --- a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py +++ b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py @@ -6,7 +6,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods +class _AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods # pyright: ignore[reportUnusedClass] """Abstract class with properties and attributes shared between devices and control mixins.""" def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index d1958394..eded232e 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -15,7 +15,9 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( @@ -33,7 +35,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class PIControl(AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(_AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. !!! important @@ -86,6 +88,8 @@ def __init__( ################################################################################################ # Abstract Methods ################################################################################################ + # TODO: nfelt14: Determine if this really needs to be an abstract method here. If not, + # remove it from the example code too. @abstractmethod def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: r"""Check for the expected number of errors and output string. @@ -928,14 +932,6 @@ def _close(self) -> None: self._visa_resource = None # pyright: ignore[reportAttributeAccessIssue] self._is_open = False - def _has_errors(self) -> bool: - """Check if the device has any errors. - - Returns: - A boolean indicating if any errors were found in the device. - """ - return not self.expect_esr(0)[0] - def _open(self) -> bool: """Open necessary resources and components and return a boolean indicating success.""" opened = True diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 5ab83df5..08f3b377 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -9,7 +9,9 @@ import requests -from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) from tm_devices.helpers import ( DeviceConfigEntry, print_with_timestamp, @@ -18,7 +20,7 @@ ) -class RESTAPIControl(AbstractDeviceControl, ABC): +class RESTAPIControl(_AbstractDeviceControl, ABC): """Base REST Application Programming Interface (API) control class. !!! important diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py similarity index 82% rename from src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py rename to src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py index fa0391f4..a3a2fae6 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_methods.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py @@ -1,13 +1,13 @@ """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR.""" from abc import ABC -from typing import Tuple, Union +from typing import List, Tuple, Union from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values -class CommonPISystemErrorCheckMethods(PIControl, ABC): +class CommonPISystemErrorCheckMixin(PIControl, ABC): """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR. !!! note @@ -76,19 +76,23 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool return result, failure_message - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - Boolean indicating no error, String containing concatenated contents of event log. + A tuple containing the current error code alongside a tuple of the current error + messages. """ - result = not int(self.query("*ESR?").strip()) + result = int(self.query("*ESR?").strip()) # return the errors if any - returned_errors = "" + returned_errors: List[str] = [] error = "" while error != '0,"No error"': - error = str(self.query("SYSTEM:ERROR?")) - returned_errors += error + error = self.query("SYSTEM:ERROR?") + returned_errors.append(error) - return result, returned_errors.rstrip() + return result, tuple(returned_errors) diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py similarity index 71% rename from src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py rename to src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py index 8ab4b116..45c35cfc 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_methods.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py @@ -7,7 +7,7 @@ from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values -class CommonTSPErrorCheckMethods(TSPControl, ABC): +class CommonTSPErrorCheckMixin(TSPControl, ABC): """A mixin class that contains common methods for checking the TSP device for errors. !!! note @@ -34,10 +34,11 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool """ failure_message = "" if not int(esr): - error_string = '0,"No events to report - queue empty"' + # TODO: nfelt14: Update this default error string + error_string = "" - # Verify that an allev reply is specified - if not error_string: + # Verify that an allev reply is specified when expecting an error + if int(esr) and not error_string: raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 result = True @@ -47,9 +48,8 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool except AssertionError as exc: result &= False print(exc) # the exception already contains the timestamp - _, allev_result_str = self.get_eventlog_status() - - if allev_result_str != error_string: + _, allev_result_tuple = self._get_errors() + if (allev_result_str := ",".join(allev_result_tuple)) != error_string: result &= False print_with_timestamp( f"FAILURE: ({self._name_and_alias}) : Incorrect eventlog status returned:\n" @@ -66,19 +66,19 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool return result, failure_message - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - Boolean indicating no error, String containing concatenated contents of event log. + A tuple containing the current error code alongside a tuple of the current error + messages. """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - # instrument returns exponential numbers so converting to float before int - if not (err_count := int(float(self.query("print(errorqueue.count)")))): - result_allev = True - else: - allev_result_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str + err_count = int(float(self.query("print(errorqueue.count)"))) + error_message_list = [] + if err_count: + error_message_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] + return err_count, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py index d1f3b410..e22e0ea2 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py @@ -7,14 +7,15 @@ SignalGeneratorMixin, ) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( - CommonPISystemErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( + CommonPISystemErrorCheckMixin, ) from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: remove PIControl inheritance if possible, maybe even remove this class entirely? -class TekAFGAWG(CommonPISystemErrorCheckMethods, SignalGeneratorMixin, ExtendableMixin, ABC): +class TektronixAFGAWGMixin( + CommonPISystemErrorCheckMixin, SignalGeneratorMixin, ExtendableMixin, ABC +): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" ################################################################################################ diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 6f7cb623..dffd8800 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -15,7 +15,7 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -34,7 +34,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(TekAFGAWG, Device, ABC): +class AFG(TektronixAFGAWGMixin, Device, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index b810a55a..ff24eab0 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -14,7 +14,7 @@ SourceDeviceConstants, ) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -33,7 +33,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): # TODO: nfelt14: remove PIControl inheritance if possible -class AWG(TekAFGAWG, Device, ABC): +class AWG(TektronixAFGAWGMixin, Device, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index aa5603e4..19185859 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,8 +5,8 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, @@ -20,7 +20,7 @@ @family_base_class -class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMethods, DataAcquisitionSystem): +class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMixin, DataAcquisitionSystem): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -61,22 +61,23 @@ def total_channels(self) -> int: # pylint: disable=no-self-use ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - if not (err_count := int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))"))): - result_allev = True - else: - allev_result_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str ################################################################################################ # Private Methods ################################################################################################ + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ + # instrument returns exponential numbers so converting to float before int + err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) + error_message_list = [] + if err_count: + error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] + return err_count, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 1f376c16..1934e2e9 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -17,7 +17,9 @@ from packaging.version import Version -from tm_devices.driver_mixins.device_control._abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import ( check_network_connection, @@ -43,7 +45,7 @@ def family_base_class(cls: _T) -> _T: # pylint: disable=too-many-instance-attributes,too-many-public-methods -class Device(AbstractDeviceControl, ExtendableMixin, ABC): +class Device(_AbstractDeviceControl, ExtendableMixin, ABC): """Base device driver that all devices inherit from.""" _DEVICE_TYPE: str # should be implemented by device type base classes @@ -133,11 +135,15 @@ def _close(self) -> None: """Perform the actual closing code.""" @abstractmethod - def _has_errors(self) -> bool: - """Check if the device has any errors. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - A boolean indicating if any errors were found in the device. + A tuple containing the current error code alongside a tuple of the current error + messages. """ @abstractmethod @@ -421,19 +427,31 @@ def close(self) -> None: print_with_timestamp(f"Closing Connection to {self._name_and_alias}") self._close() + @final + def get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ + return self._get_errors() + @final def has_errors(self) -> bool: """Check if the device has any errors. - !!! warning - In v3 this method will return a tuple containing a bool and a list of instances of - device error info dataclasses (this will replace `get_eventlog_status()`). + !!! note + This method will clear out the error queue after reading the current errors. Returns: - A boolean indicating if any errors were found in the device. + A boolean indicating if any errors were found in the device. True means there were + errors, False means no errors were found. """ - # TODO: nfelt14: update this with new behavior - return self._has_errors() + return bool(self.get_errors()[0]) @final def reboot(self, quiet_period: int = 0) -> bool: diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index 37554b7d..b82e1e10 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,8 +5,8 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, @@ -17,7 +17,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMethods, DigitalMultimeter): +class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMixin, DigitalMultimeter): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -55,22 +55,23 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - if not (err_count := int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))"))): - result_allev = True - else: - allev_result_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str ################################################################################################ # Private Methods ################################################################################################ + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ + # instrument returns exponential numbers so converting to float before int + err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) + error_message_list = [] + if err_count: + error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] + return err_count, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 5db3daee..3e5c41fc 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,8 +5,8 @@ import pyvisa as visa -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, @@ -17,7 +17,7 @@ @family_base_class -class DMM75xx(CommonTSPErrorCheckMethods, DigitalMultimeter, ABC): +class DMM75xx(CommonTSPErrorCheckMixin, DigitalMultimeter, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -55,22 +55,23 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. - - Returns: - Boolean indicating no error, String containing concatenated contents of event log. - """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - if not (err_count := int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))"))): - result_allev = True - else: - allev_result_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str ################################################################################################ # Private Methods ################################################################################################ + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ + # instrument returns exponential numbers so converting to float before int + err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) + error_message_list = [] + if err_count: + error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] + return err_count, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index 2c9d0dbe..e0681eb6 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -127,14 +127,18 @@ def _generate_headers(self) -> Mapping[str, str]: headers["Authorization"] = f"Bearer {token}" return headers - def _has_errors(self) -> bool: - """Check if the device has any errors. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - A boolean indicating if any errors were found in the device. + A tuple containing the current error code alongside a tuple of the current error + messages. """ # TODO: implement - return False + return 0, () def _open(self) -> bool: """Open necessary resources and components.""" diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index c2933f0d..abc6a28b 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -2,8 +2,8 @@ from packaging.version import Version -from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( - CommonPISystemErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( + CommonPISystemErrorCheckMixin, ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit @@ -12,7 +12,7 @@ @family_base_class -class PSU2200(CommonPISystemErrorCheckMethods, PowerSupplyUnit): +class PSU2200(CommonPISystemErrorCheckMixin, PowerSupplyUnit): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index a1d0ed72..0a8d96db 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -43,7 +43,6 @@ def opt_string(self) -> str: ################################################################################################ # Public Methods ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: r"""Check for the expected number of errors and output string. @@ -88,14 +87,23 @@ def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool return result, failure_message - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. + ################################################################################################ + # Private Methods + ################################################################################################ + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - Boolean indicating no error, String containing concatenated contents of event log. + A tuple containing the current error code alongside a tuple of the current error + messages. """ - result = not int(self.query("*ESR?").strip()) - - returned_errors = self.query(":ALLev?") + result = int(self.query("*ESR?").strip()) + allev_list = [ + x + ('"' if not x.endswith('"') else "") for x in self.query(":ALLev?").split('",') + ] + returned_errors = tuple(filter(None, allev_list)) return result, returned_errors diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 78803830..c01d7b74 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -89,7 +89,10 @@ class AbstractTekScope( # pylint: disable=too-many-public-methods ChannelControlMixin, ABC, ): - """Base TekScope scope device driver.""" + """Base TekScope scope device driver. + + This class contains shared functionality between physical TekScope devices and TekScopePC. + """ # re-edit so it reflects the actual Internal AFG _DEVICE_CONSTANTS = TekScopeSourceDeviceConstants( diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 7ceb265a..80941f29 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,8 +9,8 @@ SMU2461Commands, SMU2470Commands, ) -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import ( LegacyTSPIEEE4882Commands, @@ -21,7 +21,7 @@ @family_base_class -class SMU24xxInteractive(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU24xxInteractive(CommonTSPErrorCheckMixin, SourceMeasureUnit, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -58,21 +58,22 @@ def total_channels(self) -> int: # pylint: disable=no-self-use ################################################################################################ # Public Methods ################################################################################################ - def get_eventlog_status(self) -> Tuple[bool, str]: - """Help function for getting the eventlog status. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. Returns: - Boolean indicating no error, String containing concatenated contents of event log. + A tuple containing the current error code alongside a tuple of the current error + messages. """ - result_allev = False - allev_result_str = '0,"No events to report - queue empty"' - - if not (err_count := int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))"))): - result_allev = True - else: - allev_result_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - allev_result_str = ",".join(allev_result_list) - return result_allev, allev_result_str + # instrument returns exponential numbers so converting to float before int + err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) + error_message_list = [] + if err_count: + error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] + return err_count, tuple(filter(None, error_message_list)) ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 2ebc6084..9bc7ed90 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,8 +5,8 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( - CommonPISystemErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( + CommonPISystemErrorCheckMixin, ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -17,7 +17,7 @@ @family_base_class -class SMU24xxStandard(CommonPISystemErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU24xxStandard(CommonPISystemErrorCheckMixin, SourceMeasureUnit, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 34f0f4fb..f08b8437 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,8 +20,8 @@ SMU2651ACommands, SMU2657ACommands, ) -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -29,7 +29,7 @@ @family_base_class -class SMU26xx(CommonTSPErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU26xx(CommonTSPErrorCheckMixin, SourceMeasureUnit, ABC): """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index 0784b372..bfc0ee0c 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -5,8 +5,8 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_methods import ( - CommonPISystemErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( + CommonPISystemErrorCheckMixin, ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit @@ -17,7 +17,7 @@ @family_base_class -class SMU6xxx(CommonPISystemErrorCheckMethods, SourceMeasureUnit, ABC): +class SMU6xxx(CommonPISystemErrorCheckMixin, SourceMeasureUnit, ABC): """Base SMU6xxx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 66b4fc1e..64262abf 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -3,8 +3,8 @@ import pyvisa as visa from tm_devices.commands import SS3706AMixin -from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_methods import ( - CommonTSPErrorCheckMethods, +from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( + CommonTSPErrorCheckMixin, ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch @@ -13,7 +13,7 @@ @family_base_class -class SS3706A(SS3706AMixin, CommonTSPErrorCheckMethods, SystemsSwitch): +class SS3706A(SS3706AMixin, CommonTSPErrorCheckMixin, SystemsSwitch): """SS3706A device driver.""" ################################################################################################ diff --git a/tests/test_device_manager.py b/tests/test_device_manager.py index b3084720..1eb1a480 100644 --- a/tests/test_device_manager.py +++ b/tests/test_device_manager.py @@ -389,6 +389,7 @@ def test_deleting_device_manager(self) -> None: assert stdout.count("Closing Connection to AFG 1") == num_closes assert stdout.count("DeviceManager Closed") == num_closes + # noinspection PyUnresolvedReferences def test_loading_isolated_config_file( self, device_manager: DeviceManager, capsys: pytest.CaptureFixture[str] ) -> None: diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index ed7d8a93..ac5c4a8b 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -19,7 +19,7 @@ from tm_devices import DeviceManager from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.device_control.tsp_control import TSPControl -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TekAFGAWG +from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.afgs.afg import AFG from tm_devices.drivers.device import Device @@ -95,7 +95,7 @@ def _remove_added_methods() -> Iterator[None]: (Device, "already_exists"), (Scope, "custom_model_getter_scope"), (Scope, "custom_return"), - (TekAFGAWG, "custom_model_getter_sg"), + (TektronixAFGAWGMixin, "custom_model_getter_sg"), (AFG, "custom_model_getter_afg"), (AFG3K, "custom_model_getter_afg3k"), (AFG3KC, "custom_model_getter_afg3kc"), @@ -220,8 +220,8 @@ def custom_model_getter_scope(device: Scope, value: str) -> str: """Return the model.""" return f"Scope {device.model} {value}" - @TekAFGAWG.add_method - def custom_model_getter_sg(device: TekAFGAWG, value: str) -> str: + @TektronixAFGAWGMixin.add_method + def custom_model_getter_sg(device: TektronixAFGAWGMixin, value: str) -> str: """Return the model.""" return f"TekAFGAWG {device.model} {value}" diff --git a/tests/test_generate_waveform.py b/tests/test_generate_waveform.py index 0bf5fabc..2f628bbf 100644 --- a/tests/test_generate_waveform.py +++ b/tests/test_generate_waveform.py @@ -45,7 +45,7 @@ def test_awg5200_gen_waveform( assert source1_waveform_file == '"*DC"' assert awg520050.expect_esr(0)[0] - assert awg520050.get_eventlog_status() == (True, '0,"No error"') + assert awg520050.get_errors() == (0, ('0,"No error"',)) # Frequency is too high to produce CLOCK function on this AWG. with pytest.raises( @@ -115,7 +115,7 @@ def test_awg70k_gen_waveform( assert int(output1_state) == 1 assert awg70ka150.expect_esr(0)[0] - assert awg70ka150.get_eventlog_status() == (True, '0,"No error"') + assert awg70ka150.get_errors() == (0, ('0,"No error"',)) assert "MMEMORY:OPEN:SASSET" not in stdout # call generate_function with only *DC in the waveform list. @@ -165,7 +165,7 @@ def test_awg7k_gen_waveform(device_manager: DeviceManager) -> None: assert int(output1_state) == 1 assert awg7k06.expect_esr(0)[0] - assert awg7k06.get_eventlog_status() == (True, '0,"No error"') + assert awg7k06.get_errors() == (0, ('0,"No error"',)) # AWG7k with option 1 should set offset. awg7k01.generate_function( @@ -201,7 +201,7 @@ def test_awg7k_gen_waveform(device_manager: DeviceManager) -> None: ) assert awg7k01.expect_esr(0)[0] - assert awg7k01.get_eventlog_status() == (True, '0,"No error"') + assert awg7k01.get_errors() == (0, ('0,"No error"',)) # Clock awg7k01.generate_function( @@ -359,7 +359,7 @@ def test_afg3k_gen_waveform( # pylint: disable=too-many-locals assert float(pulse_dcycle) == 50 assert afg3kc.expect_esr(0)[0] - assert afg3kc.get_eventlog_status() == (True, '0,"No error"') + assert afg3kc.get_errors() == (0, ('0,"No error"',)) def test_internal_afg_gen_waveform( @@ -385,8 +385,8 @@ def test_internal_afg_gen_waveform( offset = scope.query("AFG:OFFSET?") assert not float(offset) assert "AFG:RAMP:SYMMETRY" not in stdout - function = scope.query("AFG:FUNCTION?") - assert function == "SINE" + function_name = scope.query("AFG:FUNCTION?") + assert function_name == "SINE" impedance = scope.query("AFG:OUTPUT:LOAD:IMPEDANCE?") assert impedance == "FIFTY" amplitude = scope.query("AFG:AMPLITUDE?") @@ -420,7 +420,7 @@ def test_internal_afg_gen_waveform( assert float(ramp_symmetry) == 50 assert "AFG:BURST:TRIGGER" in stdout assert scope.expect_esr(0)[0] - assert scope.get_eventlog_status() == (True, '0,"No events to report - queue empty"') + assert scope.get_errors() == (0, ('0,"No events to report - queue empty"',)) with pytest.raises( TypeError, diff --git a/tests/test_psu.py b/tests/test_psu.py index 57bf7a87..4e2dcd1f 100644 --- a/tests/test_psu.py +++ b/tests/test_psu.py @@ -28,4 +28,4 @@ def test_psu(device_manager: DeviceManager) -> None: assert psu.total_channels == 3 assert psu.expect_esr(0)[0] - assert psu.get_eventlog_status() == (True, '0,"No error"') + assert psu.get_errors() == (0, ('0,"No error"',)) diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 936c577f..301a5899 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -2,6 +2,7 @@ """Unit tests for rest_api_control.py.""" from types import MappingProxyType +from typing import Tuple from unittest import mock import pytest @@ -40,9 +41,9 @@ def _close(self) -> None: def _cleanup(self) -> None: """Define abstract method _cleanup.""" - def _has_errors(self) -> bool: - """Define abstract method _has_errors.""" - return False + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Define abstract method _get_errors.""" + return 0, () def _open(self) -> bool: """Define abstract method _open.""" diff --git a/tests/test_scopes.py b/tests/test_scopes.py index 4008edb6..4f4dcd01 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -218,7 +218,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 # Assert no errors after completing testing scope.expect_esr(0, '0,"No events to report - queue empty"') - assert scope.get_eventlog_status() == (True, '0,"No events to report - queue empty"') + assert scope.get_errors() == (0, ('0,"No events to report - queue empty"',)) # MSO2 overridden channel names implementation mso2_scope: MSO2 = device_manager.add_scope("MSO22-HOSTNAME", connection_type="TCPIP") @@ -491,7 +491,7 @@ def test_tekscopepc(device_manager: DeviceManager) -> None: def test_tekscope2k(device_manager: DeviceManager, tmp_path: pathlib.Path) -> None: - """Test the tekscope2k implementation. + """Test the TekScope2k implementation. Args: device_manager: The DeviceManager object. diff --git a/tests/test_smu.py b/tests/test_smu.py index 533a1922..5961de96 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -288,7 +288,7 @@ def test_smu2401(device_manager: DeviceManager) -> None: device_manager: The DeviceManager object. """ smu: SMU2401 = device_manager.add_smu("SMU2401-HOSTNAME") - assert smu.get_eventlog_status() == (True, '0,"No error"') + assert smu.get_errors() == (0, ('0,"No error"',)) assert smu.set_and_check("OUTPUT1:STATE", 1) == "1" assert smu.all_channel_names_list == ("OUTPUT1",) @@ -300,6 +300,6 @@ def test_smu6430(device_manager: DeviceManager) -> None: device_manager: The DeviceManager object. """ smu: SMU6430 = device_manager.add_smu("SMU6430-HOSTNAME") - assert smu.get_eventlog_status() == (True, '0,"No error"') + assert smu.get_errors() == (0, ('0,"No error"',)) assert smu.set_and_check("OUTPUT1:STATE", 1) == "1" assert smu.all_channel_names_list == ("SOURCE1",) diff --git a/tests/test_ss.py b/tests/test_ss.py index 2437992b..1f717a07 100644 --- a/tests/test_ss.py +++ b/tests/test_ss.py @@ -21,7 +21,7 @@ def test_ss(device_manager: DeviceManager) -> None: switch: SS3706A = device_manager.add_ss("ss3706a-hostname", alias="ss-device") assert id(device_manager.get_ss(number_or_alias="ss-device")) == id(switch) assert id(device_manager.get_ss(number_or_alias=switch.device_number)) == id(switch) - assert switch.get_eventlog_status() == (True, '0,"No events to report - queue empty"') + assert switch.get_errors() == (0, ()) switch.expect_esr(0) diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 6b385aeb..92a52a2b 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -17,6 +17,9 @@ class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): _DEVICE_TYPE = "CustomDeviceType" + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + return 0, () + @cached_property def total_channels(self) -> int: # noqa: D102 # pylint: disable=no-self-use return 4 From b5ec0bf67af08a00bab6d39f19c3fca941886e05 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 11:43:50 -0700 Subject: [PATCH 17/52] refactor: Removed the device_type_classes.py file since it was no longer needed due to the added ability to go upwards and downwards when creating an automatic class diagram. Also added back the namespace to the advanced architecture generated class diagrams to make them look nicer. --- CHANGELOG.md | 2 +- docs/advanced/architecture.md | 4 +- docs/advanced/signal_generators.md | 56 ++++--------------- docs/contributing/add_new_device_type.md | 11 ++-- docs/generate_api_pages.py | 2 +- docs/known_words.txt | 1 - docs/macros.py | 25 +++++++-- src/tm_devices/drivers/afgs/afg3kc.py | 6 +- src/tm_devices/drivers/device_type_classes.py | 25 --------- tests/test_tm_devices.py | 3 +- 10 files changed, 44 insertions(+), 91 deletions(-) delete mode 100644 src/tm_devices/drivers/device_type_classes.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d5ca34c..9bd5d5a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,7 @@ However, please read through all changes to be aware of what may potentially imp - BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPControl` class. - BREAKING CHANGE: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. - BREAKING CHANGE: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. -- BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant. +- BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant and the `device_type_classes.py` module. - BREAKING CHANGE: Removed many hacky implementations of `total_channels` and `all_channel_names_list` properties from drivers that don't need them anymore. - BREAKING CHANGE: Removed the `verify_values()`, `raise_failure()`, and `raise_error()` methods from all device drivers. - These methods have been converted to helper functions and can be imported from the `tm_devices.helpers` subpackage now. diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index cee9a143..2a681ebb 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -54,7 +54,7 @@ between different models of the same device type. ### Block Diagram -{{ auto_class_diagram('tm_devices.drivers.device_type_classes', full=True) }} +{{ auto_class_diagram('tm_devices.drivers.device.Device', full=False, namespace='tm_devices.drivers', tree_direction='down') }} --- @@ -64,4 +64,4 @@ This package supports many devices, zoom in to see them all! ### Block Diagram -{{ auto_class_diagram('tm_devices.drivers', full=True) }} +{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers') }} diff --git a/docs/advanced/signal_generators.md b/docs/advanced/signal_generators.md index 5d5a682a..3b6840c3 100644 --- a/docs/advanced/signal_generators.md +++ b/docs/advanced/signal_generators.md @@ -151,21 +151,7 @@ This includes: ### TekScope Internal Arbitrary Function Generators -```mermaid -classDiagram - direction LR - - Tekscope <|-- MSO2 - Tekscope <|-- MSO4 - MSO4 <|-- MSO4B - Tekscope <|-- MSO5 - MSO5 <|-- MSO5B - MSO5 <|-- MSO5LP - Tekscope <|-- MSO6 - MSO6 <|-- MSO6B - MSO6 <|-- LPD6 - -``` +{{ auto_class_diagram('tm_devices.drivers.scopes.tekscope.tekscope.TekScope', full=True, namespace='tm_devices.drivers.scopes.tekscope', tree_direction='down') }} The TekScope series instruments are signal generators focused on waveform generation and operate on the Windows operating system. They accept communication through [USB](default:USB) and [TCPIP](default:TCPIP) interfaces. @@ -204,13 +190,13 @@ Setting up bursts of an [IAFG](default:IAFG) involves setting it to burst mode a The amplitude and frequency range for the [IAFG](default:IAFG) vary based on the desired function. These ranges are the same for each of the classes listed: -[`MSO2`][tm_devices.drivers.scopes.tekscope.mso2.MSO2] -[`MSO4`][tm_devices.drivers.scopes.tekscope.mso4.MSO4] -[`MSO4B`][tm_devices.drivers.scopes.tekscope.mso4b.MSO4B] -[`MSO5`][tm_devices.drivers.scopes.tekscope.mso5.MSO5] -[`MSO5LP`][tm_devices.drivers.scopes.tekscope.mso5lp.MSO5LP] -[`MSO6`][tm_devices.drivers.scopes.tekscope.mso6.MSO6] -[`MSO6B`][tm_devices.drivers.scopes.tekscope.mso6b.MSO6B] +[`MSO2`][tm_devices.drivers.scopes.tekscope.mso2.MSO2], +[`MSO4`][tm_devices.drivers.scopes.tekscope.mso4.MSO4], +[`MSO4B`][tm_devices.drivers.scopes.tekscope.mso4b.MSO4B], +[`MSO5`][tm_devices.drivers.scopes.tekscope.mso5.MSO5], +[`MSO5LP`][tm_devices.drivers.scopes.tekscope.mso5lp.MSO5LP], +[`MSO6`][tm_devices.drivers.scopes.tekscope.mso6.MSO6], +[`MSO6B`][tm_devices.drivers.scopes.tekscope.mso6b.MSO6B], and [`LPD6`][tm_devices.drivers.scopes.tekscope.lpd6.LPD6] Sample rates are 250.0MS/s for `ARBITRARY` waveforms. @@ -238,16 +224,7 @@ The constraints for the [`MSO5B`][tm_devices.drivers.scopes.tekscope.mso5b.MSO5B ### Arbitrary Function Generators -```mermaid -classDiagram - direction LR - - AFG <|-- AFG3K - AFG3K <|-- AFG3KB - AFG3K <|-- AFG3KC - AFG <|-- AFG31K - -``` +{{ auto_class_diagram('tm_devices.drivers.afgs.afg.AFG', full=True, namespace='tm_devices.drivers.afgs', tree_direction='down') }} [AFGs](default:AFG) handle [function generation](#tekscope-internal-arbitrary-function-generators) identically to [IAFGs](default:IAFG) except for the order in which the parameters are set. @@ -362,20 +339,7 @@ _AFG31K Constraints_ ### Arbitrary Waveform Generators -```mermaid -classDiagram - direction LR - - AWG <|-- AWG5K - AWG5K <|-- AWG5KB - AWG5KB <|-- AWG5KC - AWG <|-- AWG7K - AWG7K <|-- AWG7KB - AWG7KB <|-- AWG7KC - AWG <|-- AWG5200 - AWG <|-- AWG70KA - AWG70KA <|-- AWG70KB -``` +{{ auto_class_diagram('tm_devices.drivers.awgs.awg.AWG', full=True, namespace='tm_devices.drivers.awgs', tree_direction='down') }} All functions that are shared by each [AWG](default:AWG) exist within the [`AWG`][tm_devices.drivers.awgs.awg.AWG] class. diff --git a/docs/contributing/add_new_device_type.md b/docs/contributing/add_new_device_type.md index f2305fb9..217c33f5 100644 --- a/docs/contributing/add_new_device_type.md +++ b/docs/contributing/add_new_device_type.md @@ -9,12 +9,12 @@ This guide will walk through the steps needed to add a new device type. 1. Create an abstract device type class within the `drivers/` subpackage 1. Create a new subpackage for the new device type alongside the existing device type subpackages at the appropriate spot in the file tree (e.g. - `pi/power_supplies`, `api/rest_api/margin_testers`, `pi/scopes`) + `power_supplies/`, `margin_testers/`, `scopes/`) 2. Create a new Python file and class with appropriate inheritance for the new device type (e.g. `power_supply.py`, `margin_tester.py`, `scope.py`) 3. Add an `__init__.py` file within the new device type subpackage - containing the new device type class and any other classes defined at - that level (See other `__init__.py` files for examples) + containing a short docstring explaining what is in the new subpackage. + (See other `__init__.py` files for examples) 2. Update the [`DeviceTypes`][tm_devices.helpers.DeviceTypes] enum exposed in `tm_devices/helpers/__init__.py` 3. Add the DeviceType enum value to the newly created device driver class as a @@ -34,9 +34,8 @@ This guide will walk through the steps needed to add a new device type. 7. Create a new `get_()` method with the appropriate signature inside `device_manager.py` (use other methods as examples) 8. Add a new folder in `tests/sim_devices/` for unit tests -9. Add the new device type class to the `__all__` variable inside of `tm_devices/drivers/device_type_classes.py`. -10. Update the +9. Update the [advanced architecture](../advanced/architecture.md#main-device-types) page to include the new device type -11. Update anything new that needs to be in +10. Update anything new that needs to be in [configuration.md](../configuration.md#legend-for-device-configuration) diff --git a/docs/generate_api_pages.py b/docs/generate_api_pages.py index bbada336..4d197a3c 100644 --- a/docs/generate_api_pages.py +++ b/docs/generate_api_pages.py @@ -43,7 +43,7 @@ def sort_paths(path_object: Path) -> Tuple[int, str]: parts = parts[:-1] doc_path = doc_path.with_name("index.md") full_doc_path = full_doc_path.with_name("index.md") - elif parts[-1] == "__main__": + elif parts[-1] == "__main__" or parts[-1].startswith("_"): continue nav[parts] = doc_path.as_posix() diff --git a/docs/known_words.txt b/docs/known_words.txt index e6aed8e1..e89e3b3e 100644 --- a/docs/known_words.txt +++ b/docs/known_words.txt @@ -24,7 +24,6 @@ cov csv deps dev -device_type_classes disable_command_verification dll docformatter diff --git a/docs/macros.py b/docs/macros.py index 5a5aa4b4..4bec6aae 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -120,11 +120,13 @@ def get_classes(*cls_or_modules: str, strict: bool = False) -> Generator[Any, No #################################################################################################### # Macro functions #################################################################################################### -def class_diagram( +def class_diagram( # noqa: C901 *cls_or_modules: str, full: bool = False, strict: bool = False, namespace: Optional[str] = None, + tree_direction: str = "up", + chart_direction: str = "LR", ) -> str: """Create a mermaid classDiagram for the provided classes or modules. @@ -134,6 +136,11 @@ def class_diagram( strict: A boolean indicating to only consider classes that are strictly defined in that module and not imported from somewhere else. namespace: Limits the diagram to only include classes defined in this namespace. + tree_direction: A string indicating the direction of traversal in the class hierarchy, + either "up" or "down". + chart_direction: A string indicating the direction of the chart, either + "LR" (left to right), "RL" (right to left), + "TB" (top to bottom), or "BT" (bottom to top). Returns: The mermaid code block with complete syntax for the classDiagram. @@ -143,7 +150,7 @@ def class_diagram( """ inheritances: Set[Tuple[str, str]] = set() - def get_tree(cls: Any) -> None: + def get_tree_upwards(cls: Any) -> None: for base in cls.__bases__: if base.__name__ == "object": continue @@ -151,7 +158,17 @@ def get_tree(cls: Any) -> None: continue inheritances.add((base.__name__, cls.__name__)) if full: - get_tree(base) + get_tree_upwards(base) + + def get_tree_downwards(cls: Any) -> None: + for subclass in cls.__subclasses__(): + if namespace and not subclass.__module__.startswith(namespace): + continue + inheritances.add((cls.__name__, subclass.__name__)) + if full: + get_tree_downwards(subclass) + + get_tree = get_tree_upwards if tree_direction == "up" else get_tree_downwards for cls_item in get_classes(*cls_or_modules, strict=strict): get_tree(cls_item) @@ -161,7 +178,7 @@ def get_tree(cls: Any) -> None: raise ValueError(msg) return ( - "```mermaid\nclassDiagram\n" + f"```mermaid\nclassDiagram\n direction {chart_direction}\n" + "\n".join(f" {a} <|-- {b}" for a, b in sorted(inheritances)) + "\n```" ) diff --git a/src/tm_devices/drivers/afgs/afg3kc.py b/src/tm_devices/drivers/afgs/afg3kc.py index 3c69ca2a..992aff63 100644 --- a/src/tm_devices/drivers/afgs/afg3kc.py +++ b/src/tm_devices/drivers/afgs/afg3kc.py @@ -5,13 +5,13 @@ import pyvisa as visa from tm_devices.commands import AFG3KCMixin -from tm_devices.drivers.afgs.afg3k import ( - AFG3K, +from tm_devices.drivers.afgs.afg3kb import ( + AFG3KB, ) from tm_devices.helpers import DeviceConfigEntry -class AFG3KC(AFG3KCMixin, AFG3K): # pyright: ignore[reportIncompatibleMethodOverride] +class AFG3KC(AFG3KCMixin, AFG3KB): # pyright: ignore[reportIncompatibleMethodOverride] """AFG3KC device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/device_type_classes.py b/src/tm_devices/drivers/device_type_classes.py deleted file mode 100644 index a3742502..00000000 --- a/src/tm_devices/drivers/device_type_classes.py +++ /dev/null @@ -1,25 +0,0 @@ -"""A module with all the main device type classes.""" - -from tm_devices.drivers.afgs.afg import AFG -from tm_devices.drivers.awgs.awg import AWG -from tm_devices.drivers.data_acquisition_systems.data_acquisition_system import ( - DataAcquisitionSystem, -) -from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.drivers.margin_testers.margin_tester import MarginTester -from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.drivers.scopes.scope import Scope -from tm_devices.drivers.source_measure_units.source_measure_unit import SourceMeasureUnit -from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch - -__all__ = [ - "AFG", - "AWG", - "DataAcquisitionSystem", - "DigitalMultimeter", - "PowerSupplyUnit", - "SourceMeasureUnit", - "Scope", - "SystemsSwitch", - "MarginTester", -] diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index 2c3f4270..fdb510b4 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -19,7 +19,6 @@ import tm_devices import tm_devices.device_manager import tm_devices.drivers -import tm_devices.drivers.device_type_classes import tm_devices.helpers @@ -77,7 +76,7 @@ def is_defined_function(function: Any) -> bool: def test_device_types() -> None: """Verify that the DEVICE_TYPES is kept up to date.""" - abstract_device_list = tm_devices.drivers.device_type_classes.__all__ + abstract_device_list = sorted({x.__name__ for x in Device.__subclasses__()}) supported_device_types = sorted( [ x From 35129c9d88edb9020f82054b1b6dce41474a2b29 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 16:02:21 -0700 Subject: [PATCH 18/52] docs: Added more detail to the architecture document page. Added highlighting of the main device driver diagram. --- CHANGELOG.md | 1 + docs/advanced/architecture.md | 78 +++++++++++++++++------- docs/basic_usage.md | 2 +- docs/contributing/add_driver_methods.md | 2 +- docs/contributing/add_new_device_type.md | 2 +- docs/known_words.txt | 2 + docs/macros.py | 34 +++++++++-- mkdocs.yml | 3 +- 8 files changed, 93 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bd5d5a2..ac15b379 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Things to be included in the next release go here. - Testing/linting on Python 3.13. - Added the `get_errors()` method to the `Device` class to enable easy access to the current error code and messages on any device. +- Added more details to the Architectural Overview page of the documentation as well as highlighting to the device driver diagram on the page. ### Changed diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index 2a681ebb..2c240efc 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -17,8 +17,16 @@ information about the device, and methods, which provide various functionality. The [`DeviceManager`][tm_devices.DeviceManager] uses a configuration parser ([`DMConfigParser`][tm_devices.components.DMConfigParser]) to read in -connection information from an optional config file as well as to store -connection information that is provided directly via python code. +connection information from an optional [config file](../configuration.md#config-file) or +[environment variable](../configuration.md#environment-variable) as well as to store +connection information that is provided directly via [python code](../configuration.md#python-code). +This information contains the device type (e.g., SCOPE, AFG, SMU) as well as the address +(e.g., hostname, IP address, or model and serial number for USBTMC). The config parser also reads in +optional configuration settings that apply globally, such as turning on verbose VISA logging. The +[`DeviceManager`][tm_devices.DeviceManager] then connects to all the devices that the config parser +has listed and provides access to the [Python driver](#device-drivers) for each device. The +Python device driver is the class responsible for actual communication with the physical +(or virtual) device. ### Block Diagram @@ -32,25 +40,19 @@ classDiagram --- -## Main device types +## Device Types -There are currently 9 different supported device types: **Scopes**, **Arbitrary -Waveform Generators (AWGs)**, **Arbitrary Function Generators (AFGs)**, **Source -Measure Units (SMUs)**, **Power Supplies (PSUs)**, **Data Acquisition Systems -(DAQs)**, **Digital Multimeters (DMMs)**, **Systems Switches (SSs)**, and -**Margin Testers**. +These are the currently supported device types: -The driver class structure uses inheritance, which means that common attributes -and methods can be defined in higher-level classes (sometimes called parent -classes) and inherited by subclasses (sometimes called child classes), to reduce -the lines of code needed to create new device drivers. - -Every single device driver within a particular device family -(referred to as the family base class) is guaranteed to have -the same class signature (attribute and method names). Often times specific -device drivers will need to implement the functionality for specific methods or -even overwrite inherited functionality due to the differences that can occur -between different models of the same device type. +1. Arbitrary Function Generators (AFGs) +2. Arbitrary Waveform Generators (AWGs) +3. Data Acquisition Systems (DAQs) +4. Digital Multimeters (DMMs) +5. Margin Testers +6. Power Supplies (PSUs) +7. Scopes (Oscilloscopes) +8. Source Measure Units (SMUs) +9. Systems Switches ### Block Diagram @@ -58,10 +60,42 @@ between different models of the same device type. --- -## All device drivers +## Device Drivers -This package supports many devices, zoom in to see them all! +### Object-Oriented Design Principles + +The drivers are the biggest part of this package; each unique series of instrument gets a uniquely +named Python driver class (see [`tm_devices.drivers`][tm_devices.drivers] for the list of +available driver classes). These classes are implemented using object-oriented programming +principles and make extensive use of inheritance. This allows common attributes and methods to be +defined in higher-level, abstract classes that are then inherited by the individual driver classes. + +Mixin classes are also used to provide shared implementations and abstract method signatures for the +drivers. This allows multiple device types to all inherit from the same abstract class (mixin class) +without sharing the exact same inheritance tree (since they might not share much else). The mixin +classes define attributes and methods, some of which the driver will overwrite or implement for itself. + +### Family Base Classes + +One other technique for enabling code reuse in the drivers is by using a “family base class”. Each +family base class is an abstract class that defines the signature for all child classes that +inherit from it. Occasionally a child class will need to overwrite an implementation due to the +differences that can occur between different models of the same device type, but the class signature +will not change. This means that all drivers that inherit from a common family base class are +guaranteed to have the same class signature (attributes, methods, etc.), and this rule is enforced by unit tests. + +### Object-Oriented Design Benefits + +These object-oriented principles result in individual driver classes that are quite simple to +read, as they have very few actual lines of code. Code duplication is extremely low, which makes +drivers easy to create and update. ### Block Diagram -{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers') }} +This package supports many devices, zoom in to see them all! + +!!! note + - Family Base Classes are outlined in orange red. + - Device Drivers are highlighted in light green. + +{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers', highlight_family_base_classes=True, highlight_device_drivers=True) }} diff --git a/docs/basic_usage.md b/docs/basic_usage.md index 95ffdff0..203f2a82 100644 --- a/docs/basic_usage.md +++ b/docs/basic_usage.md @@ -169,7 +169,7 @@ first instantiated. In order to do this a few things will need to be created: 1. A custom device class. Ideally this would inherit from one of the - [main device types](advanced/architecture.md#main-device-types), though a custom class + [main device types](advanced/architecture.md#device-types), though a custom class representing an unsupported device type can also be created. 2. A mapping of the parsed model series string to the Python class. diff --git a/docs/contributing/add_driver_methods.md b/docs/contributing/add_driver_methods.md index 6ed6b6c9..71a54a9b 100644 --- a/docs/contributing/add_driver_methods.md +++ b/docs/contributing/add_driver_methods.md @@ -6,7 +6,7 @@ device drivers. ## Device Type Abstraction Because of the inheritance structure of the device drivers (see the -[architecture diagrams](../advanced/architecture.md#main-device-types)), new +[architecture diagrams](../advanced/architecture.md#device-types)), new methods should be added to the highest applicable class in the tree. All methods for each family of device (TekScope, SMU26xx, PSU2200, etc.) need to be defined in that device family's abstract class, or higher up the tree, to enable accurate type diff --git a/docs/contributing/add_new_device_type.md b/docs/contributing/add_new_device_type.md index 217c33f5..71ae4faa 100644 --- a/docs/contributing/add_new_device_type.md +++ b/docs/contributing/add_new_device_type.md @@ -35,7 +35,7 @@ This guide will walk through the steps needed to add a new device type. inside `device_manager.py` (use other methods as examples) 8. Add a new folder in `tests/sim_devices/` for unit tests 9. Update the - [advanced architecture](../advanced/architecture.md#main-device-types) page + [advanced architecture](../advanced/architecture.md#device-types) page to include the new device type 10. Update anything new that needs to be in [configuration.md](../configuration.md#legend-for-device-configuration) diff --git a/docs/known_words.txt b/docs/known_words.txt index e89e3b3e..3d7b3889 100644 --- a/docs/known_words.txt +++ b/docs/known_words.txt @@ -47,6 +47,7 @@ io js keithley licensor +lightgreen linter linters linting @@ -60,6 +61,7 @@ mv namespace noqa opensource +orangered parallelization pi pre diff --git a/docs/macros.py b/docs/macros.py index 4bec6aae..7bd43a8a 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -1,5 +1,6 @@ """Macros for the documentation.""" +import abc import inspect import os import pathlib @@ -120,13 +121,15 @@ def get_classes(*cls_or_modules: str, strict: bool = False) -> Generator[Any, No #################################################################################################### # Macro functions #################################################################################################### -def class_diagram( # noqa: C901 +def class_diagram( # noqa: C901 # pylint: disable=too-many-locals *cls_or_modules: str, full: bool = False, strict: bool = False, namespace: Optional[str] = None, tree_direction: str = "up", chart_direction: str = "LR", + highlight_family_base_classes: bool = False, + highlight_device_drivers: bool = False, ) -> str: """Create a mermaid classDiagram for the provided classes or modules. @@ -141,6 +144,8 @@ def class_diagram( # noqa: C901 chart_direction: A string indicating the direction of the chart, either "LR" (left to right), "RL" (right to left), "TB" (top to bottom), or "BT" (bottom to top). + highlight_family_base_classes: Indicate to highlight the family base classes in cyan. + highlight_device_drivers: Indicate to highlight the device drivers in lightgreen. Returns: The mermaid code block with complete syntax for the classDiagram. @@ -149,8 +154,15 @@ def class_diagram( # noqa: C901 ValueError: If no classDiagram can be created. """ inheritances: Set[Tuple[str, str]] = set() + family_base_classes: Set[str] = set() + device_drivers: Set[str] = set() def get_tree_upwards(cls: Any) -> None: + if getattr(cls, "_product_family_base_class", None) == cls: + family_base_classes.add(cls.__name__) + if abc.ABC not in cls.__bases__: + device_drivers.add(cls.__name__) + for base in cls.__bases__: if base.__name__ == "object": continue @@ -161,6 +173,11 @@ def get_tree_upwards(cls: Any) -> None: get_tree_upwards(base) def get_tree_downwards(cls: Any) -> None: + if getattr(cls, "_product_family_base_class", None) == cls: + family_base_classes.add(cls.__name__) + if abc.ABC not in cls.__bases__: + device_drivers.add(cls.__name__) + for subclass in cls.__subclasses__(): if namespace and not subclass.__module__.startswith(namespace): continue @@ -177,11 +194,18 @@ def get_tree_downwards(cls: Any) -> None: msg = "No class hierarchy can be created." raise ValueError(msg) - return ( - f"```mermaid\nclassDiagram\n direction {chart_direction}\n" - + "\n".join(f" {a} <|-- {b}" for a, b in sorted(inheritances)) - + "\n```" + mermaid_code_block = f"```mermaid\nclassDiagram\n direction {chart_direction}\n" + "\n".join( + f" {a} <|-- {b}" for a, b in sorted(inheritances) ) + if highlight_family_base_classes: + for family_base_class in sorted(family_base_classes): + mermaid_code_block += f"\n style {family_base_class} stroke:orangered,stroke-width:4px" + if highlight_device_drivers: + for device_driver in sorted(device_drivers): + mermaid_code_block += f"\n style {device_driver} fill:lightgreen" + mermaid_code_block += "\n```" + + return mermaid_code_block def create_repo_link(link_text: str, base_repo_url: str, relative_repo_path: str) -> str: diff --git a/mkdocs.yml b/mkdocs.yml index 29a80d65..40d49f35 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -90,7 +90,8 @@ plugins: use_default: true inline_refs: none markdown_links: true - - mermaid2 + - mermaid2: + version: 11.3.0 - mkdocstrings: # additional customization takes place in docs/generate_api_pages.py # noinspection YAMLIncompatibleTypes enabled: !ENV [TM_DEVICES_API_GENERATION, true] From 6445a082fc78429c2dcd8fecabe3b03a7ed26f13 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 16:08:52 -0700 Subject: [PATCH 19/52] test: Fix test for DeviceTypes enum that verifies all device types are represented --- tests/test_tm_devices.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index fdb510b4..06ecc3c1 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -75,8 +75,14 @@ def is_defined_function(function: Any) -> bool: def test_device_types() -> None: - """Verify that the DEVICE_TYPES is kept up to date.""" - abstract_device_list = sorted({x.__name__ for x in Device.__subclasses__()}) + """Verify that the DeviceTypes is kept up to date.""" + abstract_device_list = sorted( + { + x.__name__ + for x in Device.__subclasses__() + if not x.__name__.startswith(("Custom", "UnitTest")) + } + ) supported_device_types = sorted( [ x @@ -87,7 +93,7 @@ def test_device_types() -> None: if len(abstract_device_list) != len(supported_device_types): msg = ( f"Not all abstract device types are represented in " - f"abstract_device_list={sorted(abstract_device_list)}\n" + f"abstract_device_list={abstract_device_list}\n" f"Supported device type abbreviations are {supported_device_types}, " f"please update abstract_device_list in this test with any missing abstract classes." ) From c5d90876579a92106e26be5916855a751c6c9786 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 16:12:07 -0700 Subject: [PATCH 20/52] ci: Use python -m poetry when installing the package dependencies during tox runs to avoid issues when poetry needs to be updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0c46922d..7dbddd28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -443,7 +443,7 @@ setenv = # Skip pre-commit checks that are not needed (yamlfix should be removed from this list once Python 3.8 support is dropped) SKIP = file-contents-sorter,yamlfix commands_pre = - poetry install --no-root --without=main + python -m poetry install --no-root --without=main commands = !tests: poetry build --output=dist_{envname} !tests: twine check --strict dist_{envname}/* From 0df48db46cd001eb342dbf72e44260bb13e7b57b Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 17:40:40 -0700 Subject: [PATCH 21/52] refactor: Checkpoint commit during the refactor of the expect_esr() method --- ..._control.py => abstract_device_control.py} | 5 ++++- .../device_control/pi_control.py | 19 ++++++++----------- .../device_control/rest_api_control.py | 6 ++---- .../device_control/tsp_control.py | 15 +++++++++++---- .../class_extension_mixin.py | 1 + src/tm_devices/drivers/device.py | 6 +++--- 6 files changed, 29 insertions(+), 23 deletions(-) rename src/tm_devices/driver_mixins/device_control/{_abstract_device_control.py => abstract_device_control.py} (78%) diff --git a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/abstract_device_control.py similarity index 78% rename from src/tm_devices/driver_mixins/device_control/_abstract_device_control.py rename to src/tm_devices/driver_mixins/device_control/abstract_device_control.py index 2df01d78..4e9ebac1 100644 --- a/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py +++ b/src/tm_devices/driver_mixins/device_control/abstract_device_control.py @@ -6,7 +6,10 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class _AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods # pyright: ignore[reportUnusedClass] +# TODO: nfelt14: Look into making this private or filtering it out of the docs +# TODO: nfelt14: Look into moving the _get_errors() abstract method to this class for +# type hinting and usage in the control classes +class AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods """Abstract class with properties and attributes shared between devices and control mixins.""" def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index eded232e..36e787c4 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -15,9 +15,7 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.driver_mixins.device_control._abstract_device_control import ( - _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] -) +from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( @@ -35,7 +33,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class PIControl(_AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. !!! important @@ -89,21 +87,20 @@ def __init__( # Abstract Methods ################################################################################################ # TODO: nfelt14: Determine if this really needs to be an abstract method here. If not, - # remove it from the example code too. + # remove it from the example code too. It could also just be made a "final" method @abstractmethod - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. + def expect_esr(self, esr: int, error_messages: Tuple[str] = ()) -> bool: + r"""Check for the expected error code and messages. Args: esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character + error_messages: Expected error buffer messages in a tuple. Returns: - Boolean indicating if the check passed or failed and a string with the results. + A boolean indicating if the check passed or failed. Raises: - AssertionError: Indicating that the device's ESR and error buffer string don't match the + AssertionError: Indicating that the device's error code and messages don't match the expected values. """ diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 08f3b377..49e5a43e 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -9,9 +9,7 @@ import requests -from tm_devices.driver_mixins.device_control._abstract_device_control import ( - _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] -) +from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl from tm_devices.helpers import ( DeviceConfigEntry, print_with_timestamp, @@ -20,7 +18,7 @@ ) -class RESTAPIControl(_AbstractDeviceControl, ABC): +class RESTAPIControl(AbstractDeviceControl, ABC): """Base REST Application Programming Interface (API) control class. !!! important diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index 14e1948d..65c20e44 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -28,6 +28,14 @@ class TSPControl(PIControl, ABC): # Magic Methods ################################################################################################ + ################################################################################################ + # Abstract Properties + ################################################################################################ + + ################################################################################################ + # Abstract Methods + ################################################################################################ + ################################################################################################ # Properties ################################################################################################ @@ -220,7 +228,6 @@ def set_and_check( # noqa: PLR0913 check = "" return check - -################################################################################################ -# Private Methods -################################################################################################ + ################################################################################################ + # Private Methods + ################################################################################################ diff --git a/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py index 7dbec6a0..54026e51 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py @@ -14,6 +14,7 @@ ) +# TODO: nfelt14: Look into making this private or filtering it out of the docs class ExtendableMixin: """A mixin class which adds methods for expanding a class.""" diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 1934e2e9..ddca293a 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -17,8 +17,8 @@ from packaging.version import Version -from tm_devices.driver_mixins.device_control._abstract_device_control import ( - _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +from tm_devices.driver_mixins.device_control.abstract_device_control import ( + AbstractDeviceControl, ) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import ( @@ -45,7 +45,7 @@ def family_base_class(cls: _T) -> _T: # pylint: disable=too-many-instance-attributes,too-many-public-methods -class Device(_AbstractDeviceControl, ExtendableMixin, ABC): +class Device(AbstractDeviceControl, ExtendableMixin, ABC): """Base device driver that all devices inherit from.""" _DEVICE_TYPE: str # should be implemented by device type base classes From 6564f126b8256145154f0198d0789a7b18a9e261 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 15 Oct 2024 17:47:11 -0700 Subject: [PATCH 22/52] refactor: Checkpoint commit during the refactor of the expect_esr() method --- src/tm_devices/driver_mixins/device_control/pi_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index 36e787c4..322bc220 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -89,7 +89,7 @@ def __init__( # TODO: nfelt14: Determine if this really needs to be an abstract method here. If not, # remove it from the example code too. It could also just be made a "final" method @abstractmethod - def expect_esr(self, esr: int, error_messages: Tuple[str] = ()) -> bool: + def expect_esr(self, esr: int, error_messages: Tuple[str, ...] = ()) -> bool: r"""Check for the expected error code and messages. Args: From 3f41332e2fdbaadf0933bea7c3f845bbf032ed3f Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 16 Oct 2024 11:12:08 -0700 Subject: [PATCH 23/52] refactor: Converted the expect_esr() method into a final method that uses the outputs of the _get_errors() abstract method to compare the expected error code and messages with the actual error code and messages. Also added regex comparison to the verification functions. --- CHANGELOG.md | 2 + examples/miscellaneous/adding_devices.py | 15 ++-- .../adding_devices_with_env_var.py | 7 +- examples/miscellaneous/alias_usage.py | 5 +- .../custom_device_driver_support.py | 22 ++--- .../miscellaneous/pyvisa_resource_access.py | 3 +- examples/miscellaneous/register_dm_atexit.py | 3 +- .../visa_connection_selectivity.py | 3 +- examples/scopes/tekscope/basic_curve_query.py | 5 +- .../base_source_channel.py | 3 +- .../device_control/abstract_device_control.py | 15 +++- ...bstract_device_visa_write_query_control.py | 90 +++++++++++++++++++ .../device_control/pi_control.py | 31 ++----- .../device_control/rest_api_control.py | 2 +- .../device_control/tsp_control.py | 2 +- .../common_pi_system_error_check_mixin.py | 80 +++-------------- .../common_tsp_error_check_mixin.py | 70 +++------------ ...mixin.py => tektronix_pi_afg_awg_mixin.py} | 11 ++- .../tektronix_pi_scope_mixin.py | 42 +++++++++ src/tm_devices/drivers/afgs/afg.py | 8 +- src/tm_devices/drivers/awgs/awg.py | 43 +++++---- src/tm_devices/drivers/awgs/awg70ka.py | 2 +- .../data_acquisition_systems/daq6510.py | 6 +- src/tm_devices/drivers/device.py | 12 --- .../drivers/digital_multimeters/dmm6500.py | 6 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 6 +- .../drivers/power_supplies/psu22xx/psu2200.py | 3 +- src/tm_devices/drivers/scopes/scope.py | 81 +---------------- .../drivers/scopes/tekscope/tekscope.py | 6 ++ .../drivers/scopes/tekscope_2k/tekscope_2k.py | 6 +- .../scopes/tekscope_3k_4k/tekscope_3k_4k.py | 6 +- .../tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 6 +- src/tm_devices/drivers/scopes/tso/tsovu.py | 6 +- .../smu24xx/smu24xx_interactive.py | 6 +- .../smu24xx/smu24xx_standard.py | 3 +- .../source_measure_units/smu26xx/smu26xx.py | 3 +- .../source_measure_units/smu60xx/smu6xxx.py | 3 +- .../drivers/systems_switches/ss3706a.py | 3 +- .../helpers/verification_functions.py | 60 ++++++++----- tests/test_afgs.py | 11 +-- tests/test_awgs.py | 4 +- tests/test_devices_legacy_tsp_ieee_cmds.py | 6 +- tests/test_extension_mixin.py | 10 ++- tests/test_generate_waveform.py | 12 +-- tests/test_pi_device.py | 6 +- tests/test_psu.py | 2 +- tests/test_scopes.py | 27 +++--- tests/test_smu.py | 8 +- tests/test_ss.py | 2 +- tests/test_unsupported_device_type.py | 5 +- tests/test_verification_functions.py | 50 +++++++++++ 51 files changed, 452 insertions(+), 377 deletions(-) create mode 100644 src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py rename src/tm_devices/driver_mixins/shared_implementations/{tek_afg_awg_mixin.py => tektronix_pi_afg_awg_mixin.py} (87%) create mode 100644 src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py diff --git a/CHANGELOG.md b/CHANGELOG.md index ac15b379..4d61097e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Things to be included in the next release go here. - Testing/linting on Python 3.13. - Added the `get_errors()` method to the `Device` class to enable easy access to the current error code and messages on any device. - Added more details to the Architectural Overview page of the documentation as well as highlighting to the device driver diagram on the page. +- Added regex matching to the `verify_values()` helper function to allow for more flexible value verification. ### Changed @@ -38,6 +39,7 @@ However, please read through all changes to be aware of what may potentially imp - BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. - BREAKING CHANGE: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. +- BREAKING CHANGE: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. ### Removed diff --git a/examples/miscellaneous/adding_devices.py b/examples/miscellaneous/adding_devices.py index 0d4b3001..25cf7bf8 100644 --- a/examples/miscellaneous/adding_devices.py +++ b/examples/miscellaneous/adding_devices.py @@ -1,6 +1,7 @@ """An example of adding devices via Python code.""" from tm_devices import DeviceManager +from tm_devices.drivers import AWG5K, MSO5, MSO6B, PSU2200, SMU2470, TMT4 from tm_devices.helpers import ( DMConfigOptions, PYVISA_PY_BACKEND, @@ -30,25 +31,25 @@ device_manager.teardown_cleanup_enabled = True # Note: USB and GPIB connections are not supported with PyVISA-py backend - psu = device_manager.add_psu("MODEL-SERIAL", connection_type="USB") + psu: PSU2200 = device_manager.add_psu("MODEL-SERIAL", connection_type="USB") # Use the PyVISA-py backend device_manager.visa_library = PYVISA_PY_BACKEND # Add a device using a hostname - scope = device_manager.add_scope("MSO56-100083") + scope: MSO5 = device_manager.add_scope("MSO56-100083") print(scope) # Add a device using an IP address and optional alias - awg = device_manager.add_awg("192.168.0.1", alias="AWG5k") + awg: AWG5K = device_manager.add_awg("192.168.0.1", alias="AWG5k") print(awg) # Add a device using a VISA resource address string, # it auto-detects the connection type is TCPIP. - scope_2 = device_manager.add_scope("TCPIP0::192.168.0.3::inst0::INSTR") + scope_2: MSO6B = device_manager.add_scope("TCPIP0::192.168.0.3::inst0::INSTR") # Add a device using an IP address and optional alias and socket port - mt = device_manager.add_mt("192.168.0.2", "TMT4", alias="margin tester", port=5000) + mt: TMT4 = device_manager.add_mt("192.168.0.2", "TMT4", alias="margin tester", port=5000) # Add a device using a serial connection, define a SerialConfig for serial settings serial_settings = SerialConfig( @@ -59,7 +60,9 @@ stop_bits=SerialConfig.StopBits.one, end_input=SerialConfig.Termination.none, ) - smu = device_manager.add_smu("1", connection_type="SERIAL", serial_config=serial_settings) + smu: SMU2470 = device_manager.add_smu( + "1", connection_type="SERIAL", serial_config=serial_settings + ) # Remove devices device_manager.remove_all_devices() diff --git a/examples/miscellaneous/adding_devices_with_env_var.py b/examples/miscellaneous/adding_devices_with_env_var.py index 791ce215..362469d3 100644 --- a/examples/miscellaneous/adding_devices_with_env_var.py +++ b/examples/miscellaneous/adding_devices_with_env_var.py @@ -7,6 +7,7 @@ import os from tm_devices import DeviceManager +from tm_devices.drivers import AFG31K, MSO2, SMU2601B # Indicate to use the PyVISA-py backend rather than any installed VISA backends. os.environ["TM_OPTIONS"] = "STANDALONE" @@ -21,7 +22,7 @@ with DeviceManager(verbose=True) as dm: # Scope - scope = dm.get_scope(1) + scope: MSO2 = dm.get_scope(1) print(scope.query("IDN?")) # Set horizontal scale and verify success @@ -29,14 +30,14 @@ scope.expect_esr(0) # AFG - afg = dm.get_afg(1) + afg: AFG31K = dm.get_afg(1) print(afg.idn_string) # Turn on AFG and verify success afg.set_and_check(":OUTPUT1:STATE", "1") # SMU - smu = dm.get_smu(1) + smu: SMU2601B = dm.get_smu(1) # Get device information print(smu.query("print(localnode.model)")) diff --git a/examples/miscellaneous/alias_usage.py b/examples/miscellaneous/alias_usage.py index 379adcf1..46868e0a 100644 --- a/examples/miscellaneous/alias_usage.py +++ b/examples/miscellaneous/alias_usage.py @@ -1,6 +1,7 @@ """An example of alias usage.""" from tm_devices import DeviceManager +from tm_devices.drivers import AWG5200, MSO5 with DeviceManager(verbose=True) as dm: # Add a scope and give an optional alias @@ -9,6 +10,6 @@ dm.add_awg("192.168.0.1", alias="JILL") # Get the scope with the BOB alias from device manager - bobs_scope = dm.get_scope("BOB") + bobs_scope: MSO5 = dm.get_scope("BOB") # Get the awg with the JILL alias from device manager - jills_awg = dm.get_awg("JILL") + jills_awg: AWG5200 = dm.get_awg("JILL") diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 06e787ea..bad2fb15 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -1,6 +1,6 @@ """An example of external device support via a custom driver.""" -from typing import Tuple, Union +from typing import Tuple from tm_devices import DeviceManager, register_additional_usbtmc_mapping from tm_devices.driver_mixins.device_control.pi_control import PIControl @@ -13,7 +13,7 @@ # Custom devices that inherit from a supported device type can be defined by inheriting from the # specific device type class. This custom class must implement all abstract methods defined by the # abstract parent classes. -class CustomScope(Scope): +class CustomScope(PIControl, Scope): """Custom scope class.""" # This is an abstract method that must be implemented by the custom device driver @@ -21,6 +21,13 @@ class CustomScope(Scope): def total_channels(self) -> int: return 4 + # This is an abstract method that must be implemented by the custom device driver. + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device.""" + # The contents of this method would need to be properly implemented, + # this is just example code. :) + return 0, () + def custom_method(self, value: str) -> None: """Add a custom method to the custom driver.""" print(f"{self.name}, {value=}") @@ -38,16 +45,11 @@ class CustomDevice(PIControl, Device): # This is an abstract method that must be implemented by the custom device driver. def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device.""" # The contents of this method would need to be properly implemented, # this is just example code. :) return 0, () - # This is an abstract method that must be implemented by the custom device driver. - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - # The contents of this method would need to be properly implemented, - # this is just example code. :) - return True, "" - def custom_device_method(self, value: int) -> None: """Add a custom method to the custom device driver.""" print(f"{self.name}, {value=}") @@ -78,8 +80,8 @@ def custom_device_method(self, value: int) -> None: # the `device_type` key must be set to "UNSUPPORTED". custom_device: CustomDevice = device_manager.add_unsupported_device("192.168.0.3") - # Custom drivers inherit all methods - custom_scope.expect_esr(0) # check for no errors + # Custom drivers inherit all methods and attributes + print(custom_scope.all_channel_names_list) # print the channel names custom_scope.cleanup() # cleanup the custom scope # Custom drivers can also use added methods custom_scope.custom_method("value") diff --git a/examples/miscellaneous/pyvisa_resource_access.py b/examples/miscellaneous/pyvisa_resource_access.py index c1aca7f6..ccffb5a2 100644 --- a/examples/miscellaneous/pyvisa_resource_access.py +++ b/examples/miscellaneous/pyvisa_resource_access.py @@ -1,10 +1,11 @@ """Directly access the PyVISA resource object.""" from tm_devices import DeviceManager +from tm_devices.drivers import MSO5B with DeviceManager() as device_manager: # Create the scope object. - scope = device_manager.add_scope("192.168.0.1") + scope: MSO5B = device_manager.add_scope("192.168.0.1") # Access the PyVISA resource object directly, # `scope.visa_resource` returns a MessageBasedResource object from PyVISA. diff --git a/examples/miscellaneous/register_dm_atexit.py b/examples/miscellaneous/register_dm_atexit.py index 098dfbbf..7207c538 100644 --- a/examples/miscellaneous/register_dm_atexit.py +++ b/examples/miscellaneous/register_dm_atexit.py @@ -3,6 +3,7 @@ import atexit from tm_devices import DeviceManager +from tm_devices.drivers import MSO6B # Create the device manager dm = DeviceManager() @@ -11,7 +12,7 @@ atexit.register(dm.close) # Add a device -scope = dm.add_scope("192.168.1.102") +scope: MSO6B = dm.add_scope("192.168.1.102") # Use the device print(scope) diff --git a/examples/miscellaneous/visa_connection_selectivity.py b/examples/miscellaneous/visa_connection_selectivity.py index 5d4ce8a3..0e303952 100644 --- a/examples/miscellaneous/visa_connection_selectivity.py +++ b/examples/miscellaneous/visa_connection_selectivity.py @@ -1,6 +1,7 @@ """An example script to choose visa from different visa resources.""" from tm_devices import DeviceManager +from tm_devices.drivers import MSO4B from tm_devices.helpers import PYVISA_PY_BACKEND, SYSTEM_DEFAULT_VISA_BACKEND with DeviceManager(verbose=True) as device_manager: @@ -15,5 +16,5 @@ # The above code can also be replaced by: device_manager.visa_library = "@py" - scope = device_manager.add_scope("127.0.0.1") + scope: MSO4B = device_manager.add_scope("127.0.0.1") print(scope) # This prints basic information of the connected scope. diff --git a/examples/scopes/tekscope/basic_curve_query.py b/examples/scopes/tekscope/basic_curve_query.py index 9cd63853..219b1a8c 100644 --- a/examples/scopes/tekscope/basic_curve_query.py +++ b/examples/scopes/tekscope/basic_curve_query.py @@ -1,12 +1,13 @@ """An example showing a basic curve query.""" from tm_devices import DeviceManager +from tm_devices.drivers import AFG3KC, MSO5 EXAMPLE_CSV_FILE = "example_curve_query.csv" with DeviceManager(verbose=True) as dm: - scope = dm.add_scope("MSO56-100083") - afg = dm.add_afg("192.168.0.1") + scope: MSO5 = dm.add_scope("MSO56-100083") + afg: AFG3KC = dm.add_afg("192.168.0.1") # Turn on AFG afg.set_and_check(":OUTPUT1:STATE", "1") diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py index 97eff413..ef3d755d 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py @@ -4,9 +4,10 @@ from typing import Optional from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -class BaseSourceChannel(ABC): +class BaseSourceChannel(ExtendableMixin, ABC): """Base source channel driver.""" def __init__(self, pi_control: PIControl, channel_name: str) -> None: diff --git a/src/tm_devices/driver_mixins/device_control/abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/abstract_device_control.py index 4e9ebac1..d87df259 100644 --- a/src/tm_devices/driver_mixins/device_control/abstract_device_control.py +++ b/src/tm_devices/driver_mixins/device_control/abstract_device_control.py @@ -1,14 +1,13 @@ """A class containing properties and attributes shared between devices and control mixins.""" from abc import ABC, abstractmethod +from typing import Tuple from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 # TODO: nfelt14: Look into making this private or filtering it out of the docs -# TODO: nfelt14: Look into moving the _get_errors() abstract method to this class for -# type hinting and usage in the control classes class AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods """Abstract class with properties and attributes shared between devices and control mixins.""" @@ -33,3 +32,15 @@ def _name_and_alias(self) -> str: @abstractmethod def ip_address(self) -> str: """The IP address of the device.""" + + @abstractmethod + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ diff --git a/src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py b/src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py new file mode 100644 index 00000000..bda9e222 --- /dev/null +++ b/src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py @@ -0,0 +1,90 @@ +"""A class defining methods that VISA devices and control mixins must have.""" + +from abc import abstractmethod +from typing import Any, final, Tuple + +from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl +from tm_devices.helpers import raise_failure, verify_values + + +# TODO: nfelt14: Look into making this private or filtering it out of the docs +class AbstractDeviceVISAWriteQueryControl(AbstractDeviceControl): + """Abstract class defining methods that VISA devices and control mixins must have.""" + + @property + def _no_error_string(self) -> str: + """A string containing the expected error message when no error is present.""" + return "" + + @abstractmethod + def query(self, *args: Any, **kwargs: Any) -> str: + """Query the device.""" + + @abstractmethod + def write(self, *args: Any, **kwargs: Any) -> None: + """Write to the device.""" + + @final + def expect_esr( + self, esr: int, error_messages: Tuple[str, ...] = (), *, use_regex_match: bool = False + ) -> bool: + r"""Check for the expected error code and messages. + + Args: + esr: Expected ``*ESR?`` value + error_messages: Expected error buffer messages in a tuple. + use_regex_match: A boolean indicating if the error messages should be matched + using regular expressions. + + Returns: + A boolean indicating if the check passed or failed, True means the check passed, + False means the check failed (however, failing the check will always result in an + AssertionError being raised, so the result will not really be usable). + + Raises: + AssertionError: Indicating that the device's error code and messages don't match the + expected values. + """ + check_passed = True + + if not error_messages: + error_messages = tuple(filter(None, (self._no_error_string,))) + + actual_esr, actual_error_messages = self._get_errors() + + # Compare the esr value + try: + verify_values( + self._name_and_alias, + esr, + actual_esr, + custom_message_prefix="expect_esr() error code check:", + condense_printout=False, + ) + except AssertionError as exc: + check_passed &= False + print(exc) # the exception already contains the timestamp + + # Compare the error messages + for expected_message, actual_message in zip(error_messages, actual_error_messages): + try: + verify_values( + self._name_and_alias, + expected_message, + actual_message, + use_regex_match=use_regex_match, + custom_message_prefix="expect_esr() error message check:", + condense_printout=False, + ) + except AssertionError as exc: # noqa: PERF203 + check_passed &= False + print(exc) + + if not check_passed: + failure_message = ( + f"expect_esr() failed: error code {actual_esr!r} != {esr!r}; " + f"error messages {actual_error_messages!r} != {error_messages!r}" + ) + raise_failure(self._name_and_alias, failure_message, condense_printout=False) + + return check_passed diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index 322bc220..447cc2ce 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -5,7 +5,7 @@ import time import warnings -from abc import ABC, abstractmethod +from abc import ABC from contextlib import contextmanager from typing import final, Generator, List, Optional, Sequence, Tuple, Union @@ -15,7 +15,9 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( + AbstractDeviceVISAWriteQueryControl, +) from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( @@ -33,11 +35,11 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class PIControl(AbstractDeviceControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(AbstractDeviceVISAWriteQueryControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. !!! important - Any class that inherits this control Mixin must also inherit a descendant of the + Any class that inherits this control mixin must also inherit a descendant of the [`Device`][tm_devices.drivers.device.Device] class in order to have access to the attributes required by this class. """ @@ -86,23 +88,6 @@ def __init__( ################################################################################################ # Abstract Methods ################################################################################################ - # TODO: nfelt14: Determine if this really needs to be an abstract method here. If not, - # remove it from the example code too. It could also just be made a "final" method - @abstractmethod - def expect_esr(self, esr: int, error_messages: Tuple[str, ...] = ()) -> bool: - r"""Check for the expected error code and messages. - - Args: - esr: Expected ``*ESR?`` value - error_messages: Expected error buffer messages in a tuple. - - Returns: - A boolean indicating if the check passed or failed. - - Raises: - AssertionError: Indicating that the device's error code and messages don't match the - expected values. - """ ################################################################################################ # Properties @@ -330,7 +315,7 @@ def poll_query( # noqa: PLR0913 f"returned {wanted_val}, received:\n{query_list}" ) - def query( + def query( # pylint: disable=arguments-differ self, query: str, *, @@ -809,7 +794,7 @@ def wait_for_visa_connection( return visa_connection - def write(self, command: str, opc: bool = False, verbose: bool = True) -> None: + def write(self, command: str, opc: bool = False, verbose: bool = True) -> None: # pylint: disable=arguments-differ r"""Write a command to the device. Args: diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 49e5a43e..37b6aaa6 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -22,7 +22,7 @@ class RESTAPIControl(AbstractDeviceControl, ABC): """Base REST Application Programming Interface (API) control class. !!! important - Any class that inherits this control Mixin must also inherit a descendant of the + Any class that inherits this control mixin must also inherit a descendant of the [`Device`][tm_devices.drivers.device.Device] class in order to have access to the attributes required by this class. """ diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index 65c20e44..6148a691 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -17,7 +17,7 @@ class TSPControl(PIControl, ABC): """Base Test Script Processing (TSP) control class. !!! important - Any class that inherits this control Mixin must also inherit a descendant of the + Any class that inherits this control mixin must also inherit a descendant of the [`Device`][tm_devices.drivers.device.Device] class in order to have access to the attributes required by this class. """ diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py index a3a2fae6..1914b5aa 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py @@ -1,80 +1,26 @@ """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR.""" from abc import ABC -from typing import List, Tuple, Union +from typing import List, Tuple -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values +from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( + AbstractDeviceVISAWriteQueryControl, +) -class CommonPISystemErrorCheckMixin(PIControl, ABC): +class CommonPISystemErrorCheckMixin(AbstractDeviceVISAWriteQueryControl, ABC): """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR. - !!! note - This class also inherits from the - [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin and - therefore provides access to the PI control methods. + !!! important + Any class that inherits this mixin must also inherit the + [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + to have access to the methods required by this class. """ - ################################################################################################ - # Public Methods - ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and SYSTEM:ERROR? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - failure_message = "" - no_error = '0,"No error"' - if not int(esr): - error_string = no_error - - # Verify that an allev reply is specified - if not error_string: - raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 - - result = True - esr_result_str = self.query("*ESR?") - try: - verify_values(self._name_and_alias, esr, esr_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - - # return the errors if any - returned_errors = "" - error = "" - while error != no_error: - error = str(self.query("SYSTEM:ERROR?")) - returned_errors += error - if error != no_error: - returned_errors += "\n" - - if returned_errors != error_string: - result &= False - print_with_timestamp( - f"FAILURE: ({self._name_and_alias}) : Incorrect SYSTEM:ERROR? returned:\n" - f" exp: {error_string!r}\n act: {returned_errors!r}" - ) - - if not result: - returned_errors = returned_errors.replace("\n", ", ") - error_string = error_string.replace("\n", ", ") - failure_message = ( - f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " - f"SYSTEM:ERROR? {returned_errors!r} != {error_string!r}" - ) - raise_failure(self._name_and_alias, failure_message) - - return result, failure_message + @property + def _no_error_string(self) -> str: + """A string containing the expected error message when no error is present.""" + return '0,"No error"' def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: """Get the current errors from the device. diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py index 45c35cfc..f085f36f 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py @@ -1,71 +1,22 @@ """A mixin class that contains common methods for checking the TSP device for errors.""" from abc import ABC -from typing import Tuple, Union +from typing import Tuple -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl -from tm_devices.helpers import print_with_timestamp, raise_failure, verify_values +from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( + AbstractDeviceVISAWriteQueryControl, +) -class CommonTSPErrorCheckMixin(TSPControl, ABC): +class CommonTSPErrorCheckMixin(AbstractDeviceVISAWriteQueryControl, ABC): """A mixin class that contains common methods for checking the TSP device for errors. - !!! note - This class also inherits from the - [`TSPControl`][tm_devices.driver_mixins.device_control.tsp_control.TSPControl] mixin and - therefore provides access to the TSP control methods. + !!! important + Any class that inherits this mixin must also inherit the + [`TSPControl`][tm_devices.driver_mixins.device_control.tsp_control.TSPControl] mixin in + order to have access to the methods required by this class. """ - ################################################################################################ - # Public Methods - ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the equivalent of ``*ESR?`` and system error queries. - - Args: - esr: Expected ``*ESR?`` value. - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character. - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - failure_message = "" - if not int(esr): - # TODO: nfelt14: Update this default error string - error_string = "" - - # Verify that an allev reply is specified when expecting an error - if int(esr) and not error_string: - raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 - - result = True - esr_result_str = self.query("print(status.standard.event)") - try: - verify_values(self._name_and_alias, esr, esr_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - _, allev_result_tuple = self._get_errors() - if (allev_result_str := ",".join(allev_result_tuple)) != error_string: - result &= False - print_with_timestamp( - f"FAILURE: ({self._name_and_alias}) : Incorrect eventlog status returned:\n" - f" exp: {error_string!r}\n act: {allev_result_str!r}" - ) - - if not result: - failure_message = ( - f"expect_esr failed: " - f"print(status.standard.event) {esr_result_str!r} != {esr!r}, " - f"eventlog {allev_result_str!r} != {error_string!r}" - ) - raise_failure(self._name_and_alias, failure_message) - - return result, failure_message - def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: """Get the current errors from the device. @@ -77,8 +28,9 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: messages. """ # instrument returns exponential numbers so converting to float before int + error_code = int(float(self.query("print(status.standard.event)"))) err_count = int(float(self.query("print(errorqueue.count)"))) error_message_list = [] if err_count: error_message_list = [self.query("print(errorqueue.next())") for _ in range(err_count)] - return err_count, tuple(filter(None, error_message_list)) + return error_code, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py similarity index 87% rename from src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py index e22e0ea2..3f28fbf6 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tek_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py @@ -13,10 +13,17 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class TektronixAFGAWGMixin( +# TODO: nfelt14: Look into making this private +class TektronixPIAFGAWGMixin( CommonPISystemErrorCheckMixin, SignalGeneratorMixin, ExtendableMixin, ABC ): - """A private mixin for common methods and attributes for Tektronix AFG and AWG devices.""" + """A private mixin for common methods and attributes for Tektronix AFG and AWG devices. + + !!! important + Any class that inherits this mixin must also inherit the + [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + to have access to the methods required by this class. + """ ################################################################################################ # Properties diff --git a/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py new file mode 100644 index 00000000..c9c30389 --- /dev/null +++ b/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py @@ -0,0 +1,42 @@ +"""A private mixin for common methods and attributes for Tektronix scopes.""" + +from abc import ABC +from typing import Tuple + +from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( + AbstractDeviceVISAWriteQueryControl, +) + + +# TODO: nfelt14: Look into making this private +class TektronixPIScopeMixin(AbstractDeviceVISAWriteQueryControl, ABC): + """A private mixin for common methods and attributes for Tektronix scopes. + + !!! important + Any class that inherits this mixin must also inherit the + [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + to have access to the methods required by this class. + """ + + @property + def _no_error_string(self) -> str: + """A string containing the expected error message when no error is present.""" + return '0,"No events to report - queue empty"' + + def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: + """Get the current errors from the device. + + !!! note + This method will clear out the error queue after reading the current errors. + + Returns: + A tuple containing the current error code alongside a tuple of the current error + messages. + """ + result = int(self.query("*ESR?").strip()) + allev_list = [ + x + ('"' if not x.endswith('"') else "") for x in self.query(":ALLev?").split('",') + ] + returned_errors = tuple(filter(None, allev_list)) + + return result, returned_errors diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index dffd8800..b6d4dbe0 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -15,7 +15,10 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( + TektronixPIAFGAWGMixin, +) from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -32,9 +35,8 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAFG] = SignalGeneratorFunctionsAFG -# TODO: nfelt14: remove PIControl inheritance if possible @family_base_class -class AFG(TektronixAFGAWGMixin, Device, ABC): +class AFG(TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index ff24eab0..76068dee 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -13,8 +13,10 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( + TektronixPIAFGAWGMixin, +) from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -32,8 +34,12 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAWG] = SignalGeneratorFunctionsAWG -# TODO: nfelt14: remove PIControl inheritance if possible -class AWG(TektronixAFGAWGMixin, Device, ABC): +# NOTE: Currently all AWGs are controlled via PI, hence the usage of the PIControl mixin here. If +# this changes in the future, the class inheritance structure may need to be modified and the +# control class inheritance responsibility moved to the Family Base Classes. The other option +# would be to create two abstract AWG parent classes and two distinct AWGSourceChannel classes, +# with one set using the PIControl mixin and one set using another control mixin. +class AWG(TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 @@ -292,7 +298,7 @@ def set_sample_rate(self, value: float, absolute_tolerance: Optional[float] = No def _get_predefined_waveform_name( self, frequency: float, - function: SignalGeneratorFunctionsAWG, + selected_function: SignalGeneratorFunctionsAWG, output_signal_path: Optional[SignalGeneratorOutputPathsBase], symmetry: Optional[float] = 50.0, ) -> Tuple[str, float]: @@ -300,22 +306,27 @@ def _get_predefined_waveform_name( Args: frequency: The frequency of the waveform to generate. - function: The waveform shape to generate. + selected_function: The waveform shape to generate. output_signal_path: The output signal path of the specified channel. symmetry: The symmetry to set the signal to, only applicable to certain functions. Returns: A tuple containing the best waveform from the predefined files and the sample rate. """ - if function == function.RAMP and symmetry == 50: # noqa: PLR2004 - function = function.TRIANGLE - if function != SignalGeneratorFunctionsAWG.DC and not function.value.startswith("*"): + if selected_function == selected_function.RAMP and symmetry == 50: # noqa: PLR2004 + selected_function = selected_function.TRIANGLE + if ( + selected_function != SignalGeneratorFunctionsAWG.DC + and not selected_function.value.startswith("*") + ): device_constraints = self.get_waveform_constraints( - function=function, frequency=frequency, output_signal_path=output_signal_path + function=selected_function, + frequency=frequency, + output_signal_path=output_signal_path, ) - if function == SignalGeneratorFunctionsAWG.SIN: + if selected_function == SignalGeneratorFunctionsAWG.SIN: premade_signal_rl = self._PRE_DEFINED_SIGNAL_RECORD_LENGTH_SIN - elif function == SignalGeneratorFunctionsAWG.CLOCK: + elif selected_function == SignalGeneratorFunctionsAWG.CLOCK: premade_signal_rl = self._PRE_DEFINED_SIGNAL_RECORD_LENGTH_CLOCK else: premade_signal_rl = self._PRE_DEFINED_SIGNAL_RECORD_LENGTH_DEFAULT @@ -329,13 +340,13 @@ def _get_predefined_waveform_name( <= needed_sample_rate <= device_constraints.sample_rate_range.upper ): - predefined_name = f"*{function.value.title()}{record_length}" + predefined_name = f"*{selected_function.value.title()}{record_length}" break else: # This clause is skipped if break is called in for loop. error_message = ( - f"Unable to generate {function.value} waveform with provided frequency of " - f"{frequency} Hz." + f"Unable to generate {selected_function.value} waveform with " + f"provided frequency of {frequency} Hz." ) raise ValueError(error_message) else: @@ -353,7 +364,7 @@ def _get_series_specific_constraints( @family_base_class -class AWGSourceChannel(BaseSourceChannel, ExtendableMixin): +class AWGSourceChannel(BaseSourceChannel): """AWG signal source channel composite.""" ################################################################################################ diff --git a/src/tm_devices/drivers/awgs/awg70ka.py b/src/tm_devices/drivers/awgs/awg70ka.py index daee2c0d..80fc6490 100644 --- a/src/tm_devices/drivers/awgs/awg70ka.py +++ b/src/tm_devices/drivers/awgs/awg70ka.py @@ -266,7 +266,7 @@ def set_output_signal_path( '-222,"Data out of range;Data Out of Range - ' f'OUTPUT{self.num}:PATH DCA\r\n"\n0,"No error"' ) - self._awg.expect_esr("16", expected_esr_message) + self._awg.expect_esr(16, (expected_esr_message,)) self._awg.set_and_check( f"OUTPUT{self.num}:PATH", self._awg.OutputSignalPath.DIR.value ) diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 19185859..9cb8383a 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,6 +5,7 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -20,7 +21,7 @@ @family_base_class -class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMixin, DataAcquisitionSystem): +class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMixin, TSPControl, DataAcquisitionSystem): """DAQ6510 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -76,8 +77,9 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: messages. """ # instrument returns exponential numbers so converting to float before int + error_code = int(float(self.query("print(status.standard.event)"))) err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) error_message_list = [] if err_count: error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - return err_count, tuple(filter(None, error_message_list)) + return error_code, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index ddca293a..765e10ce 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -134,18 +134,6 @@ def _cleanup(self) -> None: def _close(self) -> None: """Perform the actual closing code.""" - @abstractmethod - def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: - """Get the current errors from the device. - - !!! note - This method will clear out the error queue after reading the current errors. - - Returns: - A tuple containing the current error code alongside a tuple of the current error - messages. - """ - @abstractmethod def _open(self) -> bool: """Perform the actual opening code. diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index b82e1e10..822e9fee 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,6 +5,7 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -17,7 +18,7 @@ @family_base_class -class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMixin, DigitalMultimeter): +class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMixin, TSPControl, DigitalMultimeter): """DMM6500 device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -70,8 +71,9 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: messages. """ # instrument returns exponential numbers so converting to float before int + error_code = int(float(self.query("print(status.standard.event)"))) err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) error_message_list = [] if err_count: error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - return err_count, tuple(filter(None, error_message_list)) + return error_code, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index 3e5c41fc..aa620ed0 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,6 +5,7 @@ import pyvisa as visa +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -17,7 +18,7 @@ @family_base_class -class DMM75xx(CommonTSPErrorCheckMixin, DigitalMultimeter, ABC): +class DMM75xx(CommonTSPErrorCheckMixin, TSPControl, DigitalMultimeter, ABC): """Base DMM75xx device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -70,8 +71,9 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: messages. """ # instrument returns exponential numbers so converting to float before int + error_code = int(float(self.query("print(status.standard.event)"))) err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) error_message_list = [] if err_count: error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - return err_count, tuple(filter(None, error_message_list)) + return error_code, tuple(filter(None, error_message_list)) diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index abc6a28b..9e63298e 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -2,6 +2,7 @@ from packaging.version import Version +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) @@ -12,7 +13,7 @@ @family_base_class -class PSU2200(CommonPISystemErrorCheckMixin, PowerSupplyUnit): +class PSU2200(CommonPISystemErrorCheckMixin, PIControl, PowerSupplyUnit): """2200 Base device driver for the 22xx family of power supplies.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index 0a8d96db..e7bbb4ba 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -1,16 +1,14 @@ """Base Scope device driver module.""" from abc import ABC, abstractmethod -from typing import Tuple, Union +from typing import Tuple -from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers.device import Device -from tm_devices.helpers import DeviceTypes, raise_failure, verify_values +from tm_devices.helpers import DeviceTypes from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: remove PIControl inheritance if possible -class Scope(PIControl, Device, ABC): +class Scope(Device, ABC): """Base Scope device driver.""" _DEVICE_TYPE = DeviceTypes.SCOPE.value @@ -34,76 +32,3 @@ def total_channels(self) -> int: def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"CH{x+1}" for x in range(self.total_channels)) - - @cached_property - def opt_string(self) -> str: - r"""Return the string returned from the ``*OPT?`` query when the device was created.""" - return self.ieee_cmds.opt() - - ################################################################################################ - # Public Methods - ################################################################################################ - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: - r"""Check for the expected number of errors and output string. - - Sends the ``*ESR?`` and ALLEV? queries. - - Args: - esr: Expected ``*ESR?`` value - error_string: Expected error buffer string. - Multiple errors should be separated by a \n character - - Returns: - Boolean indicating if the check passed or failed and a string with the results. - """ - failure_message = "" - if not int(esr): - error_string = '0,"No events to report - queue empty"' - - # Verify that an allev reply is specified - if not error_string: - raise AssertionError("No error string was provided.") # noqa: TRY003,EM101 - - result = True - esr_result_str = self.ieee_cmds.esr() - try: - verify_values(self._name_and_alias, esr, esr_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - allev_result_str = self.query(":ALLev?") - try: - verify_values(self._name_and_alias, error_string, allev_result_str) - except AssertionError as exc: - result &= False - print(exc) # the exception already contains the timestamp - - if not result: - failure_message = ( - f"expect_esr failed: *ESR? {esr_result_str!r} != {esr!r}, " - f":ALLev? {allev_result_str!r} != {error_string!r}" - ) - raise_failure(self._name_and_alias, failure_message) - - return result, failure_message - - ################################################################################################ - # Private Methods - ################################################################################################ - def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: - """Get the current errors from the device. - - !!! note - This method will clear out the error queue after reading the current errors. - - Returns: - A tuple containing the current error code alongside a tuple of the current error - messages. - """ - result = int(self.query("*ESR?").strip()) - allev_list = [ - x + ('"' if not x.endswith('"') else "") for x in self.query(":ALLev?").split('",') - ] - returned_errors = tuple(filter(None, allev_list)) - - return result, returned_errors diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index c01d7b74..43c23cad 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -46,6 +46,10 @@ SourceDeviceConstants, ) from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( + TektronixPIScopeMixin, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry, LoadImpedanceAFG, raise_error @@ -75,6 +79,8 @@ class TekProbeData: # NOTE: This is no longer considered a family_base_class due to the # differences between the physical scope hardware devices and the TekScopePC device. class AbstractTekScope( # pylint: disable=too-many-public-methods + TektronixPIScopeMixin, + PIControl, Scope, BusMixin, HistogramMixin, diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py index c40bd89a..5fa644f1 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py @@ -8,13 +8,17 @@ from tm_devices.driver_mixins.abstract_device_functionality.channel_control_mixin import ( ChannelControlMixin, ) +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( + TektronixPIScopeMixin, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class -class TekScope2k(Scope, ChannelControlMixin, ABC): +class TekScope2k(TektronixPIScopeMixin, PIControl, Scope, ChannelControlMixin, ABC): """Base TekScope2k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py index 5f8c9db2..977eec90 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -2,13 +2,17 @@ from abc import ABC +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( + TektronixPIScopeMixin, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class -class TekScope3k4k(Scope, ABC): +class TekScope3k4k(TektronixPIScopeMixin, PIControl, Scope, ABC): """Base TekScope3k4k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index 4a9e3c9b..73017234 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -4,6 +4,10 @@ import pyvisa as visa +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( + TektronixPIScopeMixin, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry @@ -11,7 +15,7 @@ @family_base_class -class TekScope5k7k70k(Scope, ABC): +class TekScope5k7k70k(TektronixPIScopeMixin, PIControl, Scope, ABC): """Base TekScope5k7k70k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tso/tsovu.py b/src/tm_devices/drivers/scopes/tso/tsovu.py index d84a1e82..f0e1a8e2 100644 --- a/src/tm_devices/drivers/scopes/tso/tsovu.py +++ b/src/tm_devices/drivers/scopes/tso/tsovu.py @@ -2,6 +2,10 @@ import pyvisa as visa +from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( + TektronixPIScopeMixin, +) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope from tm_devices.helpers import DeviceConfigEntry @@ -9,7 +13,7 @@ @family_base_class -class TSOVu(Scope): +class TSOVu(TektronixPIScopeMixin, PIControl, Scope): """TSOVu device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 80941f29..68743a92 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,6 +9,7 @@ SMU2461Commands, SMU2470Commands, ) +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -21,7 +22,7 @@ @family_base_class -class SMU24xxInteractive(CommonTSPErrorCheckMixin, SourceMeasureUnit, ABC): +class SMU24xxInteractive(CommonTSPErrorCheckMixin, TSPControl, SourceMeasureUnit, ABC): """Base SMU24xxInteractive device driver.""" _IEEE_COMMANDS_CLASS = LegacyTSPIEEE4882Commands @@ -69,11 +70,12 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: messages. """ # instrument returns exponential numbers so converting to float before int + error_code = int(float(self.query("print(status.standard.event)"))) err_count = int(self.query("print(eventlog.getcount(eventlog.SEV_ERROR))")) error_message_list = [] if err_count: error_message_list = [self.query("print(eventlog.next())") for _ in range(err_count)] - return err_count, tuple(filter(None, error_message_list)) + return error_code, tuple(filter(None, error_message_list)) ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 9bc7ed90..5a60d2d0 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,6 +5,7 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) @@ -17,7 +18,7 @@ @family_base_class -class SMU24xxStandard(CommonPISystemErrorCheckMixin, SourceMeasureUnit, ABC): +class SMU24xxStandard(CommonPISystemErrorCheckMixin, PIControl, SourceMeasureUnit, ABC): """Base SMU24xxStandard device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index f08b8437..567c93e1 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,6 +20,7 @@ SMU2651ACommands, SMU2657ACommands, ) +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -29,7 +30,7 @@ @family_base_class -class SMU26xx(CommonTSPErrorCheckMixin, SourceMeasureUnit, ABC): +class SMU26xx(CommonTSPErrorCheckMixin, TSPControl, SourceMeasureUnit, ABC): """Base SMU26xx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index bfc0ee0c..f8b21806 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -5,6 +5,7 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) @@ -17,7 +18,7 @@ @family_base_class -class SMU6xxx(CommonPISystemErrorCheckMixin, SourceMeasureUnit, ABC): +class SMU6xxx(CommonPISystemErrorCheckMixin, PIControl, SourceMeasureUnit, ABC): """Base SMU6xxx device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 64262abf..0d779f50 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -3,6 +3,7 @@ import pyvisa as visa from tm_devices.commands import SS3706AMixin +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) @@ -13,7 +14,7 @@ @family_base_class -class SS3706A(SS3706AMixin, CommonTSPErrorCheckMixin, SystemsSwitch): +class SS3706A(SS3706AMixin, CommonTSPErrorCheckMixin, TSPControl, SystemsSwitch): """SS3706A device driver.""" ################################################################################################ diff --git a/src/tm_devices/helpers/verification_functions.py b/src/tm_devices/helpers/verification_functions.py index a395e21a..eaea9938 100644 --- a/src/tm_devices/helpers/verification_functions.py +++ b/src/tm_devices/helpers/verification_functions.py @@ -1,42 +1,48 @@ """Common functions for verifying values and printing out errors and failures.""" +import re + from typing import Tuple, Union from tm_devices.helpers.functions import get_timestamp_string -def raise_error(unique_identifier: str, message: str) -> None: +def raise_error(unique_identifier: str, message: str, *, condense_printout: bool = True) -> None: """Raise an AssertionError with the provided message indicating there was an error. Args: unique_identifier: A unique identifier to add to the AssertionError, e.g. the device name. message: The message to add to the AssertionError. + condense_printout: A boolean indicating if the printout should be condensed. Raises: AssertionError: Prints out the error message with a traceback. """ # TODO: integrate this with logging # https://github.com/tektronix/tm_devices/issues/316 - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) + if condense_printout: + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) message = f"{get_timestamp_string()} - ERROR: ({unique_identifier}) : {message}" raise AssertionError(message) -def raise_failure(unique_identifier: str, message: str) -> None: +def raise_failure(unique_identifier: str, message: str, *, condense_printout: bool = True) -> None: """Raise an AssertionError with the provided message indicating there was a failure. Args: unique_identifier: A unique identifier to add to the AssertionError, e.g. the device name. message: The message to add to the AssertionError. + condense_printout: A boolean indicating if the printout should be condensed. Raises: AssertionError: Prints out the failure message with a traceback. """ # TODO: integrate this with logging # https://github.com/tektronix/tm_devices/issues/316 - # Make the message smaller - message = ", ".join([x.strip() for x in message.split("\n")]) + if condense_printout: + # Make the message smaller + message = ", ".join([x.strip() for x in message.split("\n")]) message = f"{get_timestamp_string()} - FAILURE: ({unique_identifier}) : {message}" raise AssertionError(message) @@ -45,11 +51,14 @@ def verify_values( # noqa: PLR0913 unique_identifier: str, expected_value: Union[str, float], actual_value: Union[str, float], + *, tolerance: float = 0, percentage: bool = False, custom_message_prefix: str = "", log_error: bool = False, expect_fail: bool = False, + use_regex_match: bool = False, + condense_printout: bool = True, ) -> bool: """Compare and verify actual value with expected value. @@ -64,6 +73,9 @@ def verify_values( # noqa: PLR0913 custom_message_prefix: A custom message to be prepended to the failure message. log_error: Indicate if an error should be logged instead of a failure expect_fail: Indicate if a failure is expected and should be treated as a pass + use_regex_match: A boolean indicating if the strings should be compared + using regular expressions. + condense_printout: A boolean indicating if the printout should be condensed. Returns: Boolean indicating whether the check passed or failed. @@ -90,14 +102,14 @@ def verify_values( # noqa: PLR0913 expected_value = str(expected_value) actual_value = str(actual_value) message, verify_passed = _verify_string_value( - expected_value, actual_value, message, expect_fail + expected_value, actual_value, message, expect_fail, use_regex_match ) # Mark as pass/fail if not verify_passed: if log_error: - raise_error(unique_identifier, message) + raise_error(unique_identifier, message, condense_printout=condense_printout) else: - raise_failure(unique_identifier, message) + raise_failure(unique_identifier, message, condense_printout=condense_printout) return verify_passed @@ -115,11 +127,11 @@ def _verify_numerical_value( """Compare and verify a numerical value with expected value. Args: - expected_value: The expected value. - actual_value: The actual value. - tolerance: The acceptable difference between two floating point values, e.g. 0.0005 - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass + expected_value: The expected value. + actual_value: The actual value. + tolerance: The acceptable difference between two floating point values, e.g. 0.0005 + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass Returns: Tuple containing the failure message and a boolean indicating if the check passed. @@ -163,21 +175,27 @@ def _verify_string_value( actual_value: str, message: str, expect_fail: bool, + use_regex_match: bool = False, ) -> Tuple[str, bool]: """Compare and verify a string value with expected value. Args: - expected_value: The expected value. - actual_value: The actual value. - message: The failure message to edit and return. - expect_fail: Indicate if a failure is expected and should be treated as a pass + expected_value: The expected value. + actual_value: The actual value. + message: The failure message to edit and return. + expect_fail: Indicate if a failure is expected and should be treated as a pass + use_regex_match: A boolean indicating if the strings should be compared + using regular expressions. Returns: Tuple containing the failure message and a boolean indicating if the check passed. """ - if (not expect_fail and expected_value == actual_value) or ( - expect_fail and expected_value != actual_value - ): + if use_regex_match: + match = re.match(expected_value, actual_value) is not None + else: + match = expected_value == actual_value + + if (not expect_fail and match) or (expect_fail and not match): verify_passed = True else: message += ( diff --git a/tests/test_afgs.py b/tests/test_afgs.py index b496a08c..906931ce 100644 --- a/tests/test_afgs.py +++ b/tests/test_afgs.py @@ -48,20 +48,17 @@ def test_afg3k(device_manager: DeviceManager) -> None: # noqa: PLR0915 # pylin assert afg3252c.opt_string == "0" assert afg3252c.query("SYSTEM:ERROR?") == '0,"No error"' assert afg3252c.query("SYSTEM:ERROR?", remove_quotes=True) == "0,No error" - assert afg3252c.expect_esr(0)[0] + assert afg3252c.expect_esr(0) with mock.patch("pyvisa.highlevel.VisaLibraryBase.clear", mock.MagicMock(return_value=None)): assert afg3252c.query_expect_timeout("INVALID?", timeout_ms=1) == "" with mock.patch( "pyvisa.resources.messagebased.MessageBasedResource.query", mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): - assert afg3252c.query_expect_timeout("INVALID?", timeout_ms=1) == "" - assert afg3252c.expect_esr(32, '1, Command error\n0,"No error"')[0] + afg3252c.query_expect_timeout("INVALID?", timeout_ms=1) + assert afg3252c.expect_esr(32, ("1, Command error", '0,"No error"')) with pytest.raises(AssertionError): - afg3252c.expect_esr(32, '1, Command error\n0,"No error"') - - with pytest.raises(AssertionError, match="No error string was provided"): - afg3252c.expect_esr(1) + afg3252c.expect_esr(32, ("1, Command error", '0,"No error"')) with pytest.raises(AssertionError, match="Invalid channel name 'ch', valid items: "): afg3252c._validate_channels("ch") # noqa: SLF001 diff --git a/tests/test_awgs.py b/tests/test_awgs.py index ecc94939..df11c972 100644 --- a/tests/test_awgs.py +++ b/tests/test_awgs.py @@ -74,9 +74,9 @@ def test_awg5200(device_manager: DeviceManager, capsys: pytest.CaptureFixture[st assert awg520050.total_channels == 4 assert awg520050.all_channel_names_list == ("SOURCE1", "SOURCE2", "SOURCE3", "SOURCE4") awg520050.write("*SRE 256") - awg520050.expect_esr(32, '1, "Command error"\n0,"No error"') + awg520050.expect_esr(32, ('1, "Command error"', '0,"No error"')) with pytest.raises(AssertionError): - awg520050.expect_esr(32, '1, Command error\n0,"No error"') + awg520050.expect_esr(32, ("1, Command error", '0,"No error"')) _ = capsys.readouterr().out # throw away stdout awg520050.load_waveform("test", "file_path.txt", "TXT") assert 'MMEMory:IMPort "test", "file_path.txt", TXT' in capsys.readouterr().out diff --git a/tests/test_devices_legacy_tsp_ieee_cmds.py b/tests/test_devices_legacy_tsp_ieee_cmds.py index 59735f50..a3c06f92 100644 --- a/tests/test_devices_legacy_tsp_ieee_cmds.py +++ b/tests/test_devices_legacy_tsp_ieee_cmds.py @@ -29,7 +29,7 @@ def test_dmm6500(device_manager: DeviceManager) -> None: mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): dmm.query_expect_timeout("INVALID?", timeout_ms=1) - assert dmm.expect_esr(32, "Command error,No Error")[0] + assert dmm.expect_esr(32, ("Command error", "No Error")) def test_dmm75xx(device_manager: DeviceManager) -> None: @@ -47,7 +47,7 @@ def test_dmm75xx(device_manager: DeviceManager) -> None: mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): dmm.query_expect_timeout("INVALID?", timeout_ms=1) - assert dmm.expect_esr(32, "Command error,No Error")[0] + assert dmm.expect_esr(32, ("Command error", "No Error")) def test_daq6510(device_manager: DeviceManager) -> None: @@ -67,5 +67,5 @@ def test_daq6510(device_manager: DeviceManager) -> None: mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): daq.query_expect_timeout("INVALID?", timeout_ms=1) - assert daq.expect_esr(32, "Command error,No Error")[0] + assert daq.expect_esr(32, ("Command error", "No Error")) assert daq.total_channels == 1 diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index ac5c4a8b..1821b525 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -19,7 +19,9 @@ from tm_devices import DeviceManager from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.device_control.tsp_control import TSPControl -from tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin import TektronixAFGAWGMixin +from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( + TektronixPIAFGAWGMixin, +) from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.afgs.afg import AFG from tm_devices.drivers.device import Device @@ -95,7 +97,7 @@ def _remove_added_methods() -> Iterator[None]: (Device, "already_exists"), (Scope, "custom_model_getter_scope"), (Scope, "custom_return"), - (TektronixAFGAWGMixin, "custom_model_getter_sg"), + (TektronixPIAFGAWGMixin, "custom_model_getter_sg"), (AFG, "custom_model_getter_afg"), (AFG3K, "custom_model_getter_afg3k"), (AFG3KC, "custom_model_getter_afg3kc"), @@ -220,8 +222,8 @@ def custom_model_getter_scope(device: Scope, value: str) -> str: """Return the model.""" return f"Scope {device.model} {value}" - @TektronixAFGAWGMixin.add_method - def custom_model_getter_sg(device: TektronixAFGAWGMixin, value: str) -> str: + @TektronixPIAFGAWGMixin.add_method + def custom_model_getter_sg(device: TektronixPIAFGAWGMixin, value: str) -> str: """Return the model.""" return f"TekAFGAWG {device.model} {value}" diff --git a/tests/test_generate_waveform.py b/tests/test_generate_waveform.py index 2f628bbf..ffdb7253 100644 --- a/tests/test_generate_waveform.py +++ b/tests/test_generate_waveform.py @@ -44,7 +44,7 @@ def test_awg5200_gen_waveform( source1_waveform_file = awg520050.query("SOURCE1:WAVEFORM?") assert source1_waveform_file == '"*DC"' - assert awg520050.expect_esr(0)[0] + assert awg520050.expect_esr(0) assert awg520050.get_errors() == (0, ('0,"No error"',)) # Frequency is too high to produce CLOCK function on this AWG. @@ -114,7 +114,7 @@ def test_awg70k_gen_waveform( output1_state = awg70ka150.query("OUTPUT1:STATE?") assert int(output1_state) == 1 - assert awg70ka150.expect_esr(0)[0] + assert awg70ka150.expect_esr(0) assert awg70ka150.get_errors() == (0, ('0,"No error"',)) assert "MMEMORY:OPEN:SASSET" not in stdout @@ -164,7 +164,7 @@ def test_awg7k_gen_waveform(device_manager: DeviceManager) -> None: output1_state = awg7k06.query("OUTPUT1:STATE?") assert int(output1_state) == 1 - assert awg7k06.expect_esr(0)[0] + assert awg7k06.expect_esr(0) assert awg7k06.get_errors() == (0, ('0,"No error"',)) # AWG7k with option 1 should set offset. @@ -200,7 +200,7 @@ def test_awg7k_gen_waveform(device_manager: DeviceManager) -> None: output_signal_path=SignalGeneratorOutputPaths5200.DCHB, ) - assert awg7k01.expect_esr(0)[0] + assert awg7k01.expect_esr(0) assert awg7k01.get_errors() == (0, ('0,"No error"',)) # Clock @@ -358,7 +358,7 @@ def test_afg3k_gen_waveform( # pylint: disable=too-many-locals pulse_dcycle = afg3kc.query("SOURCE1:PULSE:DCYCLE?") assert float(pulse_dcycle) == 50 - assert afg3kc.expect_esr(0)[0] + assert afg3kc.expect_esr(0) assert afg3kc.get_errors() == (0, ('0,"No error"',)) @@ -419,7 +419,7 @@ def test_internal_afg_gen_waveform( ramp_symmetry = scope.query("AFG:RAMP:SYMMETRY?") assert float(ramp_symmetry) == 50 assert "AFG:BURST:TRIGGER" in stdout - assert scope.expect_esr(0)[0] + assert scope.expect_esr(0) assert scope.get_errors() == (0, ('0,"No events to report - queue empty"',)) with pytest.raises( diff --git a/tests/test_pi_device.py b/tests/test_pi_device.py index ffa2a653..5e639415 100644 --- a/tests/test_pi_device.py +++ b/tests/test_pi_device.py @@ -1,6 +1,7 @@ # pyright: reportPrivateUsage=none """Test generic PIControl functionality.""" +from typing import TYPE_CHECKING from unittest import mock import pytest @@ -8,6 +9,9 @@ from tm_devices import DeviceManager +if TYPE_CHECKING: + from tm_devices.drivers import MSO2 + def test_pi_control( # noqa: PLR0915 device_manager: DeviceManager, capsys: pytest.CaptureFixture[str] @@ -18,7 +22,7 @@ def test_pi_control( # noqa: PLR0915 device_manager: The DeviceManager object. capsys: The captured stdout and stderr. """ - scope = device_manager.add_scope("MSO22-HOSTNAME") + scope: MSO2 = device_manager.add_scope("MSO22-HOSTNAME") assert scope._open() # noqa: SLF001 assert scope.query_binary("CURVE?") == [0.0] assert "Query Binary Values >> " in capsys.readouterr().out diff --git a/tests/test_psu.py b/tests/test_psu.py index 4e2dcd1f..40e1b010 100644 --- a/tests/test_psu.py +++ b/tests/test_psu.py @@ -27,5 +27,5 @@ def test_psu(device_manager: DeviceManager) -> None: assert psu.fpga_version == Version("1.06") assert psu.total_channels == 3 - assert psu.expect_esr(0)[0] + assert psu.expect_esr(0) assert psu.get_errors() == (0, ('0,"No error"',)) diff --git a/tests/test_scopes.py b/tests/test_scopes.py index 4f4dcd01..4848f30b 100644 --- a/tests/test_scopes.py +++ b/tests/test_scopes.py @@ -6,7 +6,7 @@ import subprocess import sys -from typing import cast +from typing import cast, TYPE_CHECKING from unittest import mock import pytest @@ -26,6 +26,9 @@ from tm_devices.helpers.constants_and_dataclasses import TEKTRONIX_USBTMC_VENDOR_ID from tm_devices.helpers.enums import SignalGeneratorFunctionsIAFG +if TYPE_CHECKING: + from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k + class TmDevicesUnitTestOnlyCustomMSO5(MSO5): """Custom MSO5 class.""" @@ -58,7 +61,6 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 assert scope.all_channel_names_list == ("CH1", "CH2", "CH3", "CH4", "CH5", "CH6") assert scope.usb_drives == ("E:",) assert scope.ip_address == "" - assert scope.opt_string == "0" assert scope.channel["CH1"].probe == TekProbeData( probetype="ANALOG", probe_id_sernumber="N/A", @@ -77,12 +79,12 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 # Test that invalid PI commands are caught properly scope.write("EXAMPLE_COMMAND") - scope.expect_esr(32, '113,"Undefined header; Command not found; EXAMPLE_COMMAND"') + scope.expect_esr(32, ('113,"Undefined header; Command not found; EXAMPLE_COMMAND"',)) # Test that querying the status register clears it with pytest.raises(AssertionError): - scope.expect_esr(32, '113,"Undefined header; Command not found; EXAMPLE_COMMAND"') + scope.expect_esr(32, ('113,"Undefined header; Command not found; EXAMPLE_COMMAND"',)) # Assert there are no errors before proceeding with tests - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) # Test that features can be added scope.add_new_bus("B1", "I3C") @@ -98,7 +100,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 with pytest.raises(AssertionError): scope.add_power(1) # Assert there are no errors after testing feature additions - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) # Simulate successful feature deletion by replacing name of item with BLANK scope.write(":BUS:ADDNew BLANK") @@ -122,7 +124,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 with pytest.raises(AssertionError): scope.delete_search(1) # Assert there are no errors after testing feature deletions - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) assert scope.query("EMPTY:STRING?", allow_empty=True) == "" with pytest.raises(SystemError): scope.query("EMPTY:STRING?") @@ -148,7 +150,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 # Test saving waveform functionality scope.save_waveform_to_reference("temp.wfm", "REF1") # Assert there are no errors after testing waveform generations and saving - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) # Test curve query write to csv functionality with multi-frame curve filepath = f"temp_{sys.version_info.major}{sys.version_info.minor}.csv" @@ -184,7 +186,7 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 with pytest.warns(UserWarning): assert scope.curve_query(1, wfm_type="TimeDomain") == [] # Assert there are no errors after testing curve query - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) # Assert that getting license list returns the correct tuple assert scope.license_list == ("LIC5", "LIC4", "AFG") @@ -213,11 +215,8 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915 with pytest.raises(AssertionError, match="none is not a valid item.*"): scope._add_or_delete_dynamic_item("none", 1) # noqa: SLF001 - with pytest.raises(AssertionError, match="No error string was provided"): - scope.expect_esr(1) - # Assert no errors after completing testing - scope.expect_esr(0, '0,"No events to report - queue empty"') + scope.expect_esr(0, ('0,"No events to report - queue empty"',)) assert scope.get_errors() == (0, ('0,"No events to report - queue empty"',)) # MSO2 overridden channel names implementation @@ -370,7 +369,7 @@ def test_tekscope70k(device_manager: DeviceManager, capsys: pytest.CaptureFixtur device_manager: The DeviceManager object. capsys: The captured stdout and stderr. """ - scope = device_manager.add_scope("127.0.0.1") + scope: TekScope5k7k70k = device_manager.add_scope("127.0.0.1") assert scope.ip_address == "127.0.0.1" assert scope.hostname == "" # Test some generic device functionality diff --git a/tests/test_smu.py b/tests/test_smu.py index 5961de96..2d02fd6f 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -96,10 +96,10 @@ def test_smu( # noqa: PLR0915 mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): smu.query_expect_timeout("INVALID?", timeout_ms=1) - assert smu.expect_esr(32, "Command error,No Error")[0] + assert smu.expect_esr(32, ("Command error", "No Error")) with pytest.raises(AssertionError): - smu.expect_esr(32, "ERROR") + smu.expect_esr(32, ("ERROR",)) tspieee = smu._ieee_cmds # noqa: SLF001 @@ -252,7 +252,7 @@ def test_smu( # noqa: PLR0915 smu.enable_verification = False assert smu.set_and_check("status.request_enable", 1) == "" - with pytest.raises(AssertionError, match="No error string was provided"): + with pytest.raises(AssertionError, match="error code 0 != 1"): smu.expect_esr(1) @@ -277,7 +277,7 @@ def test_smu2450(device_manager: DeviceManager, capsys: pytest.CaptureFixture[st mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): smu.query_expect_timeout("INVALID?", timeout_ms=1) - assert smu.expect_esr(32, "Command error,No Error")[0] + assert smu.expect_esr(32, ("Command error", "No Error")) assert smu.all_channel_names_list == ("OUTPUT1",) diff --git a/tests/test_ss.py b/tests/test_ss.py index 1f717a07..f06af046 100644 --- a/tests/test_ss.py +++ b/tests/test_ss.py @@ -32,5 +32,5 @@ def test_ss(device_manager: DeviceManager) -> None: mock.MagicMock(side_effect=visa.errors.Error("custom error")), ), pytest.raises(visa.errors.Error): switch.query_expect_timeout("INVALID?", timeout_ms=1) - assert switch.expect_esr(32, "Command error,No Error")[0] + assert switch.expect_esr(32, ("Command error", "No Error")) assert switch.total_channels == 576 diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 92a52a2b..c0bccd5a 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -2,7 +2,7 @@ """Test the usage of unsupported device types.""" from pathlib import Path -from typing import Tuple, Union +from typing import Tuple import pytest @@ -24,9 +24,6 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: def total_channels(self) -> int: # noqa: D102 # pylint: disable=no-self-use return 4 - def expect_esr(self, esr: Union[int, str], error_string: str = "") -> Tuple[bool, str]: # noqa: D102,ARG002 - return True, "" - def test_unsupported_device_type_class(device_manager: DeviceManager) -> None: """Test using the DeviceManager to connect to an unsupported device type.""" diff --git a/tests/test_verification_functions.py b/tests/test_verification_functions.py index 57d7d98d..66a3506d 100644 --- a/tests/test_verification_functions.py +++ b/tests/test_verification_functions.py @@ -26,3 +26,53 @@ def test_verify_values_fail() -> None: " - ERROR: (failing-check) : Actual result does not match the expected " "result within a tolerance of 0.0, max: 0.1, act: 0.2, min: 0.1" ) in str(assertion_info.value) + + +def test_verify_values_regex_match_pass() -> None: + """Test the verify_values function with regex matching that should pass.""" + assert verify_values( + unique_identifier="regex-pass-check", + expected_value=r"^test.*value$", + actual_value="test123value", + use_regex_match=True, + ) + + +def test_verify_values_regex_match_fail() -> None: + """Test the verify_values function with regex matching that should fail.""" + with pytest.raises(AssertionError) as assertion_info: + verify_values( + unique_identifier="regex-fail-check", + expected_value=r"^test.*value$", + actual_value="fail123value", + use_regex_match=True, + ) + assert ( + " - FAILURE: (regex-fail-check) : Actual result does not match the expected result, " + "exp: ^test.*value$, act: fail123value" + ) in str(assertion_info.value) + + +@pytest.mark.parametrize( + ("log_error", "message_level"), + [ + (True, "ERROR"), + (False, "FAILURE"), + ], +) +def test_verify_values_condense_printout(log_error: bool, message_level: str) -> None: + """Test the verify_values function with condense_printout set to True.""" + with pytest.raises(AssertionError) as assertion_info: + verify_values( + unique_identifier="condense-printout-check", + expected_value="expected", + actual_value="actual", + condense_printout=False, + log_error=log_error, + ) + assert ( + f" - {message_level}: (condense-printout-check) : " + f"Actual result does not match the expected result" + "\n exp: expected" + "\n act: actual" + ) in str(assertion_info.value) From ff418ac44e0e2453e4b7a0c92036dcc18b7dd502 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 16 Oct 2024 12:50:02 -0700 Subject: [PATCH 24/52] test: Refactored the test for proper driver inheritance and abstraction to provide granular results on failures. This means that if more than one failure is found all failures will be reported, rather than just the first failure. --- docs/macros.py | 4 +- tests/test_tm_devices.py | 164 ++++++++++++++++++++++++--------------- 2 files changed, 103 insertions(+), 65 deletions(-) diff --git a/docs/macros.py b/docs/macros.py index 7bd43a8a..5bba3eeb 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -160,7 +160,7 @@ def class_diagram( # noqa: C901 # pylint: disable=too-many-locals def get_tree_upwards(cls: Any) -> None: if getattr(cls, "_product_family_base_class", None) == cls: family_base_classes.add(cls.__name__) - if abc.ABC not in cls.__bases__: + if abc.ABC not in cls.__bases__ and not inspect.isabstract(cls): device_drivers.add(cls.__name__) for base in cls.__bases__: @@ -175,7 +175,7 @@ def get_tree_upwards(cls: Any) -> None: def get_tree_downwards(cls: Any) -> None: if getattr(cls, "_product_family_base_class", None) == cls: family_base_classes.add(cls.__name__) - if abc.ABC not in cls.__bases__: + if abc.ABC not in cls.__bases__ and not inspect.isabstract(cls): device_drivers.add(cls.__name__) for subclass in cls.__subclasses__(): diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index 06ecc3c1..8318083e 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -1,8 +1,6 @@ """Test design patterns and requirements of tm_devices.""" import inspect -import itertools -import operator from abc import ABC @@ -10,7 +8,7 @@ # noinspection PyUnresolvedReferences,PyProtectedMember from functools import _lru_cache_wrapper, cached_property # pyright: ignore [reportPrivateUsage] from types import FunctionType -from typing import Any, List, Set, Type +from typing import Any, Generator, List, Set, Type import pytest @@ -29,6 +27,36 @@ ) +@pytest.fixture(autouse=True, scope="module") +def _reset_dm(device_manager: tm_devices.DeviceManager) -> Generator[None, None, None]: # pyright: ignore[reportUnusedFunction] + """Reset the device_manager settings before and after running the tests in this module. + + Args: + device_manager: The device manager fixture. + """ + device_manager.remove_all_devices() + yield + device_manager.remove_all_devices() + + +def get_all_drivers() -> List[Type[object]]: + """Get all non-abstract device drivers.""" + all_drivers: List[Type[object]] = [] + for driver in get_all_subclasses(Device): + if not ( + "UnitTestOnly" in driver.__name__ + or inspect.isabstract(driver) + or ABC in driver.__bases__ + ): + all_drivers.append(driver) # noqa: PERF401 + all_drivers.sort( + key=lambda x: getattr( + getattr(x, _FAMILY_BASE_CLASS_PROPERTY_NAME, x), "__name__", x.__name__ + ) + ) + return all_drivers + + # noinspection PyArgumentList def get_all_subclasses(class_object: Type[object]) -> Set[Type[object]]: """Get all the subclasses for a given class object. @@ -100,66 +128,76 @@ def test_device_types() -> None: raise ValueError(msg) -# TODO: nfelt14: Consider breaking this up into smaller tests -# and updating to use parametrization to make failures more granular -def test_device_method_abstraction() -> None: - """Verify the abstract device inheritance structure is being followed.""" - # dynamically determine all device drivers - all_drivers: List[Type[object]] = [] - for driver in get_all_subclasses(Device): - # disregard anything made specifically for unit test coverage - if not ( - "UnitTestOnly" in driver.__name__ - or inspect.isabstract(driver) - or ABC in driver.__bases__ - ): - assert hasattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME), ( - f"{driver.__name__} is not part of a Family, " - f"all instantiable drivers must inherit from have a single," - f"family base class decorated with the @family_base_class decorator" - ) - all_drivers.append(driver) - - all_drivers.sort(key=operator.attrgetter(_FAMILY_BASE_CLASS_PROPERTY_NAME + ".__name__")) - # verify family path and not adding unique methods to specific drivers - for family_base_class, family_subclass_drivers_iter in itertools.groupby( - all_drivers, - key=operator.attrgetter(_FAMILY_BASE_CLASS_PROPERTY_NAME), - ): - # ensure family base classes never inherit from another family base class by - # checking if any parent class's have the _product_family_base_class field - for family_class_base in family_base_class.__bases__: - inherited_family_class_base = getattr( - family_class_base, _FAMILY_BASE_CLASS_PROPERTY_NAME, None - ) - assert not inherited_family_class_base, ( - f"{family_base_class.__name__} is not a unique family base class, overwriting " - f"{inherited_family_class_base.__name__}" - ) - - # Test that no new methods are defined in subclasses - family_base_class_methods = get_all_method_names(family_base_class) - for driver in family_subclass_drivers_iter: - driver_methods = get_all_method_names(driver) - - assert driver_methods.issubset(family_base_class_methods), ( - f"{driver.__name__} defines methods not present in " - f"{family_base_class.__name__}: {driver_methods - family_base_class_methods}" - ) - - # Test that the Mixin import order is correct - mro: List[str] = [x.__name__ for x in driver.__mro__] - if (mixin_name := driver.__name__ + "Mixin") in mro: - assert mro[1] == mixin_name, f"The {mixin_name} was not the second item in the MRO" - - for driver in all_drivers: - for name, method in inspect.getmembers(driver, predicate=is_defined_function): - # Check that lru_cache is never used - if is_lru_cached(method): - # avoid anything that holds a reference to an instance longer than needed. - # See https://docs.python.org/3/faq/programming.html#faq-cache-method-calls - msg = f"method {name!r} is lru_cached which is banned from tm_devices." - raise AssertionError(msg) +@pytest.mark.parametrize("driver", get_all_drivers()) +def test_driver_has_family_base_class(driver: Type[object]) -> None: + """Test that each driver has a family base class.""" + assert hasattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME), ( + f"{driver.__name__} is not part of a Family, " + f"all instantiable drivers must inherit from a single " + f"family base class decorated with the @family_base_class decorator" + ) + + +@pytest.mark.parametrize( + "family_base_class", + sorted( + { + getattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME) + for driver in get_all_drivers() + if hasattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME) + }, + key=lambda x: x.__name__, # pyright: ignore[reportUnknownMemberType,reportUnknownLambdaType,reportAttributeAccessIssue] + ), +) +def test_family_base_class_inheritance(family_base_class: Type[object]) -> None: + """Test that family base classes do not inherit from another family base class.""" + for family_class_base in family_base_class.__bases__: + inherited_family_class_base = getattr( + family_class_base, _FAMILY_BASE_CLASS_PROPERTY_NAME, None + ) + assert not inherited_family_class_base, ( + f"{family_base_class.__name__} is not a unique family base class, overwriting " + f"{inherited_family_class_base.__name__}" + ) + + +@pytest.mark.parametrize( + ("family_base_class", "driver"), + [ + (getattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME), driver) + for driver in get_all_drivers() + if hasattr(driver, _FAMILY_BASE_CLASS_PROPERTY_NAME) + ], +) +def test_no_new_methods_in_subclasses( + family_base_class: Type[object], driver: Type[object] +) -> None: + """Test that no new methods are defined in subclasses.""" + family_base_class_methods = get_all_method_names(family_base_class) + driver_methods = get_all_method_names(driver) + assert driver_methods.issubset(family_base_class_methods), ( + f"{driver.__name__} defines methods not present in " + f"{family_base_class.__name__}: {driver_methods - family_base_class_methods}" + ) + + +@pytest.mark.parametrize("driver", get_all_drivers()) +def test_mixin_import_order(driver: Type[object]) -> None: + """Test that the Mixin import order is correct.""" + mro = [x.__name__ for x in driver.__mro__] + if (mixin_name := driver.__name__ + "Mixin") in mro: + assert mro[1] == mixin_name, f"The {mixin_name} was not the second item in the MRO ({mro})" + + +@pytest.mark.parametrize("driver", get_all_drivers()) +def test_no_lru_cache_in_methods(driver: Type[object]) -> None: + """Test that lru_cache is never used in methods.""" + lru_cached_methods = { + name + for name, method in inspect.getmembers(driver, predicate=is_defined_function) + if is_lru_cached(method) + } + assert not lru_cached_methods, f"{driver.__name__} has lru_cached methods: {lru_cached_methods}" def test_supported_models_in_device_driver_mapping() -> None: From deeac5f9635f84bb7ec3a89d1656458f840f99e5 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 16 Oct 2024 15:32:24 -0700 Subject: [PATCH 25/52] docs: Update inheritance diagrams and fix an abstract class that wasn't properly marked as abstract --- docs/advanced/architecture.md | 2 +- docs/advanced/signal_generators.md | 2 +- docs/macros.py | 4 ++-- src/tm_devices/drivers/scopes/tekscope/tekscope.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index 2c240efc..b02723f2 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -98,4 +98,4 @@ This package supports many devices, zoom in to see them all! - Family Base Classes are outlined in orange red. - Device Drivers are highlighted in light green. -{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers', highlight_family_base_classes=True, highlight_device_drivers=True) }} +{{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers', highlight_family_base_classes=True, highlight_device_drivers=True, chart_direction='LR') }} diff --git a/docs/advanced/signal_generators.md b/docs/advanced/signal_generators.md index 3b6840c3..bfdef21d 100644 --- a/docs/advanced/signal_generators.md +++ b/docs/advanced/signal_generators.md @@ -33,7 +33,7 @@ classDiagram ``` -The [`TekAFGAWG`][tm_devices.driver_mixins.shared_implementations.tek_afg_awg_mixin] class is responsible +The [`TekAFGAWG`][tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin.TektronixPIAFGAWGMixin] class is responsible for most waveform generators, including the [`AFG`][tm_devices.drivers.afgs.afg.AFG] and [`AWG`][tm_devices.drivers.awgs.awg.AWG]. Similarly, [`TekScope`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope] is responsible for the diff --git a/docs/macros.py b/docs/macros.py index 5bba3eeb..7bd43a8a 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -160,7 +160,7 @@ def class_diagram( # noqa: C901 # pylint: disable=too-many-locals def get_tree_upwards(cls: Any) -> None: if getattr(cls, "_product_family_base_class", None) == cls: family_base_classes.add(cls.__name__) - if abc.ABC not in cls.__bases__ and not inspect.isabstract(cls): + if abc.ABC not in cls.__bases__: device_drivers.add(cls.__name__) for base in cls.__bases__: @@ -175,7 +175,7 @@ def get_tree_upwards(cls: Any) -> None: def get_tree_downwards(cls: Any) -> None: if getattr(cls, "_product_family_base_class", None) == cls: family_base_classes.add(cls.__name__) - if abc.ABC not in cls.__bases__ and not inspect.isabstract(cls): + if abc.ABC not in cls.__bases__: device_drivers.add(cls.__name__) for subclass in cls.__subclasses__(): diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 43c23cad..5522d98d 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -687,7 +687,7 @@ def _set_channel_display_state( @family_base_class -class TekScope(SignalGeneratorMixin, AbstractTekScope): +class TekScope(SignalGeneratorMixin, AbstractTekScope, ABC): """A physical TekScope device. Physical TekScope devices all come with an Internal AFG. From 9aec0c650fdcb0cb5e5849ad5d30bd126e8724be Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 16 Oct 2024 16:01:55 -0700 Subject: [PATCH 26/52] fix: Updated the hostname lookup to use concurrent.futures to implement a shorter timeout --- src/tm_devices/drivers/device.py | 19 +++++++++++++------ src/tm_devices/drivers/margin_testers/tmt4.py | 1 - 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 765e10ce..a4fa1590 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -1,5 +1,6 @@ """Base device driver module.""" +import concurrent.futures import socket import time @@ -281,12 +282,18 @@ def verbose(self) -> bool: @cached_property def hostname(self) -> str: """Return the hostname of the device or an empty string if unable to fetch that.""" - if self._config_entry.connection_type not in {ConnectionTypes.USB}: - try: - # TODO: figure out a better way to lower the timeout for the gethostbyaddr() call - return socket.gethostbyaddr(self.address)[0] - except (socket.gaierror, socket.herror): - pass + if self._config_entry.connection_type not in { + ConnectionTypes.USB, + ConnectionTypes.SERIAL, + ConnectionTypes.GPIB, + ConnectionTypes.MOCK, + }: + with concurrent.futures.ThreadPoolExecutor() as executor: + future = executor.submit(socket.gethostbyaddr, self.address) + try: + return future.result(timeout=2)[0] # Use a two-second timeout for the lookup + except (socket.gaierror, socket.herror, concurrent.futures.TimeoutError): + pass return "" @cached_property diff --git a/src/tm_devices/drivers/margin_testers/tmt4.py b/src/tm_devices/drivers/margin_testers/tmt4.py index 0254210b..719e4e46 100644 --- a/src/tm_devices/drivers/margin_testers/tmt4.py +++ b/src/tm_devices/drivers/margin_testers/tmt4.py @@ -149,4 +149,3 @@ def _check_api_connection(self) -> bool: def _cleanup(self) -> None: """Perform the cleanup defined for the device.""" - # TODO: implement From 301e7abdf9928ef43438c97ebce04864992c73f9 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 16 Oct 2024 20:37:46 -0700 Subject: [PATCH 27/52] refactor: Update TODO comments and remove an unneeded dependency --- pyproject.toml | 2 -- src/tm_devices/commands/helpers/generic_commands.py | 3 ++- src/tm_devices/commands/helpers/scpi_commands.py | 3 ++- src/tm_devices/drivers/scopes/tekscope/tekscope.py | 1 - src/tm_devices/helpers/alias_dict.py | 6 ++++-- src/tm_devices/helpers/read_only_cached_property.py | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7dbddd28..2f552662 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,8 +98,6 @@ urllib3 = "^2.0" zeroconf = "^0.135.0" [tool.poetry.group.dev.dependencies] -docutils = "^0.20" # TODO: remove this when the minimum Python version is >=3.9 -docutils-stubs = "^0.0.22" nodeenv = "^1.9.1" pip = "^24.0" poetry = "^1.8.0" diff --git a/src/tm_devices/commands/helpers/generic_commands.py b/src/tm_devices/commands/helpers/generic_commands.py index 4b5f32e6..9d1d1557 100644 --- a/src/tm_devices/commands/helpers/generic_commands.py +++ b/src/tm_devices/commands/helpers/generic_commands.py @@ -14,7 +14,8 @@ END_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?$") MIDDLE_OF_STRING_DIGITS = re.compile(r"([-\d]+)]?") -# TODO: Once Python 3.8 is no longer supported, the dynamic parent class can be removed +# TODO: Drop Python 3.8: Once Python 3.8 is no longer supported, +# the dynamic parent class can be removed # pylint: disable=unsubscriptable-object,useless-suppression ParentDefaultDictClass: Type[DefaultDict[Any, Any]] = ( defaultdict if sys.version_info < (3, 9) else defaultdict[Any, Any] diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index 41a9d448..99c73a68 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -20,7 +20,8 @@ MAX_CHANNELS = 8 MAX_DIGITAL_BITS = 16 END_OF_STRING_NUMBER = re.compile(r"(\d+)$") -# TODO: Once Python 3.8 is no longer supported, the dynamic parent class can be removed +# TODO: Drop Python 3.8: Once Python 3.8 is no longer supported, +# the dynamic parent class can be removed # pylint: disable=unsubscriptable-object,useless-suppression ParentDefaultDictClass: Type[DefaultDict[Any, Any]] = ( defaultdict if sys.version_info < (3, 9) else defaultdict[Any, Any] diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 5522d98d..f768fb7d 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -128,7 +128,6 @@ def __init__( super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) self.write("HEADER OFF", verbose=False) - # TODO: this should be a property of the probe attribute on the channel object self._num_dig_bits_in_ch: int = 8 ################################################################################################ diff --git a/src/tm_devices/helpers/alias_dict.py b/src/tm_devices/helpers/alias_dict.py index 3cd0ac73..4ff3bfec 100644 --- a/src/tm_devices/helpers/alias_dict.py +++ b/src/tm_devices/helpers/alias_dict.py @@ -4,12 +4,14 @@ from typing import Any, Dict, MutableMapping, Type -# TODO: Once Python 3.8 is no longer supported, the dynamic parent class can be removed +# TODO: Drop Python 3.8: Once Python 3.8 is no longer supported, +# the dynamic parent class can be removed # pylint: disable=unsubscriptable-object,useless-suppression ParentDictClass: Type[Dict[Any, Any]] = dict if sys.version_info < (3, 9) else dict[Any, Any] -# TODO: Once Python 3.8 is no longer supported, replace the parent class with `dict[Any, Any]` +# TODO: Drop Python 3.8: Once Python 3.8 is no longer supported, +# replace the parent class with `dict[Any, Any]` class AliasDict(ParentDictClass): """A custom dictionary class that supports aliases as secondary keys. diff --git a/src/tm_devices/helpers/read_only_cached_property.py b/src/tm_devices/helpers/read_only_cached_property.py index ca243538..e5279e0c 100644 --- a/src/tm_devices/helpers/read_only_cached_property.py +++ b/src/tm_devices/helpers/read_only_cached_property.py @@ -7,7 +7,7 @@ _T = TypeVar("_T") -# TODO: Remove the pragmas and exception block when support for Python 3.8 is dropped +# TODO: Drop Python 3.8: Remove pragmas and exception block when support for Python 3.8 is dropped try: # pragma: py-lt-39 # pylint: disable=unsubscriptable-object,useless-suppression class ReadOnlyCachedProperty(cached_property[_T]): # pyright: ignore[reportRedeclaration] From e95f3a4d314694bac9ca53630e6cb3a5ad7b1d0f Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 17 Oct 2024 10:47:30 -0700 Subject: [PATCH 28/52] refactor: Made a handful of the new mixins private since they don't really need to show up in the documentation --- docs/advanced/signal_generators.md | 6 ++-- .../custom_device_driver_support.py | 2 +- mkdocs.yml | 33 ++++++++++-------- pyproject.toml | 1 + src/tm_devices/commands/afg3k_commands.py | 2 +- src/tm_devices/commands/afg3kb_commands.py | 2 +- src/tm_devices/commands/afg3kc_commands.py | 2 +- src/tm_devices/commands/awg5200_commands.py | 2 +- src/tm_devices/commands/awg5k_commands.py | 2 +- src/tm_devices/commands/awg5kc_commands.py | 2 +- src/tm_devices/commands/awg70ka_commands.py | 2 +- src/tm_devices/commands/awg70kb_commands.py | 2 +- src/tm_devices/commands/awg7k_commands.py | 2 +- src/tm_devices/commands/awg7kc_commands.py | 2 +- src/tm_devices/commands/daq6510_commands.py | 2 +- src/tm_devices/commands/dmm6500_commands.py | 2 +- src/tm_devices/commands/dmm7510_commands.py | 2 +- src/tm_devices/commands/dpo2k_commands.py | 2 +- src/tm_devices/commands/dpo2kb_commands.py | 2 +- src/tm_devices/commands/dpo4k_commands.py | 2 +- src/tm_devices/commands/dpo4kb_commands.py | 2 +- src/tm_devices/commands/dpo5k_commands.py | 2 +- src/tm_devices/commands/dpo5kb_commands.py | 2 +- src/tm_devices/commands/dpo70kc_commands.py | 2 +- src/tm_devices/commands/dpo70kd_commands.py | 2 +- src/tm_devices/commands/dpo70kdx_commands.py | 2 +- src/tm_devices/commands/dpo70ksx_commands.py | 2 +- src/tm_devices/commands/dpo7k_commands.py | 2 +- src/tm_devices/commands/dpo7kc_commands.py | 2 +- src/tm_devices/commands/dsa70kc_commands.py | 2 +- src/tm_devices/commands/dsa70kd_commands.py | 2 +- .../commands/gen_163n04_mdo/search.py | 2 +- .../commands/gen_16x4xq_mdo/search.py | 2 +- .../commands/gen_1jzp7o_mdodpo/trigger.py | 2 +- .../commands/gen_1kdqwg_mdo/search.py | 2 +- .../commands/gen_1kdqwg_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_1kjd62_mdo/rf.py | 2 +- .../commands/gen_1kozfv_dpo/search.py | 2 +- .../commands/gen_1l4fot_mdomso/cursor.py | 2 +- .../commands/gen_1la1ym_msomdodpo/trigger.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/message.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/setup_1.py | 2 +- .../commands/gen_1lh2st_msodpo/search.py | 2 +- .../gen_1ltpwt_mdomsodpo/actonevent.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/afg.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/alias.py | 2 +- .../gen_1ltpwt_mdomsodpo/application.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/autoset.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxin.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxout.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/bus.py | 2 +- .../gen_1ltpwt_mdomsodpo/calibrate.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ch.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/d.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/data.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/diag.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/dvm.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/email.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ethernet.py | 2 +- .../gen_1ltpwt_mdomsodpo/filesystem.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/fpanel.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/gpibusb.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/hardcopy.py | 2 +- .../gen_1ltpwt_mdomsodpo/histogram.py | 2 +- .../gen_1ltpwt_mdomsodpo/horizontal.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/mark.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/marker.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/math1.py | 2 +- .../gen_1ltpwt_mdomsodpo/pictbridge.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/power.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/reboot.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ref.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/save.py | 2 +- .../gen_1ltpwt_mdomsodpo/socketserver.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/time.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/vidpic.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/wfminpre.py | 2 +- .../gen_1ltpwt_mdomsodpo/wfmoutpre.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/zoom.py | 2 +- .../commands/gen_1lwj1r_msomdodpo/rosc.py | 2 +- .../commands/gen_1lxxm9_msomdodpo/cursor.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/acquire.py | 2 +- .../gen_1mlt9u_mdomsodpo/configuration.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/deskew.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/display.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/mask.py | 2 +- .../gen_1mlt9u_mdomsodpo/measurement.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/recall.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/select.py | 2 +- .../commands/gen_1mq0z9_msodpo/rf.py | 2 +- .../gen_1nmc1o_msodpomdo/clearmenu.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/errlog.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/language.py | 2 +- .../gen_1nmc1o_msodpomdo/status_and_error.py | 2 +- .../gen_1nmc1o_msodpomdo/usbdevice.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/usbtmc.py | 2 +- .../commands/gen_1zn03_mso/acquire.py | 2 +- .../commands/gen_1zn03_mso/actonevent.py | 2 +- .../commands/gen_1zn03_mso/auxout.py | 2 +- .../commands/gen_1zn03_mso/battery.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/bus.py | 2 +- .../commands/gen_1zn03_mso/callouts.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/data.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/dch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/diag.py | 2 +- .../commands/gen_1zn03_mso/display.py | 2 +- .../commands/gen_1zn03_mso/fpanel.py | 2 +- .../commands/gen_1zn03_mso/horizontal.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/mask.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/math.py | 2 +- .../commands/gen_1zn03_mso/measurement.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/pg.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/plot.py | 2 +- .../commands/gen_1zn03_mso/power.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ref.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/save.py | 2 +- .../commands/gen_1zn03_mso/saveon.py | 2 +- .../commands/gen_1zn03_mso/saveonevent.py | 2 +- .../commands/gen_1zn03_mso/search.py | 2 +- .../commands/gen_1zn03_mso/select.py | 2 +- .../commands/gen_1zn03_mso/touchscreen.py | 2 +- .../commands/gen_1zn03_mso/trigger.py | 2 +- .../commands/gen_22daqs_afg/afgcontrol.py | 2 +- .../commands/gen_22daqs_afg/data.py | 2 +- .../commands/gen_22daqs_afg/diagnostic.py | 2 +- .../commands/gen_22daqs_afg/display.py | 2 +- .../commands/gen_22daqs_afg/hcopy.py | 2 +- .../commands/gen_22daqs_afg/memory.py | 2 +- .../commands/gen_22daqs_afg/mmemory.py | 2 +- .../commands/gen_22daqs_afg/output.py | 2 +- .../commands/gen_22daqs_afg/output1.py | 2 +- .../commands/gen_22daqs_afg/output2.py | 2 +- .../commands/gen_22daqs_afg/source.py | 2 +- .../commands/gen_22daqs_afg/source1.py | 2 +- .../commands/gen_22daqs_afg/source2.py | 2 +- .../commands/gen_22daqs_afg/source3.py | 2 +- .../commands/gen_22daqs_afg/source4.py | 2 +- .../commands/gen_22daqs_afg/status.py | 2 +- .../commands/gen_22daqs_afg/system.py | 2 +- .../commands/gen_22daqs_afg/trigger.py | 2 +- .../commands/gen_2i1z2s_awg/abort.py | 2 +- .../commands/gen_2i1z2s_awg/auxoutput.py | 2 +- .../commands/gen_2i1z2s_awg/awgcontrol.py | 2 +- .../commands/gen_2i1z2s_awg/bwaveform.py | 2 +- .../commands/gen_2i1z2s_awg/clock.py | 2 +- .../commands/gen_2i1z2s_awg/cplayback.py | 2 +- .../commands/gen_2i1z2s_awg/diagnostic.py | 2 +- .../commands/gen_2i1z2s_awg/fgen.py | 2 +- .../commands/gen_2i1z2s_awg/instrument.py | 2 +- .../commands/gen_2i1z2s_awg/mmemory.py | 2 +- .../commands/gen_2i1z2s_awg/output.py | 2 +- .../commands/gen_2i1z2s_awg/source.py | 2 +- .../commands/gen_2i1z2s_awg/synchronize.py | 2 +- .../commands/gen_2i1z2s_awg/system.py | 2 +- .../commands/gen_2i1z2s_awg/trigger.py | 2 +- .../commands/gen_2i1z2s_awg/wlist.py | 2 +- .../commands/gen_32dszm_awg/awgcontrol.py | 2 +- .../commands/gen_32dszm_awg/diagnostic.py | 2 +- .../commands/gen_32dszm_awg/display.py | 2 +- .../commands/gen_32dszm_awg/event.py | 2 +- .../commands/gen_32dszm_awg/instrument.py | 2 +- .../commands/gen_32dszm_awg/mmemory.py | 2 +- .../commands/gen_32dszm_awg/output.py | 2 +- .../commands/gen_32dszm_awg/sequence.py | 2 +- .../commands/gen_32dszm_awg/slist.py | 2 +- .../commands/gen_32dszm_awg/source.py | 2 +- .../commands/gen_32dszm_awg/status.py | 2 +- .../commands/gen_32dszm_awg/system.py | 2 +- .../commands/gen_32dszm_awg/trigger.py | 2 +- .../commands/gen_32dszm_awg/wlist.py | 2 +- .../commands/gen_33ijgq_afgawg/abort.py | 2 +- .../commands/gen_33ijgq_afgawg/calibration.py | 2 +- .../commands/gen_3n9auv_awg/active.py | 2 +- .../commands/gen_3n9auv_awg/calibration.py | 2 +- .../commands/gen_3n9auv_awg/connectivity.py | 2 +- .../commands/gen_3n9auv_awg/display.py | 2 +- .../commands/gen_3n9auv_awg/output.py | 2 +- .../commands/gen_3n9auv_awg/slist.py | 2 +- .../commands/gen_3n9auv_awg/status.py | 2 +- .../commands/gen_3n9auv_awg/wplugin.py | 2 +- .../commands/gen_3rs8qy_awg/auxoutput.py | 2 +- .../commands/gen_3rs8qy_awg/awgcontrol.py | 2 +- .../commands/gen_3rs8qy_awg/bwaveform.py | 2 +- .../commands/gen_3rs8qy_awg/clock.py | 2 +- .../commands/gen_3rs8qy_awg/cplayback.py | 2 +- .../commands/gen_3rs8qy_awg/diagnostic.py | 2 +- .../commands/gen_3rs8qy_awg/fgen.py | 2 +- .../commands/gen_3rs8qy_awg/instrument.py | 2 +- .../commands/gen_3rs8qy_awg/mmemory.py | 2 +- .../commands/gen_3rs8qy_awg/output.py | 2 +- .../commands/gen_3rs8qy_awg/source.py | 2 +- .../commands/gen_3rs8qy_awg/synchronize.py | 2 +- .../commands/gen_3rs8qy_awg/system.py | 2 +- .../commands/gen_3rs8qy_awg/trigger.py | 2 +- .../commands/gen_3rs8qy_awg/wlist.py | 2 +- .../commands/gen_3skc3w_dpo/trigger.py | 2 +- .../commands/gen_3tjgb2_dpo/trigger.py | 2 +- .../commands/gen_4jiykk_dpo/channelmapping.py | 2 +- .../commands/gen_4jiykk_dpo/counter.py | 2 +- .../commands/gen_4jiykk_dpo/errordetector.py | 2 +- .../commands/gen_4jiykk_dpo/idnmultiscope.py | 2 +- .../commands/gen_4jiykk_dpo/linktraining.py | 2 +- .../commands/gen_4jiykk_dpo/rosc.py | 2 +- .../commands/gen_4jiykk_dpo/trigger.py | 2 +- .../commands/gen_53md2e_dpomso/fpanel.py | 2 +- .../commands/gen_561g9r_mso/trigger.py | 2 +- .../commands/gen_5ri0nj_dpomso/bus.py | 2 +- .../commands/gen_5vmwut_dpodsamso/trigger.py | 2 +- .../gen_5xwdsk_dpodsamso/errordetector.py | 2 +- .../commands/gen_5y90wx_dpodsamso/dpojet.py | 2 +- .../commands/gen_5yyb4r_mso/trigger.py | 2 +- .../commands/gen_60xy3r_smu/buffer.py | 2 +- .../commands/gen_60xy3r_smu/script.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/smu.py | 2 +- .../commands/gen_60xy3r_smu/upgrade.py | 2 +- .../commands/gen_6ocqvh_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6srh1x_smu/smu.py | 2 +- .../commands/gen_6srh1x_smu/upgrade.py | 2 +- .../commands/gen_6vynmi_smu/acal.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/smu.py | 2 +- .../commands/gen_6vynmi_smu/trigger.py | 2 +- .../commands/gen_6vynmi_smu/upgrade.py | 2 +- .../commands/gen_6w7311_smu/trigger.py | 2 +- .../commands/gen_6xiuc2_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6xiuc2_smu/smu.py | 2 +- .../commands/gen_6xiuc2_smu/upgrade.py | 2 +- .../commands/gen_7kqm9p_smu/buffervar.py | 2 +- .../commands/gen_7kqm9p_smu/display.py | 2 +- .../commands/gen_7kqm9p_smu/tsplink.py | 2 +- .../commands/gen_7kqm9p_smu/tspnet.py | 2 +- .../commands/gen_7ryhce_smu/status.py | 2 +- .../commands/gen_7s2p1p_smu/beeper.py | 2 +- .../commands/gen_7s2p1p_smu/buffervar.py | 2 +- .../commands/gen_7s2p1p_smu/dataqueue.py | 2 +- .../commands/gen_7s2p1p_smu/digio.py | 2 +- .../commands/gen_7s2p1p_smu/display.py | 2 +- .../commands/gen_7s2p1p_smu/errorqueue.py | 2 +- .../commands/gen_7s2p1p_smu/eventlog.py | 2 +- .../commands/gen_7s2p1p_smu/format.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/lan.py | 2 +- .../commands/gen_7s2p1p_smu/localnode.py | 2 +- .../commands/gen_7s2p1p_smu/serial.py | 2 +- .../commands/gen_7s2p1p_smu/smux.py | 2 +- .../commands/gen_7s2p1p_smu/status.py | 2 +- .../commands/gen_7s2p1p_smu/trigger.py | 2 +- .../commands/gen_7s2p1p_smu/tsplink.py | 2 +- .../commands/gen_7s2p1p_smu/tspnet.py | 2 +- .../commands/gen_7s43m8_smu/status.py | 2 +- .../commands/gen_7s6wr5_smu/status.py | 2 +- .../commands/gen_8ojdkz_smu/display.py | 2 +- .../commands/gen_8ojdkz_smu/node.py | 2 +- .../commands/gen_8ojdkz_smu/smux.py | 2 +- .../commands/gen_8ojdkz_smu/status.py | 2 +- .../commands/gen_8wm55i_smu/smux.py | 2 +- .../commands/gen_9kezla_smu/smux.py | 2 +- .../commands/gen_9mzp2j_smu/digio.py | 2 +- .../commands/gen_9mzp2j_smu/display.py | 2 +- .../commands/gen_9mzp2j_smu/tsplink.py | 2 +- .../commands/gen_9ncc6e_smu/display.py | 2 +- .../commands/gen_9nnkq7_smu/status.py | 2 +- .../commands/gen_9slyux_smu/status.py | 2 +- .../commands/gen_ahkybr_smu/beeper.py | 2 +- .../commands/gen_ahkybr_smu/buffervar.py | 2 +- .../commands/gen_ahkybr_smu/eventlog.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/lan.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/os.py | 2 +- .../commands/gen_ahkybr_smu/script.py | 2 +- .../commands/gen_ahkybr_smu/scriptvar.py | 2 +- .../commands/gen_ahkybr_smu/setup_1.py | 2 +- .../commands/gen_ahkybr_smu/tspnet.py | 2 +- .../commands/gen_aih9e2_smu/trigger.py | 2 +- .../commands/gen_ak4990_smu/smux.py | 2 +- .../commands/gen_am6pcr_smu/smux.py | 2 +- .../commands/gen_am6pcr_smu/status.py | 2 +- .../commands/gen_amm5lc_smu/digio.py | 2 +- .../commands/gen_amm5lc_smu/tsplink.py | 2 +- .../commands/gen_aostep_smu/serial.py | 2 +- .../commands/gen_aqr1t1_smu/localnode.py | 2 +- .../commands/gen_as1ejq_smu/localnode.py | 2 +- .../commands/gen_as1ejq_smu/smux.py | 2 +- .../commands/gen_as1ejq_smu/status.py | 2 +- .../commands/gen_at7jl1_smu/display.py | 2 +- .../commands/gen_au597k_smu/digio.py | 2 +- .../commands/gen_au597k_smu/format.py | 2 +- .../commands/gen_au597k_smu/tsplink.py | 2 +- .../commands/gen_auyr50_smu/format.py | 2 +- .../commands/gen_auyr50_smu/localnode.py | 2 +- .../commands/gen_auyr50_smu/node.py | 2 +- .../commands/gen_avh0iw_smu/display.py | 2 +- .../commands/gen_avh0iw_smu/trigger.py | 2 +- .../commands/gen_awhjao_smu/status.py | 2 +- .../commands/gen_by991s_smudaq/digio.py | 2 +- .../commands/gen_by991s_smudaq/status.py | 2 +- .../gen_c3g61_tekscopepc/actonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/bus.py | 2 +- .../commands/gen_c3g61_tekscopepc/callouts.py | 2 +- .../commands/gen_c3g61_tekscopepc/ch.py | 2 +- .../commands/gen_c3g61_tekscopepc/display.py | 2 +- .../commands/gen_c3g61_tekscopepc/filesys.py | 2 +- .../gen_c3g61_tekscopepc/histogram.py | 2 +- .../gen_c3g61_tekscopepc/horizontal.py | 2 +- .../commands/gen_c3g61_tekscopepc/mask.py | 2 +- .../commands/gen_c3g61_tekscopepc/math.py | 2 +- .../commands/gen_c3g61_tekscopepc/measu.py | 2 +- .../gen_c3g61_tekscopepc/measurement.py | 2 +- .../commands/gen_c3g61_tekscopepc/plot.py | 2 +- .../commands/gen_c3g61_tekscopepc/power.py | 2 +- .../commands/gen_c3g61_tekscopepc/ref.py | 2 +- .../commands/gen_c3g61_tekscopepc/remote.py | 2 +- .../commands/gen_c3g61_tekscopepc/s.py | 2 +- .../commands/gen_c3g61_tekscopepc/save.py | 2 +- .../gen_c3g61_tekscopepc/saveonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/search.py | 2 +- .../gen_c3g61_tekscopepc/searchtable.py | 2 +- .../commands/gen_c3g61_tekscopepc/sv.py | 2 +- .../commands/gen_c3g61_tekscopepc/trigger.py | 2 +- .../commands/gen_c69az_msotekscopepc/lic.py | 2 +- .../gen_c69az_msotekscopepc/license.py | 2 +- .../commands/gen_canxny_daq/buffer.py | 2 +- .../commands/gen_canxny_daq/buffervar.py | 2 +- .../commands/gen_canxny_daq/channel.py | 2 +- .../commands/gen_canxny_daq/display.py | 2 +- src/tm_devices/commands/gen_canxny_daq/dmm.py | 2 +- .../commands/gen_canxny_daq/scan.py | 2 +- .../commands/gen_canxny_daq/slot.py | 2 +- .../commands/gen_canxny_daq/trigger.py | 2 +- .../commands/gen_canxny_daq/tsplink.py | 2 +- .../commands/gen_canxny_daq/upgrade.py | 2 +- .../commands/gen_d6b496_dmm/acal.py | 2 +- .../commands/gen_d6b496_dmm/buffer.py | 2 +- .../commands/gen_d6b496_dmm/buffervar.py | 2 +- .../commands/gen_d6b496_dmm/display.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/dmm.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/fan.py | 2 +- .../commands/gen_d6b496_dmm/localnode.py | 2 +- .../commands/gen_d6b496_dmm/trigger.py | 2 +- .../commands/gen_d83qe0_dmm/buffer.py | 2 +- .../commands/gen_d83qe0_dmm/buffervar.py | 2 +- .../commands/gen_d83qe0_dmm/channel.py | 2 +- .../commands/gen_d83qe0_dmm/display.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/dmm.py | 2 +- .../commands/gen_d83qe0_dmm/scan.py | 2 +- .../commands/gen_d83qe0_dmm/slot.py | 2 +- .../commands/gen_d83qe0_dmm/trigger.py | 2 +- .../gen_dawv9y_smudaqdmm/localnode.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/beeper.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/eventlog.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/file.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/format.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/lan.py | 2 +- .../gen_dbdq3i_smudaqdmm/scriptvar.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/timer.py | 2 +- .../commands/gen_dbqd7k_dmm/digio.py | 2 +- .../commands/gen_dbqd7k_dmm/node.py | 2 +- .../commands/gen_dbqd7k_dmm/status.py | 2 +- .../commands/gen_dbqd7k_dmm/tsplink.py | 2 +- .../commands/gen_dbqd7k_dmm/tspnet.py | 2 +- .../commands/gen_dbqd7k_dmm/upgrade.py | 2 +- .../commands/gen_dcpheg_daqdmm/smu.py | 2 +- .../commands/gen_dd4xnb_smudaqdmm/script.py | 2 +- .../commands/gen_e3e9uu_lpdmso/acquire.py | 2 +- .../commands/gen_e3e9uu_lpdmso/actonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/application.py | 2 +- .../commands/gen_e3e9uu_lpdmso/auxout.py | 2 +- .../commands/gen_e3e9uu_lpdmso/bus.py | 2 +- .../commands/gen_e3e9uu_lpdmso/callouts.py | 2 +- .../commands/gen_e3e9uu_lpdmso/ch.py | 2 +- .../commands/gen_e3e9uu_lpdmso/diag.py | 2 +- .../commands/gen_e3e9uu_lpdmso/diggrp.py | 2 +- .../commands/gen_e3e9uu_lpdmso/display.py | 2 +- .../commands/gen_e3e9uu_lpdmso/dvm.py | 2 +- .../commands/gen_e3e9uu_lpdmso/fpanel.py | 2 +- .../commands/gen_e3e9uu_lpdmso/histogram.py | 2 +- .../commands/gen_e3e9uu_lpdmso/horizontal.py | 2 +- .../commands/gen_e3e9uu_lpdmso/license.py | 2 +- .../commands/gen_e3e9uu_lpdmso/mask.py | 2 +- .../commands/gen_e3e9uu_lpdmso/math.py | 2 +- .../commands/gen_e3e9uu_lpdmso/measurement.py | 2 +- .../commands/gen_e3e9uu_lpdmso/pilogger.py | 2 +- .../commands/gen_e3e9uu_lpdmso/plot.py | 2 +- .../commands/gen_e3e9uu_lpdmso/power.py | 2 +- .../commands/gen_e3e9uu_lpdmso/ref.py | 2 +- .../commands/gen_e3e9uu_lpdmso/rosc.py | 2 +- .../commands/gen_e3e9uu_lpdmso/save.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveon.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/search.py | 2 +- .../commands/gen_e3e9uu_lpdmso/searchtable.py | 2 +- .../commands/gen_e3e9uu_lpdmso/select.py | 2 +- .../commands/gen_e3e9uu_lpdmso/sv.py | 2 +- .../commands/gen_e3e9uu_lpdmso/touchscreen.py | 2 +- .../commands/gen_e3e9uu_lpdmso/trigger.py | 2 +- .../commands/gen_e3e9uu_lpdmso/tstamptable.py | 2 +- .../commands/gen_e3h2zs_lpdmso/afg.py | 2 +- .../commands/gen_e3h2zs_lpdmso/autoset.py | 2 +- .../commands/gen_e3h2zs_lpdmso/calibrate.py | 2 +- .../commands/gen_e3h2zs_lpdmso/connected.py | 2 +- .../commands/gen_e3h2zs_lpdmso/ethernet.py | 2 +- .../commands/gen_e3h2zs_lpdmso/usbdevice.py | 2 +- .../commands/gen_e3pief_ss/beeper.py | 2 +- .../commands/gen_e3pief_ss/buffervar.py | 2 +- .../commands/gen_e3pief_ss/channel.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/comm.py | 2 +- .../commands/gen_e3pief_ss/digio.py | 2 +- .../commands/gen_e3pief_ss/display.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/dmm.py | 2 +- .../commands/gen_e3pief_ss/eventlog.py | 2 +- .../commands/gen_e3pief_ss/format.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/lan.py | 2 +- .../commands/gen_e3pief_ss/localnode.py | 2 +- .../commands/gen_e3pief_ss/memory.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/os.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/ptp.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/scan.py | 2 +- .../commands/gen_e3pief_ss/schedule.py | 2 +- .../commands/gen_e3pief_ss/script.py | 2 +- .../commands/gen_e3pief_ss/scriptvar.py | 2 +- .../commands/gen_e3pief_ss/setup_1.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/slot.py | 2 +- .../commands/gen_e3pief_ss/status.py | 2 +- .../commands/gen_e3pief_ss/trigger.py | 2 +- .../commands/gen_e3pief_ss/tsplink.py | 2 +- .../commands/gen_e3pief_ss/upgrade.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/data.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/eyemask.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/matharbflt.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/peakstable.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/ref.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/visual.py | 2 +- .../autosavepitimeout.py | 2 +- .../autosaveuitimeout.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/bustable.py | 2 +- .../configuration.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/curve.py | 2 +- .../curvestream.py | 2 +- .../customtable.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/date.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/filesystem.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/mainwindow.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/meastable.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/recall.py | 2 +- .../socketserver.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/time.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/undo.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/vertical.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py | 2 +- .../commands/gen_e4de2d_lpdmsomdo/clear.py | 2 +- .../totaluptime.py | 2 +- .../pause.py | 2 +- .../commands/gen_e7aqno_smudaqss/node.py | 2 +- .../gen_eat5s3_smudaqdmmss/dataqueue.py | 2 +- .../commands/gen_eat5s3_smudaqdmmss/fs.py | 2 +- .../gen_eat5s3_smudaqdmmss/userstring.py | 2 +- .../commands/gen_ed9nkc_daqss/tspnet.py | 2 +- .../commands/gen_efap3f_smuss/bit.py | 2 +- .../commands/gen_efap3f_smuss/errorqueue.py | 2 +- .../commands/gen_efap3f_smuss/io.py | 2 +- .../commands/gen_efap3f_smuss/timer.py | 2 +- .../commands/gen_eg5ll2_smudaqdmmss/gpib.py | 2 +- .../commands/gen_ffz2xs_dpodsamso/bus.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/curve.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/date.py | 2 +- .../gen_fhrp27_msodpomdodsa/mathvar.py | 2 +- .../save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/acquire.py | 2 +- .../commands/gen_fk3z56_dpodsamso/allocate.py | 2 +- .../gen_fk3z56_dpodsamso/application.py | 2 +- .../commands/gen_fk3z56_dpodsamso/autoset.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxin.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxout.py | 2 +- .../commands/gen_fk3z56_dpodsamso/bell.py | 2 +- .../gen_fk3z56_dpodsamso/calibrate.py | 2 +- .../commands/gen_fk3z56_dpodsamso/ch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/clear.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cmdbatch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cq.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cursor.py | 2 +- .../gen_fk3z56_dpodsamso/curvenext.py | 2 +- .../gen_fk3z56_dpodsamso/curvestream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/custom.py | 2 +- .../commands/gen_fk3z56_dpodsamso/d.py | 2 +- .../commands/gen_fk3z56_dpodsamso/data.py | 2 +- .../commands/gen_fk3z56_dpodsamso/delete.py | 2 +- .../commands/gen_fk3z56_dpodsamso/diag.py | 2 +- .../commands/gen_fk3z56_dpodsamso/display.py | 2 +- .../commands/gen_fk3z56_dpodsamso/email.py | 2 +- .../commands/gen_fk3z56_dpodsamso/export.py | 2 +- .../commands/gen_fk3z56_dpodsamso/fastacq.py | 2 +- .../gen_fk3z56_dpodsamso/filesystem.py | 2 +- .../commands/gen_fk3z56_dpodsamso/gpibusb.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hardcopy.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hdr.py | 2 +- .../gen_fk3z56_dpodsamso/histogram.py | 2 +- .../gen_fk3z56_dpodsamso/horizontal.py | 2 +- .../commands/gen_fk3z56_dpodsamso/limit.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mark.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mask.py | 2 +- .../commands/gen_fk3z56_dpodsamso/math.py | 2 +- .../gen_fk3z56_dpodsamso/matharbflt.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mch.py | 2 +- .../gen_fk3z56_dpodsamso/measurement.py | 2 +- .../gen_fk3z56_dpodsamso/multiscope.py | 2 +- .../gen_fk3z56_dpodsamso/opcextended.py | 2 +- .../commands/gen_fk3z56_dpodsamso/pcenable.py | 2 +- .../commands/gen_fk3z56_dpodsamso/recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/ref.py | 2 +- .../commands/gen_fk3z56_dpodsamso/save.py | 2 +- .../gen_fk3z56_dpodsamso/save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/saveon.py | 2 +- .../commands/gen_fk3z56_dpodsamso/search.py | 2 +- .../commands/gen_fk3z56_dpodsamso/select.py | 2 +- .../commands/gen_fk3z56_dpodsamso/setup_1.py | 2 +- .../commands/gen_fk3z56_dpodsamso/system.py | 2 +- .../commands/gen_fk3z56_dpodsamso/teklink.py | 2 +- .../commands/gen_fk3z56_dpodsamso/test.py | 2 +- .../commands/gen_fk3z56_dpodsamso/trig.py | 2 +- .../commands/gen_fk3z56_dpodsamso/usbtmc.py | 2 +- .../commands/gen_fk3z56_dpodsamso/visual.py | 2 +- .../gen_fk3z56_dpodsamso/wavfrmstream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfminpre.py | 2 +- .../gen_fk3z56_dpodsamso/wfmoutpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfmpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/zoom.py | 2 +- .../commands/gen_fkjfe8_msodpodsa/time.py | 2 +- .../gen_fn2qbf_msodpo/errordetector.py | 2 +- .../commands/gen_fn2qbf_msodpo/trigger.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/counter.py | 2 +- .../gen_fpx9s1_dpodsamso/linktraining.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/rosc.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../status_and_error.py | 2 +- .../calibration.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../alias.py | 2 +- .../status_and_error.py | 2 +- .../miscellaneous.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/newpass.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/password.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/teksecure.py | 2 +- .../allev.py | 2 +- .../busy.py | 2 +- .../dese.py | 2 +- .../event.py | 2 +- .../evmsg.py | 2 +- .../evqty.py | 2 +- .../factory.py | 2 +- .../header.py | 2 +- .../id.py | 2 +- .../miscellaneous.py | 2 +- .../rem.py | 2 +- .../set.py | 2 +- .../status_and_error.py | 2 +- .../verbose.py | 2 +- .../wavfrm.py | 2 +- .../gen_fzn174_lpdmsodpomdodsa/lock.py | 2 +- .../gen_fzn174_lpdmsodpomdodsa/unlock.py | 2 +- .../commands/gen_u301s_msodpo/acquire.py | 2 +- .../commands/gen_u301s_msodpo/alias.py | 2 +- .../commands/gen_u301s_msodpo/autoset.py | 2 +- .../commands/gen_u301s_msodpo/auxin.py | 2 +- .../commands/gen_u301s_msodpo/bus.py | 2 +- .../commands/gen_u301s_msodpo/calibrate.py | 2 +- .../commands/gen_u301s_msodpo/ch.py | 2 +- .../commands/gen_u301s_msodpo/cursor.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/d.py | 2 +- .../commands/gen_u301s_msodpo/data.py | 2 +- .../commands/gen_u301s_msodpo/diag.py | 2 +- .../commands/gen_u301s_msodpo/display.py | 2 +- .../commands/gen_u301s_msodpo/ethernet.py | 2 +- .../commands/gen_u301s_msodpo/filesystem.py | 2 +- .../commands/gen_u301s_msodpo/filtervu.py | 2 +- .../commands/gen_u301s_msodpo/fpanel.py | 2 +- .../commands/gen_u301s_msodpo/gpibusb.py | 2 +- .../commands/gen_u301s_msodpo/hardcopy.py | 2 +- .../commands/gen_u301s_msodpo/horizontal.py | 2 +- .../commands/gen_u301s_msodpo/mark.py | 2 +- .../commands/gen_u301s_msodpo/math1.py | 2 +- .../commands/gen_u301s_msodpo/measurement.py | 2 +- .../commands/gen_u301s_msodpo/pictbridge.py | 2 +- .../commands/gen_u301s_msodpo/recall.py | 2 +- .../commands/gen_u301s_msodpo/ref.py | 2 +- .../commands/gen_u301s_msodpo/save.py | 2 +- .../commands/gen_u301s_msodpo/search.py | 2 +- .../commands/gen_u301s_msodpo/select.py | 2 +- .../commands/gen_u301s_msodpo/trigger.py | 2 +- .../commands/gen_u301s_msodpo/wfminpre.py | 2 +- .../commands/gen_u301s_msodpo/wfmoutpre.py | 2 +- .../commands/gen_u301s_msodpo/zoom.py | 2 +- .../commands/gen_ujuvb_mdo/acquire.py | 2 +- .../commands/gen_ujuvb_mdo/configuration.py | 2 +- .../commands/gen_ujuvb_mdo/cursor.py | 2 +- .../commands/gen_ujuvb_mdo/deskew.py | 2 +- .../commands/gen_ujuvb_mdo/display.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/lock.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/mask.py | 2 +- .../commands/gen_ujuvb_mdo/measurement.py | 2 +- .../commands/gen_ujuvb_mdo/message.py | 2 +- .../commands/gen_ujuvb_mdo/recall.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rf.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rrb.py | 2 +- .../commands/gen_ujuvb_mdo/search.py | 2 +- .../commands/gen_ujuvb_mdo/select.py | 2 +- .../commands/gen_ujuvb_mdo/setup1.py | 2 +- .../commands/gen_ujuvb_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_usaa3_mdo/rf.py | 2 +- .../commands/gen_usaa3_mdo/search.py | 2 +- .../commands/gen_usaa3_mdo/trigger.py | 2 +- .../commands/helpers/scpi_commands.py | 2 +- .../commands/helpers/tsp_commands.py | 2 +- src/tm_devices/commands/lpd6_commands.py | 2 +- src/tm_devices/commands/mdo3_commands.py | 2 +- src/tm_devices/commands/mdo3k_commands.py | 2 +- src/tm_devices/commands/mdo4k_commands.py | 2 +- src/tm_devices/commands/mdo4kb_commands.py | 2 +- src/tm_devices/commands/mdo4kc_commands.py | 2 +- src/tm_devices/commands/mso2_commands.py | 2 +- src/tm_devices/commands/mso2k_commands.py | 2 +- src/tm_devices/commands/mso2kb_commands.py | 2 +- src/tm_devices/commands/mso4_commands.py | 2 +- src/tm_devices/commands/mso4b_commands.py | 2 +- src/tm_devices/commands/mso4k_commands.py | 2 +- src/tm_devices/commands/mso4kb_commands.py | 2 +- src/tm_devices/commands/mso5_commands.py | 2 +- src/tm_devices/commands/mso5b_commands.py | 2 +- src/tm_devices/commands/mso5k_commands.py | 2 +- src/tm_devices/commands/mso5kb_commands.py | 2 +- src/tm_devices/commands/mso5lp_commands.py | 2 +- src/tm_devices/commands/mso6_commands.py | 2 +- src/tm_devices/commands/mso6b_commands.py | 2 +- src/tm_devices/commands/mso70kc_commands.py | 2 +- src/tm_devices/commands/mso70kdx_commands.py | 2 +- src/tm_devices/commands/smu2450_commands.py | 2 +- src/tm_devices/commands/smu2460_commands.py | 2 +- src/tm_devices/commands/smu2461_commands.py | 2 +- src/tm_devices/commands/smu2470_commands.py | 2 +- src/tm_devices/commands/smu2601b_commands.py | 2 +- .../commands/smu2601b_pulse_commands.py | 2 +- src/tm_devices/commands/smu2602b_commands.py | 2 +- src/tm_devices/commands/smu2604b_commands.py | 2 +- src/tm_devices/commands/smu2606b_commands.py | 2 +- src/tm_devices/commands/smu2611b_commands.py | 2 +- src/tm_devices/commands/smu2612b_commands.py | 2 +- src/tm_devices/commands/smu2614b_commands.py | 2 +- src/tm_devices/commands/smu2634b_commands.py | 2 +- src/tm_devices/commands/smu2635b_commands.py | 2 +- src/tm_devices/commands/smu2636b_commands.py | 2 +- src/tm_devices/commands/smu2651a_commands.py | 2 +- src/tm_devices/commands/smu2657a_commands.py | 2 +- src/tm_devices/commands/ss3706a_commands.py | 2 +- .../commands/tekscopepc_commands.py | 2 +- src/tm_devices/device_manager.py | 4 +-- .../abstract_device_functionality/__init__.py | 34 +++++++++++++++++++ .../base_afg_source_channel.py | 10 +++--- .../base_source_channel.py | 12 ++++--- .../signal_generator_mixin.py | 6 ++-- .../driver_mixins/device_control/__init__.py | 6 ++++ ...control.py => _abstract_device_control.py} | 3 +- ...stract_device_visa_write_query_control.py} | 7 ++-- .../device_control/pi_control.py | 10 +++--- .../device_control/rest_api_control.py | 6 ++-- .../device_control/tsp_control.py | 2 +- .../shared_implementations/__init__.py | 12 +++++++ ...extension_mixin.py => _extension_mixin.py} | 5 ++- ...ixin.py => _tektronix_pi_afg_awg_mixin.py} | 11 +++--- ..._mixin.py => _tektronix_pi_scope_mixin.py} | 9 +++-- .../common_pi_system_error_check_mixin.py | 8 ++--- .../common_tsp_error_check_mixin.py | 8 ++--- .../ieee488_2_commands.py | 2 +- src/tm_devices/drivers/afgs/afg.py | 8 ++--- src/tm_devices/drivers/awgs/awg.py | 10 +++--- .../data_acquisition_systems/daq6510.py | 2 +- src/tm_devices/drivers/device.py | 10 +++--- .../drivers/digital_multimeters/dmm6500.py | 2 +- .../digital_multimeters/dmm75xx/dmm75xx.py | 2 +- .../drivers/margin_testers/margin_tester.py | 3 +- .../drivers/power_supplies/psu22xx/psu2200.py | 2 +- .../drivers/scopes/tekscope/tekscope.py | 9 ++--- .../drivers/scopes/tekscope_2k/tekscope_2k.py | 8 ++--- .../scopes/tekscope_3k_4k/tekscope_3k_4k.py | 8 ++--- .../tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 9 ++--- src/tm_devices/drivers/scopes/tso/tsovu.py | 8 ++--- .../smu24xx/smu24xx_interactive.py | 2 +- .../smu24xx/smu24xx_standard.py | 2 +- .../source_measure_units/smu26xx/smu26xx.py | 2 +- .../source_measure_units/smu60xx/smu6xxx.py | 2 +- .../drivers/systems_switches/ss3706a.py | 2 +- src/tm_devices/helpers/enums.py | 2 +- tests/test_extension_mixin.py | 14 ++++---- tests/test_rest_api_device.py | 8 ++--- tests/test_tm_devices.py | 5 +-- tests/test_unsupported_device_type.py | 2 +- 694 files changed, 838 insertions(+), 779 deletions(-) rename src/tm_devices/driver_mixins/device_control/{abstract_device_control.py => _abstract_device_control.py} (90%) rename src/tm_devices/driver_mixins/device_control/{abstract_device_visa_write_query_control.py => _abstract_device_visa_write_query_control.py} (92%) rename src/tm_devices/driver_mixins/shared_implementations/{class_extension_mixin.py => _extension_mixin.py} (96%) rename src/tm_devices/driver_mixins/shared_implementations/{tektronix_pi_afg_awg_mixin.py => _tektronix_pi_afg_awg_mixin.py} (87%) rename src/tm_devices/driver_mixins/shared_implementations/{tektronix_pi_scope_mixin.py => _tektronix_pi_scope_mixin.py} (76%) diff --git a/docs/advanced/signal_generators.md b/docs/advanced/signal_generators.md index bfdef21d..c13fc30e 100644 --- a/docs/advanced/signal_generators.md +++ b/docs/advanced/signal_generators.md @@ -33,9 +33,9 @@ classDiagram ``` -The [`TekAFGAWG`][tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin.TektronixPIAFGAWGMixin] class is responsible -for most waveform generators, including the [`AFG`][tm_devices.drivers.afgs.afg.AFG] and -[`AWG`][tm_devices.drivers.awgs.awg.AWG]. +The [`AFG`][tm_devices.drivers.afgs.afg.AFG] and +[`AWG`][tm_devices.drivers.awgs.awg.AWG] drivers both inherit from a shared, private mixin class +that provides common functionality. Similarly, [`TekScope`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope] is responsible for the [AFG](default:AFG) internal to the scopes themselves, commonly referred to as an [IAFG](default:IAFG). All of these classes inherit diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index bad2fb15..d93e6bc1 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -3,7 +3,7 @@ from typing import Tuple from tm_devices import DeviceManager, register_additional_usbtmc_mapping -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.drivers import MSO5 from tm_devices.drivers.device import Device from tm_devices.drivers.scopes.scope import Scope diff --git a/mkdocs.yml b/mkdocs.yml index 40d49f35..ad85e3e1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -101,29 +101,34 @@ plugins: python: # see https://mkdocstrings.github.io/python/usage/ paths: [src] options: + # General options extensions: [docs/griffe_custom_decorator_labels.py] - docstring_options: - ignore_init_summary: true - trim_doctest_flags: true - merge_init_into_class: true - members_order: alphabetical show_inheritance_diagram: true - inherited_members: true show_source: false # a link is included at the top of each page - docstring_section_style: list - filters: ['!^_', ^__init__] - summary: true - show_signature_annotations: true - separate_signature: true - line_length: 100 - signature_crossrefs: true - show_labels: true + # Headings options heading_level: 1 show_root_heading: true show_root_full_path: false show_category_heading: false show_symbol_type_heading: true show_symbol_type_toc: false + # Members options + inherited_members: true + members_order: alphabetical + filters: ['!^_', ^__init__] + summary: false # Currently implemented with custom templates + show_labels: true + # Docstrings options + docstring_options: + ignore_init_summary: true + trim_doctest_flags: true + docstring_section_style: list + merge_init_into_class: true + # Signature options + line_length: 100 + show_signature_annotations: true + signature_crossrefs: true + separate_signature: true import: - url: https://docs.python.org/3/objects.inv domains: [std, py] diff --git a/pyproject.toml b/pyproject.toml index 2f552662..396dfe96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -216,6 +216,7 @@ disable = [ "duplicate-code", "fixme", # caught by ruff "global-statement", # caught by ruff + "import-private-name", # caught by pyright "invalid-name", # caught by ruff "line-too-long", # caught by ruff "locally-disabled", # allowed diff --git a/src/tm_devices/commands/afg3k_commands.py b/src/tm_devices/commands/afg3k_commands.py index 247a19d9..bedf0fb9 100644 --- a/src/tm_devices/commands/afg3k_commands.py +++ b/src/tm_devices/commands/afg3k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/afg3kb_commands.py b/src/tm_devices/commands/afg3kb_commands.py index d1a618f8..eeb72db5 100644 --- a/src/tm_devices/commands/afg3kb_commands.py +++ b/src/tm_devices/commands/afg3kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/afg3kc_commands.py b/src/tm_devices/commands/afg3kc_commands.py index c54b9e10..b8016a5c 100644 --- a/src/tm_devices/commands/afg3kc_commands.py +++ b/src/tm_devices/commands/afg3kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data diff --git a/src/tm_devices/commands/awg5200_commands.py b/src/tm_devices/commands/awg5200_commands.py index 0cdeb41e..51dfdffa 100644 --- a/src/tm_devices/commands/awg5200_commands.py +++ b/src/tm_devices/commands/awg5200_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_2i1z2s_awg.abort import Abort from .gen_2i1z2s_awg.auxoutput import AuxoutputItem diff --git a/src/tm_devices/commands/awg5k_commands.py b/src/tm_devices/commands/awg5k_commands.py index 46bf87fa..51ef030b 100644 --- a/src/tm_devices/commands/awg5k_commands.py +++ b/src/tm_devices/commands/awg5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg5kc_commands.py b/src/tm_devices/commands/awg5kc_commands.py index f0956117..c4e72b49 100644 --- a/src/tm_devices/commands/awg5kc_commands.py +++ b/src/tm_devices/commands/awg5kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg70ka_commands.py b/src/tm_devices/commands/awg70ka_commands.py index 6cf2beb5..18c61a27 100644 --- a/src/tm_devices/commands/awg70ka_commands.py +++ b/src/tm_devices/commands/awg70ka_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration diff --git a/src/tm_devices/commands/awg70kb_commands.py b/src/tm_devices/commands/awg70kb_commands.py index bbd69b9e..df2e4fe8 100644 --- a/src/tm_devices/commands/awg70kb_commands.py +++ b/src/tm_devices/commands/awg70kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration diff --git a/src/tm_devices/commands/awg7k_commands.py b/src/tm_devices/commands/awg7k_commands.py index 0443d513..079b440a 100644 --- a/src/tm_devices/commands/awg7k_commands.py +++ b/src/tm_devices/commands/awg7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/awg7kc_commands.py b/src/tm_devices/commands/awg7kc_commands.py index ee69a687..2a3a4709 100644 --- a/src/tm_devices/commands/awg7kc_commands.py +++ b/src/tm_devices/commands/awg7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic diff --git a/src/tm_devices/commands/daq6510_commands.py b/src/tm_devices/commands/daq6510_commands.py index aab7a20c..24d243ff 100644 --- a/src/tm_devices/commands/daq6510_commands.py +++ b/src/tm_devices/commands/daq6510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_by991s_smudaq.digio import Digio from .gen_by991s_smudaq.status import Status diff --git a/src/tm_devices/commands/dmm6500_commands.py b/src/tm_devices/commands/dmm6500_commands.py index 258f6eda..eed2ccc3 100644 --- a/src/tm_devices/commands/dmm6500_commands.py +++ b/src/tm_devices/commands/dmm6500_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_d83qe0_dmm.buffer import Buffer from .gen_d83qe0_dmm.buffervar import Buffervar diff --git a/src/tm_devices/commands/dmm7510_commands.py b/src/tm_devices/commands/dmm7510_commands.py index c96b098c..0e26aade 100644 --- a/src/tm_devices/commands/dmm7510_commands.py +++ b/src/tm_devices/commands/dmm7510_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_d6b496_dmm.acal import Acal from .gen_d6b496_dmm.buffer import Buffer diff --git a/src/tm_devices/commands/dpo2k_commands.py b/src/tm_devices/commands/dpo2k_commands.py index f2380d9c..5c1ba2c7 100644 --- a/src/tm_devices/commands/dpo2k_commands.py +++ b/src/tm_devices/commands/dpo2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/dpo2kb_commands.py b/src/tm_devices/commands/dpo2kb_commands.py index b6306dcb..f547c89c 100644 --- a/src/tm_devices/commands/dpo2kb_commands.py +++ b/src/tm_devices/commands/dpo2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/dpo4k_commands.py b/src/tm_devices/commands/dpo4k_commands.py index 214bfba0..c8b13719 100644 --- a/src/tm_devices/commands/dpo4k_commands.py +++ b/src/tm_devices/commands/dpo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kozfv_dpo.search import Search diff --git a/src/tm_devices/commands/dpo4kb_commands.py b/src/tm_devices/commands/dpo4kb_commands.py index cba87437..a8b4099b 100644 --- a/src/tm_devices/commands/dpo4kb_commands.py +++ b/src/tm_devices/commands/dpo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/dpo5k_commands.py b/src/tm_devices/commands/dpo5k_commands.py index d3737360..cf6f3eb9 100644 --- a/src/tm_devices/commands/dpo5k_commands.py +++ b/src/tm_devices/commands/dpo5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/dpo5kb_commands.py b/src/tm_devices/commands/dpo5kb_commands.py index 6698ed49..8396ac39 100644 --- a/src/tm_devices/commands/dpo5kb_commands.py +++ b/src/tm_devices/commands/dpo5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_3tjgb2_dpo.trigger import Trigger from .gen_5ri0nj_dpomso.bus import Bus diff --git a/src/tm_devices/commands/dpo70kc_commands.py b/src/tm_devices/commands/dpo70kc_commands.py index 0b0291c8..42d9981f 100644 --- a/src/tm_devices/commands/dpo70kc_commands.py +++ b/src/tm_devices/commands/dpo70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70kd_commands.py b/src/tm_devices/commands/dpo70kd_commands.py index 3dc00df7..d31fc195 100644 --- a/src/tm_devices/commands/dpo70kd_commands.py +++ b/src/tm_devices/commands/dpo70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70kdx_commands.py b/src/tm_devices/commands/dpo70kdx_commands.py index 53b43a86..35cda599 100644 --- a/src/tm_devices/commands/dpo70kdx_commands.py +++ b/src/tm_devices/commands/dpo70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dpo70ksx_commands.py b/src/tm_devices/commands/dpo70ksx_commands.py index 0931849b..773de12b 100644 --- a/src/tm_devices/commands/dpo70ksx_commands.py +++ b/src/tm_devices/commands/dpo70ksx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_4jiykk_dpo.channelmapping import Channelmapping from .gen_4jiykk_dpo.counter import Counter diff --git a/src/tm_devices/commands/dpo7k_commands.py b/src/tm_devices/commands/dpo7k_commands.py index c116cacf..220de80e 100644 --- a/src/tm_devices/commands/dpo7k_commands.py +++ b/src/tm_devices/commands/dpo7k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/dpo7kc_commands.py b/src/tm_devices/commands/dpo7kc_commands.py index 373e343d..0f041947 100644 --- a/src/tm_devices/commands/dpo7kc_commands.py +++ b/src/tm_devices/commands/dpo7kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_3skc3w_dpo.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dsa70kc_commands.py b/src/tm_devices/commands/dsa70kc_commands.py index 3184884b..4f35bad4 100644 --- a/src/tm_devices/commands/dsa70kc_commands.py +++ b/src/tm_devices/commands/dsa70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/dsa70kd_commands.py b/src/tm_devices/commands/dsa70kd_commands.py index 3b00f222..c4b1280b 100644 --- a/src/tm_devices/commands/dsa70kd_commands.py +++ b/src/tm_devices/commands/dsa70kd_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/gen_163n04_mdo/search.py b/src/tm_devices/commands/gen_163n04_mdo/search.py index 0d2afaec..dc86d828 100644 --- a/src/tm_devices/commands/gen_163n04_mdo/search.py +++ b/src/tm_devices/commands/gen_163n04_mdo/search.py @@ -458,7 +458,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_16x4xq_mdo/search.py b/src/tm_devices/commands/gen_16x4xq_mdo/search.py index f3c09c8e..80f9ebd6 100644 --- a/src/tm_devices/commands/gen_16x4xq_mdo/search.py +++ b/src/tm_devices/commands/gen_16x4xq_mdo/search.py @@ -420,7 +420,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py index fd01d7c5..1e4fa916 100644 --- a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py @@ -462,7 +462,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py index cc86ec52..e2067997 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py @@ -464,7 +464,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py index 55d5b308..4e541258 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py @@ -508,7 +508,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py index da5e9557..52acbee8 100644 --- a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py +++ b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py @@ -144,7 +144,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kozfv_dpo/search.py b/src/tm_devices/commands/gen_1kozfv_dpo/search.py index 193054c8..dd28c0e7 100644 --- a/src/tm_devices/commands/gen_1kozfv_dpo/search.py +++ b/src/tm_devices/commands/gen_1kozfv_dpo/search.py @@ -399,7 +399,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py index 933796b6..33ebb5b5 100644 --- a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py +++ b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py index c78b743f..471f3961 100644 --- a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py @@ -502,7 +502,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py index 537f4597..d9cb9243 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py index 0fa06e09..636e5057 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SetupItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py index 51d70b03..f7a524b0 100644 --- a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py +++ b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py @@ -437,7 +437,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py index c2f2314b..837806f1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py @@ -41,7 +41,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ActoneventRepeatcount(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py index dcf99e6b..d33aa150 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py index 03313831..3c2844ab 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py index 8294d11c..b388616a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ApplicationType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py index 64f0e5eb..40a02135 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py index 446f4fb1..a5f9a47e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py index 20c74697..6fcee08b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py index 9905c5c7..7d5d0e4f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py @@ -238,7 +238,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusUpperthresholdRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py index 646763f9..a4caf3ef 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py index 454b7115..33498e8b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py @@ -70,7 +70,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py index b63628df..c9e0e971 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py index b64123f2..9159edfc 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py index 112ecbcc..b4e2d979 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py index 0bf6b81f..2dada288 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DvmSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py index bcc2b167..262c0453 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EmailSetupSmtpserver(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py index 5605d3ae..7c78e724 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py index 90ae33c4..77526701 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py index 376d2034..3591a78b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py index 1fc357eb..e6412e9a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py index c537840f..780fd0ac 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py index 9809adce..524b8564 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HistogramStart(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py index 78124085..e768ede4 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py index 4dbc5bde..4ee102a1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MarkUserlist(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py index cbe887cb..9eeea21d 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MarkerType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py index 6904c96a..d8d0e577 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py index a1edbfae..28302ff1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PictbridgePrintqual(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py index e78dacb8..c7c28ce8 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PowerVoltagesource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py index 54884f2e..c5419edb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Reboot(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py index 43e3869c..cf38aae0 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py index ce6e0bf1..6d46c65f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py index fe18e54f..28b9741b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py index 19d87004..7b1d219b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py index 4c1a3ca6..a2264c93 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class VidpicStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py index d02c0ef3..2ee5d13e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py index 73701666..d85e215a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py index df3d55b5..4da5ef28 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ZoomZoom1Trigpos(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py index ceae7892..08e53c5c 100644 --- a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py +++ b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py index bf0a19db..dd0ccaa9 100644 --- a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py +++ b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py index 67461e72..b27fae03 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py index 054ef4b8..73c5d9af 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py @@ -62,7 +62,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py index c415490b..ccf437a0 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py index df897bee..854aa89e 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py index ea5f2b61..0ce03017 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py index 431ffceb..57a62321 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py index 4622ff24..6938d4f1 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py index 8e45e9ec..e3e5aab7 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectRfPhase(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py index 9ce433ea..b06b8619 100644 --- a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py +++ b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py @@ -130,7 +130,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py index 9ca77066..dd1b6709 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Clearmenu(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py index ee60af1a..d8736361 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ErrlogNumentries(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py index 37ab5a0c..cf8f3c7a 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Language(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py index 39f92bf0..50441ab9 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py index bef636c0..a3f262dd 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py index f8311c85..87fe2a97 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/acquire.py b/src/tm_devices/commands/gen_1zn03_mso/acquire.py index 52077b16..fbea55b5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/acquire.py +++ b/src/tm_devices/commands/gen_1zn03_mso/acquire.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py index 91e916ff..c62f9fa5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/auxout.py b/src/tm_devices/commands/gen_1zn03_mso/auxout.py index 1722ae43..2602a640 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/auxout.py +++ b/src/tm_devices/commands/gen_1zn03_mso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/battery.py b/src/tm_devices/commands/gen_1zn03_mso/battery.py index ae8cb7e5..19055426 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/battery.py +++ b/src/tm_devices/commands/gen_1zn03_mso/battery.py @@ -23,7 +23,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BatterySlotItemTimetofull(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/bus.py b/src/tm_devices/commands/gen_1zn03_mso/bus.py index 1b95ba76..cdf356d8 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/bus.py +++ b/src/tm_devices/commands/gen_1zn03_mso/bus.py @@ -188,7 +188,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/callouts.py b/src/tm_devices/commands/gen_1zn03_mso/callouts.py index 30c3f357..cad21d24 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/callouts.py +++ b/src/tm_devices/commands/gen_1zn03_mso/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalloutsDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ch.py b/src/tm_devices/commands/gen_1zn03_mso/ch.py index f57513cb..35385755 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ch.py @@ -67,7 +67,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelVtermBias(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/data.py b/src/tm_devices/commands/gen_1zn03_mso/data.py index 6f896ab9..34535aa5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/data.py +++ b/src/tm_devices/commands/gen_1zn03_mso/data.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/dch.py b/src/tm_devices/commands/gen_1zn03_mso/dch.py index 5ecbf7af..b25a1b21 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/dch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/dch.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DchItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/diag.py b/src/tm_devices/commands/gen_1zn03_mso/diag.py index 5c77c35e..1224c742 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/diag.py +++ b/src/tm_devices/commands/gen_1zn03_mso/diag.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/display.py b/src/tm_devices/commands/gen_1zn03_mso/display.py index 27cc4c82..e0088566 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/display.py +++ b/src/tm_devices/commands/gen_1zn03_mso/display.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py index b65d8509..3983aaac 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py +++ b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py index d3107740..2bcdd0b6 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py +++ b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/mask.py b/src/tm_devices/commands/gen_1zn03_mso/mask.py index f5e3d370..c6e95e9e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/mask.py +++ b/src/tm_devices/commands/gen_1zn03_mso/mask.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/math.py b/src/tm_devices/commands/gen_1zn03_mso/math.py index cb726cd7..52060988 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/math.py +++ b/src/tm_devices/commands/gen_1zn03_mso/math.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/measurement.py b/src/tm_devices/commands/gen_1zn03_mso/measurement.py index af973511..1f195bc8 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/measurement.py +++ b/src/tm_devices/commands/gen_1zn03_mso/measurement.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementStatisticsCyclemode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/pg.py b/src/tm_devices/commands/gen_1zn03_mso/pg.py index 92f0dcbf..724a3f27 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/pg.py +++ b/src/tm_devices/commands/gen_1zn03_mso/pg.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PgPatterndefinition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/plot.py b/src/tm_devices/commands/gen_1zn03_mso/plot.py index 77558917..5fb9e4e9 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/plot.py +++ b/src/tm_devices/commands/gen_1zn03_mso/plot.py @@ -28,7 +28,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/power.py b/src/tm_devices/commands/gen_1zn03_mso/power.py index cc80a35b..b58edba6 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/power.py +++ b/src/tm_devices/commands/gen_1zn03_mso/power.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PowerPowerItemResultsCurrentacqMinimum(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ref.py b/src/tm_devices/commands/gen_1zn03_mso/ref.py index 5a22c0a0..aa21c69f 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ref.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ref.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/save.py b/src/tm_devices/commands/gen_1zn03_mso/save.py index 0efbd69e..cebf85d7 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/save.py +++ b/src/tm_devices/commands/gen_1zn03_mso/save.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveon.py b/src/tm_devices/commands/gen_1zn03_mso/saveon.py index 4fbc1d9a..1560fd21 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveon.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py index cd80cbb4..23c53d44 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/search.py b/src/tm_devices/commands/gen_1zn03_mso/search.py index 9209b0e4..26a7d178 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/search.py +++ b/src/tm_devices/commands/gen_1zn03_mso/search.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSelected(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/select.py b/src/tm_devices/commands/gen_1zn03_mso/select.py index a69ba107..1d3054fe 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/select.py +++ b/src/tm_devices/commands/gen_1zn03_mso/select.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectDchItemDall(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py index c82cc26c..2d67262d 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py +++ b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/trigger.py b/src/tm_devices/commands/gen_1zn03_mso/trigger.py index 580a8e75..83159141 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/trigger.py +++ b/src/tm_devices/commands/gen_1zn03_mso/trigger.py @@ -208,7 +208,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py index e7af11da..9fc967f2 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py +++ b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AfgcontrolCscopy(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/data.py b/src/tm_devices/commands/gen_22daqs_afg/data.py index f499a07f..3ff120f1 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/data.py +++ b/src/tm_devices/commands/gen_22daqs_afg/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataPoints(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py index e5400bbe..653cb8cc 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py +++ b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagnosticAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/display.py b/src/tm_devices/commands/gen_22daqs_afg/display.py index 1cf30717..0b7cbdbf 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/display.py +++ b/src/tm_devices/commands/gen_22daqs_afg/display.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWindowTextData(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py index 8fb00c75..65d696ce 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py +++ b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HcopySdumpImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/memory.py b/src/tm_devices/commands/gen_22daqs_afg/memory.py index dca0c2ea..2d562d74 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/memory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/memory.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MemoryStateValid(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py index e1e241d2..0f428e7e 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MmemoryStoreTrace(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output.py b/src/tm_devices/commands/gen_22daqs_afg/output.py index b9b13513..70fc65c1 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class OutputTriggerMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output1.py b/src/tm_devices/commands/gen_22daqs_afg/output1.py index ce5b0f8f..8040e0c7 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output1.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Output1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output2.py b/src/tm_devices/commands/gen_22daqs_afg/output2.py index 90352890..1d478c58 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output2.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Output2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source.py b/src/tm_devices/commands/gen_22daqs_afg/source.py index 25b39de8..e312cf46 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SourceRoscillatorSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source1.py b/src/tm_devices/commands/gen_22daqs_afg/source1.py index 9fbfe61e..e3307764 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source1.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Source1VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source2.py b/src/tm_devices/commands/gen_22daqs_afg/source2.py index 4a3273fb..8c8244d9 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source2.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Source2VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source3.py b/src/tm_devices/commands/gen_22daqs_afg/source3.py index 33e9b136..80380323 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source3.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source3.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Source3PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source4.py b/src/tm_devices/commands/gen_22daqs_afg/source4.py index 27d42a5f..d55061ec 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source4.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source4.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Source4PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/status.py b/src/tm_devices/commands/gen_22daqs_afg/status.py index cdddcad1..b93e11ac 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/status.py +++ b/src/tm_devices/commands/gen_22daqs_afg/status.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/system.py b/src/tm_devices/commands/gen_22daqs_afg/system.py index ea04a6d9..81782937 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/system.py +++ b/src/tm_devices/commands/gen_22daqs_afg/system.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/trigger.py b/src/tm_devices/commands/gen_22daqs_afg/trigger.py index 62b2e30b..a369468e 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/trigger.py +++ b/src/tm_devices/commands/gen_22daqs_afg/trigger.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerSequenceTimer(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py index 596026f8..42f810d6 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Abort(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py index 7daa0396..242fe431 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py index 94675e01..a99b9014 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py index 41510a3f..18092fc3 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BwaveformSrate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py index c0e595b5..67f1ee05 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py index d06eebe9..d94d1408 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py index 7d501eb4..1468234f 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py index d7ab5fb9..783709db 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py index 266f7d33..a30677fe 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py index 9c6a5f84..8f234cf0 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/output.py b/src/tm_devices/commands/gen_2i1z2s_awg/output.py index 9562c728..a3abe75b 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/output.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/output.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/source.py b/src/tm_devices/commands/gen_2i1z2s_awg/source.py index b2082e9c..126cb21e 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/source.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/source.py @@ -78,7 +78,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py index e111a55d..dff29981 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SynchronizeType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/system.py b/src/tm_devices/commands/gen_2i1z2s_awg/system.py index 66d2443a..93fc48a5 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/system.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/system.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py index 25f05e5e..fbe19504 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py index 3523b0cc..1ea520ee 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py @@ -144,7 +144,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py index e0372e5c..8571631d 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py @@ -70,7 +70,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py index ba1df850..1c0402f7 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/display.py b/src/tm_devices/commands/gen_32dszm_awg/display.py index e92b5b44..8a4f249a 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/display.py +++ b/src/tm_devices/commands/gen_32dszm_awg/display.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWindow2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/event.py b/src/tm_devices/commands/gen_32dszm_awg/event.py index 41e0c8de..91315c60 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/event.py +++ b/src/tm_devices/commands/gen_32dszm_awg/event.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EventPolarity(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/instrument.py b/src/tm_devices/commands/gen_32dszm_awg/instrument.py index a1d2aee4..d7a51966 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/instrument.py +++ b/src/tm_devices/commands/gen_32dszm_awg/instrument.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class InstrumentCoupleSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py index 1003fd54..b7add4f1 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py +++ b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MmemoryMsis(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/output.py b/src/tm_devices/commands/gen_32dszm_awg/output.py index df1f0d5e..34ccb012 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/output.py +++ b/src/tm_devices/commands/gen_32dszm_awg/output.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class OutputItemState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/sequence.py b/src/tm_devices/commands/gen_32dszm_awg/sequence.py index 680023ce..a2c66874 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/sequence.py +++ b/src/tm_devices/commands/gen_32dszm_awg/sequence.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SequenceLength(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/slist.py b/src/tm_devices/commands/gen_32dszm_awg/slist.py index 51fa9563..1efe9aa9 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/slist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/slist.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SlistSubsequenceTstamp(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/source.py b/src/tm_devices/commands/gen_32dszm_awg/source.py index 128ef853..79e1d290 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/source.py +++ b/src/tm_devices/commands/gen_32dszm_awg/source.py @@ -83,7 +83,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/status.py b/src/tm_devices/commands/gen_32dszm_awg/status.py index 74f2f471..02d34b99 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/status.py +++ b/src/tm_devices/commands/gen_32dszm_awg/status.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/system.py b/src/tm_devices/commands/gen_32dszm_awg/system.py index d8b95ee6..7be3b192 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/system.py +++ b/src/tm_devices/commands/gen_32dszm_awg/system.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/trigger.py b/src/tm_devices/commands/gen_32dszm_awg/trigger.py index e17a71d0..8ab6570a 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/trigger.py +++ b/src/tm_devices/commands/gen_32dszm_awg/trigger.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerSequenceWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/wlist.py b/src/tm_devices/commands/gen_32dszm_awg/wlist.py index d61827d5..3dbae341 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/wlist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/wlist.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py index bdab01f7..83235e98 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Abort(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py index baa9447d..988058fe 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibrationAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/active.py b/src/tm_devices/commands/gen_3n9auv_awg/active.py index fd5427c2..4c490383 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/active.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/active.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ActiveMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py index 4cd2a0f7..b5a0b5e5 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibrationStopState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py index b102cfa0..cbd264d4 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ConnectivityStatus(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/display.py b/src/tm_devices/commands/gen_3n9auv_awg/display.py index 49afcea9..e18c1de2 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/display.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/display.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayPlotState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/output.py b/src/tm_devices/commands/gen_3n9auv_awg/output.py index e9007d05..eb06db44 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/output.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class OutputOff(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/slist.py b/src/tm_devices/commands/gen_3n9auv_awg/slist.py index 99b464e8..ddd21775 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/slist.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/slist.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SlistSize(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/status.py b/src/tm_devices/commands/gen_3n9auv_awg/status.py index 3a24b2f4..aee71490 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/status.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/status.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class StatusQuestionablePtransition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py index 86f0ae38..1a22d9d4 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WpluginPlugins(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py index 681b0702..5cbd269e 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py index 9ad808ee..4478a98b 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AwgcontrolTimerStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py index 15cb8624..230697ba 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BwaveformSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py index 66c6f6ee..53e92d06 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py index 0c292552..1f0e861a 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py index 59f228f4..7e52c232 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py index 4e2a558f..06c0e912 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py index 3be2e0a4..d7070568 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py index bb747b15..3de817f3 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/output.py b/src/tm_devices/commands/gen_3rs8qy_awg/output.py index f32127bb..1b86fe2b 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/output.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/output.py @@ -46,7 +46,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/source.py b/src/tm_devices/commands/gen_3rs8qy_awg/source.py index fe8f952d..01110d2f 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/source.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/source.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py index 31e3db8d..d0293960 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SynchronizeType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/system.py b/src/tm_devices/commands/gen_3rs8qy_awg/system.py index 48ef5cc6..a95af62b 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/system.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/system.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py index 0090e6f4..85fc98be 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py index 8bdc813e..d09cbf9b 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py index c298c4b4..21d101ca 100644 --- a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py @@ -1042,7 +1042,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py index fd6de4af..e4d80a97 100644 --- a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py @@ -1052,7 +1052,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py index 2d88c030..4551c57b 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Channelmapping(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py index 2819cc0b..d6592e1f 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py @@ -50,7 +50,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CounterView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py index f10a27ae..cbd97aee 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py @@ -177,7 +177,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py index 8c36d289..32452a39 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class IdnmultiscopeDigitalBit(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py index 44facb35..dfc4246c 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LinktrainingTriggeron(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py index fd92aade..43061e51 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py index db309d78..4a1cf365 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py index 77c2e070..061081da 100644 --- a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py +++ b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FpanelPress(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_561g9r_mso/trigger.py b/src/tm_devices/commands/gen_561g9r_mso/trigger.py index 5b8fc853..c36cd13d 100644 --- a/src/tm_devices/commands/gen_561g9r_mso/trigger.py +++ b/src/tm_devices/commands/gen_561g9r_mso/trigger.py @@ -1056,7 +1056,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py index 4e67ffb0..984a6c51 100644 --- a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py +++ b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py @@ -214,7 +214,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py index f8cfafbc..d6abefd6 100644 --- a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py +++ b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py index f8470d80..d50189f2 100644 --- a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py +++ b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py @@ -209,7 +209,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py index 9ffeb1b4..7c8a7246 100644 --- a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py +++ b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py @@ -717,7 +717,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DpojetVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py index 687487d8..3aea9af0 100644 --- a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py +++ b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py @@ -1008,7 +1008,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py index 7959dc33..4f343142 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/script.py b/src/tm_devices/commands/gen_60xy3r_smu/script.py index 04781bfa..b8acf794 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/script.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/smu.py b/src/tm_devices/commands/gen_60xy3r_smu/smu.py index a3165e5e..bbb6955f 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/smu.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py index 02bb8944..0378d816 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py index b3efdbe2..119c0dc5 100644 --- a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py +++ b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/smu.py b/src/tm_devices/commands/gen_6srh1x_smu/smu.py index 65845213..c98d418b 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/smu.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py index d9acca82..c565d2ca 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/acal.py b/src/tm_devices/commands/gen_6vynmi_smu/acal.py index 3b54a418..083ab220 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/acal.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/acal.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class AcalLastrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/smu.py b/src/tm_devices/commands/gen_6vynmi_smu/smu.py index b64f789c..8de42855 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/smu.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/smu.py @@ -145,7 +145,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py index 5dd46a0c..4ec30486 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py index ed8c8c19..b9ed29bb 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6w7311_smu/trigger.py b/src/tm_devices/commands/gen_6w7311_smu/trigger.py index d6bf548d..ceeccc2a 100644 --- a/src/tm_devices/commands/gen_6w7311_smu/trigger.py +++ b/src/tm_devices/commands/gen_6w7311_smu/trigger.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py index bcfa10b9..178b3fe0 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py index bd1126ad..f02b5a29 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py @@ -106,7 +106,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py index e93c15df..40207dfb 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py index 41835ddc..edd2bc80 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py @@ -43,7 +43,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/display.py b/src/tm_devices/commands/gen_7kqm9p_smu/display.py index d4389b04..a90614d9 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/display.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py index 71d6aa8d..3276b058 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py index cb29c0d9..5c5001d4 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7ryhce_smu/status.py b/src/tm_devices/commands/gen_7ryhce_smu/status.py index 58defb1f..c8468e74 100644 --- a/src/tm_devices/commands/gen_7ryhce_smu/status.py +++ b/src/tm_devices/commands/gen_7ryhce_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py index b1dd98d7..9070940a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py index a448fa4f..f2ce561a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Buffervar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py index b8426c78..7e83c915 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py index 88c1fd0a..d76806d7 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/display.py b/src/tm_devices/commands/gen_7s2p1p_smu/display.py index 8381995f..e4d9ce54 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/display.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/display.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py index 9bc526cd..c03f72f5 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py index 752778a5..f5991e4c 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/format.py b/src/tm_devices/commands/gen_7s2p1p_smu/format.py index 85534576..9b702902 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/format.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/format.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py index 5d349c96..f985f41f 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py index 09872016..5a652370 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py index 7f6a9c86..1c3bf755 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py index 36c3efda..14681a2e 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py @@ -128,7 +128,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/status.py b/src/tm_devices/commands/gen_7s2p1p_smu/status.py index e11a1185..a5988000 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/status.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/status.py @@ -121,7 +121,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py index 14df2859..ad3cc64b 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py index 130758f6..c5bdfe8d 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py @@ -20,7 +20,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py index 305c885a..5a86eb67 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s43m8_smu/status.py b/src/tm_devices/commands/gen_7s43m8_smu/status.py index b208ae20..2b000b54 100644 --- a/src/tm_devices/commands/gen_7s43m8_smu/status.py +++ b/src/tm_devices/commands/gen_7s43m8_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s6wr5_smu/status.py b/src/tm_devices/commands/gen_7s6wr5_smu/status.py index b445a726..3faffad7 100644 --- a/src/tm_devices/commands/gen_7s6wr5_smu/status.py +++ b/src/tm_devices/commands/gen_7s6wr5_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/display.py b/src/tm_devices/commands/gen_8ojdkz_smu/display.py index 0992a62d..f8242ab9 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/display.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/node.py b/src/tm_devices/commands/gen_8ojdkz_smu/node.py index fc877b19..52d4087c 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/node.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py index 85c63d5f..b4b26772 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py @@ -117,7 +117,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/status.py b/src/tm_devices/commands/gen_8ojdkz_smu/status.py index 9c8e3cab..7162d928 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/status.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8wm55i_smu/smux.py b/src/tm_devices/commands/gen_8wm55i_smu/smux.py index 6a65909d..73dd969c 100644 --- a/src/tm_devices/commands/gen_8wm55i_smu/smux.py +++ b/src/tm_devices/commands/gen_8wm55i_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9kezla_smu/smux.py b/src/tm_devices/commands/gen_9kezla_smu/smux.py index 1535f383..9a0fd1df 100644 --- a/src/tm_devices/commands/gen_9kezla_smu/smux.py +++ b/src/tm_devices/commands/gen_9kezla_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py index 0ae45358..da175a4a 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/display.py b/src/tm_devices/commands/gen_9mzp2j_smu/display.py index ea5f69cc..ca7197eb 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/display.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py index a888e8e5..2183cdfb 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9ncc6e_smu/display.py b/src/tm_devices/commands/gen_9ncc6e_smu/display.py index 7d6b2979..be5615ea 100644 --- a/src/tm_devices/commands/gen_9ncc6e_smu/display.py +++ b/src/tm_devices/commands/gen_9ncc6e_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9nnkq7_smu/status.py b/src/tm_devices/commands/gen_9nnkq7_smu/status.py index b1410751..88fcb028 100644 --- a/src/tm_devices/commands/gen_9nnkq7_smu/status.py +++ b/src/tm_devices/commands/gen_9nnkq7_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9slyux_smu/status.py b/src/tm_devices/commands/gen_9slyux_smu/status.py index 1a1d6a43..62fe927b 100644 --- a/src/tm_devices/commands/gen_9slyux_smu/status.py +++ b/src/tm_devices/commands/gen_9slyux_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py index 405792f6..b662271f 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py index 7625276e..723b1b30 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py @@ -41,7 +41,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py index 115fe0e0..b769eb96 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/lan.py b/src/tm_devices/commands/gen_ahkybr_smu/lan.py index ba55bfb6..63be55c0 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/lan.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/lan.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/os.py b/src/tm_devices/commands/gen_ahkybr_smu/os.py index f0189cd7..1a922056 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/os.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/os.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/script.py b/src/tm_devices/commands/gen_ahkybr_smu/script.py index d4ff7f86..1307cf7c 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/script.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/script.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py index 0668b079..aa15b629 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py index 32f6c7e6..c9dc0809 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py index 6b381e3d..773e4af0 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py index ad3d5659..9f16a514 100644 --- a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py +++ b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ak4990_smu/smux.py b/src/tm_devices/commands/gen_ak4990_smu/smux.py index e7576662..d3885da7 100644 --- a/src/tm_devices/commands/gen_ak4990_smu/smux.py +++ b/src/tm_devices/commands/gen_ak4990_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/smux.py b/src/tm_devices/commands/gen_am6pcr_smu/smux.py index 136eb092..7b30b0c4 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/smux.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/status.py b/src/tm_devices/commands/gen_am6pcr_smu/status.py index 74ba056e..f038b2dc 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/status.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/status.py @@ -230,7 +230,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/digio.py b/src/tm_devices/commands/gen_amm5lc_smu/digio.py index 3a48739c..f87a2a5d 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/digio.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py index 13cf96d3..77da023c 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aostep_smu/serial.py b/src/tm_devices/commands/gen_aostep_smu/serial.py index 48e5e4c1..b6ed0641 100644 --- a/src/tm_devices/commands/gen_aostep_smu/serial.py +++ b/src/tm_devices/commands/gen_aostep_smu/serial.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py index 6cdf2486..256a3cc7 100644 --- a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py +++ b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py index 3956a2c4..6909fee1 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/smux.py b/src/tm_devices/commands/gen_as1ejq_smu/smux.py index 526a42c3..d2f56b42 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/smux.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/status.py b/src/tm_devices/commands/gen_as1ejq_smu/status.py index e88d2401..523ea600 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/status.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/status.py @@ -235,7 +235,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_at7jl1_smu/display.py b/src/tm_devices/commands/gen_at7jl1_smu/display.py index c58b94ca..f22cc1f5 100644 --- a/src/tm_devices/commands/gen_at7jl1_smu/display.py +++ b/src/tm_devices/commands/gen_at7jl1_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/digio.py b/src/tm_devices/commands/gen_au597k_smu/digio.py index a5a4d622..53601ac1 100644 --- a/src/tm_devices/commands/gen_au597k_smu/digio.py +++ b/src/tm_devices/commands/gen_au597k_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/format.py b/src/tm_devices/commands/gen_au597k_smu/format.py index b9d2724d..bacea614 100644 --- a/src/tm_devices/commands/gen_au597k_smu/format.py +++ b/src/tm_devices/commands/gen_au597k_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/tsplink.py b/src/tm_devices/commands/gen_au597k_smu/tsplink.py index 1fde4c3d..609199ed 100644 --- a/src/tm_devices/commands/gen_au597k_smu/tsplink.py +++ b/src/tm_devices/commands/gen_au597k_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/format.py b/src/tm_devices/commands/gen_auyr50_smu/format.py index 94230aa4..ea19c152 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/format.py +++ b/src/tm_devices/commands/gen_auyr50_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/localnode.py b/src/tm_devices/commands/gen_auyr50_smu/localnode.py index df4e298c..df206eeb 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/localnode.py +++ b/src/tm_devices/commands/gen_auyr50_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/node.py b/src/tm_devices/commands/gen_auyr50_smu/node.py index d064d969..3f612a89 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/node.py +++ b/src/tm_devices/commands/gen_auyr50_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/display.py b/src/tm_devices/commands/gen_avh0iw_smu/display.py index 95ac3289..03f8c94e 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/display.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py index f19b2e50..3cf6ede8 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_awhjao_smu/status.py b/src/tm_devices/commands/gen_awhjao_smu/status.py index d778a331..afb61df9 100644 --- a/src/tm_devices/commands/gen_awhjao_smu/status.py +++ b/src/tm_devices/commands/gen_awhjao_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/digio.py b/src/tm_devices/commands/gen_by991s_smudaq/digio.py index 5b035f46..75ed82b5 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/digio.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/status.py b/src/tm_devices/commands/gen_by991s_smudaq/status.py index 302ea50e..858290f1 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/status.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py index c7833784..4861d0d4 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ActoneventType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py index 1f840d9b..835bc652 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py @@ -623,7 +623,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py index 54a349e2..eb76b7f9 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py index 8abf76b1..f13b8c21 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py @@ -107,7 +107,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py index c9ec4ab6..4f7b9dd8 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py @@ -409,7 +409,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py index 1ab35b4e..d106ff02 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FilesysCollectlogfiles(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py index d4b7abc0..1f1702ef 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py index 93dfebb0..64e9a59c 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py index 258623f6..b09dac5c 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py index 42464b92..1b1fa178 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py @@ -162,7 +162,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py index a3bac7af..c0eba265 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasuMeas1SubgroupResultsCurrentacqStddev(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py index a5f07b73..3beb006f 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py @@ -755,7 +755,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py index f8e37eb3..e19e6fd6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py index 85fb7375..32ac6ea6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py @@ -629,7 +629,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PowerPowerItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py index 910d9e7d..33bf3f6f 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py index c6fd09ff..5c74216b 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py @@ -96,7 +96,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RemoteUsbdescriptors(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py index 4ae87650..1e43f383 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SItemChannelScale(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py index 5e889d13..4ab22df3 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py index caf3e53c..828cb26e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py index 2c247d1e..1e0a0055 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py @@ -1232,7 +1232,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py index 47e3e707..048ffa92 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Searchtable(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py index 5d896926..034d6919 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py @@ -93,7 +93,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SvSpectrogramCursorB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py index 858a16f5..56c6e96e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py @@ -37,7 +37,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerBType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py index d49b0102..39b23381 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LicUninstall(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py index 9e400fd0..468aef4c 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffer.py b/src/tm_devices/commands/gen_canxny_daq/buffer.py index 0d4c5da9..708bc47b 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffer.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffer.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffervar.py b/src/tm_devices/commands/gen_canxny_daq/buffervar.py index 2ee4d00c..9c2f0b64 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffervar.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_canxny_daq/channel.py b/src/tm_devices/commands/gen_canxny_daq/channel.py index 5a8d29df..34079409 100644 --- a/src/tm_devices/commands/gen_canxny_daq/channel.py +++ b/src/tm_devices/commands/gen_canxny_daq/channel.py @@ -47,7 +47,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/display.py b/src/tm_devices/commands/gen_canxny_daq/display.py index 0fa2b587..9243763e 100644 --- a/src/tm_devices/commands/gen_canxny_daq/display.py +++ b/src/tm_devices/commands/gen_canxny_daq/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/dmm.py b/src/tm_devices/commands/gen_canxny_daq/dmm.py index 6df4d237..4942ed64 100644 --- a/src/tm_devices/commands/gen_canxny_daq/dmm.py +++ b/src/tm_devices/commands/gen_canxny_daq/dmm.py @@ -131,7 +131,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/scan.py b/src/tm_devices/commands/gen_canxny_daq/scan.py index 9eb937e9..6a329d4c 100644 --- a/src/tm_devices/commands/gen_canxny_daq/scan.py +++ b/src/tm_devices/commands/gen_canxny_daq/scan.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/slot.py b/src/tm_devices/commands/gen_canxny_daq/slot.py index 798b32e3..f39a8ea3 100644 --- a/src/tm_devices/commands/gen_canxny_daq/slot.py +++ b/src/tm_devices/commands/gen_canxny_daq/slot.py @@ -38,7 +38,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/trigger.py b/src/tm_devices/commands/gen_canxny_daq/trigger.py index 538902af..8e3815ee 100644 --- a/src/tm_devices/commands/gen_canxny_daq/trigger.py +++ b/src/tm_devices/commands/gen_canxny_daq/trigger.py @@ -118,7 +118,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/tsplink.py b/src/tm_devices/commands/gen_canxny_daq/tsplink.py index 70b5c84f..4e48924a 100644 --- a/src/tm_devices/commands/gen_canxny_daq/tsplink.py +++ b/src/tm_devices/commands/gen_canxny_daq/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/upgrade.py b/src/tm_devices/commands/gen_canxny_daq/upgrade.py index d899ff1c..1b1aacd8 100644 --- a/src/tm_devices/commands/gen_canxny_daq/upgrade.py +++ b/src/tm_devices/commands/gen_canxny_daq/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/acal.py b/src/tm_devices/commands/gen_d6b496_dmm/acal.py index 02bf6737..21f2edd5 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/acal.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/acal.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class AcalNextrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py index 0c6e3b7f..d418d648 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py index 18081c05..b1b86b35 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py @@ -39,7 +39,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes diff --git a/src/tm_devices/commands/gen_d6b496_dmm/display.py b/src/tm_devices/commands/gen_d6b496_dmm/display.py index e1691d81..8f3c1107 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/display.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py index efbdb7a8..986bf544 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py @@ -108,7 +108,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DmmTriggerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/fan.py b/src/tm_devices/commands/gen_d6b496_dmm/fan.py index b1faaf00..2359b80a 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/fan.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/fan.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Fan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py index 528bf716..e3dcf32c 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py index 484ceba3..03a2decc 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py @@ -114,7 +114,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py index 44bbe778..b5d34e3b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py index cfd56d47..d47d17de 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py index 35e24e6b..074ae38d 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/display.py b/src/tm_devices/commands/gen_d83qe0_dmm/display.py index 22b6aa5a..81cc2c1d 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/display.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py index 7edb2d0b..d2fd12e5 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py @@ -92,7 +92,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py index db40bc1f..f76e4e88 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py index b39ca8f8..2fec5b9b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py index 1dbeca1d..8da861cf 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py index 1b9e5427..43d90be8 100644 --- a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py +++ b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py index d9ad08f3..ebf597e2 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py index c262cba9..409d0b45 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py index 30aa99be..87884495 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class File(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py index 8098d86a..f46507bb 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py index bed99145..ce5293be 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Lan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py index d817ebe6..57285f1b 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py index c1a8bb2f..e2dbdb8c 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Timer(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py index dac52ff6..b03c5a23 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py index e64e7ce0..066072a2 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py index 8d5a2036..492d6fc3 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py index 98ee61e5..fbd1d8bf 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py index 22f7da14..7db995c0 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py index 7be80ee9..8e912921 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py index 8e157d87..a4182851 100644 --- a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py +++ b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py index d4d724fc..9034d510 100644 --- a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py +++ b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py index d7efaa47..223def81 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py index 7d82ebe2..c9017e3b 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py index be358233..b7efb71e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ApplicationActivate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py index d6715a85..dc1d7053 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py index e2fbf85b..a9647de2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py @@ -653,7 +653,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py index 9a0c654f..e3e2e675 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py index ff81ca37..2c3b6106 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py @@ -137,7 +137,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py index b412b028..ffe05706 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py index 27f98f35..a2c91e22 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiggrpItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py index 61a4009f..3b08ce9e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py @@ -400,7 +400,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py index 79449705..aa9fa84e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DvmTriggerFrequencyCounter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py index 65305323..28ad2f3c 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py index b1c0cffe..9afd3672 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py index c4559329..54ff9fbc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py @@ -92,7 +92,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py index 66b0cbbc..1cbf6d6c 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py index aa617dee..ee10c36e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py index 9342f333..256204fc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py @@ -163,7 +163,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py index df3a1d7f..cfb4c12c 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py @@ -845,7 +845,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py index c658948a..b345665b 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PiloggerState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py index 798726ae..00d75d06 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py @@ -87,7 +87,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py index c47b1e2f..5a148ae5 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py @@ -521,7 +521,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PowerPowerItemWrapState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py index 7c426975..3801f7e6 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefRefItemSource(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py index 9a1d5d7a..998805fc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py index 534928b7..17f7cbe4 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py index 97aad45d..26097063 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py index ecbd65a4..01e70d54 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py index ae1a8b8a..99cc3730 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py @@ -1231,7 +1231,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py index 6e48c1d3..d634809e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchtableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py index 7eb3d8a2..369cef09 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py index 92079eee..7d24d166 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py @@ -100,7 +100,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SvWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py index 081a7f4e..71acdbdc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py index 95469947..3962848d 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py @@ -974,7 +974,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py index 84e7a9e5..bcda0f96 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TstamptableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py index 0b37937a..82f3c9b6 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py @@ -53,7 +53,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py index 81bc43e0..1df7bc64 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AutosetVerticalOptimize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py index e2a20eb9..9bfea675 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibratePwrupstatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py index 310f6968..1cc71a81 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ConnectedUsageTrackStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py index 62caa4a2..a96e7731 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py index f52a6d6c..ee01fe0e 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3pief_ss/beeper.py b/src/tm_devices/commands/gen_e3pief_ss/beeper.py index 9e4e9faa..cc2edb43 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/beeper.py +++ b/src/tm_devices/commands/gen_e3pief_ss/beeper.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py index f56d3718..357b232a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/channel.py b/src/tm_devices/commands/gen_e3pief_ss/channel.py index fb4f97f7..a1981322 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/channel.py +++ b/src/tm_devices/commands/gen_e3pief_ss/channel.py @@ -77,7 +77,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ChannelTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/comm.py b/src/tm_devices/commands/gen_e3pief_ss/comm.py index 463c144a..7f406da3 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/comm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/comm.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class CommLanWeb(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/digio.py b/src/tm_devices/commands/gen_e3pief_ss/digio.py index 18abd254..d09e63c0 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/digio.py +++ b/src/tm_devices/commands/gen_e3pief_ss/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/display.py b/src/tm_devices/commands/gen_e3pief_ss/display.py index c516754c..ce46d9b6 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/display.py +++ b/src/tm_devices/commands/gen_e3pief_ss/display.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/dmm.py b/src/tm_devices/commands/gen_e3pief_ss/dmm.py index 54471bf2..c7a38242 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/dmm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/dmm.py @@ -94,7 +94,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class DmmRel(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py index 0d217056..f8fc11e4 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py +++ b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/format.py b/src/tm_devices/commands/gen_e3pief_ss/format.py index c00ceeab..9c41e08d 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/format.py +++ b/src/tm_devices/commands/gen_e3pief_ss/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/lan.py b/src/tm_devices/commands/gen_e3pief_ss/lan.py index f2caae0e..502aab40 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/lan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/lan.py @@ -63,7 +63,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/localnode.py b/src/tm_devices/commands/gen_e3pief_ss/localnode.py index d9835b5f..c79aa642 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/localnode.py +++ b/src/tm_devices/commands/gen_e3pief_ss/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/memory.py b/src/tm_devices/commands/gen_e3pief_ss/memory.py index 0594c37d..a24450ee 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/memory.py +++ b/src/tm_devices/commands/gen_e3pief_ss/memory.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Memory(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/os.py b/src/tm_devices/commands/gen_e3pief_ss/os.py index 32cfe62a..61fad236 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/os.py +++ b/src/tm_devices/commands/gen_e3pief_ss/os.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/ptp.py b/src/tm_devices/commands/gen_e3pief_ss/ptp.py index 6a6a8060..f2c293c8 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/ptp.py +++ b/src/tm_devices/commands/gen_e3pief_ss/ptp.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class PtpDs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scan.py b/src/tm_devices/commands/gen_e3pief_ss/scan.py index 6daead73..4d2701b9 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scan.py @@ -49,7 +49,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ScanTriggerSequence(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/schedule.py b/src/tm_devices/commands/gen_e3pief_ss/schedule.py index 25693f61..0d183ecc 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/schedule.py +++ b/src/tm_devices/commands/gen_e3pief_ss/schedule.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class ScheduleAlarmItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/script.py b/src/tm_devices/commands/gen_e3pief_ss/script.py index 1ea8f5a4..ffd854da 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/script.py +++ b/src/tm_devices/commands/gen_e3pief_ss/script.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py index 37e74451..4978a694 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py index d9b9b455..a3378572 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py +++ b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/slot.py b/src/tm_devices/commands/gen_e3pief_ss/slot.py index 125fefcb..7add639c 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/slot.py +++ b/src/tm_devices/commands/gen_e3pief_ss/slot.py @@ -37,7 +37,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class SlotItemThermal(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/status.py b/src/tm_devices/commands/gen_e3pief_ss/status.py index c45303f5..2f5eac34 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/status.py +++ b/src/tm_devices/commands/gen_e3pief_ss/status.py @@ -75,7 +75,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/trigger.py b/src/tm_devices/commands/gen_e3pief_ss/trigger.py index 9f57fb04..7edc39cb 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/trigger.py +++ b/src/tm_devices/commands/gen_e3pief_ss/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py index fd3089d9..f5dc88ab 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py +++ b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py index b9858d88..4b55fbde 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py +++ b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py index dc523a5b..d9de8197 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py index 0be8e81b..6adc5ea3 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EyemaskMaskItemTestStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py index 9e7760ad..c3ad45ca 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MatharbfltItemFilepath(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py index 4f867353..23010d33 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PeakstableTableItemFresolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py index 5e047c0d..79541514 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py @@ -59,7 +59,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefItemDallLabelYpos(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py index 879be7fa..8affe511 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py @@ -58,7 +58,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class VisualShowequation(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py index 34a4b8c4..a47ff865 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Autosavepitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py index 46f43c4d..61b2e699 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Autosaveuitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py index cb5ff2ec..9bb9e6c9 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BustableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py index 6550e22d..c5d83335 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ConfigurationAnalogBandwidth(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py index 430472fd..72e7774a 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Curve(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py index 087f0052..446846f6 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Curvestream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py index 9204ab4c..7ac3fa42 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CustomtableList(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py index 40f3d5de..74a08ccd 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Date(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py index cf2af953..cabb7f3d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py index efa2f7f5..88b73b0b 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MainwindowRrbdisplaystate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py index 0bb083bf..5ac5a88b 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeastableDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py index ed2bfcc9..df24884f 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py index aee5a5b7..612eb6c8 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py index 4bd68394..50ec4108 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TimeZoneUtcdelta(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py index 7caae09b..2ca82d27 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Undo(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py index 54426e9a..042b1ed0 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class VerticalDeskewToSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py index fda6749d..54ea7c51 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py index 10d63128..abc3a155 100644 --- a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py +++ b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Clear(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py index 35f532c1..86db5605 100644 --- a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py +++ b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Totaluptime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py index 14a8b195..fd34b641 100644 --- a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py +++ b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Pause(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py index 14deec0c..c042abbf 100644 --- a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py +++ b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py index cec91ac1..d8b0cc65 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Dataqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py index 900cf677..a3b17c40 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Fs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py index e620159e..b52fddbb 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Userstring(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py index 82c795d1..b4db086d 100644 --- a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py +++ b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/bit.py b/src/tm_devices/commands/gen_efap3f_smuss/bit.py index 5cb43a82..631400d3 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/bit.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/bit.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Bit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py index 34519620..1916ccaf 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/io.py b/src/tm_devices/commands/gen_efap3f_smuss/io.py index 89d21b3c..f5ea6381 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/io.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/io.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Io(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/timer.py b/src/tm_devices/commands/gen_efap3f_smuss/timer.py index 477a2b49..a8907ff5 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/timer.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/timer.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class TimerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py index 70bc4f9f..4a87ed2d 100644 --- a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py +++ b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl class Gpib(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py index abcbeb79..ca8a19b6 100644 --- a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py +++ b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py @@ -212,7 +212,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py index 682587db..c8ac59a1 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Curve(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py index 917de9d2..6d034639 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Date(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py index a8be868a..f1a61dc4 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MathvarVarItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py index b09abc11..43251836 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Sav(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py index 12c12fae..9961ae8f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireSyncsamples(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py index 37cd6ff8..652af86d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AllocateWaveformRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py index 1fa7f705..bf1f0a67 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ApplicationScopeappWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py index d34beae3..846d05d3 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AutosetPercent(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py index b541ed13..c55ae003 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py @@ -63,7 +63,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxinVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py index 6e1ade14..68680435 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py index 9702fcfb..22c6784c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Bell(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py index 3399a9cc..eb7a4c78 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibrateResultsSpc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py index 54e2fecd..9e24e95b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py @@ -113,7 +113,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py index 82ada24f..a3d3326a 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Clear(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py index 54b5ba7e..37186c65 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Cmdbatch(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py index 37c0823c..7b9d7f34 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CqItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py index a8ec2732..4ebe4914 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py @@ -84,7 +84,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CursorXyYdelta(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py index b836e5dd..2dfbd457 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Curvenext(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py index f1461aad..6574e681 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Curvestream(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py index 81dee9b9..d2cb909e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CustomSelectGateItem(ValidatedDynamicNumberCmd, SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py index 90af00a8..ad87faf2 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py index a7509869..4d99a785 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataSyncsources(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py index 441ed22d..c6845715 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DeleteWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py index a38f48cc..cf471dbe 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py index 3b78d99b..3650a612 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py @@ -120,7 +120,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py index 6dff5525..cdd74876 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py @@ -54,7 +54,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EmailWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py index ab3bafcd..4eaeedcb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ExportView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py index dfabbfec..c2224977 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FastacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py index 0596c998..2dc0328e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py index 0c36283e..b55d39b3 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py index e2263abe..1f1f6f44 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HardcopyView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py index 20ff73d6..41ca4781 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Hdr(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py index 0a68ca11..a1cd4998 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HistogramState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py index 7a48afb4..0844858d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py @@ -146,7 +146,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalTimestampRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py index 8de8fb03..2799b1b5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LimitTemplateToleranceVertical(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py index acefdfe5..907cfd5f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py index 5c0f152b..faf6c463 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py @@ -185,7 +185,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py index fa4f1ea7..d42111c6 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MathItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py index 3f9e1470..d6f2cbb6 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MatharbfltItemReadfile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py index 7d9745e8..fbcd5bfd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MchItemMinamplitude(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py index 4efa9122..d8993754 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py @@ -139,7 +139,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py index 99c61547..5167d18b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MultiscopeStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py index caa4f386..f923611c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Opcextended(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py index 083acf60..f34445f7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Pcenable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py index c9ba456b..c65f0ad4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py index 9d0eba81..dd85dd49 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py index 96122273..47af52d8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformForcesamefilesize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py index e2af215f..92cc7b8f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Sds(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py index 081ce0ac..4cb55a0d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveonWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py index 17b17a3c..ed7fa38e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py @@ -726,7 +726,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchStop(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py index 2b5f6a2f..8d013882 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py index 85f7d1a1..fb3888ae 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SetupName(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py index 80ca9d9f..05f0537b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SystemSetup(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py index c6c4e0eb..5cd63742 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TeklinkRefclk(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py index 2f9cf138..aaa6ab3e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TestStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py index 7893170f..b3ba1c47 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TrigAPlockStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py index 8458c617..d401dd4b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py index c0df0597..42ba7469 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py @@ -60,7 +60,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class VisualFileSave(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py index 1601bf97..31e66806 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Wavfrmstream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py index ef4622a7..62d6a4f5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py index face5cd5..e434dd2b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py index b78ef3c0..dd656cd9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfmpreNrFr(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py index a520a5f4..ada564ee 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py index ef4cc3c7..51d3d628 100644 --- a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py +++ b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py index 34f3a2ef..2053008c 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py @@ -175,7 +175,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py index 0d5afd1d..9d9460f6 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py @@ -994,7 +994,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py index 0ef40f35..e7ddab93 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CounterResultsValue(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py index 24b6eb0f..87aa664e 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LinktrainingSetup(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py index a02eaaf1..7942633c 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py index f85ad9e8..db7c300a 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Tst(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py index 2fb2aafd..a8c4e154 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Wai(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py index 513feb18..29eea6fc 100644 --- a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Opt(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py index 56adf457..7098cc87 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Cal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py index 25958d78..b4303129 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Trg(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py index c33eeb8f..465a0ce5 100644 --- a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Sre(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py index 44d9154c..4ee595d0 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py index 07696b52..eddf31ad 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py index abc9cc9b..cf1c518e 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Ddt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py index 99b190f2..500c644f 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Newpass(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py index c1bd40a6..1130ef21 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Password(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py index 106e254a..3a6c4441 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Teksecure(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py index 3596adf5..5ebd3550 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Allev(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py index 55ca8931..07f4c473 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Busy(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py index 9f71f865..0b021f90 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Dese(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py index cbac9c51..771d1d37 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Event(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py index 6b8649e4..5dc02e41 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Evmsg(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py index 5bc25ba8..494bffeb 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Evqty(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py index 2b6a4acb..c66d40d7 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Factory(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py index 886b70b2..daf588e4 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Header(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py index 6c8331de..1a821aa5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Id(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py index a72a327a..9a3e87ba 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Lrn(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py index fd8647f5..4c63f555 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Rem(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py index b7662cf5..6f0c5465 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Set(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py index 726eb451..b4449c21 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Pud(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py index 2370cd59..7fc3f7c0 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Verbose(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py index bc6318d7..bee7ba34 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Wavfrm(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py index aab23dd7..aa5c6b44 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Lock(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py index 7f415a9b..08549150 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Unlock(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py index 5430a2f2..7c83a9ec 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/alias.py b/src/tm_devices/commands/gen_u301s_msodpo/alias.py index 9f4c705f..fd019082 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/alias.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/alias.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py index ec504792..49c44546 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py index 45638449..adfa4172 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/bus.py b/src/tm_devices/commands/gen_u301s_msodpo/bus.py index cacca683..04ed6ea2 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/bus.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/bus.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class BusUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py index 487e2a28..a731e6b8 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ch.py b/src/tm_devices/commands/gen_u301s_msodpo/ch.py index ff49e08c..4ed9e4b3 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ch.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ch.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py index b7346ca1..5f9be878 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py @@ -65,7 +65,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/d.py b/src/tm_devices/commands/gen_u301s_msodpo/d.py index 81a38a21..a5f49db5 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/d.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/data.py b/src/tm_devices/commands/gen_u301s_msodpo/data.py index 43e74f77..c1584a4d 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/data.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/diag.py b/src/tm_devices/commands/gen_u301s_msodpo/diag.py index 0add4878..560d2842 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/diag.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/diag.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/display.py b/src/tm_devices/commands/gen_u301s_msodpo/display.py index 8070f591..3ce75600 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/display.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/display.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayStyleDotsonly(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py index 6fd64568..49de2ec0 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py index 5f626086..ea9a304c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py index 045ff2b8..15953fff 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FiltervuFrequencyAvailable(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py index 25775221..abd81c6f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py index a4b3c9d2..e48ca899 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py index bab77a32..544f48aa 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py index 20b61583..3351fce3 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class HorizontalTriggerPosition(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/mark.py b/src/tm_devices/commands/gen_u301s_msodpo/mark.py index 8dcf9fbd..b4036d32 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/mark.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/mark.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/math1.py b/src/tm_devices/commands/gen_u301s_msodpo/math1.py index 00519d04..bfa873a3 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/math1.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/math1.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py index 44609b42..fb0b9670 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py @@ -104,7 +104,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py index d7d25165..cfd4a5c4 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class PictbridgePrintqual(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/recall.py b/src/tm_devices/commands/gen_u301s_msodpo/recall.py index 06439f8b..6dc215c9 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/recall.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ref.py b/src/tm_devices/commands/gen_u301s_msodpo/ref.py index 91d27e8b..4b77f86a 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ref.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ref.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/save.py b/src/tm_devices/commands/gen_u301s_msodpo/save.py index 1953020b..b3dbc66f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/save.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/save.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SaveWaveformSpreadsheetResolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/search.py b/src/tm_devices/commands/gen_u301s_msodpo/search.py index 16d10c0d..e6c137e4 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/search.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/search.py @@ -260,7 +260,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_u301s_msodpo/select.py b/src/tm_devices/commands/gen_u301s_msodpo/select.py index ec21e9e9..3b1f584b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/select.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/select.py @@ -37,7 +37,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py index a4cf9f4f..fc88ba30 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py @@ -303,7 +303,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py index b866571c..f224c4bd 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py index c7949716..9eb8cf32 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py index 8ee075ee..c23b3fcd 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py index bef3a2f0..8b6eeba9 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py index fe34185f..27e4836a 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py @@ -61,7 +61,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py index 7587690b..9c28ca2a 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py index 4f6a6018..5e112d3f 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/display.py b/src/tm_devices/commands/gen_ujuvb_mdo/display.py index a5ca9d8b..f93caad7 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/display.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/display.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py index 6440db0e..4a01c2cd 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class LockTouchscreen(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py index 02f8a53e..a755ef9c 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py @@ -115,7 +115,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py index 17c0133e..92440f8c 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/message.py b/src/tm_devices/commands/gen_ujuvb_mdo/message.py index a93469d3..4d4b1392 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/message.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/message.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py index b84170d6..f7f75a2e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py index 667f225a..1fa32325 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py @@ -122,7 +122,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py index d13e9633..27f02ae0 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RrbState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/search.py b/src/tm_devices/commands/gen_ujuvb_mdo/search.py index 74f5902e..3611cf4c 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/search.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/search.py @@ -395,7 +395,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/select.py b/src/tm_devices/commands/gen_ujuvb_mdo/select.py index 2582ce6f..a1c0eafe 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/select.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/select.py @@ -51,7 +51,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SelectRfNormal(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py index c0cb9317..83bd70c9 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class Setup1ItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py index 55a22bc2..05af7416 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py @@ -446,7 +446,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/rf.py b/src/tm_devices/commands/gen_usaa3_mdo/rf.py index d31b7337..f9c1b896 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/rf.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/rf.py @@ -132,7 +132,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/search.py b/src/tm_devices/commands/gen_usaa3_mdo/search.py index e8d497a4..a0463b74 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/search.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/search.py @@ -405,7 +405,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py index 378a83e8..71936654 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py @@ -468,7 +468,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index 99c73a68..d6012551 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -15,7 +15,7 @@ from .generic_commands import BaseCmd, END_OF_STRING_DIGITS, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl MAX_CHANNELS = 8 MAX_DIGITAL_BITS = 16 diff --git a/src/tm_devices/commands/helpers/tsp_commands.py b/src/tm_devices/commands/helpers/tsp_commands.py index 75ef1a32..4941260a 100644 --- a/src/tm_devices/commands/helpers/tsp_commands.py +++ b/src/tm_devices/commands/helpers/tsp_commands.py @@ -10,7 +10,7 @@ from .generic_commands import BaseCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.tsp_control import TSPControl + from tm_devices.driver_mixins.device_control import TSPControl #################################################################################################### diff --git a/src/tm_devices/commands/lpd6_commands.py b/src/tm_devices/commands/lpd6_commands.py index 1eb61090..a2578aa9 100644 --- a/src/tm_devices/commands/lpd6_commands.py +++ b/src/tm_devices/commands/lpd6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mdo3_commands.py b/src/tm_devices/commands/mdo3_commands.py index 35bde1e2..42fa937b 100644 --- a/src/tm_devices/commands/mdo3_commands.py +++ b/src/tm_devices/commands/mdo3_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1ltpwt_mdomsodpo.actonevent import Actonevent from .gen_1ltpwt_mdomsodpo.afg import Afg diff --git a/src/tm_devices/commands/mdo3k_commands.py b/src/tm_devices/commands/mdo3k_commands.py index 5d3c2d02..e67e20fb 100644 --- a/src/tm_devices/commands/mdo3k_commands.py +++ b/src/tm_devices/commands/mdo3k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mdo4k_commands.py b/src/tm_devices/commands/mdo4k_commands.py index 55514a51..e2dd2aec 100644 --- a/src/tm_devices/commands/mdo4k_commands.py +++ b/src/tm_devices/commands/mdo4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1kjd62_mdo.rf import Rf from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mdo4kb_commands.py b/src/tm_devices/commands/mdo4kb_commands.py index 5ccd32d6..345145ec 100644 --- a/src/tm_devices/commands/mdo4kb_commands.py +++ b/src/tm_devices/commands/mdo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kjd62_mdo.rf import Rf diff --git a/src/tm_devices/commands/mdo4kc_commands.py b/src/tm_devices/commands/mdo4kc_commands.py index 89ba3efa..87ef596d 100644 --- a/src/tm_devices/commands/mdo4kc_commands.py +++ b/src/tm_devices/commands/mdo4kc_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1kdqwg_mdo.search import Search from .gen_1kdqwg_mdo.trigger import Trigger diff --git a/src/tm_devices/commands/mso2_commands.py b/src/tm_devices/commands/mso2_commands.py index 19fcf102..b6d51880 100644 --- a/src/tm_devices/commands/mso2_commands.py +++ b/src/tm_devices/commands/mso2_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1lwj1r_msomdodpo.rosc import Rosc from .gen_1zn03_mso.acquire import Acquire diff --git a/src/tm_devices/commands/mso2k_commands.py b/src/tm_devices/commands/mso2k_commands.py index 6921249f..ce23d77e 100644 --- a/src/tm_devices/commands/mso2k_commands.py +++ b/src/tm_devices/commands/mso2k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/mso2kb_commands.py b/src/tm_devices/commands/mso2kb_commands.py index b08995cb..2342f2bb 100644 --- a/src/tm_devices/commands/mso2kb_commands.py +++ b/src/tm_devices/commands/mso2kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem diff --git a/src/tm_devices/commands/mso4_commands.py b/src/tm_devices/commands/mso4_commands.py index 0a425aa7..d45c8eea 100644 --- a/src/tm_devices/commands/mso4_commands.py +++ b/src/tm_devices/commands/mso4_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso4b_commands.py b/src/tm_devices/commands/mso4b_commands.py index 76cc8a1a..99113e32 100644 --- a/src/tm_devices/commands/mso4b_commands.py +++ b/src/tm_devices/commands/mso4b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso4k_commands.py b/src/tm_devices/commands/mso4k_commands.py index f006afe3..dd2383c9 100644 --- a/src/tm_devices/commands/mso4k_commands.py +++ b/src/tm_devices/commands/mso4k_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mso4kb_commands.py b/src/tm_devices/commands/mso4kb_commands.py index 48c003e1..686ca835 100644 --- a/src/tm_devices/commands/mso4kb_commands.py +++ b/src/tm_devices/commands/mso4kb_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mso5_commands.py b/src/tm_devices/commands/mso5_commands.py index eec4f2b9..1b25c941 100644 --- a/src/tm_devices/commands/mso5_commands.py +++ b/src/tm_devices/commands/mso5_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso5b_commands.py b/src/tm_devices/commands/mso5b_commands.py index 2166f414..87d93d0b 100644 --- a/src/tm_devices/commands/mso5b_commands.py +++ b/src/tm_devices/commands/mso5b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso5k_commands.py b/src/tm_devices/commands/mso5k_commands.py index 9a41527e..83e7c645 100644 --- a/src/tm_devices/commands/mso5k_commands.py +++ b/src/tm_devices/commands/mso5k_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve diff --git a/src/tm_devices/commands/mso5kb_commands.py b/src/tm_devices/commands/mso5kb_commands.py index 2146c8de..fa272361 100644 --- a/src/tm_devices/commands/mso5kb_commands.py +++ b/src/tm_devices/commands/mso5kb_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5ri0nj_dpomso.bus import Bus from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/mso5lp_commands.py b/src/tm_devices/commands/mso5lp_commands.py index e0fcf0ca..c7584beb 100644 --- a/src/tm_devices/commands/mso5lp_commands.py +++ b/src/tm_devices/commands/mso5lp_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso6_commands.py b/src/tm_devices/commands/mso6_commands.py index 39f6e4e1..88196089 100644 --- a/src/tm_devices/commands/mso6_commands.py +++ b/src/tm_devices/commands/mso6_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso6b_commands.py b/src/tm_devices/commands/mso6b_commands.py index e545c981..3bca98f5 100644 --- a/src/tm_devices/commands/mso6b_commands.py +++ b/src/tm_devices/commands/mso6b_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent diff --git a/src/tm_devices/commands/mso70kc_commands.py b/src/tm_devices/commands/mso70kc_commands.py index 3e6a3e35..dd10d385 100644 --- a/src/tm_devices/commands/mso70kc_commands.py +++ b/src/tm_devices/commands/mso70kc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5ri0nj_dpomso.bus import Bus from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/mso70kdx_commands.py b/src/tm_devices/commands/mso70kdx_commands.py index 129f5f92..7ab96293 100644 --- a/src/tm_devices/commands/mso70kdx_commands.py +++ b/src/tm_devices/commands/mso70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_5xwdsk_dpodsamso.errordetector import Errordetector from .gen_5y90wx_dpodsamso.dpojet import Dpojet diff --git a/src/tm_devices/commands/smu2450_commands.py b/src/tm_devices/commands/smu2450_commands.py index 00089d9e..2a7222b7 100644 --- a/src/tm_devices/commands/smu2450_commands.py +++ b/src/tm_devices/commands/smu2450_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_6w7311_smu.trigger import Trigger from .gen_7kqm9p_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2460_commands.py b/src/tm_devices/commands/smu2460_commands.py index f0a56b31..fb86c75d 100644 --- a/src/tm_devices/commands/smu2460_commands.py +++ b/src/tm_devices/commands/smu2460_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_6ocqvh_smu.buffer import Buffer from .gen_6srh1x_smu.smu import Smu diff --git a/src/tm_devices/commands/smu2461_commands.py b/src/tm_devices/commands/smu2461_commands.py index 9935ce47..942c7fd1 100644 --- a/src/tm_devices/commands/smu2461_commands.py +++ b/src/tm_devices/commands/smu2461_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_6ocqvh_smu.buffer import Buffer from .gen_6vynmi_smu.acal import Acal diff --git a/src/tm_devices/commands/smu2470_commands.py b/src/tm_devices/commands/smu2470_commands.py index f535c669..428180f5 100644 --- a/src/tm_devices/commands/smu2470_commands.py +++ b/src/tm_devices/commands/smu2470_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_6w7311_smu.trigger import Trigger from .gen_6xiuc2_smu.buffer import Buffer diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 35bc6421..7c062623 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_7s6wr5_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2601b_pulse_commands.py b/src/tm_devices/commands/smu2601b_pulse_commands.py index 613de571..2df9324d 100644 --- a/src/tm_devices/commands/smu2601b_pulse_commands.py +++ b/src/tm_devices/commands/smu2601b_pulse_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_7s2p1p_smu.beeper import Beeper from .gen_7s2p1p_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index 37067749..0b5f9cdc 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_7s43m8_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index 32535b4b..28d032c3 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_7ryhce_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index 144564d2..6e42f87e 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_8ojdkz_smu.display import Display from .gen_8ojdkz_smu.node import NodeItem diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index 132ea8ac..fdc17c74 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_9ncc6e_smu.display import Display diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index 725e8dec..29f38ea8 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_ahkybr_smu.beeper import Beeper diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index 1a6b8454..1e35b901 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_9kezla_smu.smux import SmuxItem from .gen_9mzp2j_smu.digio import Digio diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index 6a90585f..d7bf036b 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_9mzp2j_smu.digio import Digio from .gen_9mzp2j_smu.display import Display diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index a51020b1..8d9ae096 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_9ncc6e_smu.display import Display from .gen_9slyux_smu.status import Status diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index df209949..ea1e7292 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index 65b2ca7c..aa878820 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index 19d0487d..e0b42647 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar diff --git a/src/tm_devices/commands/ss3706a_commands.py b/src/tm_devices/commands/ss3706a_commands.py index 698820bb..9e72e246 100644 --- a/src/tm_devices/commands/ss3706a_commands.py +++ b/src/tm_devices/commands/ss3706a_commands.py @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from .gen_e3pief_ss.beeper import Beeper from .gen_e3pief_ss.buffervar import Buffervar diff --git a/src/tm_devices/commands/tekscopepc_commands.py b/src/tm_devices/commands/tekscopepc_commands.py index 6d39a09f..25f7b2bd 100644 --- a/src/tm_devices/commands/tekscopepc_commands.py +++ b/src/tm_devices/commands/tekscopepc_commands.py @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from .gen_c3g61_tekscopepc.actonevent import Actonevent from .gen_c3g61_tekscopepc.bus import Bus diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index 23ca324e..a4afd14a 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -17,9 +17,7 @@ from typing_extensions import TypeVar from tm_devices.components import DMConfigParser -from tm_devices.driver_mixins.device_control.pi_control import PIControl - -# noinspection PyProtectedMember +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.drivers._device_driver_mapping import ( _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] ) diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py b/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py index e079c441..cfb4b3a4 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/__init__.py @@ -1 +1,35 @@ """Mixins that define abstract methods for functionality that device drivers must implement.""" + +from .analysis_object_mixins import ( + BusMixin, + HistogramMixin, + MathMixin, + MeasurementsMixin, + PlotMixin, + PowerMixin, + ReferenceMixin, + SearchMixin, +) +from .base_afg_source_channel import BaseAFGSourceChannel +from .base_source_channel import BaseSourceChannel +from .channel_control_mixin import ChannelControlMixin +from .licensed_mixin import LicensedMixin +from .signal_generator_mixin import SignalGeneratorMixin +from .usb_drives_mixin import USBDrivesMixin + +__all__ = [ + "BaseAFGSourceChannel", + "BaseSourceChannel", + "BusMixin", + "ChannelControlMixin", + "HistogramMixin", + "LicensedMixin", + "MathMixin", + "MeasurementsMixin", + "PlotMixin", + "PowerMixin", + "ReferenceMixin", + "SearchMixin", + "SignalGeneratorMixin", + "USBDrivesMixin", +] diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py index 52f0f3b0..c9a72883 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_afg_source_channel.py @@ -1,17 +1,17 @@ -"""Base AFG source channel driver module.""" +"""Base AFG source channel module.""" -from abc import abstractmethod +from abc import ABC, abstractmethod from typing import Literal from tm_devices.driver_mixins.abstract_device_functionality.base_source_channel import ( BaseSourceChannel, ) -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.helpers.enums import SignalGeneratorFunctionBase -class BaseAFGSourceChannel(BaseSourceChannel): - """Base AFG source channel driver.""" +class BaseAFGSourceChannel(BaseSourceChannel, ABC): + """Base AFG source channel.""" def __init__(self, pi_control: PIControl, channel_name: str) -> None: """Create an AFG source channel. diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py index ef3d755d..8b655136 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/base_source_channel.py @@ -1,14 +1,16 @@ -"""Base source channel driver module.""" +"""Base source channel module.""" from abc import ABC, abstractmethod from typing import Optional -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._extension_mixin import ( + _ExtendableMixin, # pyright: ignore[reportPrivateUsage] +) -class BaseSourceChannel(ExtendableMixin, ABC): - """Base source channel driver.""" +class BaseSourceChannel(_ExtendableMixin, ABC): + """Base source channel.""" def __init__(self, pi_control: PIControl, channel_name: str) -> None: """Create a source channel. diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py index 42fc3dd3..f79ef6be 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py @@ -4,7 +4,9 @@ from dataclasses import dataclass from typing import Literal, NamedTuple, Optional, Type, TypeVar -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.shared_implementations._extension_mixin import ( + _ExtendableMixin, # pyright: ignore[reportPrivateUsage] +) from tm_devices.helpers.enums import ( LoadImpedanceAFG, SignalGeneratorFunctionBase, @@ -45,7 +47,7 @@ class SourceDeviceConstants: functions: Type[SignalGeneratorFunctionBase] -class SignalGeneratorMixin(ExtendableMixin, ABC): +class SignalGeneratorMixin(_ExtendableMixin, ABC): """A mixin class which adds methods and properties for generating signals.""" @staticmethod diff --git a/src/tm_devices/driver_mixins/device_control/__init__.py b/src/tm_devices/driver_mixins/device_control/__init__.py index 583f2c41..924f4025 100644 --- a/src/tm_devices/driver_mixins/device_control/__init__.py +++ b/src/tm_devices/driver_mixins/device_control/__init__.py @@ -1 +1,7 @@ """Mixins that contain implementations of methods of device control (SCPI, TSP, REST, etc.).""" + +from .pi_control import PIControl +from .rest_api_control import RESTAPIControl +from .tsp_control import TSPControl + +__all__ = ["PIControl", "TSPControl", "RESTAPIControl"] diff --git a/src/tm_devices/driver_mixins/device_control/abstract_device_control.py b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py similarity index 90% rename from src/tm_devices/driver_mixins/device_control/abstract_device_control.py rename to src/tm_devices/driver_mixins/device_control/_abstract_device_control.py index d87df259..3756411f 100644 --- a/src/tm_devices/driver_mixins/device_control/abstract_device_control.py +++ b/src/tm_devices/driver_mixins/device_control/_abstract_device_control.py @@ -7,8 +7,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: Look into making this private or filtering it out of the docs -class AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods +class _AbstractDeviceControl(ABC): # pylint: disable=too-few-public-methods # pyright: ignore[reportUnusedClass] """Abstract class with properties and attributes shared between devices and control mixins.""" def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: diff --git a/src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py b/src/tm_devices/driver_mixins/device_control/_abstract_device_visa_write_query_control.py similarity index 92% rename from src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py rename to src/tm_devices/driver_mixins/device_control/_abstract_device_visa_write_query_control.py index bda9e222..bf1a31fb 100644 --- a/src/tm_devices/driver_mixins/device_control/abstract_device_visa_write_query_control.py +++ b/src/tm_devices/driver_mixins/device_control/_abstract_device_visa_write_query_control.py @@ -3,12 +3,13 @@ from abc import abstractmethod from typing import Any, final, Tuple -from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) from tm_devices.helpers import raise_failure, verify_values -# TODO: nfelt14: Look into making this private or filtering it out of the docs -class AbstractDeviceVISAWriteQueryControl(AbstractDeviceControl): +class _AbstractDeviceVISAWriteQueryControl(_AbstractDeviceControl): # pyright: ignore[reportUnusedClass] """Abstract class defining methods that VISA devices and control mixins must have.""" @property diff --git a/src/tm_devices/driver_mixins/device_control/pi_control.py b/src/tm_devices/driver_mixins/device_control/pi_control.py index 447cc2ce..543225fd 100644 --- a/src/tm_devices/driver_mixins/device_control/pi_control.py +++ b/src/tm_devices/driver_mixins/device_control/pi_control.py @@ -15,10 +15,12 @@ from pyvisa import constants as visa_constants from pyvisa import VisaIOError -from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( - AbstractDeviceVISAWriteQueryControl, +from tm_devices.driver_mixins.device_control._abstract_device_visa_write_query_control import ( + _AbstractDeviceVISAWriteQueryControl, # pyright: ignore[reportPrivateUsage] +) +from tm_devices.driver_mixins.shared_implementations._extension_mixin import ( + _ExtendableMixin, # pyright: ignore[reportPrivateUsage] ) -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import IEEE4882Commands from tm_devices.helpers import ( check_visa_connection, @@ -35,7 +37,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class PIControl(AbstractDeviceVISAWriteQueryControl, ExtendableMixin, ABC): # pylint: disable=too-many-public-methods +class PIControl(_AbstractDeviceVISAWriteQueryControl, _ExtendableMixin, ABC): # pylint: disable=too-many-public-methods """Base Programmable Interface (PI) control class. !!! important diff --git a/src/tm_devices/driver_mixins/device_control/rest_api_control.py b/src/tm_devices/driver_mixins/device_control/rest_api_control.py index 37b6aaa6..d103a3d7 100644 --- a/src/tm_devices/driver_mixins/device_control/rest_api_control.py +++ b/src/tm_devices/driver_mixins/device_control/rest_api_control.py @@ -9,7 +9,9 @@ import requests -from tm_devices.driver_mixins.device_control.abstract_device_control import AbstractDeviceControl +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) from tm_devices.helpers import ( DeviceConfigEntry, print_with_timestamp, @@ -18,7 +20,7 @@ ) -class RESTAPIControl(AbstractDeviceControl, ABC): +class RESTAPIControl(_AbstractDeviceControl, ABC): """Base REST Application Programming Interface (API) control class. !!! important diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index 6148a691..f0344291 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands from tm_devices.helpers import verify_values diff --git a/src/tm_devices/driver_mixins/shared_implementations/__init__.py b/src/tm_devices/driver_mixins/shared_implementations/__init__.py index 414a63bd..8efa2640 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/__init__.py +++ b/src/tm_devices/driver_mixins/shared_implementations/__init__.py @@ -1 +1,13 @@ """Mixins that contain shared implementations of code used across multiple device families.""" + +from .common_pi_system_error_check_mixin import CommonPISystemErrorCheckMixin +from .common_tsp_error_check_mixin import CommonTSPErrorCheckMixin +from .ieee488_2_commands import IEEE4882Commands, LegacyTSPIEEE4882Commands, TSPIEEE4882Commands + +__all__ = [ + "CommonPISystemErrorCheckMixin", + "CommonTSPErrorCheckMixin", + "IEEE4882Commands", + "TSPIEEE4882Commands", + "LegacyTSPIEEE4882Commands", +] diff --git a/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_extension_mixin.py similarity index 96% rename from src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/_extension_mixin.py index 54026e51..f7d75794 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/class_extension_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/_extension_mixin.py @@ -7,15 +7,14 @@ from typing_extensions import Concatenate, ParamSpec # bound is used to allow anything that subclasses from Device -_EM = TypeVar("_EM", bound="ExtendableMixin") +_EM = TypeVar("_EM", bound="_ExtendableMixin") _T = TypeVar("_T") _P = ParamSpec( "_P", ) -# TODO: nfelt14: Look into making this private or filtering it out of the docs -class ExtendableMixin: +class _ExtendableMixin: """A mixin class which adds methods for expanding a class.""" ################################################################################################ diff --git a/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_afg_awg_mixin.py similarity index 87% rename from src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_afg_awg_mixin.py index 3f28fbf6..c534b904 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_afg_awg_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_afg_awg_mixin.py @@ -6,22 +6,23 @@ from tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin import ( SignalGeneratorMixin, ) -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin +from tm_devices.driver_mixins.shared_implementations._extension_mixin import ( + _ExtendableMixin, # pyright: ignore[reportPrivateUsage] +) from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -# TODO: nfelt14: Look into making this private -class TektronixPIAFGAWGMixin( - CommonPISystemErrorCheckMixin, SignalGeneratorMixin, ExtendableMixin, ABC +class _TektronixPIAFGAWGMixin( # pyright: ignore[reportUnusedClass] + CommonPISystemErrorCheckMixin, SignalGeneratorMixin, _ExtendableMixin, ABC ): """A private mixin for common methods and attributes for Tektronix AFG and AWG devices. !!! important Any class that inherits this mixin must also inherit the - [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + [`PIControl`][tm_devices.driver_mixins.device_control.PIControl] mixin in order to have access to the methods required by this class. """ diff --git a/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_scope_mixin.py similarity index 76% rename from src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py rename to src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_scope_mixin.py index c9c30389..4b20b20f 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/tektronix_pi_scope_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/_tektronix_pi_scope_mixin.py @@ -3,18 +3,17 @@ from abc import ABC from typing import Tuple -from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( - AbstractDeviceVISAWriteQueryControl, +from tm_devices.driver_mixins.device_control._abstract_device_visa_write_query_control import ( + _AbstractDeviceVISAWriteQueryControl, # pyright: ignore[reportPrivateUsage] ) -# TODO: nfelt14: Look into making this private -class TektronixPIScopeMixin(AbstractDeviceVISAWriteQueryControl, ABC): +class _TektronixPIScopeMixin(_AbstractDeviceVISAWriteQueryControl, ABC): # pyright: ignore[reportUnusedClass] """A private mixin for common methods and attributes for Tektronix scopes. !!! important Any class that inherits this mixin must also inherit the - [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + [`PIControl`][tm_devices.driver_mixins.device_control.PIControl] mixin in order to have access to the methods required by this class. """ diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py index 1914b5aa..42686af2 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py @@ -3,17 +3,17 @@ from abc import ABC from typing import List, Tuple -from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( - AbstractDeviceVISAWriteQueryControl, +from tm_devices.driver_mixins.device_control._abstract_device_visa_write_query_control import ( + _AbstractDeviceVISAWriteQueryControl, # pyright: ignore[reportPrivateUsage] ) -class CommonPISystemErrorCheckMixin(AbstractDeviceVISAWriteQueryControl, ABC): +class CommonPISystemErrorCheckMixin(_AbstractDeviceVISAWriteQueryControl, ABC): """A mixin class that contains common methods for checking the PI device for SYSTEM:ERROR. !!! important Any class that inherits this mixin must also inherit the - [`PIControl`][tm_devices.driver_mixins.device_control.pi_control.PIControl] mixin in order + [`PIControl`][tm_devices.driver_mixins.device_control.PIControl] mixin in order to have access to the methods required by this class. """ diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py index f085f36f..6ff784d7 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_tsp_error_check_mixin.py @@ -3,17 +3,17 @@ from abc import ABC from typing import Tuple -from tm_devices.driver_mixins.device_control.abstract_device_visa_write_query_control import ( - AbstractDeviceVISAWriteQueryControl, +from tm_devices.driver_mixins.device_control._abstract_device_visa_write_query_control import ( + _AbstractDeviceVISAWriteQueryControl, # pyright: ignore[reportPrivateUsage] ) -class CommonTSPErrorCheckMixin(AbstractDeviceVISAWriteQueryControl, ABC): +class CommonTSPErrorCheckMixin(_AbstractDeviceVISAWriteQueryControl, ABC): """A mixin class that contains common methods for checking the TSP device for errors. !!! important Any class that inherits this mixin must also inherit the - [`TSPControl`][tm_devices.driver_mixins.device_control.tsp_control.TSPControl] mixin in + [`TSPControl`][tm_devices.driver_mixins.device_control.TSPControl] mixin in order to have access to the methods required by this class. """ diff --git a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py index 97e96828..154aeea5 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py +++ b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py @@ -3,7 +3,7 @@ from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control.pi_control import PIControl + from tm_devices.driver_mixins.device_control import PIControl class IEEE4882Commands: diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index b6d4dbe0..dd454544 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -15,9 +15,9 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( - TektronixPIAFGAWGMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_afg_awg_mixin import ( + _TektronixPIAFGAWGMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG @@ -36,7 +36,7 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): @family_base_class -class AFG(TektronixPIAFGAWGMixin, PIControl, Device, ABC): +class AFG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AFG device driver.""" _DEVICE_TYPE = DeviceTypes.AFG.value diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index 76068dee..fece95d5 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -13,9 +13,9 @@ ParameterBounds, SourceDeviceConstants, ) -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( - TektronixPIAFGAWGMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_afg_awg_mixin import ( + _TektronixPIAFGAWGMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceTypes, LoadImpedanceAFG @@ -39,7 +39,7 @@ class AWGSourceDeviceConstants(SourceDeviceConstants): # control class inheritance responsibility moved to the Family Base Classes. The other option # would be to create two abstract AWG parent classes and two distinct AWGSourceChannel classes, # with one set using the PIControl mixin and one set using another control mixin. -class AWG(TektronixPIAFGAWGMixin, PIControl, Device, ABC): +class AWG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AWG device driver.""" OutputSignalPath = SignalGeneratorOutputPathsNon5200 @@ -364,7 +364,7 @@ def _get_series_specific_constraints( @family_base_class -class AWGSourceChannel(BaseSourceChannel): +class AWGSourceChannel(BaseSourceChannel, ABC): """AWG signal source channel composite.""" ################################################################################################ diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index 9cb8383a..e97443fe 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import DAQ6510Mixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index a4fa1590..5771fde3 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -18,10 +18,12 @@ from packaging.version import Version -from tm_devices.driver_mixins.device_control.abstract_device_control import ( - AbstractDeviceControl, +from tm_devices.driver_mixins.device_control._abstract_device_control import ( + _AbstractDeviceControl, # pyright: ignore[reportPrivateUsage] +) +from tm_devices.driver_mixins.shared_implementations._extension_mixin import ( + _ExtendableMixin, # pyright: ignore[reportPrivateUsage] ) -from tm_devices.driver_mixins.shared_implementations.class_extension_mixin import ExtendableMixin from tm_devices.helpers import ( check_network_connection, check_port_connection, @@ -46,7 +48,7 @@ def family_base_class(cls: _T) -> _T: # pylint: disable=too-many-instance-attributes,too-many-public-methods -class Device(AbstractDeviceControl, ExtendableMixin, ABC): +class Device(_AbstractDeviceControl, _ExtendableMixin, ABC): """Base device driver that all devices inherit from.""" _DEVICE_TYPE: str # should be implemented by device type base classes diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index 822e9fee..df64b4d1 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -5,7 +5,7 @@ import pyvisa as visa from tm_devices.commands import DMM6500Mixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index aa620ed0..ef4aff12 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -5,7 +5,7 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index e0681eb6..a0a538f6 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -9,7 +9,7 @@ from packaging.version import Version from requests.structures import CaseInsensitiveDict -from tm_devices.driver_mixins.device_control.rest_api_control import RESTAPIControl +from tm_devices.driver_mixins.device_control import RESTAPIControl from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import DeviceConfigEntry, DeviceTypes from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -137,7 +137,6 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: A tuple containing the current error code alongside a tuple of the current error messages. """ - # TODO: implement return 0, () def _open(self) -> bool: diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py index 9e63298e..3dd0661a 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2200.py @@ -2,7 +2,7 @@ from packaging.version import Version -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index f768fb7d..607d04ed 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -46,9 +46,9 @@ SourceDeviceConstants, ) from tm_devices.driver_mixins.abstract_device_functionality.usb_drives_mixin import USBDrivesMixin -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( - TektronixPIScopeMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_scope_mixin import ( + _TektronixPIScopeMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope @@ -79,7 +79,7 @@ class TekProbeData: # NOTE: This is no longer considered a family_base_class due to the # differences between the physical scope hardware devices and the TekScopePC device. class AbstractTekScope( # pylint: disable=too-many-public-methods - TektronixPIScopeMixin, + _TektronixPIScopeMixin, PIControl, Scope, BusMixin, @@ -219,6 +219,7 @@ def license_list(self) -> Tuple[str, ...]: def num_dig_bits_in_ch(self) -> int: """Return the number of digital bits expected in a digital channel.""" # TODO: should be part of self.channel + # https://github.com/tektronix/tm_devices/issues/329 return self._num_dig_bits_in_ch @cached_property diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py index 5fa644f1..785ca695 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/tekscope_2k.py @@ -8,9 +8,9 @@ from tm_devices.driver_mixins.abstract_device_functionality.channel_control_mixin import ( ChannelControlMixin, ) -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( - TektronixPIScopeMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_scope_mixin import ( + _TektronixPIScopeMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope @@ -18,7 +18,7 @@ @family_base_class -class TekScope2k(TektronixPIScopeMixin, PIControl, Scope, ChannelControlMixin, ABC): +class TekScope2k(_TektronixPIScopeMixin, PIControl, Scope, ChannelControlMixin, ABC): """Base TekScope2k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py index 977eec90..1653d35c 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -2,9 +2,9 @@ from abc import ABC -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( - TektronixPIScopeMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_scope_mixin import ( + _TektronixPIScopeMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope @@ -12,7 +12,7 @@ @family_base_class -class TekScope3k4k(TektronixPIScopeMixin, PIControl, Scope, ABC): +class TekScope3k4k(_TektronixPIScopeMixin, PIControl, Scope, ABC): """Base TekScope3k4k scope device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index 73017234..c9c47264 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -4,9 +4,9 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( - TektronixPIScopeMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_scope_mixin import ( + _TektronixPIScopeMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope @@ -15,7 +15,7 @@ @family_base_class -class TekScope5k7k70k(TektronixPIScopeMixin, PIControl, Scope, ABC): +class TekScope5k7k70k(_TektronixPIScopeMixin, PIControl, Scope, ABC): """Base TekScope5k7k70k scope device driver.""" ################################################################################################ @@ -55,6 +55,7 @@ def __init__( def num_dig_bits_in_ch(self) -> int: """Return the number of digital bits expected in a digital channel.""" # TODO: should be part of self.channel + # https://github.com/tektronix/tm_devices/issues/329 return self._num_dig_bits_in_ch @cached_property diff --git a/src/tm_devices/drivers/scopes/tso/tsovu.py b/src/tm_devices/drivers/scopes/tso/tsovu.py index f0e1a8e2..01653ffe 100644 --- a/src/tm_devices/drivers/scopes/tso/tsovu.py +++ b/src/tm_devices/drivers/scopes/tso/tsovu.py @@ -2,9 +2,9 @@ import pyvisa as visa -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_scope_mixin import ( - TektronixPIScopeMixin, +from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_scope_mixin import ( + _TektronixPIScopeMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.scope import Scope @@ -13,7 +13,7 @@ @family_base_class -class TSOVu(TektronixPIScopeMixin, PIControl, Scope): +class TSOVu(_TektronixPIScopeMixin, PIControl, Scope): """TSOVu device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 68743a92..67a79fb5 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -9,7 +9,7 @@ SMU2461Commands, SMU2470Commands, ) -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py index 5a60d2d0..296a439b 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_standard.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index 567c93e1..b6425196 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -20,7 +20,7 @@ SMU2651ACommands, SMU2657ACommands, ) -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py index f8b21806..ed0a3f7f 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6xxx.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Tuple, TYPE_CHECKING -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.driver_mixins.shared_implementations.common_pi_system_error_check_mixin import ( CommonPISystemErrorCheckMixin, ) diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index 0d779f50..b0d1cc30 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -3,7 +3,7 @@ import pyvisa as visa from tm_devices.commands import SS3706AMixin -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl +from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, ) diff --git a/src/tm_devices/helpers/enums.py b/src/tm_devices/helpers/enums.py index 605d9bf9..c403b9b5 100644 --- a/src/tm_devices/helpers/enums.py +++ b/src/tm_devices/helpers/enums.py @@ -199,7 +199,7 @@ class SupportedModels(CustomStrEnum): class SupportedRequestTypes(CustomStrEnum): - """All request types supported by a [`RESTAPIControl`][tm_devices.driver_mixins.device_control.rest_api_control.RESTAPIControl].""" # noqa: E501 + """All request types supported by a [`RESTAPIControl`][tm_devices.driver_mixins.device_control.RESTAPIControl].""" # noqa: E501 GET = "GET" POST = "POST" diff --git a/tests/test_extension_mixin.py b/tests/test_extension_mixin.py index 1821b525..96f2b7ec 100644 --- a/tests/test_extension_mixin.py +++ b/tests/test_extension_mixin.py @@ -17,10 +17,9 @@ import pytest from tm_devices import DeviceManager -from tm_devices.driver_mixins.device_control.pi_control import PIControl -from tm_devices.driver_mixins.device_control.tsp_control import TSPControl -from tm_devices.driver_mixins.shared_implementations.tektronix_pi_afg_awg_mixin import ( - TektronixPIAFGAWGMixin, +from tm_devices.driver_mixins.device_control import PIControl, TSPControl +from tm_devices.driver_mixins.shared_implementations._tektronix_pi_afg_awg_mixin import ( + _TektronixPIAFGAWGMixin, # pyright: ignore[reportPrivateUsage] ) from tm_devices.drivers import AFG3K, AFG3KC from tm_devices.drivers.afgs.afg import AFG @@ -97,7 +96,7 @@ def _remove_added_methods() -> Iterator[None]: (Device, "already_exists"), (Scope, "custom_model_getter_scope"), (Scope, "custom_return"), - (TektronixPIAFGAWGMixin, "custom_model_getter_sg"), + (_TektronixPIAFGAWGMixin, "custom_model_getter_sg"), (AFG, "custom_model_getter_afg"), (AFG3K, "custom_model_getter_afg3k"), (AFG3KC, "custom_model_getter_afg3kc"), @@ -222,9 +221,10 @@ def custom_model_getter_scope(device: Scope, value: str) -> str: """Return the model.""" return f"Scope {device.model} {value}" - @TektronixPIAFGAWGMixin.add_method - def custom_model_getter_sg(device: TektronixPIAFGAWGMixin, value: str) -> str: + @_TektronixPIAFGAWGMixin.add_method + def custom_model_getter_sg(device: _TektronixPIAFGAWGMixin, value: str) -> str: """Return the model.""" + # noinspection PyUnresolvedReferences return f"TekAFGAWG {device.model} {value}" @AFG.add_method diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 301a5899..df33285a 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -11,14 +11,11 @@ from packaging.version import Version from mock_server import INDEX_RESPONSE, PORT -from tm_devices.driver_mixins.device_control.rest_api_control import ( - RESTAPIControl, - SupportedRequestTypes, -) +from tm_devices.driver_mixins.device_control import RESTAPIControl from tm_devices.drivers.device import Device, family_base_class from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.constants_and_dataclasses import DeviceConfigEntry -from tm_devices.helpers.enums import ConnectionTypes, DeviceTypes +from tm_devices.helpers.enums import ConnectionTypes, DeviceTypes, SupportedRequestTypes ################################################################################################ @@ -91,7 +88,6 @@ def fixture_rest_api_control(mock_http_server: None) -> CustomRestApiDevice: # ), verbose=False, ) - # noinspection PyProtectedMember # Change base_url from https to http as the mock server # can only handle http requests. Also add port number. rest_api_control._base_url = ( # noqa: SLF001 diff --git a/tests/test_tm_devices.py b/tests/test_tm_devices.py index 8318083e..96571737 100644 --- a/tests/test_tm_devices.py +++ b/tests/test_tm_devices.py @@ -4,8 +4,7 @@ from abc import ABC -# pylint: disable=import-private-name -# noinspection PyUnresolvedReferences,PyProtectedMember +# noinspection PyUnresolvedReferences from functools import _lru_cache_wrapper, cached_property # pyright: ignore [reportPrivateUsage] from types import FunctionType from typing import Any, Generator, List, Set, Type @@ -19,8 +18,6 @@ import tm_devices.drivers import tm_devices.helpers - -# noinspection PyProtectedMember from tm_devices.drivers.device import ( _FAMILY_BASE_CLASS_PROPERTY_NAME, # pyright: ignore [reportPrivateUsage] Device, diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index c0bccd5a..1938e563 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -7,7 +7,7 @@ import pytest from tm_devices import DeviceManager -from tm_devices.driver_mixins.device_control.pi_control import PIControl +from tm_devices.driver_mixins.device_control import PIControl from tm_devices.drivers.device import Device from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 From 6b352335ca5fa17e717db3a4dba99ac451fb6ae2 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 17 Oct 2024 12:58:59 -0700 Subject: [PATCH 29/52] refactor: Converted the private class constant `_DEVICE_TYPE` into an abstract property that each device must implement to better enforce all devices to have a type defined --- CHANGELOG.md | 1 + .../custom_device_driver_support.py | 5 ++++- .../shared_implementations/ieee488_2_commands.py | 2 +- src/tm_devices/drivers/afgs/afg.py | 7 +++++-- src/tm_devices/drivers/awgs/awg.py | 6 +++++- .../data_acquisition_system.py | 9 ++++++++- src/tm_devices/drivers/device.py | 16 +++++++--------- .../digital_multimeters/digital_multimeter.py | 7 +++++-- .../drivers/margin_testers/margin_tester.py | 7 +++++-- .../drivers/power_supplies/power_supply.py | 9 ++++++++- src/tm_devices/drivers/scopes/scope.py | 7 +++++-- .../source_measure_units/source_measure_unit.py | 9 ++++++++- .../drivers/systems_switches/systems_switch.py | 9 ++++++++- tests/test_rest_api_device.py | 7 +++++-- tests/test_unsupported_device_type.py | 4 +++- 15 files changed, 78 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d61097e..ade188a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ However, please read through all changes to be aware of what may potentially imp - BREAKING CHANGE: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. - BREAKING CHANGE: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. +- BREAKING CHANGE: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. ### Removed diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index d93e6bc1..e26b5a1b 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -41,7 +41,10 @@ class CustomDevice(PIControl, Device): """A custom device that is not one of the officially supported devices.""" # Custom device types not officially supported need to define what type of device they are. - _DEVICE_TYPE = "CustomDevice" + @cached_property + def device_type(self) -> str: + """Return the device type.""" + return "CustomDevice" # This is an abstract method that must be implemented by the custom device driver. def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: diff --git a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py index 154aeea5..81fa618c 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py +++ b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py @@ -1,4 +1,4 @@ -"""Module containing an inner class to use for an API for IEEE 488.2 commands.""" +"""Module containing inner classes to use for APIs for IEEE 488.2 commands.""" from typing import Optional, TYPE_CHECKING diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index dd454544..20cdc2dd 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -39,11 +39,14 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): class AFG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AFG device driver.""" - _DEVICE_TYPE = DeviceTypes.AFG.value - ################################################################################################ # Properties ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.AFG.value + @cached_property def source_channel(self) -> "MappingProxyType[str, AFGSourceChannel]": """Mapping of channel names to AFGSourceChannel objects.""" diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index fece95d5..f090bbad 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -44,7 +44,6 @@ class AWG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): OutputSignalPath = SignalGeneratorOutputPathsNon5200 - _DEVICE_TYPE = DeviceTypes.AWG.value # The record lengths for the predefined SIN waveforms. _PRE_DEFINED_SIGNAL_RECORD_LENGTH_SIN: ClassVar[List[int]] = [3600, 1000, 960, 360, 100, 36, 10] # The record lengths for the predefined CLOCK waveforms. @@ -59,6 +58,11 @@ class AWG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): ################################################################################################ # Properties ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.AWG.value + @cached_property def source_channel(self) -> "MappingProxyType[str, AWGSourceChannel]": # pragma: no cover """Mapping of channel names to AWGSourceChannel objects. diff --git a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py index 2f6c9dfb..ec10a160 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py +++ b/src/tm_devices/drivers/data_acquisition_systems/data_acquisition_system.py @@ -4,12 +4,19 @@ from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 class DataAcquisitionSystem(Device, ABC): """Base Data Acquisition (DAQ) device driver.""" - _DEVICE_TYPE = DeviceTypes.DAQ.value + ################################################################################################ + # Properties + ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.DAQ.value ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 5771fde3..f6ec9e6b 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -51,12 +51,10 @@ def family_base_class(cls: _T) -> _T: class Device(_AbstractDeviceControl, _ExtendableMixin, ABC): """Base device driver that all devices inherit from.""" - _DEVICE_TYPE: str # should be implemented by device type base classes - ################################################################################################ # Categories: # - Magic Methods - # - Abstract Cached Properties + # - Abstract Properties # - Abstract Methods - Private and Public # - Properties - Private and Public # - Cached Properties @@ -104,8 +102,13 @@ def __str__(self) -> str: return retval ################################################################################################ - # Abstract Cached Properties + # Abstract Properties ################################################################################################ + @cached_property + @abstractmethod + def device_type(self) -> str: + """Return a string representing the device type.""" + @cached_property @abstractmethod def manufacturer(self) -> str: @@ -228,11 +231,6 @@ def device_number(self) -> int: """Return the device number, if it was not created by the DeviceManager it will be -1.""" return self._device_number - @property - def device_type(self) -> str: - """Return a string representing the device type.""" - return self._DEVICE_TYPE - @property def enable_verification(self) -> bool: """Return the boolean which indicates if verification checks should happen. diff --git a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py index ad2f6682..061578a7 100644 --- a/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py +++ b/src/tm_devices/drivers/digital_multimeters/digital_multimeter.py @@ -4,16 +4,19 @@ from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 class DigitalMultimeter(Device, ABC): """Base Digital Multimeter (DMM) device driver.""" - _DEVICE_TYPE = DeviceTypes.DMM.value - ################################################################################################ # Properties ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.DMM.value ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/margin_testers/margin_tester.py b/src/tm_devices/drivers/margin_testers/margin_tester.py index a0a538f6..9cd84f6c 100644 --- a/src/tm_devices/drivers/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/margin_testers/margin_tester.py @@ -19,8 +19,6 @@ class MarginTester(Device, RESTAPIControl, ABC): """Base Margin Tester device driver.""" - _DEVICE_TYPE = DeviceTypes.MT.value - ################################################################################################ # Magic Methods ################################################################################################ @@ -83,6 +81,11 @@ def wait_till_unlocked(self, timeout: int = 30) -> None: ################################################################################################ # Properties ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.MT.value + @property def auth_token_file_path(self) -> str: """Return the path to the file containing the auth token.""" diff --git a/src/tm_devices/drivers/power_supplies/power_supply.py b/src/tm_devices/drivers/power_supplies/power_supply.py index 1e4abb95..b9d1e64d 100644 --- a/src/tm_devices/drivers/power_supplies/power_supply.py +++ b/src/tm_devices/drivers/power_supplies/power_supply.py @@ -7,12 +7,19 @@ from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 class PowerSupplyUnit(Device, ABC): """Base Power Supply Unit (PSU) device driver.""" - _DEVICE_TYPE = DeviceTypes.PSU.value + ################################################################################################ + # Properties + ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.PSU.value ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/scopes/scope.py b/src/tm_devices/drivers/scopes/scope.py index e7bbb4ba..4bbf5614 100644 --- a/src/tm_devices/drivers/scopes/scope.py +++ b/src/tm_devices/drivers/scopes/scope.py @@ -11,8 +11,6 @@ class Scope(Device, ABC): """Base Scope device driver.""" - _DEVICE_TYPE = DeviceTypes.SCOPE.value - ################################################################################################ # Abstract Properties ################################################################################################ @@ -28,6 +26,11 @@ def total_channels(self) -> int: ################################################################################################ # Properties ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.SCOPE.value + @property def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" diff --git a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py index 9e49483e..255eca3e 100644 --- a/src/tm_devices/drivers/source_measure_units/source_measure_unit.py +++ b/src/tm_devices/drivers/source_measure_units/source_measure_unit.py @@ -7,12 +7,19 @@ from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 class SourceMeasureUnit(Device, ABC): """Base Source Measure Unit (SMU) device driver.""" - _DEVICE_TYPE = DeviceTypes.SMU.value + ################################################################################################ + # Properties + ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.SMU.value ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/systems_switches/systems_switch.py b/src/tm_devices/drivers/systems_switches/systems_switch.py index dfdd1f32..f21e2a99 100644 --- a/src/tm_devices/drivers/systems_switches/systems_switch.py +++ b/src/tm_devices/drivers/systems_switches/systems_switch.py @@ -4,12 +4,19 @@ from tm_devices.drivers.device import Device from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 class SystemsSwitch(Device, ABC): """Base Systems Switch (SS) device driver.""" - _DEVICE_TYPE = DeviceTypes.SS.value + ################################################################################################ + # Properties + ################################################################################################ + @cached_property + def device_type(self) -> str: + """Return a string representing the device type.""" + return DeviceTypes.SS.value ################################################################################################ # Public Methods diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index df33285a..c609f130 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -26,8 +26,6 @@ class CustomRestApiDevice(RESTAPIControl, Device): """Custom Rest API Device class.""" - _DEVICE_TYPE = "CUSTOM" - def _check_api_connection(self) -> bool: """Define abstract method _check_api_connection.""" return self.get("/api", verbose=False, allow_errors=True)[0] @@ -46,6 +44,11 @@ def _open(self) -> bool: """Define abstract method _open.""" return True + @cached_property + def device_type(self) -> str: + """Return the device type.""" + return "CUSTOM" + @cached_property def manufacturer(self) -> str: """Return the manufacturer of the device.""" diff --git a/tests/test_unsupported_device_type.py b/tests/test_unsupported_device_type.py index 1938e563..7c70a7b7 100644 --- a/tests/test_unsupported_device_type.py +++ b/tests/test_unsupported_device_type.py @@ -15,7 +15,9 @@ class CustomUnsupportedDeviceUnitTestOnly(PIControl, Device): """A custom device that is not one of the officially supported devices for unit tests.""" - _DEVICE_TYPE = "CustomDeviceType" + @cached_property + def device_type(self) -> str: # noqa: D102 + return "CustomDeviceType" def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: return 0, () From 5d2d667ef92c12263b3395f00e025a005d29f6e4 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 18 Oct 2024 11:18:18 -0700 Subject: [PATCH 30/52] refactor: checkpoint commit in the process of removing the unneeded init functions from the device driver classes --- mkdocs.yml | 4 ++++ src/tm_devices/commands/smu2602b_commands.py | 20 +++++++---------- .../drivers/digital_multimeters/dmm6500.py | 20 ----------------- .../digital_multimeters/dmm75xx/dmm7510.py | 20 ----------------- .../drivers/scopes/tekscope/lpd6.py | 20 ----------------- .../drivers/scopes/tekscope/mso4.py | 20 ----------------- .../drivers/scopes/tekscope/mso4b.py | 20 ----------------- .../drivers/scopes/tekscope/mso5.py | 20 ----------------- .../drivers/scopes/tekscope/mso5b.py | 20 ----------------- .../drivers/scopes/tekscope/mso5lp.py | 20 ----------------- .../drivers/scopes/tekscope/mso6.py | 20 ----------------- .../drivers/scopes/tekscope/mso6b.py | 20 ----------------- .../drivers/scopes/tekscope_2k/dpo2k.py | 20 ----------------- .../drivers/scopes/tekscope_2k/dpo2kb.py | 20 ----------------- .../drivers/scopes/tekscope_2k/mso2k.py | 20 ----------------- .../drivers/scopes/tekscope_2k/mso2kb.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/dpo4k.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/dpo4kb.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mdo3.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mdo3k.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mdo4k.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mdo4kb.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mdo4kc.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mso4k.py | 20 ----------------- .../drivers/scopes/tekscope_3k_4k/mso4kb.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo5k.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo5kb.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo70kc.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo70kd.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo70kdx.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo70ksx.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo7k.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dpo7kc.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dsa70kc.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/dsa70kd.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/mso5k.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/mso5kb.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/mso70kc.py | 20 ----------------- .../scopes/tekscope_5k_7k_70k/mso70kdx.py | 20 ----------------- .../source_measure_units/smu24xx/smu2450.py | 20 ----------------- .../source_measure_units/smu24xx/smu2460.py | 20 ----------------- .../source_measure_units/smu24xx/smu2461.py | 20 ----------------- .../source_measure_units/smu24xx/smu2470.py | 20 ----------------- .../source_measure_units/smu26xx/smu2601b.py | 20 ----------------- .../smu26xx/smu2601b_pulse.py | 20 ----------------- .../source_measure_units/smu26xx/smu2602b.py | 22 +------------------ .../source_measure_units/smu26xx/smu2604b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2606b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2611b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2612b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2614b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2634b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2635b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2636b.py | 20 ----------------- .../source_measure_units/smu26xx/smu2651a.py | 20 ----------------- .../source_measure_units/smu26xx/smu2657a.py | 20 ----------------- .../drivers/systems_switches/ss3706a.py | 20 ----------------- 57 files changed, 13 insertions(+), 1113 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index ad85e3e1..571107ad 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -105,6 +105,10 @@ plugins: extensions: [docs/griffe_custom_decorator_labels.py] show_inheritance_diagram: true show_source: false # a link is included at the top of each page +# TODO: nfelt14: Figure out if we need to preload modules +# preload_modules: +# - tm_devices.commands +# - tm_devices.drivers # Headings options heading_level: 1 show_root_heading: true diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index 0b5f9cdc..7cf8cdd4 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s43m8_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -2982,22 +2983,16 @@ class SMU2602BMixin: - ``.commands``: The SMU2602B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2602BCommandConstants() - self._commands = SMU2602BCommands(device) - - @property - def command_argument_constants(self) -> SMU2602BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2602BCommandConstants: # pylint: disable=no-self-use """Return the SMU2602B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2602B commands. """ - return self._command_argument_constants + return SMU2602BCommandConstants() - @property + @cached_property def commands(self) -> SMU2602BCommands: """Return the SMU2602B commands. @@ -3073,4 +3068,5 @@ def commands(self) -> SMU2602BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2602BCommands(device) diff --git a/src/tm_devices/drivers/digital_multimeters/dmm6500.py b/src/tm_devices/drivers/digital_multimeters/dmm6500.py index df64b4d1..16f1acef 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm6500.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm6500.py @@ -2,8 +2,6 @@ from typing import Tuple -import pyvisa as visa - from tm_devices.commands import DMM6500Mixin from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( @@ -14,7 +12,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.helpers import DeviceConfigEntry @family_base_class @@ -26,23 +23,6 @@ class DMM6500(DMM6500Mixin, CommonTSPErrorCheckMixin, TSPControl, DigitalMultime ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DMM6500 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py index d3a76f81..9aef44db 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7510.py @@ -1,10 +1,7 @@ """DMM7510 device driver module.""" -import pyvisa as visa - from tm_devices.commands import DMM7510Mixin from tm_devices.drivers.digital_multimeters.dmm75xx.dmm75xx import DMM75xx -from tm_devices.helpers import DeviceConfigEntry class DMM7510(DMM7510Mixin, DMM75xx): @@ -13,23 +10,6 @@ class DMM7510(DMM7510Mixin, DMM75xx): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DMM7510 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope/lpd6.py b/src/tm_devices/drivers/scopes/tekscope/lpd6.py index 6530cd6a..9bf2c0f7 100644 --- a/src/tm_devices/drivers/scopes/tekscope/lpd6.py +++ b/src/tm_devices/drivers/scopes/tekscope/lpd6.py @@ -1,10 +1,7 @@ """LPD6 device driver module.""" -import pyvisa as visa - from tm_devices.commands import LPD6Mixin from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 -from tm_devices.helpers import DeviceConfigEntry class LPD6(LPD6Mixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class LPD6(LPD6Mixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverride ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO6 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso4.py b/src/tm_devices/drivers/scopes/tekscope/mso4.py index 7a5a2ee8..ee0d9385 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso4.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4.py @@ -1,10 +1,7 @@ """MSO4 device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO4Mixin from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -from tm_devices.helpers import DeviceConfigEntry class MSO4(MSO4Mixin, TekScope): @@ -13,20 +10,3 @@ class MSO4(MSO4Mixin, TekScope): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO4 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso4b.py b/src/tm_devices/drivers/scopes/tekscope/mso4b.py index 27faeb62..f22f2b94 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso4b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4b.py @@ -1,10 +1,7 @@ """MSO4B device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO4BMixin from tm_devices.drivers.scopes.tekscope.mso4 import MSO4 -from tm_devices.helpers import DeviceConfigEntry class MSO4B(MSO4BMixin, MSO4): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class MSO4B(MSO4BMixin, MSO4): # pyright: ignore[reportIncompatibleMethodOverri ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO4B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5.py b/src/tm_devices/drivers/scopes/tekscope/mso5.py index f8940af1..fec452bf 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5.py @@ -1,10 +1,7 @@ """MSO5 device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO5Mixin from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -from tm_devices.helpers import DeviceConfigEntry class MSO5(MSO5Mixin, TekScope): @@ -13,20 +10,3 @@ class MSO5(MSO5Mixin, TekScope): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO5 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5b.py b/src/tm_devices/drivers/scopes/tekscope/mso5b.py index f730d0b6..061e658b 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5b.py @@ -1,10 +1,7 @@ """MSO5B device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO5BMixin from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 -from tm_devices.helpers import DeviceConfigEntry class MSO5B(MSO5BMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class MSO5B(MSO5BMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOverri ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO5B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5lp.py b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py index 4ec0a9b8..f218cdf3 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5lp.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py @@ -1,10 +1,7 @@ """MSO5LP device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO5LPMixin from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 -from tm_devices.helpers import DeviceConfigEntry class MSO5LP(MSO5LPMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class MSO5LP(MSO5LPMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOver ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO5LP device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso6.py b/src/tm_devices/drivers/scopes/tekscope/mso6.py index a75502a6..55969bc6 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso6.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6.py @@ -1,10 +1,7 @@ """MSO6 device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO6Mixin from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -from tm_devices.helpers import DeviceConfigEntry class MSO6(MSO6Mixin, TekScope): @@ -13,20 +10,3 @@ class MSO6(MSO6Mixin, TekScope): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO6 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/mso6b.py b/src/tm_devices/drivers/scopes/tekscope/mso6b.py index 08f9c507..2dd0ae9a 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso6b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6b.py @@ -1,10 +1,7 @@ """MSO6B device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO6BMixin from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 -from tm_devices.helpers import DeviceConfigEntry class MSO6B(MSO6BMixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class MSO6B(MSO6BMixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverri ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO6B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py index ad2d6b4f..424638fd 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2k.py @@ -1,10 +1,7 @@ """DPO2K device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO2KMixin from tm_devices.drivers.scopes.tekscope_2k.tekscope_2k import TekScope2k -from tm_devices.helpers import DeviceConfigEntry class DPO2K(DPO2KMixin, TekScope2k): @@ -13,23 +10,6 @@ class DPO2K(DPO2KMixin, TekScope2k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO2K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py index 1162f618..54a45bc0 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py @@ -1,10 +1,7 @@ """DPO2KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO2KBMixin from tm_devices.drivers.scopes.tekscope_2k.dpo2k import DPO2K -from tm_devices.helpers import DeviceConfigEntry class DPO2KB(DPO2KBMixin, DPO2K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class DPO2KB(DPO2KBMixin, DPO2K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO2KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py b/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py index 9eb87334..49701ff6 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/mso2k.py @@ -1,10 +1,7 @@ """MSO2K device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO2KMixin from tm_devices.drivers.scopes.tekscope_2k.tekscope_2k import TekScope2k -from tm_devices.helpers import DeviceConfigEntry class MSO2K(MSO2KMixin, TekScope2k): @@ -13,23 +10,6 @@ class MSO2K(MSO2KMixin, TekScope2k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO2K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py index 9fe07b48..8396bf43 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py @@ -1,10 +1,7 @@ """MSO2KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO2KBMixin from tm_devices.drivers.scopes.tekscope_2k.mso2k import MSO2K -from tm_devices.helpers import DeviceConfigEntry class MSO2KB(MSO2KBMixin, MSO2K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class MSO2KB(MSO2KBMixin, MSO2K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO2KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py index c1dd7d28..2d6fc03a 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4k.py @@ -1,10 +1,7 @@ """DPO4K device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO4KMixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry class DPO4K(DPO4KMixin, TekScope3k4k): @@ -13,23 +10,6 @@ class DPO4K(DPO4KMixin, TekScope3k4k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO4K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py index 3958a56f..f62fceaf 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py @@ -1,10 +1,7 @@ """DPO4KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO4KBMixin from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4k import DPO4K -from tm_devices.helpers import DeviceConfigEntry class DPO4KB(DPO4KBMixin, DPO4K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class DPO4KB(DPO4KBMixin, DPO4K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO2KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py index f635c4f3..f07d4796 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3.py @@ -1,10 +1,7 @@ """MDO3 device driver module.""" -import pyvisa as visa - from tm_devices.commands import MDO3Mixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -14,23 +11,6 @@ class MDO3(MDO3Mixin, TekScope3k4k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MDO3 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py index e7873d3f..2381f0fe 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo3k.py @@ -1,10 +1,7 @@ """MDO3K device driver module.""" -import pyvisa as visa - from tm_devices.commands import MDO3KMixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry class MDO3K(MDO3KMixin, TekScope3k4k): @@ -13,23 +10,6 @@ class MDO3K(MDO3KMixin, TekScope3k4k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MDO3K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py index 09c1c174..6e9b1bb6 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4k.py @@ -1,10 +1,7 @@ """MDO4K device driver module.""" -import pyvisa as visa - from tm_devices.commands import MDO4KMixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry class MDO4K(MDO4KMixin, TekScope3k4k): @@ -13,23 +10,6 @@ class MDO4K(MDO4KMixin, TekScope3k4k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MDO4K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py index 0d1532ce..4e5822a9 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py @@ -1,10 +1,7 @@ """MDO4KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import MDO4KBMixin from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4k import MDO4K -from tm_devices.helpers import DeviceConfigEntry class MDO4KB(MDO4KBMixin, MDO4K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class MDO4KB(MDO4KBMixin, MDO4K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MDO4KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py index 9b7252af..2950eea9 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py @@ -1,10 +1,7 @@ """MDO4KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import MDO4KCMixin from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kb import MDO4KB -from tm_devices.helpers import DeviceConfigEntry class MDO4KC(MDO4KCMixin, MDO4KB): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class MDO4KC(MDO4KCMixin, MDO4KB): # pyright: ignore[reportIncompatibleMethodOv ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MDO4KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py index 9b835a59..eb75d4fc 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4k.py @@ -1,10 +1,7 @@ """MSO4K device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO4KMixin from tm_devices.drivers.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry class MSO4K(MSO4KMixin, TekScope3k4k): @@ -13,23 +10,6 @@ class MSO4K(MSO4KMixin, TekScope3k4k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO4K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py index 1d11de72..dd7dc1cd 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py @@ -1,10 +1,7 @@ """MSO4KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO4KBMixin from tm_devices.drivers.scopes.tekscope_3k_4k.mso4k import MSO4K -from tm_devices.helpers import DeviceConfigEntry class MSO4KB(MSO4KBMixin, MSO4K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,23 +10,6 @@ class MSO4KB(MSO4KBMixin, MSO4K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO4KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py index a269fbb5..f1743c3d 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5k.py @@ -1,10 +1,7 @@ """DPO5K device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO5KMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class DPO5K(DPO5KMixin, TekScope5k7k70k): @@ -13,23 +10,6 @@ class DPO5K(DPO5KMixin, TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO5K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py index 8d76b969..7c1e2405 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py @@ -1,10 +1,7 @@ """DPO5KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO5KBMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K -from tm_devices.helpers import DeviceConfigEntry class DPO5KB(DPO5KBMixin, DPO5K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class DPO5KB(DPO5KBMixin, DPO5K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO5KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py index 5ba4813c..3953c0be 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kc.py @@ -1,10 +1,7 @@ """DPO70KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO70KCMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K -from tm_devices.helpers import DeviceConfigEntry class DPO70KC(DPO70KCMixin, DPO70K): @@ -13,20 +10,3 @@ class DPO70KC(DPO70KCMixin, DPO70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO70KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py index 2f7af7d4..9589feaf 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py @@ -1,10 +1,7 @@ """DPO70KD device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO70KDMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC -from tm_devices.helpers import DeviceConfigEntry class DPO70KD(DPO70KDMixin, DPO70KC): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class DPO70KD(DPO70KDMixin, DPO70KC): # pyright: ignore[reportIncompatibleMetho ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO70KD device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py index 2b0ce938..fd16c351 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kdx.py @@ -1,10 +1,7 @@ """DPO70KDX device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO70KDXMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K -from tm_devices.helpers import DeviceConfigEntry class DPO70KDX(DPO70KDXMixin, DPO70K): @@ -13,20 +10,3 @@ class DPO70KDX(DPO70KDXMixin, DPO70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO70KDX device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py index 8f170799..6a3a0503 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70ksx.py @@ -1,10 +1,7 @@ """DPO70KSX device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO70KSXMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70k import DPO70K -from tm_devices.helpers import DeviceConfigEntry class DPO70KSX(DPO70KSXMixin, DPO70K): @@ -13,20 +10,3 @@ class DPO70KSX(DPO70KSXMixin, DPO70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO70KSX device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py index eefcbc6d..74430749 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7k.py @@ -1,10 +1,7 @@ """DPO7K device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO7KMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class DPO7K(DPO7KMixin, TekScope5k7k70k): @@ -13,23 +10,6 @@ class DPO7K(DPO7KMixin, TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO7K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py index f27b2993..ba32ea8d 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py @@ -1,10 +1,7 @@ """DPO7KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import DPO7KCMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K -from tm_devices.helpers import DeviceConfigEntry class DPO7KC(DPO7KCMixin, DPO7K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class DPO7KC(DPO7KCMixin, DPO7K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO7KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py index 26ba04d1..f3955db2 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kc.py @@ -1,10 +1,7 @@ """DSA70KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import DSA70KCMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K -from tm_devices.helpers import DeviceConfigEntry class DSA70KC(DSA70KCMixin, DSA70K): @@ -13,20 +10,3 @@ class DSA70KC(DSA70KCMixin, DSA70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DSA70KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py index e7e9b256..6df6c80b 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70kd.py @@ -1,10 +1,7 @@ """DSA70KD device driver module.""" -import pyvisa as visa - from tm_devices.commands import DSA70KDMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dsa70k import DSA70K -from tm_devices.helpers import DeviceConfigEntry class DSA70KD(DSA70KDMixin, DSA70K): @@ -13,20 +10,3 @@ class DSA70KD(DSA70KDMixin, DSA70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DSA70KD device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py index 94ec108f..deeb4396 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5k.py @@ -1,10 +1,7 @@ """MSO5K device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO5KMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class MSO5K(MSO5KMixin, TekScope5k7k70k): @@ -13,23 +10,6 @@ class MSO5K(MSO5KMixin, TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO5K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py index 9dcf6368..697e9dd4 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py @@ -1,10 +1,7 @@ """MSO5KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO5KBMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5k import MSO5K -from tm_devices.helpers import DeviceConfigEntry class MSO5KB(MSO5KBMixin, MSO5K): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class MSO5KB(MSO5KBMixin, MSO5K): # pyright: ignore[reportIncompatibleMethodOve ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO5KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py index a95344b9..55a9c2c3 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kc.py @@ -1,10 +1,7 @@ """MSO70KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO70KCMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K -from tm_devices.helpers import DeviceConfigEntry class MSO70KC(MSO70KCMixin, MSO70K): @@ -13,20 +10,3 @@ class MSO70KC(MSO70KCMixin, MSO70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO70KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py index bf2d2262..1e98fb81 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70kdx.py @@ -1,10 +1,7 @@ """MSO70KDX device driver module.""" -import pyvisa as visa - from tm_devices.commands import MSO70KDXMixin from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso70k import MSO70K -from tm_devices.helpers import DeviceConfigEntry class MSO70KDX(MSO70KDXMixin, MSO70K): @@ -13,20 +10,3 @@ class MSO70KDX(MSO70KDXMixin, MSO70K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO70KDX device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py index 6eb93c82..3085a324 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2450.py @@ -1,12 +1,9 @@ """SMU Model 2450 device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2450Mixin from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) -from tm_devices.helpers import DeviceConfigEntry class SMU2450(SMU2450Mixin, SMU24xxInteractive): @@ -15,20 +12,3 @@ class SMU2450(SMU2450Mixin, SMU24xxInteractive): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2450 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py index dea6d9f1..92652fa9 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2460.py @@ -1,12 +1,9 @@ """SMU Model 2460 device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2460Mixin from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) -from tm_devices.helpers import DeviceConfigEntry class SMU2460(SMU2460Mixin, SMU24xxInteractive): @@ -15,20 +12,3 @@ class SMU2460(SMU2460Mixin, SMU24xxInteractive): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2460 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py index 61e47f5c..784afbab 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2461.py @@ -1,12 +1,9 @@ """SMU Model 2461 device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2461Mixin from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) -from tm_devices.helpers import DeviceConfigEntry class SMU2461(SMU2461Mixin, SMU24xxInteractive): @@ -15,20 +12,3 @@ class SMU2461(SMU2461Mixin, SMU24xxInteractive): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2461 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py index 2d450780..e3330eab 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2470.py @@ -1,12 +1,9 @@ """SMU Model 2470 device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2470Mixin from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_interactive import ( SMU24xxInteractive, ) -from tm_devices.helpers import DeviceConfigEntry class SMU2470(SMU2470Mixin, SMU24xxInteractive): @@ -15,20 +12,3 @@ class SMU2470(SMU2470Mixin, SMU24xxInteractive): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2470 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py index acd89840..98562e16 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py @@ -1,10 +1,7 @@ """SMU Model 2601B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2601BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2601B(SMU2601BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2601B(SMU2601BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2601B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py index 6b128efe..c7e2f473 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py @@ -1,10 +1,7 @@ """SMU Model 2601B-PULSE device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2601BPulseMixin from tm_devices.drivers.source_measure_units.smu26xx.smu2601b import SMU2601B -from tm_devices.helpers import DeviceConfigEntry class SMU2601BPulse(SMU2601BPulseMixin, SMU2601B): # pyright: ignore[reportIncompatibleMethodOverride] @@ -13,20 +10,3 @@ class SMU2601BPulse(SMU2601BPulseMixin, SMU2601B): # pyright: ignore[reportInco ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2601B-PULSE device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py index 282b2a6e..59e554f6 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602b.py @@ -1,32 +1,12 @@ """SMU Model 2602B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2602BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry -class SMU2602B(SMU2602BMixin, SMU26xxB): +class SMU2602B(SMU2602BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2602B device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2602B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py index 82b0f29a..f32b96c5 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py @@ -1,10 +1,7 @@ """SMU Model 2604B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2604BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2604B(SMU2604BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2604B(SMU2604BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2604B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py index 1073e3bb..0cf95366 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py @@ -1,10 +1,7 @@ """SMU Model 2606B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2606BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2606B(SMU2606BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2606B(SMU2606BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2606B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py index 445e0ab8..17ab7af7 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py @@ -1,10 +1,7 @@ """SMU Model 2611B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2611BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2611B(SMU2611BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2611B(SMU2611BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2611B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py index 882e8e8a..8f5ad76e 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py @@ -1,10 +1,7 @@ """SMU Model 2612B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2612BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2612B(SMU2612BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2612B(SMU2612BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2612B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py index 9a5b45e7..88a2c4bd 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py @@ -1,10 +1,7 @@ """SMU Model 2614B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2614BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2614B(SMU2614BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2614B(SMU2614BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2614B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py index c8ecaff4..5b2710b8 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py @@ -1,10 +1,7 @@ """SMU Model 2634B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2634BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2634B(SMU2634BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2634B(SMU2634BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2634B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py index f65e777d..19f084f2 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py @@ -1,10 +1,7 @@ """SMU Model 2635B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2635BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2635B(SMU2635BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2635B(SMU2635BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2635B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py index 3c106170..87f7021b 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py @@ -1,10 +1,7 @@ """SMU Model 2636B device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2636BMixin from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -from tm_devices.helpers import DeviceConfigEntry class SMU2636B(SMU2636BMixin, SMU26xxB): @@ -13,20 +10,3 @@ class SMU2636B(SMU2636BMixin, SMU26xxB): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2636B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py index 26ae4818..81b6d43a 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py @@ -1,10 +1,7 @@ """SMU Model 2651A device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2651AMixin from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA -from tm_devices.helpers import DeviceConfigEntry class SMU2651A(SMU2651AMixin, SMU265xA): @@ -13,20 +10,3 @@ class SMU2651A(SMU2651AMixin, SMU265xA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2651A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py index 0ba112e3..91440799 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py @@ -1,10 +1,7 @@ """SMU Model 2657A device driver module.""" -import pyvisa as visa - from tm_devices.commands import SMU2657AMixin from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA -from tm_devices.helpers import DeviceConfigEntry class SMU2657A(SMU2657AMixin, SMU265xA): @@ -13,20 +10,3 @@ class SMU2657A(SMU2657AMixin, SMU265xA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2657A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/systems_switches/ss3706a.py b/src/tm_devices/drivers/systems_switches/ss3706a.py index b0d1cc30..5aad8fdb 100644 --- a/src/tm_devices/drivers/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/systems_switches/ss3706a.py @@ -1,7 +1,5 @@ """SS3706A device driver module.""" -import pyvisa as visa - from tm_devices.commands import SS3706AMixin from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( @@ -9,7 +7,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.systems_switches.systems_switch import SystemsSwitch -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -20,23 +17,6 @@ class SS3706A(SS3706AMixin, CommonTSPErrorCheckMixin, TSPControl, SystemsSwitch) ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SS3706A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties From 3a87809e332af2019990a7db2143ec8d736e38d8 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Fri, 18 Oct 2024 16:13:39 -0700 Subject: [PATCH 31/52] docs: Update the two contributing guides based on the new folder structure --- docs/contributing/add_new_device_type.md | 2 +- docs/contributing/add_new_driver.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/contributing/add_new_device_type.md b/docs/contributing/add_new_device_type.md index 71ae4faa..4770c62a 100644 --- a/docs/contributing/add_new_device_type.md +++ b/docs/contributing/add_new_device_type.md @@ -2,7 +2,7 @@ This guide will walk through the steps needed to add a new device type. -`drivers\\[\]\.py` +`drivers\[\]\.py` ## Steps to follow diff --git a/docs/contributing/add_new_driver.md b/docs/contributing/add_new_driver.md index 6a36232d..55c11993 100644 --- a/docs/contributing/add_new_driver.md +++ b/docs/contributing/add_new_driver.md @@ -2,7 +2,7 @@ This guide will walk through the steps needed to add a new device driver. -`drivers\\[\]\.py` +`drivers\[\]\.py` ## Steps to follow @@ -12,7 +12,7 @@ This guide will walk through the steps needed to add a new device driver. 2. Create the new device driver python file and class that inherits the appropriate device type/series base class - 1. If the new device(s) are part of a series (also referred to as a family), + 1. If the new device is part of a series (also referred to as a family), add a new series subpackage for them (e.g. `power_supplies/psu2200/`) 2. Create the device driver python file, create a class that inherits from @@ -64,10 +64,10 @@ defines abstract functions that all device drivers must implement. !!! note The filename should be a snake-case version of the new class name. In this example - the filepath would be `tm_devices/drivers/pi/power_supplies/psu2200/new_psu.py` + the filepath would be `tm_devices/drivers/power_supplies/psu2200/new_psu.py` ```python -### drivers/pi/power_supplies/new_series_psu/fancy_power_supply.py +### drivers/power_supplies/new_series_psu/fancy_power_supply.py """Fancy PSU Base device driver for the new series/family of fancy power supplies.""" from abc import ABC from tm_devices.drivers.power_supplies.power_supply import PowerSupplyUnit @@ -82,7 +82,7 @@ class BaseFancyPSU(PowerSupplyUnit, ABC): ``` ```python -### drivers/pi/power_supplies/new_series_psu/fancy_psu_123.py +### drivers/ower_supplies/new_series_psu/fancy_psu_123.py """BaseFancyPSU device driver.""" from tm_devices.drivers.power_supplies.new_series_psu.fancy_power_supply import ( BaseFancyPSU, @@ -106,7 +106,7 @@ series: !!! note The filename should be a snake-case version of the new class name. In this example - the filepath would be `tm_devices/drivers/pi/power_supplies/psu2200/new_psu.py` + the filepath would be `tm_devices/drivers/power_supplies/psu2200/new_psu.py` ```python """NewPSU device driver.""" From c93ab4eceac23ff9072605e798298d046a5fdddd Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 09:45:58 -0700 Subject: [PATCH 32/52] docs: Update signal_generators.md to include links to the API documentation when necessary --- CHANGELOG.md | 2 +- docs/advanced/signal_generators.md | 80 ++++++++++++------- docs/known_words.txt | 2 + .../signal_generator_mixin.py | 2 +- src/tm_devices/drivers/afgs/afg.py | 2 +- src/tm_devices/drivers/awgs/awg.py | 2 +- .../drivers/scopes/tekscope/tekscope.py | 2 +- 7 files changed, 59 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ade188a2..eb406b52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ very minor ways. The primary impact to the drivers was simply the removal of pre deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. However, please read through all changes to be aware of what may potentially impact your code. -- BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `TekAFGAWG`. +- BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). - BREAKING CHANGE: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. diff --git a/docs/advanced/signal_generators.md b/docs/advanced/signal_generators.md index c13fc30e..2c05f9e8 100644 --- a/docs/advanced/signal_generators.md +++ b/docs/advanced/signal_generators.md @@ -78,10 +78,13 @@ Each of these source channel classes ( (or the [IAFG](default:IAFG) in the case of an oscilloscope). These source channel classes contain methods and properties that pertain to [PI](default:PI) commands, which only apply changes to one output. -For example: the `afg.source_channel["SOURCE1"].set_amplitude()` call will change the amplitude only for source output 1. +For example: the `afg.source_channel["SOURCE1"].set_amplitude()` call, +(see [`AFGSourceChannel.set_amplitude()`][tm_devices.drivers.afgs.afg.AFGSourceChannel.set_amplitude]), +will change the amplitude only for source output 1. !!! tip - The source channel classes not only provide easy access to basic [SCPI](default:SCPI) commands but also helper functions, like `set_function_properties()` + The source channel classes not only provide easy access to basic [SCPI](default:SCPI) commands but also helper + functions, like [`set_function_properties()`][tm_devices.driver_mixins.abstract_device_functionality.base_afg_source_channel.BaseAFGSourceChannel.set_function_properties] --- @@ -96,13 +99,14 @@ For example: the `afg.source_channel["SOURCE1"].set_amplitude()` call will chang Each class has children which inherit the base abstracted methods. These methods are tailored to each signal generator, so the methods handle similarly, regardless of the different [PI](default:PI) commands required. -`source_device_constants` is a property that holds information about what functions -and memory sizes are allowed. +[`source_device_constants`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.source_device_constants] +is a property that holds information about what functions and memory sizes are allowed. !!! tip `source_device_constants.functions` will provide an enum of possible functions to generate on the current signal generator. -`generate_function()` is a method that allows the user to request a function from +[`generate_function()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_function] +is a method that allows the user to request a function from any source channel, provided an amplitude, frequency, and offset are supplied. Other key features include the ability to manipulate specific aspects of certain functions. Ramp waveforms can have their symmetry changed and duty cycle can be altered for pulse functions. The termination of the [IAFG](default:IAFG) and any [AFG](default:AFG) can be @@ -110,21 +114,29 @@ specified using `HIGHZ` or `FIFTY` string literals. If the output needs to be in the polarity can be changed on [AFGs](default:AFG). !!! warning - `generate_function()` allows function parameters that can exceed actual generation bounds. - `get_waveform_constraints()` should be used in tandem with `generate_function()`, or utilizing the constraints provided in - [Signal Generators](#signal-generators). - -The `setup_burst()` method places the signal generator in a state for waveforms to be generated a set number -of times. All parameters passed into the method are functionally identical to `generate_function()`, besides `burst_count`. -`burst_count` specifies how many cycles of the waveform are to be generated. + [`generate_function()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_function] + allows function parameters that can exceed actual generation bounds. + [`get_waveform_constraints()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.get_waveform_constraints] + should be used in tandem with + [`generate_function()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_function] + to help enforce the constraints provided in [Signal Generators](#signal-generators). + +The [`setup_burst()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.setup_burst] +method places the signal generator in a state for waveforms to be generated a set number +of times. All parameters passed into the method are functionally identical to +[`generate_function()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_function], +besides `burst_count`. `burst_count` specifies how many cycles of the waveform are to be generated. !!! warning - `setup_burst()` will set parameters that can affect the signal generator's behavior. Changing these parameters + [`setup_burst()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.setup_burst] + will set parameters that can affect the signal generator's behavior. Changing these parameters manually will likely cause burst to stop functioning. -`generate_burst()` writes a trigger to the signal generator, initiating the generation of a burst of waveforms. +[`generate_burst()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_burst] +writes a trigger to the signal generator, initiating the generation of a burst of waveforms. -`get_waveform_constraints()` will return a series of ranges that a waveform's parameters must +[`get_waveform_constraints()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.get_waveform_constraints] +will return a series of ranges that a waveform's parameters must be within to be generated. These constraints can be used before generating a function to make sure that the parameters you will be supplying are not outside the bounds. The method only requires the desired waveform function (except on [AWGs](default:AWG)) to be provided. @@ -134,8 +146,10 @@ For an [AWG](default:AWG), the signal path affects the range of the offset and a Higher frequencies on [AFGs](default:AFG) will lower the upper bound of the amplitude, alongside which impedance is set. -`set_waveform_properties()` is functionally identical to `generate_function()`, but does not turn the -source channel off or on, nor will it stop or start an [AWG](default:AWG). +[`set_waveform_properties()`][tm_devices.drivers.awgs.awg.AWGSourceChannel.set_waveform_properties] for [AWGs](default:AWG) +is functionally identical to +[`generate_function()`][tm_devices.driver_mixins.abstract_device_functionality.signal_generator_mixin.SignalGeneratorMixin.generate_function], +but does not turn the source channel off or on, nor will it stop or start an [AWG](default:AWG). --- @@ -182,7 +196,8 @@ Setting up bursts of an [IAFG](default:IAFG) involves setting it to burst mode a If the output termination matching is set to FIFTY instead of HIGHZ, then the offset and amplitude bounds will be halved. !!! caution - Although `ARBITRARY` is a valid function, it will not generate properly when using `generate_function()`. + Although `ARBITRARY` is a valid function, it will not generate properly when using + [`generate_function()`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope.generate_function]. #### MSO2, MSO4, MSO4B, MSO5, MSO5LP, MSO6, MSO6B, LPD6 @@ -243,7 +258,8 @@ on the internal trigger. Following this, the burst state is set to `ON` and mode If the output termination matching is set to 50.0Ω instead of INFINITY, then the offset and amplitude bounds will be halved. !!! caution - Although `Arbitrary` is a valid function, it will not generate properly when using `generate_function`. + Although `ARBITRARY` is a valid function, it will not generate properly when using + [`generate_function()`][tm_devices.drivers.scopes.tekscope.tekscope.TekScope.generate_function]. #### AFG3K, AFG3KB, AFG3KC @@ -347,7 +363,7 @@ All functions that are shared by each [AWG](default:AWG) exist within the Function generation on [AWGs](default:AWG) is fundamentally different from [AFGs](default:AFG). The [AWG](default:AWG) is stopped and the source channel being used is turned off. Predefined waveforms provided with the [AWG](default:AWG) are then loaded from the hard drive into the waveform list for the AWG5200 and AWG70K. The sample rate is not source dependent, -instead, it is set through the `SignalGenerator` class. The source channel provided has its waveform, offset, amplitude, and signal path set. +instead, it is set through the parent class. The source channel provided has its waveform, offset, amplitude, and signal path set. These attributes can take a while to be set, though once complete, the source channels are turned back on and `AWGCONTROL:RUN` is sent to begin the transmission of the waveform. @@ -355,7 +371,7 @@ is sent to begin the transmission of the waveform. If the waveform is `RAMP`, a symmetry of 50 will set the waveform to a `TRIANGLE`. The [`AWG`][tm_devices.drivers.awgs.awg.AWG] class has some unique methods. -`generate_waveform()` allows for a waveform name from the waveform list +[`generate_waveform()`][tm_devices.drivers.awgs.awg.AWG.generate_waveform] allows for a waveform name from the waveform list to be provided, instead of a function. The method is also distinctly different from the generate function as it relies on a sample rate being provided to generate the waveform. All functions that are generic to the [AWG](default:AWG) exist within the [`AWG`][tm_devices.drivers.awgs.awg.AWG] class. @@ -369,10 +385,12 @@ exist within the [`AWG`][tm_devices.drivers.awgs.awg.AWG] class. The AWG5K/7K series instruments are signal generators focused on waveform generation and operate on the Windows operating system. They accept communication through [TCPIP](default:TCPIP) and [GPIB](default:GPIB) interfaces. -`set_output_signal_path()` is uniquely defined within the AWG5K and AWG7K classes, as it will set the value for +[`set_output_signal_path()`][tm_devices.drivers.awgs.awg5k.AWG5KSourceChannel.set_output_signal_path] +is uniquely defined within the AWG5K and AWG7K classes, as it will set the value for `AWGCONTROL:DOUTPUTx:STATE`, which is a unique option not seen in the other [AWGs](default:AWG). -`set_offset()` is conditioned to make sure that the [AWG](default:AWG) output signal path is not DIR, as the [VISA](default:VISA) query will time +[`set_offset()`][tm_devices.drivers.awgs.awg5k.AWG5KSourceChannel.set_offset] is conditioned to make sure +that the [AWG](default:AWG) output signal path is not DIR, as the [VISA](default:VISA) query will time out otherwise. !!! note @@ -392,7 +410,9 @@ own class representations, corresponding to the ###### Constraints The AWG5K series offers an upper sample rate range from 600.0MS/s to 1.2GS/s depending on the model number. -Sending `AWGControl:DOUTput[n] 1` or using `DIR` in `set_output_signal_path()` will reduce the maximum amplitude +Sending `AWGControl:DOUTput[n] 1` or using `DIR` in +[`set_output_signal_path()`][tm_devices.drivers.awgs.awg5k.AWG5KSourceChannel.set_output_signal_path] +will reduce the maximum amplitude to 0.6V. This occurs by bypassing the internal amplifier, which reroutes the [DAC](default:DAC) directly to the differential output. @@ -461,9 +481,11 @@ The AWG52000 has its own class representation, corresponding to [`AWG5200`][tm_devices.drivers.awgs.awg5200.AWG5200]. -`set_output_signal_path()` is uniquely defined within the AWG5200 as it has special output signal paths. +[`set_output_signal_path()`][tm_devices.drivers.awgs.awg5200.AWG5200SourceChannel.set_output_signal_path] +is uniquely defined within the AWG5200 as it has special output signal paths. -`load_waveform()` inherently has an operation complete check, as attempting to run overlapping commands while loading a waveform can lead to +[`load_waveform()`][tm_devices.drivers.awgs.awg5200.AWG5200SourceChannel.load_waveform] inherently +has an operation complete check, as attempting to run overlapping commands while loading a waveform can lead to unintended behavior. ##### Constraints @@ -526,13 +548,15 @@ The AWG70K series instruments are signal generators focused on waveform generati These instruments operate on the Windows operating system, and they accept communication through [USB](default:USB), [TCPIP](default:TCPIP), and [GPIB](default:GPIB) interfaces. -`set_output_signal_path()` is uniquely defined within the +[`set_output_signal_path()`][tm_devices.drivers.awgs.awg70ka.AWG70KASourceChannel.set_output_signal_path] +is uniquely defined within the [`AWG70KA`][tm_devices.drivers.awgs.awg70ka.AWG70KA] and [`AWG70KB`][tm_devices.drivers.awgs.awg70kb.AWG70KB] classes. By default, it will first attempt to set the output signal path to [DCA](default:DCA). If this fails (implying an MDC4500-4B is not connected), then a direct signal path will be set. -`set_offset()` is conditioned to make sure that the [AWG](default:AWG) output signal path has a [DCA](default:DCA), as the [VISA](default:VISA) query will time +[`set_offset()`][tm_devices.drivers.awgs.awg.AWGSourceChannel.set_offset] is conditioned to make +sure that the [AWG](default:AWG) output signal path has a [DCA](default:DCA), as the [VISA](default:VISA) query will time out otherwise. ##### Constraints diff --git a/docs/known_words.txt b/docs/known_words.txt index 3d7b3889..36a2c365 100644 --- a/docs/known_words.txt +++ b/docs/known_words.txt @@ -1,6 +1,8 @@ __none__ add_new adding_devices +afg +afgs alias_usage analyze api diff --git a/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py index f79ef6be..25ab026d 100644 --- a/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py +++ b/src/tm_devices/driver_mixins/abstract_device_functionality/signal_generator_mixin.py @@ -73,7 +73,7 @@ def _validate_generated_function(function: _SignalSourceTypeVar) -> _SignalSourc def source_device_constants( self, ) -> _SourceDeviceTypeVar: # pyright: ignore[reportInvalidTypeVarUse] - """Return the device constants.""" + """The constants defining what functions and memory sizes are allowed for the device.""" @abstractmethod def generate_function( # noqa: PLR0913 diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 20cdc2dd..18305fd6 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -57,7 +57,7 @@ def source_channel(self) -> "MappingProxyType[str, AFGSourceChannel]": @property def source_device_constants(self) -> AFGSourceDeviceConstants: - """Return the device constants.""" + """The constants defining what functions and memory sizes are allowed for the device.""" return self._DEVICE_CONSTANTS # type: ignore[attr-defined] @cached_property diff --git a/src/tm_devices/drivers/awgs/awg.py b/src/tm_devices/drivers/awgs/awg.py index f090bbad..a1889322 100644 --- a/src/tm_devices/drivers/awgs/awg.py +++ b/src/tm_devices/drivers/awgs/awg.py @@ -77,7 +77,7 @@ def source_channel(self) -> "MappingProxyType[str, AWGSourceChannel]": # pragma @property def source_device_constants(self) -> AWGSourceDeviceConstants: - """Return the device constants.""" + """The constants defining what functions and memory sizes are allowed for the device.""" return self._DEVICE_CONSTANTS # type: ignore[attr-defined] @cached_property diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 607d04ed..0859009d 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -698,7 +698,7 @@ class TekScope(SignalGeneratorMixin, AbstractTekScope, ABC): ################################################################################################ @property def source_device_constants(self) -> TekScopeSourceDeviceConstants: - """Return the device constants.""" + """The constants defining what functions and memory sizes are allowed for the device.""" return self._DEVICE_CONSTANTS @cached_property From c3f17ab89371563d4b62774b896384144af4cb4d Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 10:18:01 -0700 Subject: [PATCH 33/52] docs: Update custom template with newer code to enable rendering classes that make use of multiple inheritance more accurately --- .../python/readthedocs/children.html.jinja | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja b/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja index cceed38a..324e1819 100644 --- a/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja +++ b/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja @@ -5,7 +5,7 @@ This template iterates on members of a given object and renders them. It can group members by category (attributes, classes, functions, modules) or render them in a flat list. Context: - obj (griffe.dataclasses.Object): The object to render. + obj (griffe.Object): The object to render. config (dict): The configuration options. root_members (bool): Whether the object is the root object. heading_level (int): The HTML heading level to use. @@ -31,7 +31,7 @@ Context: {%- endmacro -%} -{% if obj.members %} +{% if obj.all_members %} {% block logs scoped %} {#- Logging block. @@ -127,7 +127,7 @@ Context: {% endif %} {% with heading_level = heading_level + extra_level %} {% for attribute in attributes|order_members(config.members_order, members_list) %} - {% if members_list is not none or attribute.is_public %} + {% if members_list is not none or (not attribute.is_imported or attribute.is_public) %} {% include attribute|get_template with context %} {% endif %} {% endfor %} @@ -147,7 +147,7 @@ Context: {% endif %} {% with heading_level = heading_level + extra_level %} {% for class in classes|order_members(config.members_order, members_list) %} - {% if members_list is not none or class.is_public %} + {% if members_list is not none or (not class.is_imported or class.is_public) %} {% include class|get_template with context %} {% endif %} {% endfor %} @@ -168,7 +168,7 @@ Context: {% with heading_level = heading_level + extra_level %} {% for function in functions|order_members(config.members_order, members_list) %} {% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %} - {% if members_list is not none or function.is_public %} + {% if members_list is not none or (not function.is_imported or function.is_public) %} {% include function|get_template with context %} {% endif %} {% endif %} @@ -189,8 +189,8 @@ Context: {% filter heading(heading_level, id=html_id ~ "-modules") %}Modules{% endfilter %} {% endif %} {% with heading_level = heading_level + extra_level %} - {% for module in modules|order_members(config.members_order, members_list) %} - {% if members_list is not none or module.is_public %} + {% for module in modules|order_members(config.members_order.alphabetical, members_list) %} + {% if members_list is not none or (not module.is_alias or module.is_public) %} {% include module|get_template with context %} {% endif %} {% endfor %} From a318ad2cac038caea8b3bb9e9fc210bc41293b9b Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 14:23:25 -0700 Subject: [PATCH 34/52] refactor: Re-generated the commands subpackage to use the new class structure that works better with the documentation --- CHANGELOG.md | 1 + mkdocs.yml | 4 --- src/tm_devices/commands/afg3k_commands.py | 20 +++++------- src/tm_devices/commands/afg3kb_commands.py | 20 +++++------- src/tm_devices/commands/afg3kc_commands.py | 20 +++++------- src/tm_devices/commands/awg5200_commands.py | 20 +++++------- src/tm_devices/commands/awg5k_commands.py | 20 +++++------- src/tm_devices/commands/awg5kc_commands.py | 20 +++++------- src/tm_devices/commands/awg70ka_commands.py | 20 +++++------- src/tm_devices/commands/awg70kb_commands.py | 20 +++++------- src/tm_devices/commands/awg7k_commands.py | 20 +++++------- src/tm_devices/commands/awg7kc_commands.py | 20 +++++------- src/tm_devices/commands/daq6510_commands.py | 20 +++++------- src/tm_devices/commands/dmm6500_commands.py | 20 +++++------- src/tm_devices/commands/dmm7510_commands.py | 20 +++++------- src/tm_devices/commands/dpo2k_commands.py | 20 +++++------- src/tm_devices/commands/dpo2kb_commands.py | 20 +++++------- src/tm_devices/commands/dpo4k_commands.py | 20 +++++------- src/tm_devices/commands/dpo4kb_commands.py | 20 +++++------- src/tm_devices/commands/dpo5k_commands.py | 20 +++++------- src/tm_devices/commands/dpo5kb_commands.py | 20 +++++------- src/tm_devices/commands/dpo70kc_commands.py | 20 +++++------- src/tm_devices/commands/dpo70kd_commands.py | 20 +++++------- src/tm_devices/commands/dpo70kdx_commands.py | 20 +++++------- src/tm_devices/commands/dpo70ksx_commands.py | 20 +++++------- src/tm_devices/commands/dpo7k_commands.py | 20 +++++------- src/tm_devices/commands/dpo7kc_commands.py | 20 +++++------- src/tm_devices/commands/dsa70kc_commands.py | 20 +++++------- src/tm_devices/commands/dsa70kd_commands.py | 20 +++++------- .../commands/gen_c3g61_tekscopepc/search.py | 8 ++--- src/tm_devices/commands/lpd6_commands.py | 20 +++++------- src/tm_devices/commands/mdo3_commands.py | 20 +++++------- src/tm_devices/commands/mdo3k_commands.py | 20 +++++------- src/tm_devices/commands/mdo4k_commands.py | 20 +++++------- src/tm_devices/commands/mdo4kb_commands.py | 20 +++++------- src/tm_devices/commands/mdo4kc_commands.py | 20 +++++------- src/tm_devices/commands/mso2_commands.py | 20 +++++------- src/tm_devices/commands/mso2k_commands.py | 20 +++++------- src/tm_devices/commands/mso2kb_commands.py | 20 +++++------- src/tm_devices/commands/mso4_commands.py | 20 +++++------- src/tm_devices/commands/mso4b_commands.py | 20 +++++------- src/tm_devices/commands/mso4k_commands.py | 20 +++++------- src/tm_devices/commands/mso4kb_commands.py | 20 +++++------- src/tm_devices/commands/mso5_commands.py | 20 +++++------- src/tm_devices/commands/mso5b_commands.py | 20 +++++------- src/tm_devices/commands/mso5k_commands.py | 20 +++++------- src/tm_devices/commands/mso5kb_commands.py | 20 +++++------- src/tm_devices/commands/mso5lp_commands.py | 20 +++++------- src/tm_devices/commands/mso6_commands.py | 20 +++++------- src/tm_devices/commands/mso6b_commands.py | 20 +++++------- src/tm_devices/commands/mso70kc_commands.py | 20 +++++------- src/tm_devices/commands/mso70kdx_commands.py | 20 +++++------- src/tm_devices/commands/smu2450_commands.py | 20 +++++------- src/tm_devices/commands/smu2460_commands.py | 20 +++++------- src/tm_devices/commands/smu2461_commands.py | 20 +++++------- src/tm_devices/commands/smu2470_commands.py | 20 +++++------- src/tm_devices/commands/smu2601b_commands.py | 20 +++++------- .../commands/smu2601b_pulse_commands.py | 20 +++++------- src/tm_devices/commands/smu2604b_commands.py | 20 +++++------- src/tm_devices/commands/smu2606b_commands.py | 20 +++++------- src/tm_devices/commands/smu2611b_commands.py | 20 +++++------- src/tm_devices/commands/smu2612b_commands.py | 20 +++++------- src/tm_devices/commands/smu2614b_commands.py | 20 +++++------- src/tm_devices/commands/smu2634b_commands.py | 20 +++++------- src/tm_devices/commands/smu2635b_commands.py | 20 +++++------- src/tm_devices/commands/smu2636b_commands.py | 20 +++++------- src/tm_devices/commands/smu2651a_commands.py | 20 +++++------- src/tm_devices/commands/smu2657a_commands.py | 20 +++++------- src/tm_devices/commands/ss3706a_commands.py | 20 +++++------- .../commands/tekscopepc_commands.py | 20 +++++------- src/tm_devices/drivers/afgs/afg31k.py | 20 ------------ src/tm_devices/drivers/afgs/afg3k.py | 20 ------------ src/tm_devices/drivers/afgs/afg3kb.py | 22 +------------ src/tm_devices/drivers/afgs/afg3kc.py | 22 +------------ src/tm_devices/drivers/awgs/awg5200.py | 22 +------------ src/tm_devices/drivers/awgs/awg5k.py | 20 ------------ src/tm_devices/drivers/awgs/awg5kb.py | 20 ------------ src/tm_devices/drivers/awgs/awg5kc.py | 22 +------------ src/tm_devices/drivers/awgs/awg70ka.py | 22 +------------ src/tm_devices/drivers/awgs/awg70kb.py | 22 +------------ src/tm_devices/drivers/awgs/awg7k.py | 20 ------------ src/tm_devices/drivers/awgs/awg7kb.py | 20 ------------ src/tm_devices/drivers/awgs/awg7kc.py | 22 +------------ .../data_acquisition_systems/daq6510.py | 19 ----------- src/tm_devices/drivers/device.py | 16 ++++++---- .../digital_multimeters/dmm75xx/dmm7512.py | 20 ------------ .../digital_multimeters/dmm75xx/dmm75xx.py | 20 ------------ .../drivers/power_supplies/psu22xx/psu2220.py | 20 ------------ .../drivers/power_supplies/psu22xx/psu2230.py | 20 ------------ .../drivers/power_supplies/psu22xx/psu2231.py | 20 ------------ .../power_supplies/psu22xx/psu2231a.py | 20 ------------ .../drivers/power_supplies/psu22xx/psu2280.py | 20 ------------ .../drivers/power_supplies/psu22xx/psu2281.py | 20 ------------ .../drivers/scopes/tekscope/lpd6.py | 2 +- .../drivers/scopes/tekscope/mso2.py | 2 +- .../drivers/scopes/tekscope/mso4.py | 2 +- .../drivers/scopes/tekscope/mso4b.py | 2 +- .../drivers/scopes/tekscope/mso5.py | 2 +- .../drivers/scopes/tekscope/mso5b.py | 2 +- .../drivers/scopes/tekscope/mso5lp.py | 2 +- .../drivers/scopes/tekscope/mso6.py | 2 +- .../drivers/scopes/tekscope/mso6b.py | 2 +- .../drivers/scopes/tekscope/tekscope.py | 4 +-- .../drivers/scopes/tekscope/tekscopepc.py | 21 +----------- .../drivers/scopes/tekscope_2k/dpo2kb.py | 2 +- .../drivers/scopes/tekscope_2k/mso2kb.py | 2 +- .../drivers/scopes/tekscope_3k_4k/dpo4kb.py | 2 +- .../drivers/scopes/tekscope_3k_4k/mdo4kb.py | 2 +- .../drivers/scopes/tekscope_3k_4k/mdo4kc.py | 2 +- .../drivers/scopes/tekscope_3k_4k/mso4kb.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo5kb.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo70k.py | 20 ------------ .../scopes/tekscope_5k_7k_70k/dpo70kd.py | 2 +- .../scopes/tekscope_5k_7k_70k/dpo7kc.py | 2 +- .../scopes/tekscope_5k_7k_70k/dsa70k.py | 20 ------------ .../scopes/tekscope_5k_7k_70k/mso5kb.py | 2 +- .../scopes/tekscope_5k_7k_70k/mso70k.py | 20 ------------ .../source_measure_units/smu24xx/smu2400.py | 20 ------------ .../source_measure_units/smu24xx/smu2401.py | 20 ------------ .../source_measure_units/smu24xx/smu2410.py | 20 ------------ .../smu24xx/smu24xx_interactive.py | 15 +-------- .../source_measure_units/smu26xx/smu2601a.py | 20 ------------ .../source_measure_units/smu26xx/smu2601b.py | 2 +- .../smu26xx/smu2601b_pulse.py | 2 +- .../source_measure_units/smu26xx/smu2602a.py | 20 ------------ .../source_measure_units/smu26xx/smu2604a.py | 20 ------------ .../source_measure_units/smu26xx/smu2604b.py | 2 +- .../source_measure_units/smu26xx/smu2606b.py | 2 +- .../source_measure_units/smu26xx/smu2611a.py | 20 ------------ .../source_measure_units/smu26xx/smu2611b.py | 2 +- .../source_measure_units/smu26xx/smu2612a.py | 20 ------------ .../source_measure_units/smu26xx/smu2612b.py | 2 +- .../source_measure_units/smu26xx/smu2614a.py | 20 ------------ .../source_measure_units/smu26xx/smu2614b.py | 2 +- .../source_measure_units/smu26xx/smu2634a.py | 20 ------------ .../source_measure_units/smu26xx/smu2634b.py | 2 +- .../source_measure_units/smu26xx/smu2635a.py | 20 ------------ .../source_measure_units/smu26xx/smu2635b.py | 2 +- .../source_measure_units/smu26xx/smu2636a.py | 20 ------------ .../source_measure_units/smu26xx/smu2636b.py | 2 +- .../source_measure_units/smu26xx/smu2651a.py | 2 +- .../source_measure_units/smu26xx/smu2657a.py | 2 +- .../source_measure_units/smu26xx/smu265xa.py | 8 ----- .../source_measure_units/smu26xx/smu26xx.py | 4 +-- .../source_measure_units/smu26xx/smu26xxb.py | 32 ------------------- .../source_measure_units/smu60xx/smu6430.py | 20 ------------ .../source_measure_units/smu60xx/smu6514.py | 20 ------------ .../source_measure_units/smu60xx/smu6517b.py | 20 ------------ tests/test_all_device_drivers.py | 9 +++--- tests/test_margin_testers.py | 6 ++-- 150 files changed, 602 insertions(+), 1741 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb406b52..a1889eae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ However, please read through all changes to be aware of what may potentially imp - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. - BREAKING CHANGE: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. - BREAKING CHANGE: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. +- Updated the auto-generated command mixin classes to no longer use an `__init__()` method to enable the driver API documentation to render in a more usable way. ### Removed diff --git a/mkdocs.yml b/mkdocs.yml index 571107ad..ad85e3e1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -105,10 +105,6 @@ plugins: extensions: [docs/griffe_custom_decorator_labels.py] show_inheritance_diagram: true show_source: false # a link is included at the top of each page -# TODO: nfelt14: Figure out if we need to preload modules -# preload_modules: -# - tm_devices.commands -# - tm_devices.drivers # Headings options heading_level: 1 show_root_heading: true diff --git a/src/tm_devices/commands/afg3k_commands.py b/src/tm_devices/commands/afg3k_commands.py index bedf0fb9..67b322de 100644 --- a/src/tm_devices/commands/afg3k_commands.py +++ b/src/tm_devices/commands/afg3k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Optional +from typing import Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -851,22 +852,16 @@ class AFG3KMixin: - ``.commands``: The AFG3K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AFG3KCommandConstants() - self._commands = AFG3KCommands(device) - - @property - def command_argument_constants(self) -> AFG3KCommandConstants: + @cached_property + def command_argument_constants(self) -> AFG3KCommandConstants: # pylint: disable=no-self-use """Return the AFG3K command argument constants. This provides access to all the string constants which can be used as arguments for AFG3K commands. """ - return self._command_argument_constants + return AFG3KCommandConstants() - @property + @cached_property def commands(self) -> AFG3KCommands: """Return the AFG3K commands. @@ -911,4 +906,5 @@ def commands(self) -> AFG3KCommands: - ``.tst``: The ``*TST`` command. - ``.wai``: The ``*WAI`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AFG3KCommands(device) diff --git a/src/tm_devices/commands/afg3kb_commands.py b/src/tm_devices/commands/afg3kb_commands.py index eeb72db5..202398a8 100644 --- a/src/tm_devices/commands/afg3kb_commands.py +++ b/src/tm_devices/commands/afg3kb_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Optional +from typing import Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -851,22 +852,16 @@ class AFG3KBMixin: - ``.commands``: The AFG3KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AFG3KBCommandConstants() - self._commands = AFG3KBCommands(device) - - @property - def command_argument_constants(self) -> AFG3KBCommandConstants: + @cached_property + def command_argument_constants(self) -> AFG3KBCommandConstants: # pylint: disable=no-self-use """Return the AFG3KB command argument constants. This provides access to all the string constants which can be used as arguments for AFG3KB commands. """ - return self._command_argument_constants + return AFG3KBCommandConstants() - @property + @cached_property def commands(self) -> AFG3KBCommands: """Return the AFG3KB commands. @@ -911,4 +906,5 @@ def commands(self) -> AFG3KBCommands: - ``.tst``: The ``*TST`` command. - ``.wai``: The ``*WAI`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AFG3KBCommands(device) diff --git a/src/tm_devices/commands/afg3kc_commands.py b/src/tm_devices/commands/afg3kc_commands.py index b8016a5c..6fe45f8d 100644 --- a/src/tm_devices/commands/afg3kc_commands.py +++ b/src/tm_devices/commands/afg3kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Optional +from typing import Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol from .gen_22daqs_afg.data import Data @@ -851,22 +852,16 @@ class AFG3KCMixin: - ``.commands``: The AFG3KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AFG3KCCommandConstants() - self._commands = AFG3KCCommands(device) - - @property - def command_argument_constants(self) -> AFG3KCCommandConstants: + @cached_property + def command_argument_constants(self) -> AFG3KCCommandConstants: # pylint: disable=no-self-use """Return the AFG3KC command argument constants. This provides access to all the string constants which can be used as arguments for AFG3KC commands. """ - return self._command_argument_constants + return AFG3KCCommandConstants() - @property + @cached_property def commands(self) -> AFG3KCCommands: """Return the AFG3KC commands. @@ -911,4 +906,5 @@ def commands(self) -> AFG3KCCommands: - ``.tst``: The ``*TST`` command. - ``.wai``: The ``*WAI`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AFG3KCCommands(device) diff --git a/src/tm_devices/commands/awg5200_commands.py b/src/tm_devices/commands/awg5200_commands.py index 51dfdffa..745090d5 100644 --- a/src/tm_devices/commands/awg5200_commands.py +++ b/src/tm_devices/commands/awg5200_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_2i1z2s_awg.abort import Abort from .gen_2i1z2s_awg.auxoutput import AuxoutputItem @@ -952,22 +953,16 @@ class AWG5200Mixin: - ``.commands``: The AWG5200 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG5200CommandConstants() - self._commands = AWG5200Commands(device) - - @property - def command_argument_constants(self) -> AWG5200CommandConstants: + @cached_property + def command_argument_constants(self) -> AWG5200CommandConstants: # pylint: disable=no-self-use """Return the AWG5200 command argument constants. This provides access to all the string constants which can be used as arguments for AWG5200 commands. """ - return self._command_argument_constants + return AWG5200CommandConstants() - @property + @cached_property def commands(self) -> AWG5200Commands: """Return the AWG5200 commands. @@ -1014,4 +1009,5 @@ def commands(self) -> AWG5200Commands: - ``.wlist``: The ``WLISt`` command tree. - ``.wplugin``: The ``WPLugin`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG5200Commands(device) diff --git a/src/tm_devices/commands/awg5k_commands.py b/src/tm_devices/commands/awg5k_commands.py index 51ef030b..fd72af2c 100644 --- a/src/tm_devices/commands/awg5k_commands.py +++ b/src/tm_devices/commands/awg5k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -743,22 +744,16 @@ class AWG5KMixin: - ``.commands``: The AWG5K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG5KCommandConstants() - self._commands = AWG5KCommands(device) - - @property - def command_argument_constants(self) -> AWG5KCommandConstants: + @cached_property + def command_argument_constants(self) -> AWG5KCommandConstants: # pylint: disable=no-self-use """Return the AWG5K command argument constants. This provides access to all the string constants which can be used as arguments for AWG5K commands. """ - return self._command_argument_constants + return AWG5KCommandConstants() - @property + @cached_property def commands(self) -> AWG5KCommands: """Return the AWG5K commands. @@ -796,4 +791,5 @@ def commands(self) -> AWG5KCommands: - ``.wai``: The ``*WAI`` command. - ``.wlist``: The ``WLISt`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG5KCommands(device) diff --git a/src/tm_devices/commands/awg5kc_commands.py b/src/tm_devices/commands/awg5kc_commands.py index c4e72b49..5f232a5b 100644 --- a/src/tm_devices/commands/awg5kc_commands.py +++ b/src/tm_devices/commands/awg5kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -743,22 +744,16 @@ class AWG5KCMixin: - ``.commands``: The AWG5KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG5KCCommandConstants() - self._commands = AWG5KCCommands(device) - - @property - def command_argument_constants(self) -> AWG5KCCommandConstants: + @cached_property + def command_argument_constants(self) -> AWG5KCCommandConstants: # pylint: disable=no-self-use """Return the AWG5KC command argument constants. This provides access to all the string constants which can be used as arguments for AWG5KC commands. """ - return self._command_argument_constants + return AWG5KCCommandConstants() - @property + @cached_property def commands(self) -> AWG5KCCommands: """Return the AWG5KC commands. @@ -796,4 +791,5 @@ def commands(self) -> AWG5KCCommands: - ``.wai``: The ``*WAI`` command. - ``.wlist``: The ``WLISt`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG5KCCommands(device) diff --git a/src/tm_devices/commands/awg70ka_commands.py b/src/tm_devices/commands/awg70ka_commands.py index 18c61a27..1941276f 100644 --- a/src/tm_devices/commands/awg70ka_commands.py +++ b/src/tm_devices/commands/awg70ka_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration @@ -937,22 +938,16 @@ class AWG70KAMixin: - ``.commands``: The AWG70KA commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG70KACommandConstants() - self._commands = AWG70KACommands(device) - - @property - def command_argument_constants(self) -> AWG70KACommandConstants: + @cached_property + def command_argument_constants(self) -> AWG70KACommandConstants: # pylint: disable=no-self-use """Return the AWG70KA command argument constants. This provides access to all the string constants which can be used as arguments for AWG70KA commands. """ - return self._command_argument_constants + return AWG70KACommandConstants() - @property + @cached_property def commands(self) -> AWG70KACommands: """Return the AWG70KA commands. @@ -998,4 +993,5 @@ def commands(self) -> AWG70KACommands: - ``.wlist``: The ``WLISt`` command tree. - ``.wplugin``: The ``WPLugin`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG70KACommands(device) diff --git a/src/tm_devices/commands/awg70kb_commands.py b/src/tm_devices/commands/awg70kb_commands.py index df2e4fe8..90bbd405 100644 --- a/src/tm_devices/commands/awg70kb_commands.py +++ b/src/tm_devices/commands/awg70kb_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3n9auv_awg.active import Active from .gen_3n9auv_awg.calibration import Calibration @@ -937,22 +938,16 @@ class AWG70KBMixin: - ``.commands``: The AWG70KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG70KBCommandConstants() - self._commands = AWG70KBCommands(device) - - @property - def command_argument_constants(self) -> AWG70KBCommandConstants: + @cached_property + def command_argument_constants(self) -> AWG70KBCommandConstants: # pylint: disable=no-self-use """Return the AWG70KB command argument constants. This provides access to all the string constants which can be used as arguments for AWG70KB commands. """ - return self._command_argument_constants + return AWG70KBCommandConstants() - @property + @cached_property def commands(self) -> AWG70KBCommands: """Return the AWG70KB commands. @@ -998,4 +993,5 @@ def commands(self) -> AWG70KBCommands: - ``.wlist``: The ``WLISt`` command tree. - ``.wplugin``: The ``WPLugin`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG70KBCommands(device) diff --git a/src/tm_devices/commands/awg7k_commands.py b/src/tm_devices/commands/awg7k_commands.py index 079b440a..f71551db 100644 --- a/src/tm_devices/commands/awg7k_commands.py +++ b/src/tm_devices/commands/awg7k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -743,22 +744,16 @@ class AWG7KMixin: - ``.commands``: The AWG7K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG7KCommandConstants() - self._commands = AWG7KCommands(device) - - @property - def command_argument_constants(self) -> AWG7KCommandConstants: + @cached_property + def command_argument_constants(self) -> AWG7KCommandConstants: # pylint: disable=no-self-use """Return the AWG7K command argument constants. This provides access to all the string constants which can be used as arguments for AWG7K commands. """ - return self._command_argument_constants + return AWG7KCommandConstants() - @property + @cached_property def commands(self) -> AWG7KCommands: """Return the AWG7K commands. @@ -796,4 +791,5 @@ def commands(self) -> AWG7KCommands: - ``.wai``: The ``*WAI`` command. - ``.wlist``: The ``WLISt`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG7KCommands(device) diff --git a/src/tm_devices/commands/awg7kc_commands.py b/src/tm_devices/commands/awg7kc_commands.py index 2a3a4709..a82e841d 100644 --- a/src/tm_devices/commands/awg7kc_commands.py +++ b/src/tm_devices/commands/awg7kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol from .gen_32dszm_awg.diagnostic import Diagnostic @@ -743,22 +744,16 @@ class AWG7KCMixin: - ``.commands``: The AWG7KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = AWG7KCCommandConstants() - self._commands = AWG7KCCommands(device) - - @property - def command_argument_constants(self) -> AWG7KCCommandConstants: + @cached_property + def command_argument_constants(self) -> AWG7KCCommandConstants: # pylint: disable=no-self-use """Return the AWG7KC command argument constants. This provides access to all the string constants which can be used as arguments for AWG7KC commands. """ - return self._command_argument_constants + return AWG7KCCommandConstants() - @property + @cached_property def commands(self) -> AWG7KCCommands: """Return the AWG7KC commands. @@ -796,4 +791,5 @@ def commands(self) -> AWG7KCCommands: - ``.wai``: The ``*WAI`` command. - ``.wlist``: The ``WLISt`` command tree. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return AWG7KCCommands(device) diff --git a/src/tm_devices/commands/daq6510_commands.py b/src/tm_devices/commands/daq6510_commands.py index 24d243ff..e277c315 100644 --- a/src/tm_devices/commands/daq6510_commands.py +++ b/src/tm_devices/commands/daq6510_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_by991s_smudaq.digio import Digio from .gen_by991s_smudaq.status import Status @@ -2078,22 +2079,16 @@ class DAQ6510Mixin: - ``.commands``: The DAQ6510 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = DAQ6510CommandConstants() - self._commands = DAQ6510Commands(device) - - @property - def command_argument_constants(self) -> DAQ6510CommandConstants: + @cached_property + def command_argument_constants(self) -> DAQ6510CommandConstants: # pylint: disable=no-self-use """Return the DAQ6510 command argument constants. This provides access to all the string constants which can be used as arguments for DAQ6510 commands. """ - return self._command_argument_constants + return DAQ6510CommandConstants() - @property + @cached_property def commands(self) -> DAQ6510Commands: """Return the DAQ6510 commands. @@ -2141,4 +2136,5 @@ def commands(self) -> DAQ6510Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return DAQ6510Commands(device) diff --git a/src/tm_devices/commands/dmm6500_commands.py b/src/tm_devices/commands/dmm6500_commands.py index eed2ccc3..368e6e85 100644 --- a/src/tm_devices/commands/dmm6500_commands.py +++ b/src/tm_devices/commands/dmm6500_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_d83qe0_dmm.buffer import Buffer from .gen_d83qe0_dmm.buffervar import Buffervar @@ -1445,22 +1446,16 @@ class DMM6500Mixin: - ``.commands``: The DMM6500 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = DMM6500CommandConstants() - self._commands = DMM6500Commands(device) - - @property - def command_argument_constants(self) -> DMM6500CommandConstants: + @cached_property + def command_argument_constants(self) -> DMM6500CommandConstants: # pylint: disable=no-self-use """Return the DMM6500 command argument constants. This provides access to all the string constants which can be used as arguments for DMM6500 commands. """ - return self._command_argument_constants + return DMM6500CommandConstants() - @property + @cached_property def commands(self) -> DMM6500Commands: """Return the DMM6500 commands. @@ -1507,4 +1502,5 @@ def commands(self) -> DMM6500Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return DMM6500Commands(device) diff --git a/src/tm_devices/commands/dmm7510_commands.py b/src/tm_devices/commands/dmm7510_commands.py index 0e26aade..fb7860dd 100644 --- a/src/tm_devices/commands/dmm7510_commands.py +++ b/src/tm_devices/commands/dmm7510_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_d6b496_dmm.acal import Acal from .gen_d6b496_dmm.buffer import Buffer @@ -1405,22 +1406,16 @@ class DMM7510Mixin: - ``.commands``: The DMM7510 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = DMM7510CommandConstants() - self._commands = DMM7510Commands(device) - - @property - def command_argument_constants(self) -> DMM7510CommandConstants: + @cached_property + def command_argument_constants(self) -> DMM7510CommandConstants: # pylint: disable=no-self-use """Return the DMM7510 command argument constants. This provides access to all the string constants which can be used as arguments for DMM7510 commands. """ - return self._command_argument_constants + return DMM7510CommandConstants() - @property + @cached_property def commands(self) -> DMM7510Commands: """Return the DMM7510 commands. @@ -1466,4 +1461,5 @@ def commands(self) -> DMM7510Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return DMM7510Commands(device) diff --git a/src/tm_devices/commands/dpo2k_commands.py b/src/tm_devices/commands/dpo2k_commands.py index 5c1ba2c7..3dffbdaf 100644 --- a/src/tm_devices/commands/dpo2k_commands.py +++ b/src/tm_devices/commands/dpo2k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -2664,22 +2665,16 @@ class DPO2KMixin: - ``.commands``: The DPO2K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO2KCommandConstants() - self._commands = DPO2KCommands(device) - - @property - def command_argument_constants(self) -> DPO2KCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO2KCommandConstants: # pylint: disable=no-self-use """Return the DPO2K command argument constants. This provides access to all the string constants which can be used as arguments for DPO2K commands. """ - return self._command_argument_constants + return DPO2KCommandConstants() - @property + @cached_property def commands(self) -> DPO2KCommands: """Return the DPO2K commands. @@ -2768,4 +2763,5 @@ def commands(self) -> DPO2KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO2KCommands(device) diff --git a/src/tm_devices/commands/dpo2kb_commands.py b/src/tm_devices/commands/dpo2kb_commands.py index f547c89c..04f80616 100644 --- a/src/tm_devices/commands/dpo2kb_commands.py +++ b/src/tm_devices/commands/dpo2kb_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -2664,22 +2665,16 @@ class DPO2KBMixin: - ``.commands``: The DPO2KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO2KBCommandConstants() - self._commands = DPO2KBCommands(device) - - @property - def command_argument_constants(self) -> DPO2KBCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO2KBCommandConstants: # pylint: disable=no-self-use """Return the DPO2KB command argument constants. This provides access to all the string constants which can be used as arguments for DPO2KB commands. """ - return self._command_argument_constants + return DPO2KBCommandConstants() - @property + @cached_property def commands(self) -> DPO2KBCommands: """Return the DPO2KB commands. @@ -2768,4 +2763,5 @@ def commands(self) -> DPO2KBCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO2KBCommands(device) diff --git a/src/tm_devices/commands/dpo4k_commands.py b/src/tm_devices/commands/dpo4k_commands.py index c8b13719..02385e21 100644 --- a/src/tm_devices/commands/dpo4k_commands.py +++ b/src/tm_devices/commands/dpo4k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kozfv_dpo.search import Search @@ -3287,22 +3288,16 @@ class DPO4KMixin: - ``.commands``: The DPO4K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO4KCommandConstants() - self._commands = DPO4KCommands(device) - - @property - def command_argument_constants(self) -> DPO4KCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO4KCommandConstants: # pylint: disable=no-self-use """Return the DPO4K command argument constants. This provides access to all the string constants which can be used as arguments for DPO4K commands. """ - return self._command_argument_constants + return DPO4KCommandConstants() - @property + @cached_property def commands(self) -> DPO4KCommands: """Return the DPO4K commands. @@ -3409,4 +3404,5 @@ def commands(self) -> DPO4KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO4KCommands(device) diff --git a/src/tm_devices/commands/dpo4kb_commands.py b/src/tm_devices/commands/dpo4kb_commands.py index a8b4099b..9813460f 100644 --- a/src/tm_devices/commands/dpo4kb_commands.py +++ b/src/tm_devices/commands/dpo4kb_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message @@ -3295,22 +3296,16 @@ class DPO4KBMixin: - ``.commands``: The DPO4KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO4KBCommandConstants() - self._commands = DPO4KBCommands(device) - - @property - def command_argument_constants(self) -> DPO4KBCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO4KBCommandConstants: # pylint: disable=no-self-use """Return the DPO4KB command argument constants. This provides access to all the string constants which can be used as arguments for DPO4KB commands. """ - return self._command_argument_constants + return DPO4KBCommandConstants() - @property + @cached_property def commands(self) -> DPO4KBCommands: """Return the DPO4KB commands. @@ -3417,4 +3412,5 @@ def commands(self) -> DPO4KBCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO4KBCommands(device) diff --git a/src/tm_devices/commands/dpo5k_commands.py b/src/tm_devices/commands/dpo5k_commands.py index cf6f3eb9..e9a6b90f 100644 --- a/src/tm_devices/commands/dpo5k_commands.py +++ b/src/tm_devices/commands/dpo5k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -3782,22 +3783,16 @@ class DPO5KMixin: - ``.commands``: The DPO5K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO5KCommandConstants() - self._commands = DPO5KCommands(device) - - @property - def command_argument_constants(self) -> DPO5KCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO5KCommandConstants: # pylint: disable=no-self-use """Return the DPO5K command argument constants. This provides access to all the string constants which can be used as arguments for DPO5K commands. """ - return self._command_argument_constants + return DPO5KCommandConstants() - @property + @cached_property def commands(self) -> DPO5KCommands: """Return the DPO5K commands. @@ -3913,4 +3908,5 @@ def commands(self) -> DPO5KCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO5KCommands(device) diff --git a/src/tm_devices/commands/dpo5kb_commands.py b/src/tm_devices/commands/dpo5kb_commands.py index 8396ac39..d3d2e224 100644 --- a/src/tm_devices/commands/dpo5kb_commands.py +++ b/src/tm_devices/commands/dpo5kb_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3tjgb2_dpo.trigger import Trigger from .gen_5ri0nj_dpomso.bus import Bus @@ -3872,22 +3873,16 @@ class DPO5KBMixin: - ``.commands``: The DPO5KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO5KBCommandConstants() - self._commands = DPO5KBCommands(device) - - @property - def command_argument_constants(self) -> DPO5KBCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO5KBCommandConstants: # pylint: disable=no-self-use """Return the DPO5KB command argument constants. This provides access to all the string constants which can be used as arguments for DPO5KB commands. """ - return self._command_argument_constants + return DPO5KBCommandConstants() - @property + @cached_property def commands(self) -> DPO5KBCommands: """Return the DPO5KB commands. @@ -4005,4 +4000,5 @@ def commands(self) -> DPO5KBCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO5KBCommands(device) diff --git a/src/tm_devices/commands/dpo70kc_commands.py b/src/tm_devices/commands/dpo70kc_commands.py index 42d9981f..b84ed9dd 100644 --- a/src/tm_devices/commands/dpo70kc_commands.py +++ b/src/tm_devices/commands/dpo70kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3852,22 +3853,16 @@ class DPO70KCMixin: - ``.commands``: The DPO70KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO70KCCommandConstants() - self._commands = DPO70KCCommands(device) - - @property - def command_argument_constants(self) -> DPO70KCCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO70KCCommandConstants: # pylint: disable=no-self-use """Return the DPO70KC command argument constants. This provides access to all the string constants which can be used as arguments for DPO70KC commands. """ - return self._command_argument_constants + return DPO70KCCommandConstants() - @property + @cached_property def commands(self) -> DPO70KCCommands: """Return the DPO70KC commands. @@ -3984,4 +3979,5 @@ def commands(self) -> DPO70KCCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO70KCCommands(device) diff --git a/src/tm_devices/commands/dpo70kd_commands.py b/src/tm_devices/commands/dpo70kd_commands.py index d31fc195..a01e2bc2 100644 --- a/src/tm_devices/commands/dpo70kd_commands.py +++ b/src/tm_devices/commands/dpo70kd_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3852,22 +3853,16 @@ class DPO70KDMixin: - ``.commands``: The DPO70KD commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO70KDCommandConstants() - self._commands = DPO70KDCommands(device) - - @property - def command_argument_constants(self) -> DPO70KDCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO70KDCommandConstants: # pylint: disable=no-self-use """Return the DPO70KD command argument constants. This provides access to all the string constants which can be used as arguments for DPO70KD commands. """ - return self._command_argument_constants + return DPO70KDCommandConstants() - @property + @cached_property def commands(self) -> DPO70KDCommands: """Return the DPO70KD commands. @@ -3984,4 +3979,5 @@ def commands(self) -> DPO70KDCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO70KDCommands(device) diff --git a/src/tm_devices/commands/dpo70kdx_commands.py b/src/tm_devices/commands/dpo70kdx_commands.py index 35cda599..68736f5d 100644 --- a/src/tm_devices/commands/dpo70kdx_commands.py +++ b/src/tm_devices/commands/dpo70kdx_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3852,22 +3853,16 @@ class DPO70KDXMixin: - ``.commands``: The DPO70KDX commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO70KDXCommandConstants() - self._commands = DPO70KDXCommands(device) - - @property - def command_argument_constants(self) -> DPO70KDXCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO70KDXCommandConstants: # pylint: disable=no-self-use """Return the DPO70KDX command argument constants. This provides access to all the string constants which can be used as arguments for DPO70KDX commands. """ - return self._command_argument_constants + return DPO70KDXCommandConstants() - @property + @cached_property def commands(self) -> DPO70KDXCommands: """Return the DPO70KDX commands. @@ -3984,4 +3979,5 @@ def commands(self) -> DPO70KDXCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO70KDXCommands(device) diff --git a/src/tm_devices/commands/dpo70ksx_commands.py b/src/tm_devices/commands/dpo70ksx_commands.py index 773de12b..28527280 100644 --- a/src/tm_devices/commands/dpo70ksx_commands.py +++ b/src/tm_devices/commands/dpo70ksx_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_4jiykk_dpo.channelmapping import Channelmapping from .gen_4jiykk_dpo.counter import Counter @@ -3948,22 +3949,16 @@ class DPO70KSXMixin: - ``.commands``: The DPO70KSX commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO70KSXCommandConstants() - self._commands = DPO70KSXCommands(device) - - @property - def command_argument_constants(self) -> DPO70KSXCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO70KSXCommandConstants: # pylint: disable=no-self-use """Return the DPO70KSX command argument constants. This provides access to all the string constants which can be used as arguments for DPO70KSX commands. """ - return self._command_argument_constants + return DPO70KSXCommandConstants() - @property + @cached_property def commands(self) -> DPO70KSXCommands: """Return the DPO70KSX commands. @@ -4082,4 +4077,5 @@ def commands(self) -> DPO70KSXCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO70KSXCommands(device) diff --git a/src/tm_devices/commands/dpo7k_commands.py b/src/tm_devices/commands/dpo7k_commands.py index 220de80e..c36cf8a4 100644 --- a/src/tm_devices/commands/dpo7k_commands.py +++ b/src/tm_devices/commands/dpo7k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -3782,22 +3783,16 @@ class DPO7KMixin: - ``.commands``: The DPO7K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO7KCommandConstants() - self._commands = DPO7KCommands(device) - - @property - def command_argument_constants(self) -> DPO7KCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO7KCommandConstants: # pylint: disable=no-self-use """Return the DPO7K command argument constants. This provides access to all the string constants which can be used as arguments for DPO7K commands. """ - return self._command_argument_constants + return DPO7KCommandConstants() - @property + @cached_property def commands(self) -> DPO7KCommands: """Return the DPO7K commands. @@ -3913,4 +3908,5 @@ def commands(self) -> DPO7KCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO7KCommands(device) diff --git a/src/tm_devices/commands/dpo7kc_commands.py b/src/tm_devices/commands/dpo7kc_commands.py index 0f041947..211bbfb8 100644 --- a/src/tm_devices/commands/dpo7kc_commands.py +++ b/src/tm_devices/commands/dpo7kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3skc3w_dpo.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3853,22 +3854,16 @@ class DPO7KCMixin: - ``.commands``: The DPO7KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DPO7KCCommandConstants() - self._commands = DPO7KCCommands(device) - - @property - def command_argument_constants(self) -> DPO7KCCommandConstants: + @cached_property + def command_argument_constants(self) -> DPO7KCCommandConstants: # pylint: disable=no-self-use """Return the DPO7KC command argument constants. This provides access to all the string constants which can be used as arguments for DPO7KC commands. """ - return self._command_argument_constants + return DPO7KCCommandConstants() - @property + @cached_property def commands(self) -> DPO7KCCommands: """Return the DPO7KC commands. @@ -3985,4 +3980,5 @@ def commands(self) -> DPO7KCCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DPO7KCCommands(device) diff --git a/src/tm_devices/commands/dsa70kc_commands.py b/src/tm_devices/commands/dsa70kc_commands.py index 4f35bad4..1df3b828 100644 --- a/src/tm_devices/commands/dsa70kc_commands.py +++ b/src/tm_devices/commands/dsa70kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3852,22 +3853,16 @@ class DSA70KCMixin: - ``.commands``: The DSA70KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DSA70KCCommandConstants() - self._commands = DSA70KCCommands(device) - - @property - def command_argument_constants(self) -> DSA70KCCommandConstants: + @cached_property + def command_argument_constants(self) -> DSA70KCCommandConstants: # pylint: disable=no-self-use """Return the DSA70KC command argument constants. This provides access to all the string constants which can be used as arguments for DSA70KC commands. """ - return self._command_argument_constants + return DSA70KCCommandConstants() - @property + @cached_property def commands(self) -> DSA70KCCommands: """Return the DSA70KC commands. @@ -3984,4 +3979,5 @@ def commands(self) -> DSA70KCCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DSA70KCCommands(device) diff --git a/src/tm_devices/commands/dsa70kd_commands.py b/src/tm_devices/commands/dsa70kd_commands.py index c4b1280b..0a4f3207 100644 --- a/src/tm_devices/commands/dsa70kd_commands.py +++ b/src/tm_devices/commands/dsa70kd_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3852,22 +3853,16 @@ class DSA70KDMixin: - ``.commands``: The DSA70KD commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = DSA70KDCommandConstants() - self._commands = DSA70KDCommands(device) - - @property - def command_argument_constants(self) -> DSA70KDCommandConstants: + @cached_property + def command_argument_constants(self) -> DSA70KDCommandConstants: # pylint: disable=no-self-use """Return the DSA70KD command argument constants. This provides access to all the string constants which can be used as arguments for DSA70KD commands. """ - return self._command_argument_constants + return DSA70KDCommandConstants() - @property + @cached_property def commands(self) -> DSA70KDCommands: """Return the DSA70KD commands. @@ -3984,4 +3979,5 @@ def commands(self) -> DSA70KDCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return DSA70KDCommands(device) diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py index 1e0a0055..bb01d122 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py @@ -92,7 +92,7 @@ - SEARCH:SEARCH:TRIGger:A:BUS:B:NRZ:CONDition? - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:BLOCKDATa:VALue - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:BLOCKDATa:VALue? - - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|SENSORSTATus|CRCERRor} + - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|CRCERRor} - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition? - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATABITs {FOURBIT|EIGHTBIT|TWENTYBIT} - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:DATABITs? @@ -48872,7 +48872,7 @@ class SearchSearchItemTriggerABusBPsifiveCondition(SCPICmdWrite, SCPICmdRead): SCPI Syntax: ``` - - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|SENSORSTATus|CRCERRor} + - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|CRCERRor} - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition? ``` @@ -48888,7 +48888,6 @@ class SearchSearchItemTriggerABusBPsifiveCondition(SCPICmdWrite, SCPICmdRead): - ``ECUDATa`` specifies the search condition as ECU Data. - ``SENSORADDRess`` specifies the search condition as Sensor Address. - ``REGISTERADDRess`` specifies the search condition as Register Address. - - ``SENSORSTATus`` specifies the search condition as Sensor Status. - ``CRCERRor`` specifies the search condition as CRC Error. """ # noqa: E501 @@ -49068,7 +49067,7 @@ def condition(self) -> SearchSearchItemTriggerABusBPsifiveCondition: SCPI Syntax: ``` - - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|SENSORSTATus|CRCERRor} + - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition {STARt|STATus|DATa|BLOCkid|SENSORSTATus|ERRors|STARTBIT|FUNCTIONCODe|ECUDATa|SENSORADDRess|REGISTERADDRess|CRCERRor} - SEARCH:SEARCH:TRIGger:A:BUS:B:PSIFIVe:CONDition? ``` @@ -49084,7 +49083,6 @@ def condition(self) -> SearchSearchItemTriggerABusBPsifiveCondition: - ``ECUDATa`` specifies the search condition as ECU Data. - ``SENSORADDRess`` specifies the search condition as Sensor Address. - ``REGISTERADDRess`` specifies the search condition as Register Address. - - ``SENSORSTATus`` specifies the search condition as Sensor Status. - ``CRCERRor`` specifies the search condition as CRC Error. """ # noqa: E501 return self._condition diff --git a/src/tm_devices/commands/lpd6_commands.py b/src/tm_devices/commands/lpd6_commands.py index a2578aa9..3d0a88ca 100644 --- a/src/tm_devices/commands/lpd6_commands.py +++ b/src/tm_devices/commands/lpd6_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class LPD6Mixin: - ``.commands``: The LPD6 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = LPD6CommandConstants() - self._commands = LPD6Commands(device) - - @property - def command_argument_constants(self) -> LPD6CommandConstants: + @cached_property + def command_argument_constants(self) -> LPD6CommandConstants: # pylint: disable=no-self-use """Return the LPD6 command argument constants. This provides access to all the string constants which can be used as arguments for LPD6 commands. """ - return self._command_argument_constants + return LPD6CommandConstants() - @property + @cached_property def commands(self) -> LPD6Commands: """Return the LPD6 commands. @@ -3942,4 +3937,5 @@ def commands(self) -> LPD6Commands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return LPD6Commands(device) diff --git a/src/tm_devices/commands/mdo3_commands.py b/src/tm_devices/commands/mdo3_commands.py index 42fa937b..12a217b0 100644 --- a/src/tm_devices/commands/mdo3_commands.py +++ b/src/tm_devices/commands/mdo3_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1ltpwt_mdomsodpo.actonevent import Actonevent from .gen_1ltpwt_mdomsodpo.afg import Afg @@ -3278,22 +3279,16 @@ class MDO3Mixin: - ``.commands``: The MDO3 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MDO3CommandConstants() - self._commands = MDO3Commands(device) - - @property - def command_argument_constants(self) -> MDO3CommandConstants: + @cached_property + def command_argument_constants(self) -> MDO3CommandConstants: # pylint: disable=no-self-use """Return the MDO3 command argument constants. This provides access to all the string constants which can be used as arguments for MDO3 commands. """ - return self._command_argument_constants + return MDO3CommandConstants() - @property + @cached_property def commands(self) -> MDO3Commands: """Return the MDO3 commands. @@ -3401,4 +3396,5 @@ def commands(self) -> MDO3Commands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MDO3Commands(device) diff --git a/src/tm_devices/commands/mdo3k_commands.py b/src/tm_devices/commands/mdo3k_commands.py index e67e20fb..141f6392 100644 --- a/src/tm_devices/commands/mdo3k_commands.py +++ b/src/tm_devices/commands/mdo3k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1lcv3a_msodpomdo.message import Message @@ -3288,22 +3289,16 @@ class MDO3KMixin: - ``.commands``: The MDO3K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MDO3KCommandConstants() - self._commands = MDO3KCommands(device) - - @property - def command_argument_constants(self) -> MDO3KCommandConstants: + @cached_property + def command_argument_constants(self) -> MDO3KCommandConstants: # pylint: disable=no-self-use """Return the MDO3K command argument constants. This provides access to all the string constants which can be used as arguments for MDO3K commands. """ - return self._command_argument_constants + return MDO3KCommandConstants() - @property + @cached_property def commands(self) -> MDO3KCommands: """Return the MDO3K commands. @@ -3410,4 +3405,5 @@ def commands(self) -> MDO3KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MDO3KCommands(device) diff --git a/src/tm_devices/commands/mdo4k_commands.py b/src/tm_devices/commands/mdo4k_commands.py index e2dd2aec..913fb04b 100644 --- a/src/tm_devices/commands/mdo4k_commands.py +++ b/src/tm_devices/commands/mdo4k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1kjd62_mdo.rf import Rf from .gen_1la1ym_msomdodpo.trigger import Trigger @@ -3297,22 +3298,16 @@ class MDO4KMixin: - ``.commands``: The MDO4K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MDO4KCommandConstants() - self._commands = MDO4KCommands(device) - - @property - def command_argument_constants(self) -> MDO4KCommandConstants: + @cached_property + def command_argument_constants(self) -> MDO4KCommandConstants: # pylint: disable=no-self-use """Return the MDO4K command argument constants. This provides access to all the string constants which can be used as arguments for MDO4K commands. """ - return self._command_argument_constants + return MDO4KCommandConstants() - @property + @cached_property def commands(self) -> MDO4KCommands: """Return the MDO4K commands. @@ -3419,4 +3414,5 @@ def commands(self) -> MDO4KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MDO4KCommands(device) diff --git a/src/tm_devices/commands/mdo4kb_commands.py b/src/tm_devices/commands/mdo4kb_commands.py index 345145ec..4424d16b 100644 --- a/src/tm_devices/commands/mdo4kb_commands.py +++ b/src/tm_devices/commands/mdo4kb_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1jzp7o_mdodpo.trigger import Trigger from .gen_1kjd62_mdo.rf import Rf @@ -3290,22 +3291,16 @@ class MDO4KBMixin: - ``.commands``: The MDO4KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MDO4KBCommandConstants() - self._commands = MDO4KBCommands(device) - - @property - def command_argument_constants(self) -> MDO4KBCommandConstants: + @cached_property + def command_argument_constants(self) -> MDO4KBCommandConstants: # pylint: disable=no-self-use """Return the MDO4KB command argument constants. This provides access to all the string constants which can be used as arguments for MDO4KB commands. """ - return self._command_argument_constants + return MDO4KBCommandConstants() - @property + @cached_property def commands(self) -> MDO4KBCommands: """Return the MDO4KB commands. @@ -3412,4 +3407,5 @@ def commands(self) -> MDO4KBCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MDO4KBCommands(device) diff --git a/src/tm_devices/commands/mdo4kc_commands.py b/src/tm_devices/commands/mdo4kc_commands.py index 87ef596d..16753c73 100644 --- a/src/tm_devices/commands/mdo4kc_commands.py +++ b/src/tm_devices/commands/mdo4kc_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1kdqwg_mdo.search import Search from .gen_1kdqwg_mdo.trigger import Trigger @@ -3298,22 +3299,16 @@ class MDO4KCMixin: - ``.commands``: The MDO4KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MDO4KCCommandConstants() - self._commands = MDO4KCCommands(device) - - @property - def command_argument_constants(self) -> MDO4KCCommandConstants: + @cached_property + def command_argument_constants(self) -> MDO4KCCommandConstants: # pylint: disable=no-self-use """Return the MDO4KC command argument constants. This provides access to all the string constants which can be used as arguments for MDO4KC commands. """ - return self._command_argument_constants + return MDO4KCCommandConstants() - @property + @cached_property def commands(self) -> MDO4KCCommands: """Return the MDO4KC commands. @@ -3420,4 +3415,5 @@ def commands(self) -> MDO4KCCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MDO4KCCommands(device) diff --git a/src/tm_devices/commands/mso2_commands.py b/src/tm_devices/commands/mso2_commands.py index b6d51880..b2124347 100644 --- a/src/tm_devices/commands/mso2_commands.py +++ b/src/tm_devices/commands/mso2_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lwj1r_msomdodpo.rosc import Rosc from .gen_1zn03_mso.acquire import Acquire @@ -2806,22 +2807,16 @@ class MSO2Mixin: - ``.commands``: The MSO2 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO2CommandConstants() - self._commands = MSO2Commands(device) - - @property - def command_argument_constants(self) -> MSO2CommandConstants: + @cached_property + def command_argument_constants(self) -> MSO2CommandConstants: # pylint: disable=no-self-use """Return the MSO2 command argument constants. This provides access to all the string constants which can be used as arguments for MSO2 commands. """ - return self._command_argument_constants + return MSO2CommandConstants() - @property + @cached_property def commands(self) -> MSO2Commands: """Return the MSO2 commands. @@ -2922,4 +2917,5 @@ def commands(self) -> MSO2Commands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO2Commands(device) diff --git a/src/tm_devices/commands/mso2k_commands.py b/src/tm_devices/commands/mso2k_commands.py index ce23d77e..bf3dc0db 100644 --- a/src/tm_devices/commands/mso2k_commands.py +++ b/src/tm_devices/commands/mso2k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -2664,22 +2665,16 @@ class MSO2KMixin: - ``.commands``: The MSO2K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO2KCommandConstants() - self._commands = MSO2KCommands(device) - - @property - def command_argument_constants(self) -> MSO2KCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO2KCommandConstants: # pylint: disable=no-self-use """Return the MSO2K command argument constants. This provides access to all the string constants which can be used as arguments for MSO2K commands. """ - return self._command_argument_constants + return MSO2KCommandConstants() - @property + @cached_property def commands(self) -> MSO2KCommands: """Return the MSO2K commands. @@ -2768,4 +2763,5 @@ def commands(self) -> MSO2KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO2KCommands(device) diff --git a/src/tm_devices/commands/mso2kb_commands.py b/src/tm_devices/commands/mso2kb_commands.py index 2342f2bb..d6d530bf 100644 --- a/src/tm_devices/commands/mso2kb_commands.py +++ b/src/tm_devices/commands/mso2kb_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message from .gen_1lcv3a_msodpomdo.setup_1 import SetupItem @@ -2664,22 +2665,16 @@ class MSO2KBMixin: - ``.commands``: The MSO2KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO2KBCommandConstants() - self._commands = MSO2KBCommands(device) - - @property - def command_argument_constants(self) -> MSO2KBCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO2KBCommandConstants: # pylint: disable=no-self-use """Return the MSO2KB command argument constants. This provides access to all the string constants which can be used as arguments for MSO2KB commands. """ - return self._command_argument_constants + return MSO2KBCommandConstants() - @property + @cached_property def commands(self) -> MSO2KBCommands: """Return the MSO2KB commands. @@ -2768,4 +2763,5 @@ def commands(self) -> MSO2KBCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO2KBCommands(device) diff --git a/src/tm_devices/commands/mso4_commands.py b/src/tm_devices/commands/mso4_commands.py index d45c8eea..3128a78b 100644 --- a/src/tm_devices/commands/mso4_commands.py +++ b/src/tm_devices/commands/mso4_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO4Mixin: - ``.commands``: The MSO4 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO4CommandConstants() - self._commands = MSO4Commands(device) - - @property - def command_argument_constants(self) -> MSO4CommandConstants: + @cached_property + def command_argument_constants(self) -> MSO4CommandConstants: # pylint: disable=no-self-use """Return the MSO4 command argument constants. This provides access to all the string constants which can be used as arguments for MSO4 commands. """ - return self._command_argument_constants + return MSO4CommandConstants() - @property + @cached_property def commands(self) -> MSO4Commands: """Return the MSO4 commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO4Commands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO4Commands(device) diff --git a/src/tm_devices/commands/mso4b_commands.py b/src/tm_devices/commands/mso4b_commands.py index 99113e32..b8cdb00e 100644 --- a/src/tm_devices/commands/mso4b_commands.py +++ b/src/tm_devices/commands/mso4b_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO4BMixin: - ``.commands``: The MSO4B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO4BCommandConstants() - self._commands = MSO4BCommands(device) - - @property - def command_argument_constants(self) -> MSO4BCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO4BCommandConstants: # pylint: disable=no-self-use """Return the MSO4B command argument constants. This provides access to all the string constants which can be used as arguments for MSO4B commands. """ - return self._command_argument_constants + return MSO4BCommandConstants() - @property + @cached_property def commands(self) -> MSO4BCommands: """Return the MSO4B commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO4BCommands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO4BCommands(device) diff --git a/src/tm_devices/commands/mso4k_commands.py b/src/tm_devices/commands/mso4k_commands.py index dd2383c9..4f5224dd 100644 --- a/src/tm_devices/commands/mso4k_commands.py +++ b/src/tm_devices/commands/mso4k_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1la1ym_msomdodpo.trigger import Trigger from .gen_1lcv3a_msodpomdo.message import Message @@ -3295,22 +3296,16 @@ class MSO4KMixin: - ``.commands``: The MSO4K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO4KCommandConstants() - self._commands = MSO4KCommands(device) - - @property - def command_argument_constants(self) -> MSO4KCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO4KCommandConstants: # pylint: disable=no-self-use """Return the MSO4K command argument constants. This provides access to all the string constants which can be used as arguments for MSO4K commands. """ - return self._command_argument_constants + return MSO4KCommandConstants() - @property + @cached_property def commands(self) -> MSO4KCommands: """Return the MSO4K commands. @@ -3417,4 +3412,5 @@ def commands(self) -> MSO4KCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO4KCommands(device) diff --git a/src/tm_devices/commands/mso4kb_commands.py b/src/tm_devices/commands/mso4kb_commands.py index 686ca835..6e8e293f 100644 --- a/src/tm_devices/commands/mso4kb_commands.py +++ b/src/tm_devices/commands/mso4kb_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1l4fot_mdomso.cursor import Cursor from .gen_1la1ym_msomdodpo.trigger import Trigger @@ -3296,22 +3297,16 @@ class MSO4KBMixin: - ``.commands``: The MSO4KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO4KBCommandConstants() - self._commands = MSO4KBCommands(device) - - @property - def command_argument_constants(self) -> MSO4KBCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO4KBCommandConstants: # pylint: disable=no-self-use """Return the MSO4KB command argument constants. This provides access to all the string constants which can be used as arguments for MSO4KB commands. """ - return self._command_argument_constants + return MSO4KBCommandConstants() - @property + @cached_property def commands(self) -> MSO4KBCommands: """Return the MSO4KB commands. @@ -3418,4 +3413,5 @@ def commands(self) -> MSO4KBCommands: - ``.wfmoutpre``: The ``WFMOutpre`` command. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO4KBCommands(device) diff --git a/src/tm_devices/commands/mso5_commands.py b/src/tm_devices/commands/mso5_commands.py index 1b25c941..f9e77ddb 100644 --- a/src/tm_devices/commands/mso5_commands.py +++ b/src/tm_devices/commands/mso5_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO5Mixin: - ``.commands``: The MSO5 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO5CommandConstants() - self._commands = MSO5Commands(device) - - @property - def command_argument_constants(self) -> MSO5CommandConstants: + @cached_property + def command_argument_constants(self) -> MSO5CommandConstants: # pylint: disable=no-self-use """Return the MSO5 command argument constants. This provides access to all the string constants which can be used as arguments for MSO5 commands. """ - return self._command_argument_constants + return MSO5CommandConstants() - @property + @cached_property def commands(self) -> MSO5Commands: """Return the MSO5 commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO5Commands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO5Commands(device) diff --git a/src/tm_devices/commands/mso5b_commands.py b/src/tm_devices/commands/mso5b_commands.py index 87d93d0b..3aabb825 100644 --- a/src/tm_devices/commands/mso5b_commands.py +++ b/src/tm_devices/commands/mso5b_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO5BMixin: - ``.commands``: The MSO5B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO5BCommandConstants() - self._commands = MSO5BCommands(device) - - @property - def command_argument_constants(self) -> MSO5BCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO5BCommandConstants: # pylint: disable=no-self-use """Return the MSO5B command argument constants. This provides access to all the string constants which can be used as arguments for MSO5B commands. """ - return self._command_argument_constants + return MSO5BCommandConstants() - @property + @cached_property def commands(self) -> MSO5BCommands: """Return the MSO5B commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO5BCommands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO5BCommands(device) diff --git a/src/tm_devices/commands/mso5k_commands.py b/src/tm_devices/commands/mso5k_commands.py index 83e7c645..5312441c 100644 --- a/src/tm_devices/commands/mso5k_commands.py +++ b/src/tm_devices/commands/mso5k_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus from .gen_fhrp27_msodpomdodsa.curve import Curve @@ -3782,22 +3783,16 @@ class MSO5KMixin: - ``.commands``: The MSO5K commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO5KCommandConstants() - self._commands = MSO5KCommands(device) - - @property - def command_argument_constants(self) -> MSO5KCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO5KCommandConstants: # pylint: disable=no-self-use """Return the MSO5K command argument constants. This provides access to all the string constants which can be used as arguments for MSO5K commands. """ - return self._command_argument_constants + return MSO5KCommandConstants() - @property + @cached_property def commands(self) -> MSO5KCommands: """Return the MSO5K commands. @@ -3913,4 +3908,5 @@ def commands(self) -> MSO5KCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO5KCommands(device) diff --git a/src/tm_devices/commands/mso5kb_commands.py b/src/tm_devices/commands/mso5kb_commands.py index fa272361..3ff39a00 100644 --- a/src/tm_devices/commands/mso5kb_commands.py +++ b/src/tm_devices/commands/mso5kb_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5ri0nj_dpomso.bus import Bus from .gen_5xwdsk_dpodsamso.errordetector import Errordetector @@ -3874,22 +3875,16 @@ class MSO5KBMixin: - ``.commands``: The MSO5KB commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO5KBCommandConstants() - self._commands = MSO5KBCommands(device) - - @property - def command_argument_constants(self) -> MSO5KBCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO5KBCommandConstants: # pylint: disable=no-self-use """Return the MSO5KB command argument constants. This provides access to all the string constants which can be used as arguments for MSO5KB commands. """ - return self._command_argument_constants + return MSO5KBCommandConstants() - @property + @cached_property def commands(self) -> MSO5KBCommands: """Return the MSO5KB commands. @@ -4007,4 +4002,5 @@ def commands(self) -> MSO5KBCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO5KBCommands(device) diff --git a/src/tm_devices/commands/mso5lp_commands.py b/src/tm_devices/commands/mso5lp_commands.py index c7584beb..952f6c89 100644 --- a/src/tm_devices/commands/mso5lp_commands.py +++ b/src/tm_devices/commands/mso5lp_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO5LPMixin: - ``.commands``: The MSO5LP commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO5LPCommandConstants() - self._commands = MSO5LPCommands(device) - - @property - def command_argument_constants(self) -> MSO5LPCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO5LPCommandConstants: # pylint: disable=no-self-use """Return the MSO5LP command argument constants. This provides access to all the string constants which can be used as arguments for MSO5LP commands. """ - return self._command_argument_constants + return MSO5LPCommandConstants() - @property + @cached_property def commands(self) -> MSO5LPCommands: """Return the MSO5LP commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO5LPCommands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO5LPCommands(device) diff --git a/src/tm_devices/commands/mso6_commands.py b/src/tm_devices/commands/mso6_commands.py index 88196089..4016c01e 100644 --- a/src/tm_devices/commands/mso6_commands.py +++ b/src/tm_devices/commands/mso6_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO6Mixin: - ``.commands``: The MSO6 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO6CommandConstants() - self._commands = MSO6Commands(device) - - @property - def command_argument_constants(self) -> MSO6CommandConstants: + @cached_property + def command_argument_constants(self) -> MSO6CommandConstants: # pylint: disable=no-self-use """Return the MSO6 command argument constants. This provides access to all the string constants which can be used as arguments for MSO6 commands. """ - return self._command_argument_constants + return MSO6CommandConstants() - @property + @cached_property def commands(self) -> MSO6Commands: """Return the MSO6 commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO6Commands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO6Commands(device) diff --git a/src/tm_devices/commands/mso6b_commands.py b/src/tm_devices/commands/mso6b_commands.py index 3bca98f5..3715e5ea 100644 --- a/src/tm_devices/commands/mso6b_commands.py +++ b/src/tm_devices/commands/mso6b_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire from .gen_e3e9uu_lpdmso.actonevent import Actonevent @@ -3817,22 +3818,16 @@ class MSO6BMixin: - ``.commands``: The MSO6B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO6BCommandConstants() - self._commands = MSO6BCommands(device) - - @property - def command_argument_constants(self) -> MSO6BCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO6BCommandConstants: # pylint: disable=no-self-use """Return the MSO6B command argument constants. This provides access to all the string constants which can be used as arguments for MSO6B commands. """ - return self._command_argument_constants + return MSO6BCommandConstants() - @property + @cached_property def commands(self) -> MSO6BCommands: """Return the MSO6B commands. @@ -3942,4 +3937,5 @@ def commands(self) -> MSO6BCommands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO6BCommands(device) diff --git a/src/tm_devices/commands/mso70kc_commands.py b/src/tm_devices/commands/mso70kc_commands.py index dd10d385..42413b38 100644 --- a/src/tm_devices/commands/mso70kc_commands.py +++ b/src/tm_devices/commands/mso70kc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5ri0nj_dpomso.bus import Bus from .gen_5vmwut_dpodsamso.trigger import Trigger @@ -3852,22 +3853,16 @@ class MSO70KCMixin: - ``.commands``: The MSO70KC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO70KCCommandConstants() - self._commands = MSO70KCCommands(device) - - @property - def command_argument_constants(self) -> MSO70KCCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO70KCCommandConstants: # pylint: disable=no-self-use """Return the MSO70KC command argument constants. This provides access to all the string constants which can be used as arguments for MSO70KC commands. """ - return self._command_argument_constants + return MSO70KCCommandConstants() - @property + @cached_property def commands(self) -> MSO70KCCommands: """Return the MSO70KC commands. @@ -3984,4 +3979,5 @@ def commands(self) -> MSO70KCCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO70KCCommands(device) diff --git a/src/tm_devices/commands/mso70kdx_commands.py b/src/tm_devices/commands/mso70kdx_commands.py index 7ab96293..1049bff2 100644 --- a/src/tm_devices/commands/mso70kdx_commands.py +++ b/src/tm_devices/commands/mso70kdx_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5xwdsk_dpodsamso.errordetector import Errordetector from .gen_5y90wx_dpodsamso.dpojet import Dpojet @@ -3854,22 +3855,16 @@ class MSO70KDXMixin: - ``.commands``: The MSO70KDX commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = MSO70KDXCommandConstants() - self._commands = MSO70KDXCommands(device) - - @property - def command_argument_constants(self) -> MSO70KDXCommandConstants: + @cached_property + def command_argument_constants(self) -> MSO70KDXCommandConstants: # pylint: disable=no-self-use """Return the MSO70KDX command argument constants. This provides access to all the string constants which can be used as arguments for MSO70KDX commands. """ - return self._command_argument_constants + return MSO70KDXCommandConstants() - @property + @cached_property def commands(self) -> MSO70KDXCommands: """Return the MSO70KDX commands. @@ -3986,4 +3981,5 @@ def commands(self) -> MSO70KDXCommands: - ``.wfmpre``: The ``WFMPre`` command tree. - ``.zoom``: The ``ZOOm`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return MSO70KDXCommands(device) diff --git a/src/tm_devices/commands/smu2450_commands.py b/src/tm_devices/commands/smu2450_commands.py index 2a7222b7..5c0f090d 100644 --- a/src/tm_devices/commands/smu2450_commands.py +++ b/src/tm_devices/commands/smu2450_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6w7311_smu.trigger import Trigger from .gen_7kqm9p_smu.buffervar import Buffervar @@ -1630,22 +1631,16 @@ class SMU2450Mixin: - ``.commands``: The SMU2450 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2450CommandConstants() - self._commands = SMU2450Commands(device) - - @property - def command_argument_constants(self) -> SMU2450CommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2450CommandConstants: # pylint: disable=no-self-use """Return the SMU2450 command argument constants. This provides access to all the string constants which can be used as arguments for SMU2450 commands. """ - return self._command_argument_constants + return SMU2450CommandConstants() - @property + @cached_property def commands(self) -> SMU2450Commands: """Return the SMU2450 commands. @@ -1688,4 +1683,5 @@ def commands(self) -> SMU2450Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2450Commands(device) diff --git a/src/tm_devices/commands/smu2460_commands.py b/src/tm_devices/commands/smu2460_commands.py index fb86c75d..aa26796a 100644 --- a/src/tm_devices/commands/smu2460_commands.py +++ b/src/tm_devices/commands/smu2460_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6ocqvh_smu.buffer import Buffer from .gen_6srh1x_smu.smu import Smu @@ -1687,22 +1688,16 @@ class SMU2460Mixin: - ``.commands``: The SMU2460 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2460CommandConstants() - self._commands = SMU2460Commands(device) - - @property - def command_argument_constants(self) -> SMU2460CommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2460CommandConstants: # pylint: disable=no-self-use """Return the SMU2460 command argument constants. This provides access to all the string constants which can be used as arguments for SMU2460 commands. """ - return self._command_argument_constants + return SMU2460CommandConstants() - @property + @cached_property def commands(self) -> SMU2460Commands: """Return the SMU2460 commands. @@ -1745,4 +1740,5 @@ def commands(self) -> SMU2460Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2460Commands(device) diff --git a/src/tm_devices/commands/smu2461_commands.py b/src/tm_devices/commands/smu2461_commands.py index 942c7fd1..4207451c 100644 --- a/src/tm_devices/commands/smu2461_commands.py +++ b/src/tm_devices/commands/smu2461_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6ocqvh_smu.buffer import Buffer from .gen_6vynmi_smu.acal import Acal @@ -1695,22 +1696,16 @@ class SMU2461Mixin: - ``.commands``: The SMU2461 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2461CommandConstants() - self._commands = SMU2461Commands(device) - - @property - def command_argument_constants(self) -> SMU2461CommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2461CommandConstants: # pylint: disable=no-self-use """Return the SMU2461 command argument constants. This provides access to all the string constants which can be used as arguments for SMU2461 commands. """ - return self._command_argument_constants + return SMU2461CommandConstants() - @property + @cached_property def commands(self) -> SMU2461Commands: """Return the SMU2461 commands. @@ -1754,4 +1749,5 @@ def commands(self) -> SMU2461Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2461Commands(device) diff --git a/src/tm_devices/commands/smu2470_commands.py b/src/tm_devices/commands/smu2470_commands.py index 428180f5..5ed46915 100644 --- a/src/tm_devices/commands/smu2470_commands.py +++ b/src/tm_devices/commands/smu2470_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6w7311_smu.trigger import Trigger from .gen_6xiuc2_smu.buffer import Buffer @@ -1631,22 +1632,16 @@ class SMU2470Mixin: - ``.commands``: The SMU2470 commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2470CommandConstants() - self._commands = SMU2470Commands(device) - - @property - def command_argument_constants(self) -> SMU2470CommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2470CommandConstants: # pylint: disable=no-self-use """Return the SMU2470 command argument constants. This provides access to all the string constants which can be used as arguments for SMU2470 commands. """ - return self._command_argument_constants + return SMU2470CommandConstants() - @property + @cached_property def commands(self) -> SMU2470Commands: """Return the SMU2470 commands. @@ -1689,4 +1684,5 @@ def commands(self) -> SMU2470Commands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2470Commands(device) diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 7c062623..712c1348 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s6wr5_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -2876,22 +2877,16 @@ class SMU2601BMixin: - ``.commands``: The SMU2601B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2601BCommandConstants() - self._commands = SMU2601BCommands(device) - - @property - def command_argument_constants(self) -> SMU2601BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2601BCommandConstants: # pylint: disable=no-self-use """Return the SMU2601B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2601B commands. """ - return self._command_argument_constants + return SMU2601BCommandConstants() - @property + @cached_property def commands(self) -> SMU2601BCommands: """Return the SMU2601B commands. @@ -2967,4 +2962,5 @@ def commands(self) -> SMU2601BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2601BCommands(device) diff --git a/src/tm_devices/commands/smu2601b_pulse_commands.py b/src/tm_devices/commands/smu2601b_pulse_commands.py index 2df9324d..578a81ed 100644 --- a/src/tm_devices/commands/smu2601b_pulse_commands.py +++ b/src/tm_devices/commands/smu2601b_pulse_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s2p1p_smu.beeper import Beeper from .gen_7s2p1p_smu.buffervar import Buffervar @@ -1172,22 +1173,16 @@ class SMU2601BPulseMixin: - ``.commands``: The SMU2601B-Pulse commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2601BPulseCommandConstants() - self._commands = SMU2601BPulseCommands(device) - - @property - def command_argument_constants(self) -> SMU2601BPulseCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2601BPulseCommandConstants: # pylint: disable=no-self-use """Return the SMU2601B_Pulse command argument constants. This provides access to all the string constants which can be used as arguments for SMU2601B_Pulse commands. """ - return self._command_argument_constants + return SMU2601BPulseCommandConstants() - @property + @cached_property def commands(self) -> SMU2601BPulseCommands: """Return the SMU2601B-Pulse commands. @@ -1213,4 +1208,5 @@ def commands(self) -> SMU2601BPulseCommands: - ``.tsplink``: The ``tsplink`` command tree. - ``.tspnet``: The ``tspnet`` command tree. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2601BPulseCommands(device) diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index 28d032c3..7bbd0e42 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7ryhce_smu.status import Status from .gen_8wm55i_smu.smux import SmuxItem @@ -2764,22 +2765,16 @@ class SMU2604BMixin: - ``.commands``: The SMU2604B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2604BCommandConstants() - self._commands = SMU2604BCommands(device) - - @property - def command_argument_constants(self) -> SMU2604BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2604BCommandConstants: # pylint: disable=no-self-use """Return the SMU2604B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2604B commands. """ - return self._command_argument_constants + return SMU2604BCommandConstants() - @property + @cached_property def commands(self) -> SMU2604BCommands: """Return the SMU2604B commands. @@ -2855,4 +2850,5 @@ def commands(self) -> SMU2604BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2604BCommands(device) diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index 6e42f87e..cd2a0db6 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_8ojdkz_smu.display import Display from .gen_8ojdkz_smu.node import NodeItem @@ -2949,22 +2950,16 @@ class SMU2606BMixin: - ``.commands``: The SMU2606B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2606BCommandConstants() - self._commands = SMU2606BCommands(device) - - @property - def command_argument_constants(self) -> SMU2606BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2606BCommandConstants: # pylint: disable=no-self-use """Return the SMU2606B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2606B commands. """ - return self._command_argument_constants + return SMU2606BCommandConstants() - @property + @cached_property def commands(self) -> SMU2606BCommands: """Return the SMU2606B commands. @@ -3038,4 +3033,5 @@ def commands(self) -> SMU2606BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2606BCommands(device) diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index fdc17c74..bfc70024 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem from .gen_9ncc6e_smu.display import Display @@ -2873,22 +2874,16 @@ class SMU2611BMixin: - ``.commands``: The SMU2611B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2611BCommandConstants() - self._commands = SMU2611BCommands(device) - - @property - def command_argument_constants(self) -> SMU2611BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2611BCommandConstants: # pylint: disable=no-self-use """Return the SMU2611B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2611B commands. """ - return self._command_argument_constants + return SMU2611BCommandConstants() - @property + @cached_property def commands(self) -> SMU2611BCommands: """Return the SMU2611B commands. @@ -2964,4 +2959,5 @@ def commands(self) -> SMU2611BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2611BCommands(device) diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index 29f38ea8..2ce9e64d 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem from .gen_ahkybr_smu.beeper import Beeper @@ -2979,22 +2980,16 @@ class SMU2612BMixin: - ``.commands``: The SMU2612B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2612BCommandConstants() - self._commands = SMU2612BCommands(device) - - @property - def command_argument_constants(self) -> SMU2612BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2612BCommandConstants: # pylint: disable=no-self-use """Return the SMU2612B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2612B commands. """ - return self._command_argument_constants + return SMU2612BCommandConstants() - @property + @cached_property def commands(self) -> SMU2612BCommands: """Return the SMU2612B commands. @@ -3070,4 +3065,5 @@ def commands(self) -> SMU2612BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2612BCommands(device) diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index 1e35b901..e8e065d4 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem from .gen_9mzp2j_smu.digio import Digio @@ -2761,22 +2762,16 @@ class SMU2614BMixin: - ``.commands``: The SMU2614B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2614BCommandConstants() - self._commands = SMU2614BCommands(device) - - @property - def command_argument_constants(self) -> SMU2614BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2614BCommandConstants: # pylint: disable=no-self-use """Return the SMU2614B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2614B commands. """ - return self._command_argument_constants + return SMU2614BCommandConstants() - @property + @cached_property def commands(self) -> SMU2614BCommands: """Return the SMU2614B commands. @@ -2852,4 +2847,5 @@ def commands(self) -> SMU2614BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2614BCommands(device) diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index d7bf036b..9f4d7e06 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9mzp2j_smu.digio import Digio from .gen_9mzp2j_smu.display import Display @@ -2763,22 +2764,16 @@ class SMU2634BMixin: - ``.commands``: The SMU2634B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2634BCommandConstants() - self._commands = SMU2634BCommands(device) - - @property - def command_argument_constants(self) -> SMU2634BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2634BCommandConstants: # pylint: disable=no-self-use """Return the SMU2634B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2634B commands. """ - return self._command_argument_constants + return SMU2634BCommandConstants() - @property + @cached_property def commands(self) -> SMU2634BCommands: """Return the SMU2634B commands. @@ -2854,4 +2849,5 @@ def commands(self) -> SMU2634BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2634BCommands(device) diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index 8d9ae096..1feb3238 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9ncc6e_smu.display import Display from .gen_9slyux_smu.status import Status @@ -2875,22 +2876,16 @@ class SMU2635BMixin: - ``.commands``: The SMU2635B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2635BCommandConstants() - self._commands = SMU2635BCommands(device) - - @property - def command_argument_constants(self) -> SMU2635BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2635BCommandConstants: # pylint: disable=no-self-use """Return the SMU2635B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2635B commands. """ - return self._command_argument_constants + return SMU2635BCommandConstants() - @property + @cached_property def commands(self) -> SMU2635BCommands: """Return the SMU2635B commands. @@ -2966,4 +2961,5 @@ def commands(self) -> SMU2635BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2635BCommands(device) diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index ea1e7292..a4f47830 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -2981,22 +2982,16 @@ class SMU2636BMixin: - ``.commands``: The SMU2636B commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2636BCommandConstants() - self._commands = SMU2636BCommands(device) - - @property - def command_argument_constants(self) -> SMU2636BCommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2636BCommandConstants: # pylint: disable=no-self-use """Return the SMU2636B command argument constants. This provides access to all the string constants which can be used as arguments for SMU2636B commands. """ - return self._command_argument_constants + return SMU2636BCommandConstants() - @property + @cached_property def commands(self) -> SMU2636BCommands: """Return the SMU2636B commands. @@ -3072,4 +3067,5 @@ def commands(self) -> SMU2636BCommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2636BCommands(device) diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index aa878820..1b49c020 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -2611,22 +2612,16 @@ class SMU2651AMixin: - ``.commands``: The SMU2651A commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2651ACommandConstants() - self._commands = SMU2651ACommands(device) - - @property - def command_argument_constants(self) -> SMU2651ACommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2651ACommandConstants: # pylint: disable=no-self-use """Return the SMU2651A command argument constants. This provides access to all the string constants which can be used as arguments for SMU2651A commands. """ - return self._command_argument_constants + return SMU2651ACommandConstants() - @property + @cached_property def commands(self) -> SMU2651ACommands: """Return the SMU2651A commands. @@ -2693,4 +2688,5 @@ def commands(self) -> SMU2651ACommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2651ACommands(device) diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index e0b42647..7f042695 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -7,9 +7,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper from .gen_ahkybr_smu.buffervar import Buffervar @@ -2610,22 +2611,16 @@ class SMU2657AMixin: - ``.commands``: The SMU2657A commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SMU2657ACommandConstants() - self._commands = SMU2657ACommands(device) - - @property - def command_argument_constants(self) -> SMU2657ACommandConstants: + @cached_property + def command_argument_constants(self) -> SMU2657ACommandConstants: # pylint: disable=no-self-use """Return the SMU2657A command argument constants. This provides access to all the string constants which can be used as arguments for SMU2657A commands. """ - return self._command_argument_constants + return SMU2657ACommandConstants() - @property + @cached_property def commands(self) -> SMU2657ACommands: """Return the SMU2657A commands. @@ -2692,4 +2687,5 @@ def commands(self) -> SMU2657ACommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SMU2657ACommands(device) diff --git a/src/tm_devices/commands/ss3706a_commands.py b/src/tm_devices/commands/ss3706a_commands.py index 9e72e246..723a8c1a 100644 --- a/src/tm_devices/commands/ss3706a_commands.py +++ b/src/tm_devices/commands/ss3706a_commands.py @@ -6,9 +6,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3pief_ss.beeper import Beeper from .gen_e3pief_ss.buffervar import Buffervar @@ -1168,22 +1169,16 @@ class SS3706AMixin: - ``.commands``: The SS3706A commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, TSPControl) else None - self._command_argument_constants = SS3706ACommandConstants() - self._commands = SS3706ACommands(device) - - @property - def command_argument_constants(self) -> SS3706ACommandConstants: + @cached_property + def command_argument_constants(self) -> SS3706ACommandConstants: # pylint: disable=no-self-use """Return the SS3706A command argument constants. This provides access to all the string constants which can be used as arguments for SS3706A commands. """ - return self._command_argument_constants + return SS3706ACommandConstants() - @property + @cached_property def commands(self) -> SS3706ACommands: """Return the SS3706A commands. @@ -1240,4 +1235,5 @@ def commands(self) -> SS3706ACommands: - ``.userstring``: The ``userstring`` command tree. - ``.waitcomplete()``: The ``waitcomplete()`` function. """ - return self._commands + device = self if isinstance(self, TSPControl) else None + return SS3706ACommands(device) diff --git a/src/tm_devices/commands/tekscopepc_commands.py b/src/tm_devices/commands/tekscopepc_commands.py index 25f7b2bd..731cbd01 100644 --- a/src/tm_devices/commands/tekscopepc_commands.py +++ b/src/tm_devices/commands/tekscopepc_commands.py @@ -5,9 +5,10 @@ Please report an issue if one is found. """ -from typing import Any, Dict, Optional +from typing import Dict, Optional from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_c3g61_tekscopepc.actonevent import Actonevent from .gen_c3g61_tekscopepc.bus import Bus @@ -3083,22 +3084,16 @@ class TekScopePCMixin: - ``.commands``: The TekScopePC commands. """ - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - device = self if isinstance(self, PIControl) else None - self._command_argument_constants = TekScopePCCommandConstants() - self._commands = TekScopePCCommands(device) - - @property - def command_argument_constants(self) -> TekScopePCCommandConstants: + @cached_property + def command_argument_constants(self) -> TekScopePCCommandConstants: # pylint: disable=no-self-use """Return the TekScopePC command argument constants. This provides access to all the string constants which can be used as arguments for TekScopePC commands. """ - return self._command_argument_constants + return TekScopePCCommandConstants() - @property + @cached_property def commands(self) -> TekScopePCCommands: """Return the TekScopePC commands. @@ -3185,4 +3180,5 @@ def commands(self) -> TekScopePCCommands: - ``.wavfrm``: The ``WAVFrm`` command. - ``.wfmoutpre``: The ``WFMOutpre`` command. """ - return self._commands + device = self if isinstance(self, PIControl) else None + return TekScopePCCommands(device) diff --git a/src/tm_devices/drivers/afgs/afg31k.py b/src/tm_devices/drivers/afgs/afg31k.py index b11d0a3e..2c9a4c4a 100644 --- a/src/tm_devices/drivers/afgs/afg31k.py +++ b/src/tm_devices/drivers/afgs/afg31k.py @@ -2,8 +2,6 @@ from typing import Optional, Tuple -import pyvisa as visa - from tm_devices.drivers.afgs.afg3k import ( AFG, AFGSourceDeviceConstants, @@ -11,7 +9,6 @@ ParameterBounds, SignalGeneratorFunctionsAFG, ) -from tm_devices.helpers import DeviceConfigEntry class AFG31K(AFG): @@ -31,23 +28,6 @@ class AFG31K(AFG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AFG31K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/afgs/afg3k.py b/src/tm_devices/drivers/afgs/afg3k.py index bef4f1d6..5f07b6a4 100644 --- a/src/tm_devices/drivers/afgs/afg3k.py +++ b/src/tm_devices/drivers/afgs/afg3k.py @@ -2,8 +2,6 @@ from typing import Optional, Tuple -import pyvisa as visa - from tm_devices.commands import AFG3KMixin from tm_devices.drivers.afgs.afg import ( AFG, @@ -12,7 +10,6 @@ ParameterBounds, SignalGeneratorFunctionsAFG, ) -from tm_devices.helpers import DeviceConfigEntry class AFG3K(AFG3KMixin, AFG): @@ -29,23 +26,6 @@ class AFG3K(AFG3KMixin, AFG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AFG3K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Private Methods diff --git a/src/tm_devices/drivers/afgs/afg3kb.py b/src/tm_devices/drivers/afgs/afg3kb.py index 51a49b78..6308fa23 100644 --- a/src/tm_devices/drivers/afgs/afg3kb.py +++ b/src/tm_devices/drivers/afgs/afg3kb.py @@ -1,35 +1,15 @@ """AFG3KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import AFG3KBMixin from tm_devices.drivers.afgs.afg3k import AFG3K -from tm_devices.helpers import DeviceConfigEntry -class AFG3KB(AFG3KBMixin, AFG3K): # pyright: ignore[reportIncompatibleMethodOverride] +class AFG3KB(AFG3KBMixin, AFG3K): # pyright: ignore[reportIncompatibleVariableOverride] """AFG3KB device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AFG3KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/afgs/afg3kc.py b/src/tm_devices/drivers/afgs/afg3kc.py index 992aff63..3b4dfeb7 100644 --- a/src/tm_devices/drivers/afgs/afg3kc.py +++ b/src/tm_devices/drivers/afgs/afg3kc.py @@ -2,38 +2,18 @@ from typing import Tuple -import pyvisa as visa - from tm_devices.commands import AFG3KCMixin from tm_devices.drivers.afgs.afg3kb import ( AFG3KB, ) -from tm_devices.helpers import DeviceConfigEntry -class AFG3KC(AFG3KCMixin, AFG3KB): # pyright: ignore[reportIncompatibleMethodOverride] +class AFG3KC(AFG3KCMixin, AFG3KB): # pyright: ignore[reportIncompatibleVariableOverride] """AFG3KC device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AFG3KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/awgs/awg5200.py b/src/tm_devices/drivers/awgs/awg5200.py index f5b99b84..25b14160 100644 --- a/src/tm_devices/drivers/awgs/awg5200.py +++ b/src/tm_devices/drivers/awgs/awg5200.py @@ -4,8 +4,6 @@ from types import MappingProxyType from typing import cast, Dict, Literal, Optional, Tuple -import pyvisa as visa - from tm_devices.commands import AWG5200Mixin from tm_devices.drivers.awgs.awg import ( AWG, @@ -14,11 +12,10 @@ ParameterBounds, ) from tm_devices.drivers.device import family_base_class +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers import ( - DeviceConfigEntry, SASSetWaveformFileTypes, ) -from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import ( SignalGeneratorFunctionsAWG, SignalGeneratorOutputPaths5200, @@ -44,23 +41,6 @@ class AWG5200(AWG5200Mixin, AWG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG5200 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/awgs/awg5k.py b/src/tm_devices/drivers/awgs/awg5k.py index d92444f2..741a9b50 100644 --- a/src/tm_devices/drivers/awgs/awg5k.py +++ b/src/tm_devices/drivers/awgs/awg5k.py @@ -3,8 +3,6 @@ from types import MappingProxyType from typing import Dict, Optional, Tuple -import pyvisa as visa - from tm_devices.commands import AWG5KMixin from tm_devices.drivers.awgs.awg import ( AWG, @@ -13,7 +11,6 @@ ParameterBounds, ) from tm_devices.drivers.device import family_base_class -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import SignalGeneratorOutputPathsBase @@ -31,23 +28,6 @@ class AWG5K(AWG5KMixin, AWG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG5K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/awgs/awg5kb.py b/src/tm_devices/drivers/awgs/awg5kb.py index 86188fca..5e4ef8d1 100644 --- a/src/tm_devices/drivers/awgs/awg5kb.py +++ b/src/tm_devices/drivers/awgs/awg5kb.py @@ -1,9 +1,6 @@ """AWG5KB device driver module.""" -import pyvisa as visa - from tm_devices.drivers.awgs.awg5k import AWG5K -from tm_devices.helpers import DeviceConfigEntry class AWG5KB(AWG5K): @@ -12,20 +9,3 @@ class AWG5KB(AWG5K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG5KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/awgs/awg5kc.py b/src/tm_devices/drivers/awgs/awg5kc.py index f0edf295..375fef7f 100644 --- a/src/tm_devices/drivers/awgs/awg5kc.py +++ b/src/tm_devices/drivers/awgs/awg5kc.py @@ -1,32 +1,12 @@ """AWG5KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import AWG5KCMixin from tm_devices.drivers.awgs.awg5kb import AWG5KB -from tm_devices.helpers import DeviceConfigEntry -class AWG5KC(AWG5KCMixin, AWG5KB): # pyright: ignore[reportIncompatibleMethodOverride] +class AWG5KC(AWG5KCMixin, AWG5KB): # pyright: ignore[reportIncompatibleVariableOverride] """AWG5KC device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG5KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/awgs/awg70ka.py b/src/tm_devices/drivers/awgs/awg70ka.py index 80fc6490..34e96bc1 100644 --- a/src/tm_devices/drivers/awgs/awg70ka.py +++ b/src/tm_devices/drivers/awgs/awg70ka.py @@ -4,8 +4,6 @@ from types import MappingProxyType from typing import Dict, Literal, Optional, Tuple -import pyvisa as visa - from tm_devices.commands import AWG70KAMixin from tm_devices.drivers.awgs.awg import ( AWG, @@ -14,11 +12,10 @@ ParameterBounds, ) from tm_devices.drivers.device import family_base_class +from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers import ( - DeviceConfigEntry, SASSetWaveformFileTypes, ) -from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import SignalGeneratorOutputPathsBase @@ -38,23 +35,6 @@ class AWG70KA(AWG70KAMixin, AWG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG70KA device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/awgs/awg70kb.py b/src/tm_devices/drivers/awgs/awg70kb.py index 591d6ece..453ae0c5 100644 --- a/src/tm_devices/drivers/awgs/awg70kb.py +++ b/src/tm_devices/drivers/awgs/awg70kb.py @@ -1,32 +1,12 @@ """AWG70KB device driver module.""" -import pyvisa as visa - from tm_devices.commands import AWG70KBMixin from tm_devices.drivers.awgs.awg70ka import AWG70KA -from tm_devices.helpers import DeviceConfigEntry -class AWG70KB(AWG70KBMixin, AWG70KA): # pyright: ignore[reportIncompatibleMethodOverride] +class AWG70KB(AWG70KBMixin, AWG70KA): # pyright: ignore[reportIncompatibleVariableOverride] """AWG70KB device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG70KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/awgs/awg7k.py b/src/tm_devices/drivers/awgs/awg7k.py index a53d1c24..937b2440 100644 --- a/src/tm_devices/drivers/awgs/awg7k.py +++ b/src/tm_devices/drivers/awgs/awg7k.py @@ -3,8 +3,6 @@ from types import MappingProxyType from typing import cast, Dict, Optional, Tuple -import pyvisa as visa - from tm_devices.commands import AWG7KMixin from tm_devices.drivers.awgs.awg import ( AWG, @@ -17,7 +15,6 @@ AWG5KSourceChannel, ) from tm_devices.drivers.device import family_base_class -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from tm_devices.helpers.enums import SignalGeneratorOutputPathsBase @@ -35,23 +32,6 @@ class AWG7K(AWG7KMixin, AWG): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG7K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/awgs/awg7kb.py b/src/tm_devices/drivers/awgs/awg7kb.py index 91b5b665..26fe298f 100644 --- a/src/tm_devices/drivers/awgs/awg7kb.py +++ b/src/tm_devices/drivers/awgs/awg7kb.py @@ -1,9 +1,6 @@ """AWG7KB device driver module.""" -import pyvisa as visa - from tm_devices.drivers.awgs.awg7k import AWG7K -from tm_devices.helpers import DeviceConfigEntry class AWG7KB(AWG7K): @@ -12,20 +9,3 @@ class AWG7KB(AWG7K): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG7KB device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/awgs/awg7kc.py b/src/tm_devices/drivers/awgs/awg7kc.py index 962d1589..65e5e999 100644 --- a/src/tm_devices/drivers/awgs/awg7kc.py +++ b/src/tm_devices/drivers/awgs/awg7kc.py @@ -1,35 +1,15 @@ """AWG7KC device driver module.""" -import pyvisa as visa - from tm_devices.commands import AWG7KCMixin from tm_devices.drivers.awgs.awg7kb import AWG7KB -from tm_devices.helpers import DeviceConfigEntry -class AWG7KC(AWG7KCMixin, AWG7KB): # pyright: ignore[reportIncompatibleMethodOverride] +class AWG7KC(AWG7KCMixin, AWG7KB): # pyright: ignore[reportIncompatibleVariableOverride] """AWG7KC device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create an AWG7KC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py index e97443fe..827b7cfb 100644 --- a/src/tm_devices/drivers/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/data_acquisition_systems/daq6510.py @@ -2,8 +2,6 @@ from typing import Tuple -import pyvisa as visa - from tm_devices.commands import DAQ6510Mixin from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( @@ -16,7 +14,6 @@ DataAcquisitionSystem, ) from tm_devices.drivers.device import family_base_class -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @@ -29,22 +26,6 @@ class DAQ6510(DAQ6510Mixin, CommonTSPErrorCheckMixin, TSPControl, DataAcquisitio ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DAQ6510 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index f6ec9e6b..3ac917ac 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -82,9 +82,7 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: self._reboot_quiet_period = 0 self._series = self.__class__.__name__ - # These are private attributes to be overwritten by generated drivers - self._commands: Any = NotImplemented - self._command_argument_constants: Any = NotImplemented + # These private attributes are used by the auto-generated commands subpackage self._command_verification_enabled = False self._command_syntax_enabled = False @@ -178,10 +176,12 @@ def alias(self) -> str: """Return the alias if it exists, otherwise an empty string.""" return self._config_entry.alias if self._config_entry.alias is not None else "" - @property + @cached_property def command_argument_constants(self) -> Any: """Return the device command argument constants.""" - return self._command_argument_constants + raise NotImplementedError( + f"The {self.__class__.__name__} driver does not have a Python API for its commands yet." + ) @property def command_syntax_enabled(self) -> bool: @@ -211,10 +211,12 @@ def command_verification_enabled(self) -> bool: """ return self._command_verification_enabled - @property + @cached_property def commands(self) -> Any: """Return the device commands.""" - return self._commands + raise NotImplementedError( + f"The {self.__class__.__name__} driver does not have a Python API for its commands yet." + ) @cached_property def config_entry(self) -> DeviceConfigEntry: diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py index 77c645bb..fd1edbbf 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm7512.py @@ -1,9 +1,6 @@ """DMM7512 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.digital_multimeters.dmm75xx.dmm75xx import DMM75xx -from tm_devices.helpers import DeviceConfigEntry class DMM7512(DMM75xx): @@ -12,23 +9,6 @@ class DMM7512(DMM75xx): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DMM7512 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py index ef4aff12..9d250751 100644 --- a/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py +++ b/src/tm_devices/drivers/digital_multimeters/dmm75xx/dmm75xx.py @@ -3,8 +3,6 @@ from abc import ABC from typing import Tuple -import pyvisa as visa - from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, @@ -14,7 +12,6 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.digital_multimeters.digital_multimeter import DigitalMultimeter -from tm_devices.helpers import DeviceConfigEntry @family_base_class @@ -26,23 +23,6 @@ class DMM75xx(CommonTSPErrorCheckMixin, TSPControl, DigitalMultimeter, ABC): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DMM75xx device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py index 63f7d1d3..25946033 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2220.py @@ -1,9 +1,6 @@ """PSU2220 device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 -from tm_devices.helpers import DeviceConfigEntry class PSU2220(PSU2200): @@ -12,20 +9,3 @@ class PSU2220(PSU2200): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2220 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py index cf9cc1d3..d4c623c1 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2230.py @@ -1,9 +1,6 @@ """PSU2230 device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 -from tm_devices.helpers import DeviceConfigEntry class PSU2230(PSU2200): @@ -12,20 +9,3 @@ class PSU2230(PSU2200): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2230 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py index 64bd372c..f75ef709 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231.py @@ -1,9 +1,6 @@ """PSU2231 device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 -from tm_devices.helpers import DeviceConfigEntry class PSU2231(PSU2200): @@ -12,20 +9,3 @@ class PSU2231(PSU2200): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2231 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py index e623ac53..640c9dbb 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2231a.py @@ -1,9 +1,6 @@ """PSU2231A device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2231 import PSU2231 -from tm_devices.helpers import DeviceConfigEntry class PSU2231A(PSU2231): @@ -12,20 +9,3 @@ class PSU2231A(PSU2231): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2231A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py index 9b8ef206..edbc03c6 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2280.py @@ -1,9 +1,6 @@ """PSU2280 device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 -from tm_devices.helpers import DeviceConfigEntry class PSU2280(PSU2200): @@ -12,23 +9,6 @@ class PSU2280(PSU2200): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2280 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py b/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py index b9fdd80c..4e10ad1e 100644 --- a/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py +++ b/src/tm_devices/drivers/power_supplies/psu22xx/psu2281.py @@ -1,9 +1,6 @@ """PSU2281 device driver.""" -import pyvisa as visa - from tm_devices.drivers.power_supplies.psu22xx.psu2200 import PSU2200 -from tm_devices.helpers import DeviceConfigEntry class PSU2281(PSU2200): @@ -12,20 +9,3 @@ class PSU2281(PSU2200): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a PSU2281 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/scopes/tekscope/lpd6.py b/src/tm_devices/drivers/scopes/tekscope/lpd6.py index 9bf2c0f7..d3731462 100644 --- a/src/tm_devices/drivers/scopes/tekscope/lpd6.py +++ b/src/tm_devices/drivers/scopes/tekscope/lpd6.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 -class LPD6(LPD6Mixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverride] +class LPD6(LPD6Mixin, MSO6): # pyright: ignore[reportIncompatibleVariableOverride] """LPD6 device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso2.py b/src/tm_devices/drivers/scopes/tekscope/mso2.py index b094c63e..adfe019d 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso2.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso2.py @@ -10,7 +10,7 @@ from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 -class MSO2(MSO2Mixin, TekScope): +class MSO2(MSO2Mixin, TekScope): # pyright: ignore[reportIncompatibleVariableOverride] """MSO2 device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso4.py b/src/tm_devices/drivers/scopes/tekscope/mso4.py index ee0d9385..1e79f9e4 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso4.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -class MSO4(MSO4Mixin, TekScope): +class MSO4(MSO4Mixin, TekScope): # pyright: ignore[reportIncompatibleVariableOverride] """MSO4 device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso4b.py b/src/tm_devices/drivers/scopes/tekscope/mso4b.py index f22f2b94..ef27312a 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso4b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso4b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.mso4 import MSO4 -class MSO4B(MSO4BMixin, MSO4): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO4B(MSO4BMixin, MSO4): # pyright: ignore[reportIncompatibleVariableOverride] """MSO4B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5.py b/src/tm_devices/drivers/scopes/tekscope/mso5.py index fec452bf..472db74b 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -class MSO5(MSO5Mixin, TekScope): +class MSO5(MSO5Mixin, TekScope): # pyright: ignore[reportIncompatibleVariableOverride] """MSO5 device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5b.py b/src/tm_devices/drivers/scopes/tekscope/mso5b.py index 061e658b..dcc33ce1 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 -class MSO5B(MSO5BMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO5B(MSO5BMixin, MSO5): # pyright: ignore[reportIncompatibleVariableOverride] """MSO5B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso5lp.py b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py index f218cdf3..31f51533 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso5lp.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso5lp.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.mso5 import MSO5 -class MSO5LP(MSO5LPMixin, MSO5): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO5LP(MSO5LPMixin, MSO5): # pyright: ignore[reportIncompatibleVariableOverride] """MSO5LP device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso6.py b/src/tm_devices/drivers/scopes/tekscope/mso6.py index 55969bc6..d3cefcbc 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso6.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.tekscope import TekScope -class MSO6(MSO6Mixin, TekScope): +class MSO6(MSO6Mixin, TekScope): # pyright: ignore[reportIncompatibleVariableOverride] """MSO6 device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/mso6b.py b/src/tm_devices/drivers/scopes/tekscope/mso6b.py index 2dd0ae9a..cff4765c 100644 --- a/src/tm_devices/drivers/scopes/tekscope/mso6b.py +++ b/src/tm_devices/drivers/scopes/tekscope/mso6b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope.mso6 import MSO6 -class MSO6B(MSO6BMixin, MSO6): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO6B(MSO6BMixin, MSO6): # pyright: ignore[reportIncompatibleVariableOverride] """MSO6B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/scopes/tekscope/tekscope.py index 0859009d..55e96767 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscope.py @@ -186,7 +186,7 @@ def channel(self) -> "MappingProxyType[str, TekScopeChannel]": self.set_and_check(":VERBose", old_pi_verbosity) return MappingProxyType(channel_map) - @property + @cached_property def commands( self, ) -> Union[ @@ -200,7 +200,7 @@ def commands( MSO6BCommands, ]: """Return the device commands.""" - return self._commands # pragma: no cover + return super().commands # pragma: no cover @cached_property def hostname(self) -> str: diff --git a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py index d6165b47..4d1554c7 100644 --- a/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py +++ b/src/tm_devices/drivers/scopes/tekscope/tekscopepc.py @@ -2,38 +2,19 @@ import warnings -import pyvisa as visa - from tm_devices.commands import TekScopePCMixin from tm_devices.drivers.device import family_base_class from tm_devices.drivers.scopes.tekscope.tekscope import AbstractTekScope -from tm_devices.helpers import DeviceConfigEntry from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 @family_base_class -class TekScopePC(TekScopePCMixin, AbstractTekScope): # pyright: ignore[reportIncompatibleMethodOverride] +class TekScopePC(TekScopePCMixin, AbstractTekScope): # pyright: ignore[reportIncompatibleVariableOverride] """TekScopePC device driver.""" ################################################################################################ # Magic Methods ################################################################################################ - def __init__( - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a TekScopePC device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py index 54a45bc0..1f1b0996 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/dpo2kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_2k.dpo2k import DPO2K -class DPO2KB(DPO2KBMixin, DPO2K): # pyright: ignore[reportIncompatibleMethodOverride] +class DPO2KB(DPO2KBMixin, DPO2K): # pyright: ignore[reportIncompatibleVariableOverride] """DPO2KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py index 8396bf43..48b23753 100644 --- a/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_2k/mso2kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_2k.mso2k import MSO2K -class MSO2KB(MSO2KBMixin, MSO2K): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO2KB(MSO2KBMixin, MSO2K): # pyright: ignore[reportIncompatibleVariableOverride] """MSO2KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py index f62fceaf..0c92dfb0 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/dpo4kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_3k_4k.dpo4k import DPO4K -class DPO4KB(DPO4KBMixin, DPO4K): # pyright: ignore[reportIncompatibleMethodOverride] +class DPO4KB(DPO4KBMixin, DPO4K): # pyright: ignore[reportIncompatibleVariableOverride] """DPO4KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py index 4e5822a9..c61546f3 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4k import MDO4K -class MDO4KB(MDO4KBMixin, MDO4K): # pyright: ignore[reportIncompatibleMethodOverride] +class MDO4KB(MDO4KBMixin, MDO4K): # pyright: ignore[reportIncompatibleVariableOverride] """MDO4KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py index 2950eea9..16c4af5a 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mdo4kc.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_3k_4k.mdo4kb import MDO4KB -class MDO4KC(MDO4KCMixin, MDO4KB): # pyright: ignore[reportIncompatibleMethodOverride] +class MDO4KC(MDO4KCMixin, MDO4KB): # pyright: ignore[reportIncompatibleVariableOverride] """MDO4KC device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py index dd7dc1cd..e294d099 100644 --- a/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_3k_4k/mso4kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_3k_4k.mso4k import MSO4K -class MSO4KB(MSO4KBMixin, MSO4K): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO4KB(MSO4KBMixin, MSO4K): # pyright: ignore[reportIncompatibleVariableOverride] """MSO4KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py index 7c1e2405..29ef0d45 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo5kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo5k import DPO5K -class DPO5KB(DPO5KBMixin, DPO5K): # pyright: ignore[reportIncompatibleMethodOverride] +class DPO5KB(DPO5KBMixin, DPO5K): # pyright: ignore[reportIncompatibleVariableOverride] """DPO5KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py index 2d183e04..7cf9fdf4 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70k.py @@ -1,9 +1,6 @@ """DPO70K device driver module.""" -import pyvisa as visa - from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class DPO70K(TekScope5k7k70k): @@ -12,23 +9,6 @@ class DPO70K(TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DPO70K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py index 9589feaf..150c0465 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo70kd.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo70kc import DPO70KC -class DPO70KD(DPO70KDMixin, DPO70KC): # pyright: ignore[reportIncompatibleMethodOverride] +class DPO70KD(DPO70KDMixin, DPO70KC): # pyright: ignore[reportIncompatibleVariableOverride] """DPO70KD device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py index ba32ea8d..c36a3ffa 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dpo7kc.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_5k_7k_70k.dpo7k import DPO7K -class DPO7KC(DPO7KCMixin, DPO7K): # pyright: ignore[reportIncompatibleMethodOverride] +class DPO7KC(DPO7KCMixin, DPO7K): # pyright: ignore[reportIncompatibleVariableOverride] """DPO7KC device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py index 7a6bb632..625939c9 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/dsa70k.py @@ -1,9 +1,6 @@ """DSA70K device driver module.""" -import pyvisa as visa - from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class DSA70K(TekScope5k7k70k): @@ -12,23 +9,6 @@ class DSA70K(TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a DSA70K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py index 697e9dd4..8ba82b47 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso5kb.py @@ -4,7 +4,7 @@ from tm_devices.drivers.scopes.tekscope_5k_7k_70k.mso5k import MSO5K -class MSO5KB(MSO5KBMixin, MSO5K): # pyright: ignore[reportIncompatibleMethodOverride] +class MSO5KB(MSO5KBMixin, MSO5K): # pyright: ignore[reportIncompatibleVariableOverride] """MSO5KB device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py index 24e8f42c..1a808b51 100644 --- a/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py +++ b/src/tm_devices/drivers/scopes/tekscope_5k_7k_70k/mso70k.py @@ -1,9 +1,6 @@ """MSO70K device driver module.""" -import pyvisa as visa - from tm_devices.drivers.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -from tm_devices.helpers import DeviceConfigEntry class MSO70K(TekScope5k7k70k): @@ -12,23 +9,6 @@ class MSO70K(TekScope5k7k70k): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a MSO70K device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) ################################################################################################ # Properties diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py index c79dcdcb..d4422220 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2400.py @@ -1,9 +1,6 @@ """SMU Model 2400 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard -from tm_devices.helpers import DeviceConfigEntry class SMU2400(SMU24xxStandard): @@ -12,20 +9,3 @@ class SMU2400(SMU24xxStandard): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2400 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py index 0af75b40..d2015f8b 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2401.py @@ -1,9 +1,6 @@ """SMU Model 2401 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard -from tm_devices.helpers import DeviceConfigEntry class SMU2401(SMU24xxStandard): @@ -12,20 +9,3 @@ class SMU2401(SMU24xxStandard): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2401 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py index a7aec242..192470a5 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu2410.py @@ -1,9 +1,6 @@ """SMU Model 2410 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu24xx.smu24xx_standard import SMU24xxStandard -from tm_devices.helpers import DeviceConfigEntry class SMU2410(SMU24xxStandard): @@ -12,20 +9,3 @@ class SMU2410(SMU24xxStandard): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2410 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py index 67a79fb5..a4e58c1b 100644 --- a/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py +++ b/src/tm_devices/drivers/source_measure_units/smu24xx/smu24xx_interactive.py @@ -1,14 +1,8 @@ """SMU24xxInteractive device driver module.""" from abc import ABC -from typing import Tuple, Union +from typing import Tuple -from tm_devices.commands import ( - SMU2450Commands, - SMU2460Commands, - SMU2461Commands, - SMU2470Commands, -) from tm_devices.driver_mixins.device_control import TSPControl from tm_devices.driver_mixins.shared_implementations.common_tsp_error_check_mixin import ( CommonTSPErrorCheckMixin, @@ -39,13 +33,6 @@ def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"OUTPUT{x+1}" for x in range(self.total_channels)) - @property - def commands( - self, - ) -> Union[SMU2450Commands, SMU2460Commands, SMU2461Commands, SMU2470Commands]: - """Return the device commands.""" - return self._commands # pragma: no cover - @property def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py index 88c9accd..d439de45 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601a.py @@ -1,9 +1,6 @@ """SMU Model 2601A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2601A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2601A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2601A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py index 98562e16..a4951fca 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2601B(SMU2601BMixin, SMU26xxB): +class SMU2601B(SMU2601BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2601B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py index c7e2f473..544a2212 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2601b_pulse.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu2601b import SMU2601B -class SMU2601BPulse(SMU2601BPulseMixin, SMU2601B): # pyright: ignore[reportIncompatibleMethodOverride] +class SMU2601BPulse(SMU2601BPulseMixin, SMU2601B): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2601B-PULSE device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py index abee7f15..2788a551 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2602a.py @@ -1,9 +1,6 @@ """SMU Model 2602A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2602A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2602A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2602A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py index e8beab0a..493b6739 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604a.py @@ -1,9 +1,6 @@ """SMU Model 2604A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2604A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2604A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2604A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py index f32b96c5..7645fbf3 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2604b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2604B(SMU2604BMixin, SMU26xxB): +class SMU2604B(SMU2604BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2604B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py index 0cf95366..8e922ca0 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2606b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2606B(SMU2606BMixin, SMU26xxB): +class SMU2606B(SMU2606BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2606B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py index 5b488ad6..2cbaa548 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611a.py @@ -1,9 +1,6 @@ """SMU Model 2611A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2611A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2611A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2611A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py index 17ab7af7..50d89897 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2611b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2611B(SMU2611BMixin, SMU26xxB): +class SMU2611B(SMU2611BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2611B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py index 5ca02297..735950d6 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612a.py @@ -1,9 +1,6 @@ """SMU Model 2612A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2612A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2612A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2612A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py index 8f5ad76e..6b0b1cc5 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2612b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2612B(SMU2612BMixin, SMU26xxB): +class SMU2612B(SMU2612BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2612B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py index 04df6ae8..f951e74e 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614a.py @@ -1,9 +1,6 @@ """SMU Model 2614A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2614A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2614A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2614A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py index 88a2c4bd..532c8e42 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2614b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2614B(SMU2614BMixin, SMU26xxB): +class SMU2614B(SMU2614BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2614B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py index 5b2634f5..f1c4e992 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634a.py @@ -1,9 +1,6 @@ """SMU Model 2634A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2634A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2634A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2634A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py index 5b2710b8..13609cff 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2634b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2634B(SMU2634BMixin, SMU26xxB): +class SMU2634B(SMU2634BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2634B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py index a38dfc2f..10247d23 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635a.py @@ -1,9 +1,6 @@ """SMU Model 2635A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2635A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2635A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2635A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py index 19f084f2..98086251 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2635b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2635B(SMU2635BMixin, SMU26xxB): +class SMU2635B(SMU2635BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2635B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py index fd589c00..410cffad 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636a.py @@ -1,9 +1,6 @@ """SMU Model 2636A device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu26xx.smu26xxa import SMU26xxA -from tm_devices.helpers import DeviceConfigEntry class SMU2636A(SMU26xxA): @@ -12,20 +9,3 @@ class SMU2636A(SMU26xxA): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU2636A device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py index 87f7021b..2ae81bb9 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2636b.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu26xxb import SMU26xxB -class SMU2636B(SMU2636BMixin, SMU26xxB): +class SMU2636B(SMU2636BMixin, SMU26xxB): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2636B device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py index 81b6d43a..43de0cf3 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2651a.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA -class SMU2651A(SMU2651AMixin, SMU265xA): +class SMU2651A(SMU2651AMixin, SMU265xA): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2651A device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py index 91440799..68745dd7 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu2657a.py @@ -4,7 +4,7 @@ from tm_devices.drivers.source_measure_units.smu26xx.smu265xa import SMU265xA -class SMU2657A(SMU2657AMixin, SMU265xA): +class SMU2657A(SMU2657AMixin, SMU265xA): # pyright: ignore[reportIncompatibleVariableOverride] """SMU2657A device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py index 6c323d29..8d3d5b02 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu265xa.py @@ -1,9 +1,7 @@ """SMU Model 265xA device driver module.""" from abc import ABC -from typing import Union -from tm_devices.commands import SMU2651ACommands, SMU2657ACommands from tm_devices.drivers.source_measure_units.smu26xx.smu26xx import SMU26xx @@ -13,9 +11,3 @@ class SMU265xA(SMU26xx, ABC): ################################################################################################ # Properties ################################################################################################ - @property - def commands( - self, - ) -> Union[SMU2651ACommands, SMU2657ACommands]: - """Return the device commands.""" - return self._commands # pragma: no cover diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py index b6425196..690230b6 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py @@ -51,7 +51,7 @@ def total_channels(self) -> int: # Grab the total channel count based on whether the last digit in the model is even/odd return 2 if (not int([x for x in self.model if x.isdigit()][-1]) % 2) else 1 - @property + @cached_property def commands( self, ) -> Union[ @@ -70,7 +70,7 @@ def commands( SMU2657ACommands, ]: """Return the device commands.""" - return self._commands # pragma: no cover + return super().commands ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py index 9db7ccde..daae4484 100644 --- a/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py +++ b/src/tm_devices/drivers/source_measure_units/smu26xx/smu26xxb.py @@ -1,21 +1,7 @@ """SMU Model 26xxB device driver module.""" from abc import ABC -from typing import Union -from tm_devices.commands import ( - SMU2601BCommands, - SMU2601BPulseCommands, - SMU2602BCommands, - SMU2604BCommands, - SMU2606BCommands, - SMU2611BCommands, - SMU2612BCommands, - SMU2614BCommands, - SMU2634BCommands, - SMU2635BCommands, - SMU2636BCommands, -) from tm_devices.drivers.source_measure_units.smu26xx.smu26xx import SMU26xx @@ -25,21 +11,3 @@ class SMU26xxB(SMU26xx, ABC): ################################################################################################ # Properties ################################################################################################ - @property - def commands( - self, - ) -> Union[ - SMU2601BCommands, - SMU2602BCommands, - SMU2604BCommands, - SMU2606BCommands, - SMU2611BCommands, - SMU2612BCommands, - SMU2614BCommands, - SMU2634BCommands, - SMU2635BCommands, - SMU2636BCommands, - SMU2601BPulseCommands, - ]: - """Return the device commands.""" - return self._commands # pragma: no cover diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py index bed35a8a..1f5d2103 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6430.py @@ -1,9 +1,6 @@ """SMU6430 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx -from tm_devices.helpers import DeviceConfigEntry class SMU6430(SMU6xxx): @@ -12,20 +9,3 @@ class SMU6430(SMU6xxx): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU6430 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py index c23a58e4..456124c1 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6514.py @@ -1,9 +1,6 @@ """SMU6514 device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx -from tm_devices.helpers import DeviceConfigEntry class SMU6514(SMU6xxx): @@ -12,20 +9,3 @@ class SMU6514(SMU6xxx): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU6514 device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py index d315e1bd..3b5f3d44 100644 --- a/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py +++ b/src/tm_devices/drivers/source_measure_units/smu60xx/smu6517b.py @@ -1,9 +1,6 @@ """SMU6517B device driver module.""" -import pyvisa as visa - from tm_devices.drivers.source_measure_units.smu60xx.smu6xxx import SMU6xxx -from tm_devices.helpers import DeviceConfigEntry class SMU6517B(SMU6xxx): @@ -12,20 +9,3 @@ class SMU6517B(SMU6xxx): ################################################################################################ # Magic Methods ################################################################################################ - def __init__( # pylint: disable=useless-parent-delegation - self, - config_entry: DeviceConfigEntry, - verbose: bool, - visa_resource: visa.resources.MessageBasedResource, - default_visa_timeout: int, - ) -> None: - """Create a SMU6517B device. - - Args: - config_entry: A config entry object parsed by the DMConfigParser. - verbose: A boolean indicating if verbose output should be printed. - visa_resource: The VISA resource object. - default_visa_timeout: The default VISA timeout value in milliseconds. - """ - # NOTE: This method must be defined for the documentation to properly generate - super().__init__(config_entry, verbose, visa_resource, default_visa_timeout) diff --git a/tests/test_all_device_drivers.py b/tests/test_all_device_drivers.py index 24328226..e9819d9d 100644 --- a/tests/test_all_device_drivers.py +++ b/tests/test_all_device_drivers.py @@ -1,6 +1,8 @@ # pyright: reportPrivateUsage=none """Verify that all device drivers and connection types can be used.""" +import contextlib + from collections import Counter from typing import Generator, List, Optional @@ -165,12 +167,11 @@ def test_device_driver( ) device.cleanup() assert not device.has_errors() - assert device.commands is not None - assert device.command_argument_constants is not None created_models_list.append(device.__class__.__name__) created_connections_list.append(device.connection_type) - if device.commands != NotImplemented: - drivers_with_auto_generated_commands.append(device.__class__.__name__) + with contextlib.suppress(NotImplementedError): + if device.commands != NotImplemented: + drivers_with_auto_generated_commands.append(device.__class__.__name__) @pytest.mark.order(2) diff --git a/tests/test_margin_testers.py b/tests/test_margin_testers.py index 81781392..c588894c 100644 --- a/tests/test_margin_testers.py +++ b/tests/test_margin_testers.py @@ -48,8 +48,10 @@ def test_margin_tester(tmt4: MarginTester, device_manager: DeviceManager) -> Non assert id(device_manager.get_mt(number_or_alias="tmt4")) == id(tmt4) assert id(device_manager.get_mt(number_or_alias=tmt4.device_number)) == id(tmt4) - assert tmt4.commands == NotImplemented - assert tmt4.command_argument_constants == NotImplemented + with pytest.raises(NotImplementedError): + _ = tmt4.commands + with pytest.raises(NotImplementedError): + _ = tmt4.command_argument_constants assert tmt4.series == "TMT4" assert tmt4.adapter == MOCK_ABOUT_INFO["adapter"] From e9c698d35f99f8a8ed9961c0e4e32aac44d05440 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 14:34:43 -0700 Subject: [PATCH 35/52] docs: Update the changelog --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1889eae..7820d6ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,15 +32,15 @@ very minor ways. The primary impact to the drivers was simply the removal of pre deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. However, please read through all changes to be aware of what may potentially impact your code. -- BREAKING CHANGE: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). -- BREAKING CHANGE: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. +- minor breaking change: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). +- minor breaking change: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. -- BREAKING CHANGE: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. -- BREAKING CHANGE: Converted all family base classes to inherit from the device control mixins. +- minor breaking change: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. +- minor breaking change: Converted all family base classes to inherit from the device control mixins. - BREAKING CHANGE: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. - BREAKING CHANGE: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. -- BREAKING CHANGE: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. +- minor breaking change: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. - Updated the auto-generated command mixin classes to no longer use an `__init__()` method to enable the driver API documentation to render in a more usable way. ### Removed From 5f7812ef399bc9f1cb82051170f366ced0e8b168 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 14:41:25 -0700 Subject: [PATCH 36/52] refactor: Fixes after pulling latest main branch --- CHANGELOG.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7820d6ca..d44085c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Things to be included in the next release go here. ### Added +- Added USBTMC Support for the AFG31K and MDO3 drivers. - Testing/linting on Python 3.13. - Added the `get_errors()` method to the `Device` class to enable easy access to the current error code and messages on any device. - Added more details to the Architectural Overview page of the documentation as well as highlighting to the device driver diagram on the page. @@ -56,10 +57,6 @@ However, please read through all changes to be aware of what may potentially imp --- -### Added - -- Added USB Support for AFG31K and MDO3 models. - ## v2.4.0 (2024-09-19) ### Merged Pull Requests From 7dda7f6695190d44b1af746eef87156d1bf25e7f Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 14:59:48 -0700 Subject: [PATCH 37/52] chore: Update development dependencies --- .pre-commit-config.yaml | 4 ++-- docs/requirements.txt | 17 +++++++++++------ pyproject.toml | 4 ++-- tests/requirements.txt | 6 +++--- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb060468..24ce8084 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: remove-tabs - id: forbid-tabs - repo: https://github.com/python-jsonschema/check-jsonschema - rev: aa1acdb72677dfbc5f507d2dfd45d8380bbcc2e0 # frozen: 0.29.3 + rev: 37cd56d9d154dfb0648eaee8efc1040512700c47 # frozen: 0.29.4 hooks: - id: check-readthedocs - id: check-dependabot @@ -133,7 +133,7 @@ repos: always_run: true args: [audit, --json, --ignore-code=CVE-2019-8341] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 75b98813cfb7e663870a28c74366a1e99d7bfe79 # frozen: v0.6.9 + rev: 8983acb92ee4b01924893632cf90af926fa608f0 # frozen: v0.7.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/docs/requirements.txt b/docs/requirements.txt index a3f652c3..72911dd4 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,16 +3,18 @@ beautifulsoup4==4.12.3 ; python_version >= "3.8" and python_version < "4.0" black==24.8.0 ; python_version >= "3.8" and python_version < "4.0" bracex==2.5.post1 ; python_version >= "3.8" and python_version < "4.0" certifi==2024.8.30 ; python_version >= "3.8" and python_version < "4.0" -charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "4.0" +charset-normalizer==3.4.0 ; python_version >= "3.8" and python_version < "4.0" click==8.1.7 ; python_version >= "3.8" and python_version < "4.0" codespell==2.3.0 ; python_version >= "3.8" and python_version < "4.0" colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" editdistpy==0.1.5 ; python_version >= "3.8" and python_version < "4.0" editorconfig==0.12.4 ; python_version >= "3.8" and python_version < "4.0" ghp-import==2.1.0 ; python_version >= "3.8" and python_version < "4.0" -griffe==1.3.2 ; python_version >= "3.8" and python_version < "4.0" +griffe==1.4.0 ; python_version >= "3.8" and python_version < "4.0" +hjson==3.1.0 ; python_version >= "3.8" and python_version < "4.0" idna==3.10 ; python_version >= "3.8" and python_version < "4.0" importlib-metadata==8.5.0 ; python_version >= "3.8" and python_version < "3.10" +inflect==7.4.0 ; python_version >= "3.8" and python_version < "4.0" jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0" jsbeautifier==1.15.1 ; python_version >= "3.8" and python_version < "4.0" markdown==3.7 ; python_version >= "3.8" and python_version < "4.0" @@ -20,17 +22,18 @@ markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "4.0" mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "4.0" mkdocs==1.6.1 ; python_version >= "3.8" and python_version < "4.0" mkdocs-autorefs==1.2.0 ; python_version >= "3.8" and python_version < "4.0" -mkdocs-ezglossary-plugin==1.6.10 ; python_version >= "3.8" and python_version < "4.0" +mkdocs-ezglossary-plugin==1.7.1 ; python_version >= "3.8" and python_version < "4.0" mkdocs-gen-files==0.5.0 ; python_version >= "3.8" and python_version < "4.0" mkdocs-get-deps==0.2.0 ; python_version >= "3.8" and python_version < "4.0" mkdocs-include-markdown-plugin==6.2.2 ; python_version >= "3.8" and python_version < "4.0" mkdocs-literate-nav==0.6.1 ; python_version >= "3.8" and python_version < "4.0" -mkdocs-macros-plugin==1.2.0 ; python_version >= "3.8" and python_version < "4.0" +mkdocs-macros-plugin==1.3.6 ; python_version >= "3.8" and python_version < "4.0" mkdocs-mermaid2-plugin==1.1.1 ; python_version >= "3.8" and python_version < "4.0" mkdocs-section-index==0.3.9 ; python_version >= "3.8" and python_version < "4.0" mkdocs-spellcheck==1.1.0 ; python_version >= "3.8" and python_version < "4.0" mkdocstrings==0.26.1 ; python_version >= "3.8" and python_version < "4.0" mkdocstrings-python==1.11.1 ; python_version >= "3.8" and python_version < "4.0" +more-itertools==10.5.0 ; python_version >= "3.8" and python_version < "4.0" mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4.0" nodeenv==1.9.1 ; python_version >= "3.8" and python_version < "4.0" packaging==24.1 ; python_version >= "3.8" and python_version < "4.0" @@ -42,13 +45,15 @@ python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0 pyyaml==6.0.2 ; python_version >= "3.8" and python_version < "4.0" pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0" requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0" -setuptools==75.1.0 ; python_version >= "3.8" and python_version < "4.0" +setuptools==75.2.0 ; python_version >= "3.8" and python_version < "4.0" six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" soupsieve==2.6 ; python_version >= "3.8" and python_version < "4.0" +super-collections==0.5.3 ; python_version >= "3.8" and python_version < "4.0" symspellpy==6.7.8 ; python_version >= "3.8" and python_version < "4.0" termcolor==2.4.0 ; python_version >= "3.8" and python_version < "4.0" tomli==2.0.2 ; python_version >= "3.8" and python_version < "4.0" -typing-extensions==4.12.2 ; python_version >= "3.8" and python_version < "3.11" +typeguard==4.3.0 ; python_version >= "3.8" and python_version < "4.0" +typing-extensions==4.12.2 ; python_version >= "3.8" and python_version < "4.0" urllib3==2.2.3 ; python_version >= "3.8" and python_version < "4.0" watchdog==4.0.2 ; python_version >= "3.8" and python_version < "4.0" wcmatch==10.0 ; python_version >= "3.8" and python_version < "4.0" diff --git a/pyproject.toml b/pyproject.toml index 396dfe96..03e91423 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,7 +109,7 @@ pre-commit = [ {python = "3.8", version = "^3.5"} ] pylint = "3.2.7" -pyright = "1.1.383" +pyright = "1.1.385" pyroma = "^4.2" tox = "^4.0" tox-gh-actions = "^3.1.0" @@ -153,7 +153,7 @@ pytest-env = "^1.1.3" pytest-github-report = "^0.0.1" pytest-html = "^4.1.1" pytest-order = "^1.2.1" -ruff = "0.6.9" +ruff = "0.7.0" [tool.poetry.scripts] list-visa-resources = "tm_devices:print_available_visa_devices" diff --git a/tests/requirements.txt b/tests/requirements.txt index 80505792..116bb2be 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,7 +2,7 @@ beautifulsoup4==4.12.3 ; python_version >= "3.8" and python_version < "4.0" blinker==1.8.2 ; python_version >= "3.8" and python_version < "4.0" certifi==2024.8.30 ; python_version >= "3.8" and python_version < "4.0" chardet==5.2.0 ; python_version >= "3.8" and python_version < "4.0" -charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "4.0" +charset-normalizer==3.4.0 ; python_version >= "3.8" and python_version < "4.0" click==8.1.7 ; python_version >= "3.8" and python_version < "4.0" colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" coverage==7.6.1 ; python_version >= "3.8" and python_version < "4.0" @@ -38,8 +38,8 @@ pytest-order==1.3.0 ; python_version >= "3.8" and python_version < "4.0" python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0" pytz==2024.2 ; python_version >= "3.8" and python_version < "4.0" requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0" -ruff==0.6.9 ; python_version >= "3.8" and python_version < "4.0" -setuptools==75.1.0 ; python_version >= "3.8" and python_version < "4.0" +ruff==0.7.0 ; python_version >= "3.8" and python_version < "4.0" +setuptools==75.2.0 ; python_version >= "3.8" and python_version < "4.0" six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" soupsieve==2.6 ; python_version >= "3.8" and python_version < "4.0" tabledata==1.3.3 ; python_version >= "3.8" and python_version < "4.0" From e694945dc2ca16b92e00943d2f004c775fb2c9c7 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 15:07:54 -0700 Subject: [PATCH 38/52] chore: Update development dependencies --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 03e91423..e56d70a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,6 +98,7 @@ urllib3 = "^2.0" zeroconf = "^0.135.0" [tool.poetry.group.dev.dependencies] +docutils = "^0.20" # TODO: Drop Python 3.8: remove this when the minimum Python version is >=3.9 nodeenv = "^1.9.1" pip = "^24.0" poetry = "^1.8.0" From 0d135ca1cf6f3d44fccdc70f76b8f376f3bfefd1 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 16:03:11 -0700 Subject: [PATCH 39/52] chore: Fixes from pull request review --- CHANGELOG.md | 14 +++++++------- src/tm_devices/commands/afg3k_commands.py | 2 +- src/tm_devices/commands/afg3kb_commands.py | 2 +- src/tm_devices/commands/afg3kc_commands.py | 2 +- src/tm_devices/commands/awg5200_commands.py | 2 +- src/tm_devices/commands/awg5k_commands.py | 2 +- src/tm_devices/commands/awg5kc_commands.py | 2 +- src/tm_devices/commands/awg70ka_commands.py | 2 +- src/tm_devices/commands/awg70kb_commands.py | 2 +- src/tm_devices/commands/awg7k_commands.py | 2 +- src/tm_devices/commands/awg7kc_commands.py | 2 +- src/tm_devices/commands/daq6510_commands.py | 2 +- src/tm_devices/commands/dmm6500_commands.py | 2 +- src/tm_devices/commands/dmm7510_commands.py | 2 +- src/tm_devices/commands/dpo2k_commands.py | 2 +- src/tm_devices/commands/dpo2kb_commands.py | 2 +- src/tm_devices/commands/dpo4k_commands.py | 2 +- src/tm_devices/commands/dpo4kb_commands.py | 2 +- src/tm_devices/commands/dpo5k_commands.py | 2 +- src/tm_devices/commands/dpo5kb_commands.py | 2 +- src/tm_devices/commands/dpo70kc_commands.py | 2 +- src/tm_devices/commands/dpo70kd_commands.py | 2 +- src/tm_devices/commands/dpo70kdx_commands.py | 2 +- src/tm_devices/commands/dpo70ksx_commands.py | 2 +- src/tm_devices/commands/dpo7k_commands.py | 2 +- src/tm_devices/commands/dpo7kc_commands.py | 2 +- src/tm_devices/commands/dsa70kc_commands.py | 2 +- src/tm_devices/commands/dsa70kd_commands.py | 2 +- src/tm_devices/commands/gen_163n04_mdo/search.py | 2 +- src/tm_devices/commands/gen_16x4xq_mdo/search.py | 2 +- .../commands/gen_1jzp7o_mdodpo/trigger.py | 2 +- src/tm_devices/commands/gen_1kdqwg_mdo/search.py | 2 +- src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_1kjd62_mdo/rf.py | 2 +- src/tm_devices/commands/gen_1kozfv_dpo/search.py | 2 +- .../commands/gen_1l4fot_mdomso/cursor.py | 2 +- .../commands/gen_1la1ym_msomdodpo/trigger.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/message.py | 2 +- .../commands/gen_1lcv3a_msodpomdo/setup_1.py | 2 +- .../commands/gen_1lh2st_msodpo/search.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/actonevent.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/afg.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/alias.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/application.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/autoset.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxin.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/auxout.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/bus.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/calibrate.py | 2 +- src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py | 2 +- src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/data.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/diag.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/dvm.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/email.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ethernet.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/filesystem.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/fpanel.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/gpibusb.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/hardcopy.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/histogram.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/horizontal.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/mark.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/marker.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/math1.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/pictbridge.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/power.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/reboot.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/ref.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/save.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/socketserver.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/time.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/vidpic.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/wfminpre.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py | 2 +- .../commands/gen_1ltpwt_mdomsodpo/zoom.py | 2 +- .../commands/gen_1lwj1r_msomdodpo/rosc.py | 2 +- .../commands/gen_1lxxm9_msomdodpo/cursor.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/acquire.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/configuration.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/deskew.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/display.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/mask.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/measurement.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/recall.py | 2 +- .../commands/gen_1mlt9u_mdomsodpo/select.py | 2 +- src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/clearmenu.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/errlog.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/language.py | 2 +- .../gen_1nmc1o_msodpomdo/status_and_error.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/usbdevice.py | 2 +- .../commands/gen_1nmc1o_msodpomdo/usbtmc.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/acquire.py | 2 +- .../commands/gen_1zn03_mso/actonevent.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/auxout.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/battery.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/bus.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/callouts.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/data.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/dch.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/diag.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/display.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/fpanel.py | 2 +- .../commands/gen_1zn03_mso/horizontal.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/mask.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/math.py | 2 +- .../commands/gen_1zn03_mso/measurement.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/pg.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/plot.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/power.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/ref.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/save.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/saveon.py | 2 +- .../commands/gen_1zn03_mso/saveonevent.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/search.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/select.py | 2 +- .../commands/gen_1zn03_mso/touchscreen.py | 2 +- src/tm_devices/commands/gen_1zn03_mso/trigger.py | 2 +- .../commands/gen_22daqs_afg/afgcontrol.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/data.py | 2 +- .../commands/gen_22daqs_afg/diagnostic.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/display.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/hcopy.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/memory.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/mmemory.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/output.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/output1.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/output2.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/source.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/source1.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/source2.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/source3.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/source4.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/status.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/system.py | 2 +- src/tm_devices/commands/gen_22daqs_afg/trigger.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/abort.py | 2 +- .../commands/gen_2i1z2s_awg/auxoutput.py | 2 +- .../commands/gen_2i1z2s_awg/awgcontrol.py | 2 +- .../commands/gen_2i1z2s_awg/bwaveform.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/clock.py | 2 +- .../commands/gen_2i1z2s_awg/cplayback.py | 2 +- .../commands/gen_2i1z2s_awg/diagnostic.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/fgen.py | 2 +- .../commands/gen_2i1z2s_awg/instrument.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/output.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/source.py | 2 +- .../commands/gen_2i1z2s_awg/synchronize.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/system.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/trigger.py | 2 +- src/tm_devices/commands/gen_2i1z2s_awg/wlist.py | 2 +- .../commands/gen_32dszm_awg/awgcontrol.py | 2 +- .../commands/gen_32dszm_awg/diagnostic.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/display.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/event.py | 2 +- .../commands/gen_32dszm_awg/instrument.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/mmemory.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/output.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/sequence.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/slist.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/source.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/status.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/system.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/trigger.py | 2 +- src/tm_devices/commands/gen_32dszm_awg/wlist.py | 2 +- src/tm_devices/commands/gen_33ijgq_afgawg/abort.py | 2 +- .../commands/gen_33ijgq_afgawg/calibration.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/active.py | 2 +- .../commands/gen_3n9auv_awg/calibration.py | 2 +- .../commands/gen_3n9auv_awg/connectivity.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/display.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/output.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/slist.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/status.py | 2 +- src/tm_devices/commands/gen_3n9auv_awg/wplugin.py | 2 +- .../commands/gen_3rs8qy_awg/auxoutput.py | 2 +- .../commands/gen_3rs8qy_awg/awgcontrol.py | 2 +- .../commands/gen_3rs8qy_awg/bwaveform.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/clock.py | 2 +- .../commands/gen_3rs8qy_awg/cplayback.py | 2 +- .../commands/gen_3rs8qy_awg/diagnostic.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/fgen.py | 2 +- .../commands/gen_3rs8qy_awg/instrument.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/output.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/source.py | 2 +- .../commands/gen_3rs8qy_awg/synchronize.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/system.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/trigger.py | 2 +- src/tm_devices/commands/gen_3rs8qy_awg/wlist.py | 2 +- src/tm_devices/commands/gen_3skc3w_dpo/trigger.py | 2 +- src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py | 2 +- .../commands/gen_4jiykk_dpo/channelmapping.py | 2 +- src/tm_devices/commands/gen_4jiykk_dpo/counter.py | 2 +- .../commands/gen_4jiykk_dpo/errordetector.py | 2 +- .../commands/gen_4jiykk_dpo/idnmultiscope.py | 2 +- .../commands/gen_4jiykk_dpo/linktraining.py | 2 +- src/tm_devices/commands/gen_4jiykk_dpo/rosc.py | 2 +- src/tm_devices/commands/gen_4jiykk_dpo/trigger.py | 2 +- .../commands/gen_53md2e_dpomso/fpanel.py | 2 +- src/tm_devices/commands/gen_561g9r_mso/trigger.py | 2 +- src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py | 2 +- .../commands/gen_5vmwut_dpodsamso/trigger.py | 2 +- .../commands/gen_5xwdsk_dpodsamso/errordetector.py | 2 +- .../commands/gen_5y90wx_dpodsamso/dpojet.py | 2 +- src/tm_devices/commands/gen_5yyb4r_mso/trigger.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/buffer.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/script.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/smu.py | 2 +- src/tm_devices/commands/gen_60xy3r_smu/upgrade.py | 2 +- src/tm_devices/commands/gen_6ocqvh_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6srh1x_smu/smu.py | 2 +- src/tm_devices/commands/gen_6srh1x_smu/upgrade.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/acal.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/smu.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/trigger.py | 2 +- src/tm_devices/commands/gen_6vynmi_smu/upgrade.py | 2 +- src/tm_devices/commands/gen_6w7311_smu/trigger.py | 2 +- src/tm_devices/commands/gen_6xiuc2_smu/buffer.py | 2 +- src/tm_devices/commands/gen_6xiuc2_smu/smu.py | 2 +- src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py | 2 +- .../commands/gen_7kqm9p_smu/buffervar.py | 2 +- src/tm_devices/commands/gen_7kqm9p_smu/display.py | 2 +- src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py | 2 +- src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py | 2 +- src/tm_devices/commands/gen_7ryhce_smu/status.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/beeper.py | 2 +- .../commands/gen_7s2p1p_smu/buffervar.py | 2 +- .../commands/gen_7s2p1p_smu/dataqueue.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/digio.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/display.py | 2 +- .../commands/gen_7s2p1p_smu/errorqueue.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/format.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/lan.py | 2 +- .../commands/gen_7s2p1p_smu/localnode.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/serial.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/smux.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/status.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/trigger.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py | 2 +- src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py | 2 +- src/tm_devices/commands/gen_7s43m8_smu/status.py | 2 +- src/tm_devices/commands/gen_7s6wr5_smu/status.py | 2 +- src/tm_devices/commands/gen_8ojdkz_smu/display.py | 2 +- src/tm_devices/commands/gen_8ojdkz_smu/node.py | 2 +- src/tm_devices/commands/gen_8ojdkz_smu/smux.py | 2 +- src/tm_devices/commands/gen_8ojdkz_smu/status.py | 2 +- src/tm_devices/commands/gen_8wm55i_smu/smux.py | 2 +- src/tm_devices/commands/gen_9kezla_smu/smux.py | 2 +- src/tm_devices/commands/gen_9mzp2j_smu/digio.py | 2 +- src/tm_devices/commands/gen_9mzp2j_smu/display.py | 2 +- src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py | 2 +- src/tm_devices/commands/gen_9ncc6e_smu/display.py | 2 +- src/tm_devices/commands/gen_9nnkq7_smu/status.py | 2 +- src/tm_devices/commands/gen_9slyux_smu/status.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/beeper.py | 2 +- .../commands/gen_ahkybr_smu/buffervar.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/eventlog.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/lan.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/os.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/script.py | 2 +- .../commands/gen_ahkybr_smu/scriptvar.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/setup_1.py | 2 +- src/tm_devices/commands/gen_ahkybr_smu/tspnet.py | 2 +- src/tm_devices/commands/gen_aih9e2_smu/trigger.py | 2 +- src/tm_devices/commands/gen_ak4990_smu/smux.py | 2 +- src/tm_devices/commands/gen_am6pcr_smu/smux.py | 2 +- src/tm_devices/commands/gen_am6pcr_smu/status.py | 2 +- src/tm_devices/commands/gen_amm5lc_smu/digio.py | 2 +- src/tm_devices/commands/gen_amm5lc_smu/tsplink.py | 2 +- src/tm_devices/commands/gen_aostep_smu/serial.py | 2 +- .../commands/gen_aqr1t1_smu/localnode.py | 2 +- .../commands/gen_as1ejq_smu/localnode.py | 2 +- src/tm_devices/commands/gen_as1ejq_smu/smux.py | 2 +- src/tm_devices/commands/gen_as1ejq_smu/status.py | 2 +- src/tm_devices/commands/gen_at7jl1_smu/display.py | 2 +- src/tm_devices/commands/gen_au597k_smu/digio.py | 2 +- src/tm_devices/commands/gen_au597k_smu/format.py | 2 +- src/tm_devices/commands/gen_au597k_smu/tsplink.py | 2 +- src/tm_devices/commands/gen_auyr50_smu/format.py | 2 +- .../commands/gen_auyr50_smu/localnode.py | 2 +- src/tm_devices/commands/gen_auyr50_smu/node.py | 2 +- src/tm_devices/commands/gen_avh0iw_smu/display.py | 2 +- src/tm_devices/commands/gen_avh0iw_smu/trigger.py | 2 +- src/tm_devices/commands/gen_awhjao_smu/status.py | 2 +- src/tm_devices/commands/gen_by991s_smudaq/digio.py | 2 +- .../commands/gen_by991s_smudaq/status.py | 2 +- .../commands/gen_c3g61_tekscopepc/actonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/bus.py | 2 +- .../commands/gen_c3g61_tekscopepc/callouts.py | 2 +- src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py | 2 +- .../commands/gen_c3g61_tekscopepc/display.py | 2 +- .../commands/gen_c3g61_tekscopepc/filesys.py | 2 +- .../commands/gen_c3g61_tekscopepc/histogram.py | 2 +- .../commands/gen_c3g61_tekscopepc/horizontal.py | 2 +- .../commands/gen_c3g61_tekscopepc/mask.py | 2 +- .../commands/gen_c3g61_tekscopepc/math.py | 2 +- .../commands/gen_c3g61_tekscopepc/measu.py | 2 +- .../commands/gen_c3g61_tekscopepc/measurement.py | 2 +- .../commands/gen_c3g61_tekscopepc/plot.py | 2 +- .../commands/gen_c3g61_tekscopepc/power.py | 2 +- .../commands/gen_c3g61_tekscopepc/ref.py | 2 +- .../commands/gen_c3g61_tekscopepc/remote.py | 2 +- src/tm_devices/commands/gen_c3g61_tekscopepc/s.py | 2 +- .../commands/gen_c3g61_tekscopepc/save.py | 2 +- .../commands/gen_c3g61_tekscopepc/saveonevent.py | 2 +- .../commands/gen_c3g61_tekscopepc/search.py | 2 +- .../commands/gen_c3g61_tekscopepc/searchtable.py | 2 +- src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py | 2 +- .../commands/gen_c3g61_tekscopepc/trigger.py | 2 +- .../commands/gen_c69az_msotekscopepc/lic.py | 2 +- .../commands/gen_c69az_msotekscopepc/license.py | 2 +- src/tm_devices/commands/gen_canxny_daq/buffer.py | 2 +- .../commands/gen_canxny_daq/buffervar.py | 2 +- src/tm_devices/commands/gen_canxny_daq/channel.py | 2 +- src/tm_devices/commands/gen_canxny_daq/display.py | 2 +- src/tm_devices/commands/gen_canxny_daq/dmm.py | 2 +- src/tm_devices/commands/gen_canxny_daq/scan.py | 2 +- src/tm_devices/commands/gen_canxny_daq/slot.py | 2 +- src/tm_devices/commands/gen_canxny_daq/trigger.py | 2 +- src/tm_devices/commands/gen_canxny_daq/tsplink.py | 2 +- src/tm_devices/commands/gen_canxny_daq/upgrade.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/acal.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/buffer.py | 2 +- .../commands/gen_d6b496_dmm/buffervar.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/display.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/dmm.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/fan.py | 2 +- .../commands/gen_d6b496_dmm/localnode.py | 2 +- src/tm_devices/commands/gen_d6b496_dmm/trigger.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/buffer.py | 2 +- .../commands/gen_d83qe0_dmm/buffervar.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/channel.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/display.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/dmm.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/scan.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/slot.py | 2 +- src/tm_devices/commands/gen_d83qe0_dmm/trigger.py | 2 +- .../commands/gen_dawv9y_smudaqdmm/localnode.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/beeper.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/eventlog.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/file.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/format.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/lan.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/scriptvar.py | 2 +- .../commands/gen_dbdq3i_smudaqdmm/timer.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/digio.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/node.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/status.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py | 2 +- src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py | 2 +- src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py | 2 +- .../commands/gen_dd4xnb_smudaqdmm/script.py | 2 +- .../commands/gen_e3e9uu_lpdmso/acquire.py | 2 +- .../commands/gen_e3e9uu_lpdmso/actonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/application.py | 2 +- .../commands/gen_e3e9uu_lpdmso/auxout.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py | 2 +- .../commands/gen_e3e9uu_lpdmso/callouts.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py | 2 +- .../commands/gen_e3e9uu_lpdmso/diggrp.py | 2 +- .../commands/gen_e3e9uu_lpdmso/display.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py | 2 +- .../commands/gen_e3e9uu_lpdmso/fpanel.py | 2 +- .../commands/gen_e3e9uu_lpdmso/histogram.py | 2 +- .../commands/gen_e3e9uu_lpdmso/horizontal.py | 2 +- .../commands/gen_e3e9uu_lpdmso/license.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py | 2 +- .../commands/gen_e3e9uu_lpdmso/measurement.py | 2 +- .../commands/gen_e3e9uu_lpdmso/pilogger.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveon.py | 2 +- .../commands/gen_e3e9uu_lpdmso/saveonevent.py | 2 +- .../commands/gen_e3e9uu_lpdmso/search.py | 2 +- .../commands/gen_e3e9uu_lpdmso/searchtable.py | 2 +- .../commands/gen_e3e9uu_lpdmso/select.py | 2 +- src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py | 2 +- .../commands/gen_e3e9uu_lpdmso/touchscreen.py | 2 +- .../commands/gen_e3e9uu_lpdmso/trigger.py | 2 +- .../commands/gen_e3e9uu_lpdmso/tstamptable.py | 2 +- src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py | 2 +- .../commands/gen_e3h2zs_lpdmso/autoset.py | 2 +- .../commands/gen_e3h2zs_lpdmso/calibrate.py | 2 +- .../commands/gen_e3h2zs_lpdmso/connected.py | 2 +- .../commands/gen_e3h2zs_lpdmso/ethernet.py | 2 +- .../commands/gen_e3h2zs_lpdmso/usbdevice.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/beeper.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/buffervar.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/channel.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/comm.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/digio.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/display.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/dmm.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/eventlog.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/format.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/lan.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/localnode.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/memory.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/os.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/ptp.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/scan.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/schedule.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/script.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/scriptvar.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/setup_1.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/slot.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/status.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/trigger.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/tsplink.py | 2 +- src/tm_devices/commands/gen_e3pief_ss/upgrade.py | 2 +- .../commands/gen_e44yni_lpdmsotekscopepc/data.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/eyemask.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/matharbflt.py | 2 +- .../gen_e44yni_lpdmsotekscopepc/peakstable.py | 2 +- .../commands/gen_e44yni_lpdmsotekscopepc/ref.py | 2 +- .../commands/gen_e44yni_lpdmsotekscopepc/visual.py | 2 +- .../autosavepitimeout.py | 2 +- .../autosaveuitimeout.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/bustable.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/configuration.py | 2 +- .../commands/gen_e47rsg_lpdmsotekscopepc/curve.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/curvestream.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/customtable.py | 2 +- .../commands/gen_e47rsg_lpdmsotekscopepc/date.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/filesystem.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/mainwindow.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/meastable.py | 2 +- .../commands/gen_e47rsg_lpdmsotekscopepc/recall.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/socketserver.py | 2 +- .../commands/gen_e47rsg_lpdmsotekscopepc/time.py | 2 +- .../commands/gen_e47rsg_lpdmsotekscopepc/undo.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/vertical.py | 2 +- .../gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py | 2 +- .../commands/gen_e4de2d_lpdmsomdo/clear.py | 2 +- .../totaluptime.py | 2 +- .../gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py | 2 +- .../commands/gen_e7aqno_smudaqss/node.py | 2 +- .../commands/gen_eat5s3_smudaqdmmss/dataqueue.py | 2 +- .../commands/gen_eat5s3_smudaqdmmss/fs.py | 2 +- .../commands/gen_eat5s3_smudaqdmmss/userstring.py | 2 +- src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py | 2 +- src/tm_devices/commands/gen_efap3f_smuss/bit.py | 2 +- .../commands/gen_efap3f_smuss/errorqueue.py | 2 +- src/tm_devices/commands/gen_efap3f_smuss/io.py | 2 +- src/tm_devices/commands/gen_efap3f_smuss/timer.py | 2 +- .../commands/gen_eg5ll2_smudaqdmmss/gpib.py | 2 +- .../commands/gen_ffz2xs_dpodsamso/bus.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/curve.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/date.py | 2 +- .../commands/gen_fhrp27_msodpomdodsa/mathvar.py | 2 +- .../gen_fhrp27_msodpomdodsa/save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/acquire.py | 2 +- .../commands/gen_fk3z56_dpodsamso/allocate.py | 2 +- .../commands/gen_fk3z56_dpodsamso/application.py | 2 +- .../commands/gen_fk3z56_dpodsamso/autoset.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxin.py | 2 +- .../commands/gen_fk3z56_dpodsamso/auxout.py | 2 +- .../commands/gen_fk3z56_dpodsamso/bell.py | 2 +- .../commands/gen_fk3z56_dpodsamso/calibrate.py | 2 +- src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/clear.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cmdbatch.py | 2 +- src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py | 2 +- .../commands/gen_fk3z56_dpodsamso/cursor.py | 2 +- .../commands/gen_fk3z56_dpodsamso/curvenext.py | 2 +- .../commands/gen_fk3z56_dpodsamso/curvestream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/custom.py | 2 +- src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py | 2 +- .../commands/gen_fk3z56_dpodsamso/data.py | 2 +- .../commands/gen_fk3z56_dpodsamso/delete.py | 2 +- .../commands/gen_fk3z56_dpodsamso/diag.py | 2 +- .../commands/gen_fk3z56_dpodsamso/display.py | 2 +- .../commands/gen_fk3z56_dpodsamso/email.py | 2 +- .../commands/gen_fk3z56_dpodsamso/export.py | 2 +- .../commands/gen_fk3z56_dpodsamso/fastacq.py | 2 +- .../commands/gen_fk3z56_dpodsamso/filesystem.py | 2 +- .../commands/gen_fk3z56_dpodsamso/gpibusb.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hardcopy.py | 2 +- .../commands/gen_fk3z56_dpodsamso/hdr.py | 2 +- .../commands/gen_fk3z56_dpodsamso/histogram.py | 2 +- .../commands/gen_fk3z56_dpodsamso/horizontal.py | 2 +- .../commands/gen_fk3z56_dpodsamso/limit.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mark.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mask.py | 2 +- .../commands/gen_fk3z56_dpodsamso/math.py | 2 +- .../commands/gen_fk3z56_dpodsamso/matharbflt.py | 2 +- .../commands/gen_fk3z56_dpodsamso/mch.py | 2 +- .../commands/gen_fk3z56_dpodsamso/measurement.py | 2 +- .../commands/gen_fk3z56_dpodsamso/multiscope.py | 2 +- .../commands/gen_fk3z56_dpodsamso/opcextended.py | 2 +- .../commands/gen_fk3z56_dpodsamso/pcenable.py | 2 +- .../commands/gen_fk3z56_dpodsamso/recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/ref.py | 2 +- .../commands/gen_fk3z56_dpodsamso/save.py | 2 +- .../gen_fk3z56_dpodsamso/save_and_recall.py | 2 +- .../commands/gen_fk3z56_dpodsamso/saveon.py | 2 +- .../commands/gen_fk3z56_dpodsamso/search.py | 2 +- .../commands/gen_fk3z56_dpodsamso/select.py | 2 +- .../commands/gen_fk3z56_dpodsamso/setup_1.py | 2 +- .../commands/gen_fk3z56_dpodsamso/system.py | 2 +- .../commands/gen_fk3z56_dpodsamso/teklink.py | 2 +- .../commands/gen_fk3z56_dpodsamso/test.py | 2 +- .../commands/gen_fk3z56_dpodsamso/trig.py | 2 +- .../commands/gen_fk3z56_dpodsamso/usbtmc.py | 2 +- .../commands/gen_fk3z56_dpodsamso/visual.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wavfrmstream.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfminpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfmoutpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/wfmpre.py | 2 +- .../commands/gen_fk3z56_dpodsamso/zoom.py | 2 +- .../commands/gen_fkjfe8_msodpodsa/time.py | 2 +- .../commands/gen_fn2qbf_msodpo/errordetector.py | 2 +- .../commands/gen_fn2qbf_msodpo/trigger.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/counter.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/linktraining.py | 2 +- .../commands/gen_fpx9s1_dpodsamso/rosc.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../status_and_error.py | 2 +- .../calibration.py | 2 +- .../miscellaneous.py | 2 +- .../status_and_error.py | 2 +- .../gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py | 2 +- .../status_and_error.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py | 2 +- .../commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/password.py | 2 +- .../gen_fx54ua_lpdmsodpomdodsa/teksecure.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py | 2 +- .../factory.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py | 2 +- .../miscellaneous.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py | 2 +- .../status_and_error.py | 2 +- .../verbose.py | 2 +- .../gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py | 2 +- .../commands/gen_fzn174_lpdmsodpomdodsa/lock.py | 2 +- .../commands/gen_fzn174_lpdmsodpomdodsa/unlock.py | 2 +- .../commands/gen_u301s_msodpo/acquire.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/alias.py | 2 +- .../commands/gen_u301s_msodpo/autoset.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/auxin.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/bus.py | 2 +- .../commands/gen_u301s_msodpo/calibrate.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/ch.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/cursor.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/d.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/data.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/diag.py | 2 +- .../commands/gen_u301s_msodpo/display.py | 2 +- .../commands/gen_u301s_msodpo/ethernet.py | 2 +- .../commands/gen_u301s_msodpo/filesystem.py | 2 +- .../commands/gen_u301s_msodpo/filtervu.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/fpanel.py | 2 +- .../commands/gen_u301s_msodpo/gpibusb.py | 2 +- .../commands/gen_u301s_msodpo/hardcopy.py | 2 +- .../commands/gen_u301s_msodpo/horizontal.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/mark.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/math1.py | 2 +- .../commands/gen_u301s_msodpo/measurement.py | 2 +- .../commands/gen_u301s_msodpo/pictbridge.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/recall.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/ref.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/save.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/search.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/select.py | 2 +- .../commands/gen_u301s_msodpo/trigger.py | 2 +- .../commands/gen_u301s_msodpo/wfminpre.py | 2 +- .../commands/gen_u301s_msodpo/wfmoutpre.py | 2 +- src/tm_devices/commands/gen_u301s_msodpo/zoom.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/acquire.py | 2 +- .../commands/gen_ujuvb_mdo/configuration.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/cursor.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/deskew.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/display.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/lock.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/mask.py | 2 +- .../commands/gen_ujuvb_mdo/measurement.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/message.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/recall.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rf.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/rrb.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/search.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/select.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/setup1.py | 2 +- src/tm_devices/commands/gen_ujuvb_mdo/trigger.py | 2 +- src/tm_devices/commands/gen_usaa3_mdo/rf.py | 2 +- src/tm_devices/commands/gen_usaa3_mdo/search.py | 2 +- src/tm_devices/commands/gen_usaa3_mdo/trigger.py | 2 +- src/tm_devices/commands/helpers/scpi_commands.py | 2 +- src/tm_devices/commands/helpers/tsp_commands.py | 2 +- src/tm_devices/commands/lpd6_commands.py | 2 +- src/tm_devices/commands/mdo3_commands.py | 2 +- src/tm_devices/commands/mdo3k_commands.py | 2 +- src/tm_devices/commands/mdo4k_commands.py | 2 +- src/tm_devices/commands/mdo4kb_commands.py | 2 +- src/tm_devices/commands/mdo4kc_commands.py | 2 +- src/tm_devices/commands/mso2_commands.py | 2 +- src/tm_devices/commands/mso2k_commands.py | 2 +- src/tm_devices/commands/mso2kb_commands.py | 2 +- src/tm_devices/commands/mso4_commands.py | 2 +- src/tm_devices/commands/mso4b_commands.py | 2 +- src/tm_devices/commands/mso4k_commands.py | 2 +- src/tm_devices/commands/mso4kb_commands.py | 2 +- src/tm_devices/commands/mso5_commands.py | 2 +- src/tm_devices/commands/mso5b_commands.py | 2 +- src/tm_devices/commands/mso5k_commands.py | 2 +- src/tm_devices/commands/mso5kb_commands.py | 2 +- src/tm_devices/commands/mso5lp_commands.py | 2 +- src/tm_devices/commands/mso6_commands.py | 2 +- src/tm_devices/commands/mso6b_commands.py | 2 +- src/tm_devices/commands/mso70kc_commands.py | 2 +- src/tm_devices/commands/mso70kdx_commands.py | 2 +- src/tm_devices/commands/smu2450_commands.py | 2 +- src/tm_devices/commands/smu2460_commands.py | 2 +- src/tm_devices/commands/smu2461_commands.py | 2 +- src/tm_devices/commands/smu2470_commands.py | 2 +- src/tm_devices/commands/smu2601b_commands.py | 2 +- src/tm_devices/commands/smu2601b_pulse_commands.py | 2 +- src/tm_devices/commands/smu2602b_commands.py | 2 +- src/tm_devices/commands/smu2604b_commands.py | 2 +- src/tm_devices/commands/smu2606b_commands.py | 2 +- src/tm_devices/commands/smu2611b_commands.py | 2 +- src/tm_devices/commands/smu2612b_commands.py | 2 +- src/tm_devices/commands/smu2614b_commands.py | 2 +- src/tm_devices/commands/smu2634b_commands.py | 2 +- src/tm_devices/commands/smu2635b_commands.py | 2 +- src/tm_devices/commands/smu2636b_commands.py | 2 +- src/tm_devices/commands/smu2651a_commands.py | 2 +- src/tm_devices/commands/smu2657a_commands.py | 2 +- src/tm_devices/commands/ss3706a_commands.py | 2 +- src/tm_devices/commands/tekscopepc_commands.py | 2 +- 650 files changed, 656 insertions(+), 656 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d44085c7..641ab65c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,7 +61,7 @@ However, please read through all changes to be aware of what may potentially imp ### Merged Pull Requests -- Update TSPControl.load_script() to accept raw strings ([#308](https://github.com/tektronix/tm_devices/pull/308)) +- Update TSPDevice.load_script() to accept raw strings ([#308](https://github.com/tektronix/tm_devices/pull/308)) - fix: Update stub generation helper function to handle classes followed by dataclasses ([#307](https://github.com/tektronix/tm_devices/pull/307)) - Add function to register USBTMC connection information for devices that don't have native USBTMC connection support in tm_devices ([#306](https://github.com/tektronix/tm_devices/pull/306)) - python-deps(deps-dev): Bump the python-dependencies group with 2 updates ([#304](https://github.com/tektronix/tm_devices/pull/304)) @@ -81,7 +81,7 @@ However, please read through all changes to be aware of what may potentially imp - Added a config option (`default_visa_timeout`) to specify the default VISA timeout for all initial VISA device connections. - Added a new function, `register_additional_usbtmc_mapping()`, to enable users to add USBTMC connection information for devices that don't have native support for USBTMC connections in `tm_devices` yet. -- Added `TSPControl.export_buffers()` to write tsp buffer data fields to file, default is comma separated values with buffer names header. +- Added `TSPDevice.export_buffers()` to write tsp buffer data fields to file, default is comma separated values with buffer names header. ### Changed @@ -89,12 +89,12 @@ However, please read through all changes to be aware of what may potentially imp - Reduced the out-of-the box `default_visa_timeout` value from 30 seconds to 5 seconds. - _**SEMI-BREAKING CHANGE**_: Changed the `USB_MODEL_ID_LOOKUP` constant to use `SupportedModels` as keys instead of values to make the documentation clearer. - _**SEMI-BREAKING CHANGE**_: Changed the `DEVICE_DRIVER_MODEL_MAPPING` constant to use `SupportedModels` as keys instead of values to make the documentation clearer. -- _**SEMI-BREAKING CHANGE**_: Changed the input parameter order in `TSPControl.load_script()` and updated it to accept raw string input in addition to the `file_path` parameter for the script content. -- Verbosity with `PIControl.write()` now handles multiline input printouts. +- _**SEMI-BREAKING CHANGE**_: Changed the input parameter order in `TSPDevice.load_script()` and updated it to accept raw string input in addition to the `file_path` parameter for the script content. +- Verbosity with `PIDevice.write()` now handles multiline input printouts. ### Deprecated -- Renamed `TSPControl.write_buffers()` to `TSPControl.export_buffers()` for clarity. +- Renamed `TSPDevice.write_buffers()` to `TSPDevice.export_buffers()` for clarity. ### Fixed @@ -167,7 +167,7 @@ However, please read through all changes to be aware of what may potentially imp - feat: Added SourceXpress API support and AWG defects fix ([#260](https://github.com/tektronix/tm_devices/pull/260)) - gh-actions(deps): bump hynek/build-and-inspect-python-package ([#258](https://github.com/tektronix/tm_devices/pull/258)) -- python-deps(deps-dev): bump the python-dependenc ies group with 2 updates ([#257](https://github.com/tektronix/tm_devices/pull/257)) +- python-deps(deps-dev): bump the python-dependencies group with 2 updates ([#257](https://github.com/tektronix/tm_devices/pull/257)) - Update jinja templates ([#254](https://github.com/tektronix/tm_devices/pull/254)) ### Added @@ -493,7 +493,7 @@ However, please read through all changes to be aware of what may potentially imp ### Merged Pull Requests - Fix import error on mac with system integrity protection ([#109](https://github.com/tektronix/tm_devices/issues/109)) -- feat(rest_api_control): Enable sending raw data for restful api devices. ([#107](https://github.com/tektronix/tm_devices/issues/107)) +- feat(rest_api_device): Enable sending raw data for restful api devices. ([#107](https://github.com/tektronix/tm_devices/issues/107)) - build: Update package classifiers. ([#106](https://github.com/tektronix/tm_devices/issues/106)) ### Added diff --git a/src/tm_devices/commands/afg3k_commands.py b/src/tm_devices/commands/afg3k_commands.py index 67b322de..3dde5adc 100644 --- a/src/tm_devices/commands/afg3k_commands.py +++ b/src/tm_devices/commands/afg3k_commands.py @@ -7,7 +7,7 @@ from typing import Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol diff --git a/src/tm_devices/commands/afg3kb_commands.py b/src/tm_devices/commands/afg3kb_commands.py index 202398a8..616e1a6a 100644 --- a/src/tm_devices/commands/afg3kb_commands.py +++ b/src/tm_devices/commands/afg3kb_commands.py @@ -7,7 +7,7 @@ from typing import Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol diff --git a/src/tm_devices/commands/afg3kc_commands.py b/src/tm_devices/commands/afg3kc_commands.py index 6fe45f8d..cd050866 100644 --- a/src/tm_devices/commands/afg3kc_commands.py +++ b/src/tm_devices/commands/afg3kc_commands.py @@ -7,7 +7,7 @@ from typing import Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_22daqs_afg.afgcontrol import Afgcontrol diff --git a/src/tm_devices/commands/awg5200_commands.py b/src/tm_devices/commands/awg5200_commands.py index 745090d5..7222bff4 100644 --- a/src/tm_devices/commands/awg5200_commands.py +++ b/src/tm_devices/commands/awg5200_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_2i1z2s_awg.abort import Abort diff --git a/src/tm_devices/commands/awg5k_commands.py b/src/tm_devices/commands/awg5k_commands.py index fd72af2c..890cc4c1 100644 --- a/src/tm_devices/commands/awg5k_commands.py +++ b/src/tm_devices/commands/awg5k_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol diff --git a/src/tm_devices/commands/awg5kc_commands.py b/src/tm_devices/commands/awg5kc_commands.py index 5f232a5b..5523d3fe 100644 --- a/src/tm_devices/commands/awg5kc_commands.py +++ b/src/tm_devices/commands/awg5kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol diff --git a/src/tm_devices/commands/awg70ka_commands.py b/src/tm_devices/commands/awg70ka_commands.py index 1941276f..3019ced0 100644 --- a/src/tm_devices/commands/awg70ka_commands.py +++ b/src/tm_devices/commands/awg70ka_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3n9auv_awg.active import Active diff --git a/src/tm_devices/commands/awg70kb_commands.py b/src/tm_devices/commands/awg70kb_commands.py index 90bbd405..1051b818 100644 --- a/src/tm_devices/commands/awg70kb_commands.py +++ b/src/tm_devices/commands/awg70kb_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3n9auv_awg.active import Active diff --git a/src/tm_devices/commands/awg7k_commands.py b/src/tm_devices/commands/awg7k_commands.py index f71551db..367b678f 100644 --- a/src/tm_devices/commands/awg7k_commands.py +++ b/src/tm_devices/commands/awg7k_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol diff --git a/src/tm_devices/commands/awg7kc_commands.py b/src/tm_devices/commands/awg7kc_commands.py index a82e841d..770f95bb 100644 --- a/src/tm_devices/commands/awg7kc_commands.py +++ b/src/tm_devices/commands/awg7kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_32dszm_awg.awgcontrol import Awgcontrol diff --git a/src/tm_devices/commands/daq6510_commands.py b/src/tm_devices/commands/daq6510_commands.py index e277c315..2fedc0d6 100644 --- a/src/tm_devices/commands/daq6510_commands.py +++ b/src/tm_devices/commands/daq6510_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_by991s_smudaq.digio import Digio diff --git a/src/tm_devices/commands/dmm6500_commands.py b/src/tm_devices/commands/dmm6500_commands.py index 368e6e85..ce32e4d3 100644 --- a/src/tm_devices/commands/dmm6500_commands.py +++ b/src/tm_devices/commands/dmm6500_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_d83qe0_dmm.buffer import Buffer diff --git a/src/tm_devices/commands/dmm7510_commands.py b/src/tm_devices/commands/dmm7510_commands.py index fb7860dd..2aad4ab2 100644 --- a/src/tm_devices/commands/dmm7510_commands.py +++ b/src/tm_devices/commands/dmm7510_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_d6b496_dmm.acal import Acal diff --git a/src/tm_devices/commands/dpo2k_commands.py b/src/tm_devices/commands/dpo2k_commands.py index 3dffbdaf..1ff2c317 100644 --- a/src/tm_devices/commands/dpo2k_commands.py +++ b/src/tm_devices/commands/dpo2k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/dpo2kb_commands.py b/src/tm_devices/commands/dpo2kb_commands.py index 04f80616..1cbff936 100644 --- a/src/tm_devices/commands/dpo2kb_commands.py +++ b/src/tm_devices/commands/dpo2kb_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/dpo4k_commands.py b/src/tm_devices/commands/dpo4k_commands.py index 02385e21..ca96e743 100644 --- a/src/tm_devices/commands/dpo4k_commands.py +++ b/src/tm_devices/commands/dpo4k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1jzp7o_mdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/dpo4kb_commands.py b/src/tm_devices/commands/dpo4kb_commands.py index 9813460f..8bcc5f6f 100644 --- a/src/tm_devices/commands/dpo4kb_commands.py +++ b/src/tm_devices/commands/dpo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/dpo5k_commands.py b/src/tm_devices/commands/dpo5k_commands.py index e9a6b90f..39e15d28 100644 --- a/src/tm_devices/commands/dpo5k_commands.py +++ b/src/tm_devices/commands/dpo5k_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus diff --git a/src/tm_devices/commands/dpo5kb_commands.py b/src/tm_devices/commands/dpo5kb_commands.py index d3d2e224..475ee3f2 100644 --- a/src/tm_devices/commands/dpo5kb_commands.py +++ b/src/tm_devices/commands/dpo5kb_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3tjgb2_dpo.trigger import Trigger diff --git a/src/tm_devices/commands/dpo70kc_commands.py b/src/tm_devices/commands/dpo70kc_commands.py index b84ed9dd..913b6ded 100644 --- a/src/tm_devices/commands/dpo70kc_commands.py +++ b/src/tm_devices/commands/dpo70kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/dpo70kd_commands.py b/src/tm_devices/commands/dpo70kd_commands.py index a01e2bc2..9bf0e657 100644 --- a/src/tm_devices/commands/dpo70kd_commands.py +++ b/src/tm_devices/commands/dpo70kd_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/dpo70kdx_commands.py b/src/tm_devices/commands/dpo70kdx_commands.py index 68736f5d..a0513235 100644 --- a/src/tm_devices/commands/dpo70kdx_commands.py +++ b/src/tm_devices/commands/dpo70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/dpo70ksx_commands.py b/src/tm_devices/commands/dpo70ksx_commands.py index 28527280..783d72e8 100644 --- a/src/tm_devices/commands/dpo70ksx_commands.py +++ b/src/tm_devices/commands/dpo70ksx_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_4jiykk_dpo.channelmapping import Channelmapping diff --git a/src/tm_devices/commands/dpo7k_commands.py b/src/tm_devices/commands/dpo7k_commands.py index c36cf8a4..d0b4de54 100644 --- a/src/tm_devices/commands/dpo7k_commands.py +++ b/src/tm_devices/commands/dpo7k_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus diff --git a/src/tm_devices/commands/dpo7kc_commands.py b/src/tm_devices/commands/dpo7kc_commands.py index 211bbfb8..e9c2b100 100644 --- a/src/tm_devices/commands/dpo7kc_commands.py +++ b/src/tm_devices/commands/dpo7kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_3skc3w_dpo.trigger import Trigger diff --git a/src/tm_devices/commands/dsa70kc_commands.py b/src/tm_devices/commands/dsa70kc_commands.py index 1df3b828..8a8870f0 100644 --- a/src/tm_devices/commands/dsa70kc_commands.py +++ b/src/tm_devices/commands/dsa70kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/dsa70kd_commands.py b/src/tm_devices/commands/dsa70kd_commands.py index 0a4f3207..2a581422 100644 --- a/src/tm_devices/commands/dsa70kd_commands.py +++ b/src/tm_devices/commands/dsa70kd_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5vmwut_dpodsamso.trigger import Trigger diff --git a/src/tm_devices/commands/gen_163n04_mdo/search.py b/src/tm_devices/commands/gen_163n04_mdo/search.py index dc86d828..0d2afaec 100644 --- a/src/tm_devices/commands/gen_163n04_mdo/search.py +++ b/src/tm_devices/commands/gen_163n04_mdo/search.py @@ -458,7 +458,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_16x4xq_mdo/search.py b/src/tm_devices/commands/gen_16x4xq_mdo/search.py index 80f9ebd6..f3c09c8e 100644 --- a/src/tm_devices/commands/gen_16x4xq_mdo/search.py +++ b/src/tm_devices/commands/gen_16x4xq_mdo/search.py @@ -420,7 +420,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py index 1e4fa916..fd01d7c5 100644 --- a/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1jzp7o_mdodpo/trigger.py @@ -462,7 +462,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py index e2067997..cc86ec52 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/search.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/search.py @@ -464,7 +464,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSpectralList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py index 4e541258..55d5b308 100644 --- a/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py +++ b/src/tm_devices/commands/gen_1kdqwg_mdo/trigger.py @@ -508,7 +508,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py index 52acbee8..da5e9557 100644 --- a/src/tm_devices/commands/gen_1kjd62_mdo/rf.py +++ b/src/tm_devices/commands/gen_1kjd62_mdo/rf.py @@ -144,7 +144,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1kozfv_dpo/search.py b/src/tm_devices/commands/gen_1kozfv_dpo/search.py index dd28c0e7..193054c8 100644 --- a/src/tm_devices/commands/gen_1kozfv_dpo/search.py +++ b/src/tm_devices/commands/gen_1kozfv_dpo/search.py @@ -399,7 +399,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py index 33ebb5b5..933796b6 100644 --- a/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py +++ b/src/tm_devices/commands/gen_1l4fot_mdomso/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py index 471f3961..c78b743f 100644 --- a/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py +++ b/src/tm_devices/commands/gen_1la1ym_msomdodpo/trigger.py @@ -502,7 +502,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py index d9cb9243..537f4597 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/message.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py index 636e5057..0fa06e09 100644 --- a/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py +++ b/src/tm_devices/commands/gen_1lcv3a_msodpomdo/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SetupItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py index f7a524b0..51d70b03 100644 --- a/src/tm_devices/commands/gen_1lh2st_msodpo/search.py +++ b/src/tm_devices/commands/gen_1lh2st_msodpo/search.py @@ -437,7 +437,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py index 837806f1..c2f2314b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/actonevent.py @@ -41,7 +41,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventRepeatcount(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py index d33aa150..dcf99e6b 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/afg.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py index 3c2844ab..03313831 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/alias.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py index b388616a..8294d11c 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/application.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py index 40a02135..64f0e5eb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py index a5f9a47e..446f4fb1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxin.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py index 6fcee08b..20c74697 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/auxout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py index 7d5d0e4f..9905c5c7 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/bus.py @@ -238,7 +238,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusUpperthresholdRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py index a4caf3ef..646763f9 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/calibrate.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py index 33498e8b..454b7115 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ch.py @@ -70,7 +70,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py index c9e0e971..b63628df 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py index 9159edfc..b64123f2 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py index b4e2d979..112ecbcc 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/diag.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py index 2dada288..0bf6b81f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DvmSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py index 262c0453..bcc2b167 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/email.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EmailSetupSmtpserver(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py index 7c78e724..5605d3ae 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ethernet.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py index 77526701..90ae33c4 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/filesystem.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py index 3591a78b..376d2034 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py index e6412e9a..1fc357eb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/gpibusb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py index 780fd0ac..c537840f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/hardcopy.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py index 524b8564..9809adce 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/histogram.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramStart(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py index e768ede4..78124085 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/horizontal.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py index 4ee102a1..4dbc5bde 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/mark.py @@ -35,7 +35,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkUserlist(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py index 9eeea21d..cbe887cb 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/marker.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkerType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py index d8d0e577..6904c96a 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/math1.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py index 28302ff1..a1edbfae 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/pictbridge.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PictbridgePrintqual(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py index c7c28ce8..e78dacb8 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/power.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerVoltagesource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py index c5419edb..54884f2e 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/reboot.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Reboot(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py index cf38aae0..43e3869c 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/ref.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py index 6d46c65f..ce6e0bf1 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/save.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformGating(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py index 28b9741b..fe18e54f 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py index 7b1d219b..19d87004 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/time.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py index a2264c93..4c1a3ca6 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/vidpic.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VidpicStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py index 2ee5d13e..d02c0ef3 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfminpre.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py index d85e215a..73701666 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py index 4da5ef28..df3d55b5 100644 --- a/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py +++ b/src/tm_devices/commands/gen_1ltpwt_mdomsodpo/zoom.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1Trigpos(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py index 08e53c5c..ceae7892 100644 --- a/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py +++ b/src/tm_devices/commands/gen_1lwj1r_msomdodpo/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py index dd0ccaa9..bf0a19db 100644 --- a/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py +++ b/src/tm_devices/commands/gen_1lxxm9_msomdodpo/cursor.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py index b27fae03..67461e72 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/acquire.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py index 73c5d9af..054ef4b8 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/configuration.py @@ -62,7 +62,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py index ccf437a0..c415490b 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py index 854aa89e..df897bee 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/display.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py index 0ce03017..ea5f2b61 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/mask.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py index 57a62321..431ffceb 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py index 6938d4f1..4622ff24 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py index e3e5aab7..8e45e9ec 100644 --- a/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py +++ b/src/tm_devices/commands/gen_1mlt9u_mdomsodpo/select.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRfPhase(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py index b06b8619..9ce433ea 100644 --- a/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py +++ b/src/tm_devices/commands/gen_1mq0z9_msodpo/rf.py @@ -130,7 +130,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py index dd1b6709..9ca77066 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/clearmenu.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clearmenu(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py index d8736361..ee60af1a 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/errlog.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrlogNumentries(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py index cf8f3c7a..37ab5a0c 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/language.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Language(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py index 50441ab9..39f92bf0 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/status_and_error.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py index a3f262dd..bef636c0 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py index 87fe2a97..f8311c85 100644 --- a/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py +++ b/src/tm_devices/commands/gen_1nmc1o_msodpomdo/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/acquire.py b/src/tm_devices/commands/gen_1zn03_mso/acquire.py index fbea55b5..52077b16 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/acquire.py +++ b/src/tm_devices/commands/gen_1zn03_mso/acquire.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py index c62f9fa5..91e916ff 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/actonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/auxout.py b/src/tm_devices/commands/gen_1zn03_mso/auxout.py index 2602a640..1722ae43 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/auxout.py +++ b/src/tm_devices/commands/gen_1zn03_mso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/battery.py b/src/tm_devices/commands/gen_1zn03_mso/battery.py index 19055426..ae8cb7e5 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/battery.py +++ b/src/tm_devices/commands/gen_1zn03_mso/battery.py @@ -23,7 +23,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BatterySlotItemTimetofull(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/bus.py b/src/tm_devices/commands/gen_1zn03_mso/bus.py index cdf356d8..1b95ba76 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/bus.py +++ b/src/tm_devices/commands/gen_1zn03_mso/bus.py @@ -188,7 +188,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/callouts.py b/src/tm_devices/commands/gen_1zn03_mso/callouts.py index cad21d24..30c3f357 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/callouts.py +++ b/src/tm_devices/commands/gen_1zn03_mso/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ch.py b/src/tm_devices/commands/gen_1zn03_mso/ch.py index 35385755..f57513cb 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ch.py @@ -67,7 +67,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelVtermBias(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/data.py b/src/tm_devices/commands/gen_1zn03_mso/data.py index 34535aa5..6f896ab9 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/data.py +++ b/src/tm_devices/commands/gen_1zn03_mso/data.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/dch.py b/src/tm_devices/commands/gen_1zn03_mso/dch.py index b25a1b21..5ecbf7af 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/dch.py +++ b/src/tm_devices/commands/gen_1zn03_mso/dch.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DchItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/diag.py b/src/tm_devices/commands/gen_1zn03_mso/diag.py index 1224c742..5c77c35e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/diag.py +++ b/src/tm_devices/commands/gen_1zn03_mso/diag.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/display.py b/src/tm_devices/commands/gen_1zn03_mso/display.py index e0088566..27cc4c82 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/display.py +++ b/src/tm_devices/commands/gen_1zn03_mso/display.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py index 3983aaac..b65d8509 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/fpanel.py +++ b/src/tm_devices/commands/gen_1zn03_mso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py index 2bcdd0b6..d3107740 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/horizontal.py +++ b/src/tm_devices/commands/gen_1zn03_mso/horizontal.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/mask.py b/src/tm_devices/commands/gen_1zn03_mso/mask.py index c6e95e9e..f5e3d370 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/mask.py +++ b/src/tm_devices/commands/gen_1zn03_mso/mask.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/math.py b/src/tm_devices/commands/gen_1zn03_mso/math.py index 52060988..cb726cd7 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/math.py +++ b/src/tm_devices/commands/gen_1zn03_mso/math.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/measurement.py b/src/tm_devices/commands/gen_1zn03_mso/measurement.py index 1f195bc8..af973511 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/measurement.py +++ b/src/tm_devices/commands/gen_1zn03_mso/measurement.py @@ -351,7 +351,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsCyclemode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/pg.py b/src/tm_devices/commands/gen_1zn03_mso/pg.py index 724a3f27..92f0dcbf 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/pg.py +++ b/src/tm_devices/commands/gen_1zn03_mso/pg.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PgPatterndefinition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/plot.py b/src/tm_devices/commands/gen_1zn03_mso/plot.py index 5fb9e4e9..77558917 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/plot.py +++ b/src/tm_devices/commands/gen_1zn03_mso/plot.py @@ -28,7 +28,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_1zn03_mso/power.py b/src/tm_devices/commands/gen_1zn03_mso/power.py index b58edba6..cc80a35b 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/power.py +++ b/src/tm_devices/commands/gen_1zn03_mso/power.py @@ -57,7 +57,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemResultsCurrentacqMinimum(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_1zn03_mso/ref.py b/src/tm_devices/commands/gen_1zn03_mso/ref.py index aa21c69f..5a22c0a0 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/ref.py +++ b/src/tm_devices/commands/gen_1zn03_mso/ref.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/save.py b/src/tm_devices/commands/gen_1zn03_mso/save.py index cebf85d7..0efbd69e 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/save.py +++ b/src/tm_devices/commands/gen_1zn03_mso/save.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveon.py b/src/tm_devices/commands/gen_1zn03_mso/saveon.py index 1560fd21..4fbc1d9a 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveon.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py index 23c53d44..cd80cbb4 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py +++ b/src/tm_devices/commands/gen_1zn03_mso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/search.py b/src/tm_devices/commands/gen_1zn03_mso/search.py index 26a7d178..9209b0e4 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/search.py +++ b/src/tm_devices/commands/gen_1zn03_mso/search.py @@ -246,7 +246,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/select.py b/src/tm_devices/commands/gen_1zn03_mso/select.py index 1d3054fe..a69ba107 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/select.py +++ b/src/tm_devices/commands/gen_1zn03_mso/select.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectDchItemDall(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py index 2d67262d..c82cc26c 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py +++ b/src/tm_devices/commands/gen_1zn03_mso/touchscreen.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_1zn03_mso/trigger.py b/src/tm_devices/commands/gen_1zn03_mso/trigger.py index 83159141..580a8e75 100644 --- a/src/tm_devices/commands/gen_1zn03_mso/trigger.py +++ b/src/tm_devices/commands/gen_1zn03_mso/trigger.py @@ -208,7 +208,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py index 9fc967f2..e7af11da 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py +++ b/src/tm_devices/commands/gen_22daqs_afg/afgcontrol.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgcontrolCscopy(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/data.py b/src/tm_devices/commands/gen_22daqs_afg/data.py index 3ff120f1..f499a07f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/data.py +++ b/src/tm_devices/commands/gen_22daqs_afg/data.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataPoints(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py index 653cb8cc..e5400bbe 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py +++ b/src/tm_devices/commands/gen_22daqs_afg/diagnostic.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/display.py b/src/tm_devices/commands/gen_22daqs_afg/display.py index 0b7cbdbf..1cf30717 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/display.py +++ b/src/tm_devices/commands/gen_22daqs_afg/display.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWindowTextData(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py index 65d696ce..8fb00c75 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/hcopy.py +++ b/src/tm_devices/commands/gen_22daqs_afg/hcopy.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HcopySdumpImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/memory.py b/src/tm_devices/commands/gen_22daqs_afg/memory.py index 2d562d74..dca0c2ea 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/memory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/memory.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MemoryStateValid(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py index 0f428e7e..e1e241d2 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/mmemory.py +++ b/src/tm_devices/commands/gen_22daqs_afg/mmemory.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemoryStoreTrace(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output.py b/src/tm_devices/commands/gen_22daqs_afg/output.py index 70fc65c1..b9b13513 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputTriggerMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output1.py b/src/tm_devices/commands/gen_22daqs_afg/output1.py index 8040e0c7..ce5b0f8f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output1.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Output1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/output2.py b/src/tm_devices/commands/gen_22daqs_afg/output2.py index 1d478c58..90352890 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/output2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/output2.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Output2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source.py b/src/tm_devices/commands/gen_22daqs_afg/source.py index e312cf46..25b39de8 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceRoscillatorSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source1.py b/src/tm_devices/commands/gen_22daqs_afg/source1.py index e3307764..9fbfe61e 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source1.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source1.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source1VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source2.py b/src/tm_devices/commands/gen_22daqs_afg/source2.py index 8c8244d9..4a3273fb 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source2.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source2.py @@ -148,7 +148,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source2VoltageUnit(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source3.py b/src/tm_devices/commands/gen_22daqs_afg/source3.py index 80380323..33e9b136 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source3.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source3.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source3PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/source4.py b/src/tm_devices/commands/gen_22daqs_afg/source4.py index d55061ec..27d42a5f 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/source4.py +++ b/src/tm_devices/commands/gen_22daqs_afg/source4.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Source4PowerLevelImmediateAmplitude(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/status.py b/src/tm_devices/commands/gen_22daqs_afg/status.py index b93e11ac..cdddcad1 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/status.py +++ b/src/tm_devices/commands/gen_22daqs_afg/status.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/system.py b/src/tm_devices/commands/gen_22daqs_afg/system.py index 81782937..ea04a6d9 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/system.py +++ b/src/tm_devices/commands/gen_22daqs_afg/system.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_22daqs_afg/trigger.py b/src/tm_devices/commands/gen_22daqs_afg/trigger.py index a369468e..62b2e30b 100644 --- a/src/tm_devices/commands/gen_22daqs_afg/trigger.py +++ b/src/tm_devices/commands/gen_22daqs_afg/trigger.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerSequenceTimer(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py index 42f810d6..596026f8 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/abort.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Abort(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py index 242fe431..7daa0396 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py index a99b9014..94675e01 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/awgcontrol.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py index 18092fc3..41510a3f 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/bwaveform.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BwaveformSrate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py index 67f1ee05..c0e595b5 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/clock.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/clock.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py index d94d1408..d06eebe9 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/cplayback.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py index 1468234f..7d501eb4 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/diagnostic.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py index 783709db..d7ab5fb9 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py index a30677fe..266f7d33 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py index 8f234cf0..9c6a5f84 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/mmemory.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/output.py b/src/tm_devices/commands/gen_2i1z2s_awg/output.py index a3abe75b..9562c728 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/output.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/output.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/source.py b/src/tm_devices/commands/gen_2i1z2s_awg/source.py index 126cb21e..b2082e9c 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/source.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/source.py @@ -78,7 +78,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py index dff29981..e111a55d 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/synchronize.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SynchronizeType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/system.py b/src/tm_devices/commands/gen_2i1z2s_awg/system.py index 93fc48a5..66d2443a 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/system.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/system.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py index fbe19504..25f05e5e 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py index 1ea520ee..3523b0cc 100644 --- a/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py +++ b/src/tm_devices/commands/gen_2i1z2s_awg/wlist.py @@ -144,7 +144,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py index 8571631d..e0372e5c 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_32dszm_awg/awgcontrol.py @@ -70,7 +70,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolStopImmediate(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py index 1c0402f7..ba1df850 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_32dszm_awg/diagnostic.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticSelect(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/display.py b/src/tm_devices/commands/gen_32dszm_awg/display.py index 8a4f249a..e92b5b44 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/display.py +++ b/src/tm_devices/commands/gen_32dszm_awg/display.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWindow2State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/event.py b/src/tm_devices/commands/gen_32dszm_awg/event.py index 91315c60..41e0c8de 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/event.py +++ b/src/tm_devices/commands/gen_32dszm_awg/event.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EventPolarity(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/instrument.py b/src/tm_devices/commands/gen_32dszm_awg/instrument.py index d7a51966..a1d2aee4 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/instrument.py +++ b/src/tm_devices/commands/gen_32dszm_awg/instrument.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentCoupleSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py index b7add4f1..1003fd54 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/mmemory.py +++ b/src/tm_devices/commands/gen_32dszm_awg/mmemory.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemoryMsis(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/output.py b/src/tm_devices/commands/gen_32dszm_awg/output.py index 34ccb012..df1f0d5e 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/output.py +++ b/src/tm_devices/commands/gen_32dszm_awg/output.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/sequence.py b/src/tm_devices/commands/gen_32dszm_awg/sequence.py index a2c66874..680023ce 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/sequence.py +++ b/src/tm_devices/commands/gen_32dszm_awg/sequence.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SequenceLength(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/slist.py b/src/tm_devices/commands/gen_32dszm_awg/slist.py index 1efe9aa9..51fa9563 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/slist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/slist.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SlistSubsequenceTstamp(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_32dszm_awg/source.py b/src/tm_devices/commands/gen_32dszm_awg/source.py index 79e1d290..128ef853 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/source.py +++ b/src/tm_devices/commands/gen_32dszm_awg/source.py @@ -83,7 +83,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/status.py b/src/tm_devices/commands/gen_32dszm_awg/status.py index 02d34b99..74f2f471 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/status.py +++ b/src/tm_devices/commands/gen_32dszm_awg/status.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionableEvent(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/system.py b/src/tm_devices/commands/gen_32dszm_awg/system.py index 7be3b192..d8b95ee6 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/system.py +++ b/src/tm_devices/commands/gen_32dszm_awg/system.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/trigger.py b/src/tm_devices/commands/gen_32dszm_awg/trigger.py index 8ab6570a..e17a71d0 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/trigger.py +++ b/src/tm_devices/commands/gen_32dszm_awg/trigger.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerSequenceWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_32dszm_awg/wlist.py b/src/tm_devices/commands/gen_32dszm_awg/wlist.py index 3dbae341..d61827d5 100644 --- a/src/tm_devices/commands/gen_32dszm_awg/wlist.py +++ b/src/tm_devices/commands/gen_32dszm_awg/wlist.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py index 83235e98..bdab01f7 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/abort.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Abort(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py index 988058fe..baa9447d 100644 --- a/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py +++ b/src/tm_devices/commands/gen_33ijgq_afgawg/calibration.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrationAll(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/active.py b/src/tm_devices/commands/gen_3n9auv_awg/active.py index 4c490383..fd5427c2 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/active.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/active.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActiveMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py index b5a0b5e5..4cd2a0f7 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/calibration.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/calibration.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrationStopState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py index cbd264d4..b102cfa0 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/connectivity.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConnectivityStatus(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/display.py b/src/tm_devices/commands/gen_3n9auv_awg/display.py index e18c1de2..49afcea9 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/display.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/display.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayPlotState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/output.py b/src/tm_devices/commands/gen_3n9auv_awg/output.py index eb06db44..e9007d05 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/output.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/output.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputOff(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/slist.py b/src/tm_devices/commands/gen_3n9auv_awg/slist.py index ddd21775..99b464e8 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/slist.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/slist.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SlistSize(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/status.py b/src/tm_devices/commands/gen_3n9auv_awg/status.py index aee71490..3a24b2f4 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/status.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/status.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class StatusQuestionablePtransition(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py index 1a22d9d4..86f0ae38 100644 --- a/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py +++ b/src/tm_devices/commands/gen_3n9auv_awg/wplugin.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WpluginPlugins(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py index 5cbd269e..681b0702 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/auxoutput.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutputItemSourceCmapping(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py index 4478a98b..9ad808ee 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/awgcontrol.py @@ -67,7 +67,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AwgcontrolTimerStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py index 230697ba..15cb8624 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/bwaveform.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BwaveformSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py index 53e92d06..66c6f6ee 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/clock.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/clock.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ClockSrate(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py index 1f0e861a..0c292552 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/cplayback.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CplaybackCompileSrateAuto(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py index 7e52c232..59f228f4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/diagnostic.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagnosticUnselect(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py index 06c0e912..4e2a558f 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/fgen.py @@ -40,7 +40,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FgenChannelItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py index d7070568..3be2e0a4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/instrument.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class InstrumentMode(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py index 3de817f3..bb747b15 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/mmemory.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MmemorySaveWaveformWfmx(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/output.py b/src/tm_devices/commands/gen_3rs8qy_awg/output.py index 1b86fe2b..f32127bb 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/output.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/output.py @@ -46,7 +46,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class OutputItemWvalueMarkerItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/source.py b/src/tm_devices/commands/gen_3rs8qy_awg/source.py index 01110d2f..fe8f952d 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/source.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/source.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SourceItemWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py index d0293960..31e3db8d 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/synchronize.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SynchronizeType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/system.py b/src/tm_devices/commands/gen_3rs8qy_awg/system.py index a95af62b..48ef5cc6 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/system.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/system.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py index 85fc98be..0090e6f4 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/trigger.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerWvalue(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py index d09cbf9b..8bdc813e 100644 --- a/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py +++ b/src/tm_devices/commands/gen_3rs8qy_awg/wlist.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WlistWaveformType(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py index 21d101ca..c298c4b4 100644 --- a/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3skc3w_dpo/trigger.py @@ -1042,7 +1042,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py index e4d80a97..fd6de4af 100644 --- a/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py +++ b/src/tm_devices/commands/gen_3tjgb2_dpo/trigger.py @@ -1052,7 +1052,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py index 4551c57b..2d88c030 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/channelmapping.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Channelmapping(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py index d6592e1f..2819cc0b 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/counter.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/counter.py @@ -50,7 +50,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CounterView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py index cbd97aee..f10a27ae 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/errordetector.py @@ -177,7 +177,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py index 32452a39..8c36d289 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/idnmultiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class IdnmultiscopeDigitalBit(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py index dfc4246c..44facb35 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/linktraining.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LinktrainingTriggeron(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py index 43061e51..fd92aade 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/rosc.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py index 4a1cf365..db309d78 100644 --- a/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py +++ b/src/tm_devices/commands/gen_4jiykk_dpo/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py index 061081da..77c2e070 100644 --- a/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py +++ b/src/tm_devices/commands/gen_53md2e_dpomso/fpanel.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelPress(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_561g9r_mso/trigger.py b/src/tm_devices/commands/gen_561g9r_mso/trigger.py index c36cd13d..5b8fc853 100644 --- a/src/tm_devices/commands/gen_561g9r_mso/trigger.py +++ b/src/tm_devices/commands/gen_561g9r_mso/trigger.py @@ -1056,7 +1056,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py index 984a6c51..4e67ffb0 100644 --- a/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py +++ b/src/tm_devices/commands/gen_5ri0nj_dpomso/bus.py @@ -214,7 +214,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py index d6abefd6..f8cfafbc 100644 --- a/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py +++ b/src/tm_devices/commands/gen_5vmwut_dpodsamso/trigger.py @@ -1004,7 +1004,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py index d50189f2..f8470d80 100644 --- a/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py +++ b/src/tm_devices/commands/gen_5xwdsk_dpodsamso/errordetector.py @@ -209,7 +209,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py index 7c8a7246..9ffeb1b4 100644 --- a/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py +++ b/src/tm_devices/commands/gen_5y90wx_dpodsamso/dpojet.py @@ -717,7 +717,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DpojetVersion(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py index 3aea9af0..687487d8 100644 --- a/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py +++ b/src/tm_devices/commands/gen_5yyb4r_mso/trigger.py @@ -1008,7 +1008,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py index 4f343142..7959dc33 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/buffer.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/script.py b/src/tm_devices/commands/gen_60xy3r_smu/script.py index b8acf794..04781bfa 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/script.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/smu.py b/src/tm_devices/commands/gen_60xy3r_smu/smu.py index bbb6955f..a3165e5e 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/smu.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py index 0378d816..02bb8944 100644 --- a/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py +++ b/src/tm_devices/commands/gen_60xy3r_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py index 119c0dc5..b3efdbe2 100644 --- a/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py +++ b/src/tm_devices/commands/gen_6ocqvh_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/smu.py b/src/tm_devices/commands/gen_6srh1x_smu/smu.py index c98d418b..65845213 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/smu.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/smu.py @@ -105,7 +105,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py index c565d2ca..d9acca82 100644 --- a/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6srh1x_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/acal.py b/src/tm_devices/commands/gen_6vynmi_smu/acal.py index 083ab220..3b54a418 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/acal.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/acal.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class AcalLastrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/smu.py b/src/tm_devices/commands/gen_6vynmi_smu/smu.py index 8de42855..b64f789c 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/smu.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/smu.py @@ -145,7 +145,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py index 4ec30486..5dd46a0c 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/trigger.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py index b9ed29bb..ed8c8c19 100644 --- a/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6vynmi_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6w7311_smu/trigger.py b/src/tm_devices/commands/gen_6w7311_smu/trigger.py index ceeccc2a..d6bf548d 100644 --- a/src/tm_devices/commands/gen_6w7311_smu/trigger.py +++ b/src/tm_devices/commands/gen_6w7311_smu/trigger.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py index 178b3fe0..bcfa10b9 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/buffer.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py index f02b5a29..bd1126ad 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/smu.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/smu.py @@ -106,7 +106,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuSourceVlimit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py index 40207dfb..e93c15df 100644 --- a/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py +++ b/src/tm_devices/commands/gen_6xiuc2_smu/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py index edd2bc80..41835ddc 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/buffervar.py @@ -43,7 +43,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/display.py b/src/tm_devices/commands/gen_7kqm9p_smu/display.py index a90614d9..d4389b04 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/display.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py index 3276b058..71d6aa8d 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tsplink.py @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py index 5c5001d4..cb29c0d9 100644 --- a/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7kqm9p_smu/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7ryhce_smu/status.py b/src/tm_devices/commands/gen_7ryhce_smu/status.py index c8468e74..58defb1f 100644 --- a/src/tm_devices/commands/gen_7ryhce_smu/status.py +++ b/src/tm_devices/commands/gen_7ryhce_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py index 9070940a..b1dd98d7 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/beeper.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py index f2ce561a..a448fa4f 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/buffervar.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Buffervar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py index 7e83c915..b8426c78 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/dataqueue.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py index d76806d7..88c1fd0a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/digio.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/digio.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/display.py b/src/tm_devices/commands/gen_7s2p1p_smu/display.py index e4d9ce54..8381995f 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/display.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/display.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py index c03f72f5..9bc526cd 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/errorqueue.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py index f5991e4c..752778a5 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/eventlog.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/format.py b/src/tm_devices/commands/gen_7s2p1p_smu/format.py index 9b702902..85534576 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/format.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/format.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py index f985f41f..5d349c96 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/lan.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/lan.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py index 5a652370..09872016 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/localnode.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py index 1c3bf755..7f6a9c86 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/serial.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/serial.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py index 14681a2e..36c3efda 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/smux.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/smux.py @@ -128,7 +128,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/status.py b/src/tm_devices/commands/gen_7s2p1p_smu/status.py index a5988000..e11a1185 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/status.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/status.py @@ -121,7 +121,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py index ad3cc64b..14df2859 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/trigger.py @@ -19,7 +19,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py index c5bdfe8d..130758f6 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tsplink.py @@ -20,7 +20,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py index 5a86eb67..305c885a 100644 --- a/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py +++ b/src/tm_devices/commands/gen_7s2p1p_smu/tspnet.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_7s43m8_smu/status.py b/src/tm_devices/commands/gen_7s43m8_smu/status.py index 2b000b54..b208ae20 100644 --- a/src/tm_devices/commands/gen_7s43m8_smu/status.py +++ b/src/tm_devices/commands/gen_7s43m8_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_7s6wr5_smu/status.py b/src/tm_devices/commands/gen_7s6wr5_smu/status.py index 3faffad7..b445a726 100644 --- a/src/tm_devices/commands/gen_7s6wr5_smu/status.py +++ b/src/tm_devices/commands/gen_7s6wr5_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/display.py b/src/tm_devices/commands/gen_8ojdkz_smu/display.py index f8242ab9..0992a62d 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/display.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/node.py b/src/tm_devices/commands/gen_8ojdkz_smu/node.py index 52d4087c..fc877b19 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/node.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py index b4b26772..85c63d5f 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/smux.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/smux.py @@ -117,7 +117,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8ojdkz_smu/status.py b/src/tm_devices/commands/gen_8ojdkz_smu/status.py index 7162d928..9c8e3cab 100644 --- a/src/tm_devices/commands/gen_8ojdkz_smu/status.py +++ b/src/tm_devices/commands/gen_8ojdkz_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_8wm55i_smu/smux.py b/src/tm_devices/commands/gen_8wm55i_smu/smux.py index 73dd969c..6a65909d 100644 --- a/src/tm_devices/commands/gen_8wm55i_smu/smux.py +++ b/src/tm_devices/commands/gen_8wm55i_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9kezla_smu/smux.py b/src/tm_devices/commands/gen_9kezla_smu/smux.py index 9a0fd1df..1535f383 100644 --- a/src/tm_devices/commands/gen_9kezla_smu/smux.py +++ b/src/tm_devices/commands/gen_9kezla_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py index da175a4a..0ae45358 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/digio.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/display.py b/src/tm_devices/commands/gen_9mzp2j_smu/display.py index ca7197eb..ea5f69cc 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/display.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py index 2183cdfb..a888e8e5 100644 --- a/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py +++ b/src/tm_devices/commands/gen_9mzp2j_smu/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9ncc6e_smu/display.py b/src/tm_devices/commands/gen_9ncc6e_smu/display.py index be5615ea..7d6b2979 100644 --- a/src/tm_devices/commands/gen_9ncc6e_smu/display.py +++ b/src/tm_devices/commands/gen_9ncc6e_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9nnkq7_smu/status.py b/src/tm_devices/commands/gen_9nnkq7_smu/status.py index 88fcb028..b1410751 100644 --- a/src/tm_devices/commands/gen_9nnkq7_smu/status.py +++ b/src/tm_devices/commands/gen_9nnkq7_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_9slyux_smu/status.py b/src/tm_devices/commands/gen_9slyux_smu/status.py index 62fe927b..1a1d6a43 100644 --- a/src/tm_devices/commands/gen_9slyux_smu/status.py +++ b/src/tm_devices/commands/gen_9slyux_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py index b662271f..405792f6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/beeper.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/beeper.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py index 723b1b30..7625276e 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/buffervar.py @@ -41,7 +41,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py index b769eb96..115fe0e0 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/eventlog.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/lan.py b/src/tm_devices/commands/gen_ahkybr_smu/lan.py index 63be55c0..ba55bfb6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/lan.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/lan.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/os.py b/src/tm_devices/commands/gen_ahkybr_smu/os.py index 1a922056..f0189cd7 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/os.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/os.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/script.py b/src/tm_devices/commands/gen_ahkybr_smu/script.py index 1307cf7c..d4ff7f86 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/script.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/script.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py index aa15b629..0668b079 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/scriptvar.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py index c9dc0809..32f6c7e6 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/setup_1.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py index 773e4af0..6b381e3d 100644 --- a/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py +++ b/src/tm_devices/commands/gen_ahkybr_smu/tspnet.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py index 9f16a514..ad3d5659 100644 --- a/src/tm_devices/commands/gen_aih9e2_smu/trigger.py +++ b/src/tm_devices/commands/gen_aih9e2_smu/trigger.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ak4990_smu/smux.py b/src/tm_devices/commands/gen_ak4990_smu/smux.py index d3885da7..e7576662 100644 --- a/src/tm_devices/commands/gen_ak4990_smu/smux.py +++ b/src/tm_devices/commands/gen_ak4990_smu/smux.py @@ -119,7 +119,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/smux.py b/src/tm_devices/commands/gen_am6pcr_smu/smux.py index 7b30b0c4..136eb092 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/smux.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_am6pcr_smu/status.py b/src/tm_devices/commands/gen_am6pcr_smu/status.py index f038b2dc..74ba056e 100644 --- a/src/tm_devices/commands/gen_am6pcr_smu/status.py +++ b/src/tm_devices/commands/gen_am6pcr_smu/status.py @@ -230,7 +230,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/digio.py b/src/tm_devices/commands/gen_amm5lc_smu/digio.py index f87a2a5d..3a48739c 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/digio.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py index 77da023c..13cf96d3 100644 --- a/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py +++ b/src/tm_devices/commands/gen_amm5lc_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aostep_smu/serial.py b/src/tm_devices/commands/gen_aostep_smu/serial.py index b6ed0641..48e5e4c1 100644 --- a/src/tm_devices/commands/gen_aostep_smu/serial.py +++ b/src/tm_devices/commands/gen_aostep_smu/serial.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Serial(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py index 256a3cc7..6cdf2486 100644 --- a/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py +++ b/src/tm_devices/commands/gen_aqr1t1_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py index 6909fee1..3956a2c4 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/localnode.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/smux.py b/src/tm_devices/commands/gen_as1ejq_smu/smux.py index d2f56b42..526a42c3 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/smux.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/smux.py @@ -120,7 +120,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SmuxItemTriggerSource(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_as1ejq_smu/status.py b/src/tm_devices/commands/gen_as1ejq_smu/status.py index 523ea600..e88d2401 100644 --- a/src/tm_devices/commands/gen_as1ejq_smu/status.py +++ b/src/tm_devices/commands/gen_as1ejq_smu/status.py @@ -235,7 +235,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_at7jl1_smu/display.py b/src/tm_devices/commands/gen_at7jl1_smu/display.py index f22cc1f5..c58b94ca 100644 --- a/src/tm_devices/commands/gen_at7jl1_smu/display.py +++ b/src/tm_devices/commands/gen_at7jl1_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/digio.py b/src/tm_devices/commands/gen_au597k_smu/digio.py index 53601ac1..a5a4d622 100644 --- a/src/tm_devices/commands/gen_au597k_smu/digio.py +++ b/src/tm_devices/commands/gen_au597k_smu/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/format.py b/src/tm_devices/commands/gen_au597k_smu/format.py index bacea614..b9d2724d 100644 --- a/src/tm_devices/commands/gen_au597k_smu/format.py +++ b/src/tm_devices/commands/gen_au597k_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_au597k_smu/tsplink.py b/src/tm_devices/commands/gen_au597k_smu/tsplink.py index 609199ed..1fde4c3d 100644 --- a/src/tm_devices/commands/gen_au597k_smu/tsplink.py +++ b/src/tm_devices/commands/gen_au597k_smu/tsplink.py @@ -44,7 +44,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/format.py b/src/tm_devices/commands/gen_auyr50_smu/format.py index ea19c152..94230aa4 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/format.py +++ b/src/tm_devices/commands/gen_auyr50_smu/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/localnode.py b/src/tm_devices/commands/gen_auyr50_smu/localnode.py index df206eeb..df4e298c 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/localnode.py +++ b/src/tm_devices/commands/gen_auyr50_smu/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_auyr50_smu/node.py b/src/tm_devices/commands/gen_auyr50_smu/node.py index 3f612a89..d064d969 100644 --- a/src/tm_devices/commands/gen_auyr50_smu/node.py +++ b/src/tm_devices/commands/gen_auyr50_smu/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/display.py b/src/tm_devices/commands/gen_avh0iw_smu/display.py index 03f8c94e..95ac3289 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/display.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/display.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayTrigger(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py index 3cf6ede8..f19b2e50 100644 --- a/src/tm_devices/commands/gen_avh0iw_smu/trigger.py +++ b/src/tm_devices/commands/gen_avh0iw_smu/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_awhjao_smu/status.py b/src/tm_devices/commands/gen_awhjao_smu/status.py index afb61df9..d778a331 100644 --- a/src/tm_devices/commands/gen_awhjao_smu/status.py +++ b/src/tm_devices/commands/gen_awhjao_smu/status.py @@ -225,7 +225,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/digio.py b/src/tm_devices/commands/gen_by991s_smudaq/digio.py index 75ed82b5..5b035f46 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/digio.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_by991s_smudaq/status.py b/src/tm_devices/commands/gen_by991s_smudaq/status.py index 858290f1..302ea50e 100644 --- a/src/tm_devices/commands/gen_by991s_smudaq/status.py +++ b/src/tm_devices/commands/gen_by991s_smudaq/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py index 4861d0d4..c7833784 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/actonevent.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventType(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py index 835bc652..1f840d9b 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/bus.py @@ -623,7 +623,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py index eb76b7f9..54a349e2 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/callouts.py @@ -48,7 +48,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py index f13b8c21..8abf76b1 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ch.py @@ -107,7 +107,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py index 4f7b9dd8..c9ec4ab6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/display.py @@ -409,7 +409,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py index d106ff02..1ab35b4e 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/filesys.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesysCollectlogfiles(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py index 1f1702ef..d4b7abc0 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py index 64e9a59c..93dfebb0 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/horizontal.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py index b09dac5c..258623f6 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py index 1b1fa178..42464b92 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/math.py @@ -162,7 +162,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py index c0eba265..a3bac7af 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measu.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasuMeas1SubgroupResultsCurrentacqStddev(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py index 3beb006f..a5f07b73 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/measurement.py @@ -755,7 +755,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py index e19e6fd6..f8e37eb3 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/plot.py @@ -79,7 +79,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py index 32ac6ea6..85fb7375 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/power.py @@ -629,7 +629,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py index 33bf3f6f..910d9e7d 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/ref.py @@ -40,7 +40,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py index 5c74216b..c6fd09ff 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/remote.py @@ -96,7 +96,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RemoteUsbdescriptors(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py index 1e43f383..4ae87650 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/s.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SItemChannelScale(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py index 4ab22df3..5e889d13 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/save.py @@ -48,7 +48,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py index 828cb26e..caf3e53c 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py index bb01d122..5bcfbef9 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/search.py @@ -1232,7 +1232,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py index 048ffa92..47e3e707 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/searchtable.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Searchtable(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py index 034d6919..5d896926 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/sv.py @@ -93,7 +93,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SvSpectrogramCursorB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py index 56c6e96e..858a16f5 100644 --- a/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py +++ b/src/tm_devices/commands/gen_c3g61_tekscopepc/trigger.py @@ -37,7 +37,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerBType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py index 39b23381..d49b0102 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/lic.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicUninstall(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py index 468aef4c..9e400fd0 100644 --- a/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py +++ b/src/tm_devices/commands/gen_c69az_msotekscopepc/license.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffer.py b/src/tm_devices/commands/gen_canxny_daq/buffer.py index 708bc47b..0d4c5da9 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffer.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffer.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/buffervar.py b/src/tm_devices/commands/gen_canxny_daq/buffervar.py index 9c2f0b64..2ee4d00c 100644 --- a/src/tm_devices/commands/gen_canxny_daq/buffervar.py +++ b/src/tm_devices/commands/gen_canxny_daq/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_canxny_daq/channel.py b/src/tm_devices/commands/gen_canxny_daq/channel.py index 34079409..5a8d29df 100644 --- a/src/tm_devices/commands/gen_canxny_daq/channel.py +++ b/src/tm_devices/commands/gen_canxny_daq/channel.py @@ -47,7 +47,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/display.py b/src/tm_devices/commands/gen_canxny_daq/display.py index 9243763e..0fa2b587 100644 --- a/src/tm_devices/commands/gen_canxny_daq/display.py +++ b/src/tm_devices/commands/gen_canxny_daq/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/dmm.py b/src/tm_devices/commands/gen_canxny_daq/dmm.py index 4942ed64..6df4d237 100644 --- a/src/tm_devices/commands/gen_canxny_daq/dmm.py +++ b/src/tm_devices/commands/gen_canxny_daq/dmm.py @@ -131,7 +131,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/scan.py b/src/tm_devices/commands/gen_canxny_daq/scan.py index 6a329d4c..9eb937e9 100644 --- a/src/tm_devices/commands/gen_canxny_daq/scan.py +++ b/src/tm_devices/commands/gen_canxny_daq/scan.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/slot.py b/src/tm_devices/commands/gen_canxny_daq/slot.py index f39a8ea3..798b32e3 100644 --- a/src/tm_devices/commands/gen_canxny_daq/slot.py +++ b/src/tm_devices/commands/gen_canxny_daq/slot.py @@ -38,7 +38,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/trigger.py b/src/tm_devices/commands/gen_canxny_daq/trigger.py index 8e3815ee..538902af 100644 --- a/src/tm_devices/commands/gen_canxny_daq/trigger.py +++ b/src/tm_devices/commands/gen_canxny_daq/trigger.py @@ -118,7 +118,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/tsplink.py b/src/tm_devices/commands/gen_canxny_daq/tsplink.py index 4e48924a..70b5c84f 100644 --- a/src/tm_devices/commands/gen_canxny_daq/tsplink.py +++ b/src/tm_devices/commands/gen_canxny_daq/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_canxny_daq/upgrade.py b/src/tm_devices/commands/gen_canxny_daq/upgrade.py index 1b1aacd8..d899ff1c 100644 --- a/src/tm_devices/commands/gen_canxny_daq/upgrade.py +++ b/src/tm_devices/commands/gen_canxny_daq/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/acal.py b/src/tm_devices/commands/gen_d6b496_dmm/acal.py index 21f2edd5..02bf6737 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/acal.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/acal.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class AcalNextrun(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py index d418d648..0c6e3b7f 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffer.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py index b1b86b35..18081c05 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/buffervar.py @@ -39,7 +39,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes diff --git a/src/tm_devices/commands/gen_d6b496_dmm/display.py b/src/tm_devices/commands/gen_d6b496_dmm/display.py index 8f3c1107..e1691d81 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/display.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/display.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py index 986bf544..efbdb7a8 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/dmm.py @@ -108,7 +108,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmTriggerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/fan.py b/src/tm_devices/commands/gen_d6b496_dmm/fan.py index 2359b80a..b1faaf00 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/fan.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/fan.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Fan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py index e3dcf32c..528bf716 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/localnode.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/localnode.py @@ -31,7 +31,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py index 03a2decc..484ceba3 100644 --- a/src/tm_devices/commands/gen_d6b496_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d6b496_dmm/trigger.py @@ -114,7 +114,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py index b5d34e3b..44bbe778 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffer.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class BufferWrite(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py index d47d17de..cfd56d47 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/buffervar.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py index 074ae38d..35e24e6b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/channel.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/channel.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelMultiple(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/display.py b/src/tm_devices/commands/gen_d83qe0_dmm/display.py index 81cc2c1d..22b6aa5a 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/display.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/display.py @@ -33,7 +33,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DisplayInput(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py index d2fd12e5..7edb2d0b 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/dmm.py @@ -92,7 +92,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmMeasureThreshold(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py index f76e4e88..db40bc1f 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/scan.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/scan.py @@ -40,7 +40,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanStart(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py index 2fec5b9b..b39ca8f8 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/slot.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/slot.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemVoltage(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py index 8da861cf..1dbeca1d 100644 --- a/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py +++ b/src/tm_devices/commands/gen_d83qe0_dmm/trigger.py @@ -113,7 +113,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTsplinkoutItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py index 43d90be8..1b9e5427 100644 --- a/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py +++ b/src/tm_devices/commands/gen_dawv9y_smudaqdmm/localnode.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py index ebf597e2..d9ad08f3 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/beeper.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py index 409d0b45..c262cba9 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/eventlog.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py index 87884495..30aa99be 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/file.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class File(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py index f46507bb..8098d86a 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py index ce5293be..bed99145 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/lan.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Lan(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py index 57285f1b..d817ebe6 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/scriptvar.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py index e2dbdb8c..c1a8bb2f 100644 --- a/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py +++ b/src/tm_devices/commands/gen_dbdq3i_smudaqdmm/timer.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Timer(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py index b03c5a23..dac52ff6 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/digio.py @@ -29,7 +29,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py index 066072a2..e64e7ce0 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/node.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py index 492d6fc3..8d5a2036 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/status.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/status.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusStandard(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py index fbd1d8bf..98ee61e5 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tsplink.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkLineItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py index 7db995c0..22f7da14 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py index 8e912921..7be80ee9 100644 --- a/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py +++ b/src/tm_devices/commands/gen_dbqd7k_dmm/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py index a4182851..8e157d87 100644 --- a/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py +++ b/src/tm_devices/commands/gen_dcpheg_daqdmm/smu.py @@ -15,7 +15,7 @@ from ..helpers import BaseTSPCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py index 9034d510..d4d724fc 100644 --- a/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py +++ b/src/tm_devices/commands/gen_dd4xnb_smudaqdmm/script.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py index 223def81..d7efaa47 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py index c9017e3b..7d82ebe2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/actonevent.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ActoneventTriggerActionStopacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py index b7efb71e..be358233 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/application.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationActivate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py index dc1d7053..d6715a85 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/auxout.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py index a9647de2..e2fbf85b 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/bus.py @@ -653,7 +653,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py index e3e2e675..9a0c654f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/callouts.py @@ -47,7 +47,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalloutsCalloutItemType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py index 2c3b6106..ff81ca37 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ch.py @@ -137,7 +137,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelDallLabelName(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py index ffe05706..b412b028 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diag.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py index a2c91e22..27f98f35 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/diggrp.py @@ -25,7 +25,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiggrpItemDigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py index 3b08ce9e..61a4009f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/display.py @@ -400,7 +400,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py index aa9fa84e..79449705 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/dvm.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DvmTriggerFrequencyCounter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py index 28ad2f3c..65305323 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/fpanel.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py index 9afd3672..b1c0cffe 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/histogram.py @@ -74,7 +74,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py index 54ff9fbc..c4559329 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/horizontal.py @@ -92,7 +92,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py index 1cbf6d6c..66b0cbbc 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/license.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LicenseValidate(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py index ee10c36e..aa617dee 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/mask.py @@ -56,7 +56,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskTestWaveforms(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py index 256204fc..9342f333 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/math.py @@ -163,7 +163,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathMathItemVunit(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py index cfb4c12c..df3a1d7f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/measurement.py @@ -845,7 +845,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementWbgPdevice(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py index b345665b..c658948a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/pilogger.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PiloggerState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py index 00d75d06..798726ae 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/plot.py @@ -87,7 +87,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PlotPlotItemType(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py index 5a148ae5..c47b1e2f 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/power.py @@ -521,7 +521,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PowerPowerItemWrapState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py index 3801f7e6..7c426975 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/ref.py @@ -45,7 +45,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefRefItemSource(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py index 998805fc..9a1d5d7a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/rosc.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py index 17f7cbe4..534928b7 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/save.py @@ -49,7 +49,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSourcelist(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py index 26097063..97aad45d 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveon.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py index 01e70d54..ecbd65a4 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/saveonevent.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveoneventWaveformSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py index 99cc3730..ae1a8b8a 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/search.py @@ -1231,7 +1231,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSelected(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py index d634809e..6e48c1d3 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/searchtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchtableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py index 369cef09..7eb3d8a2 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/select.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py index 7d24d166..92079eee 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/sv.py @@ -100,7 +100,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SvWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py index 71acdbdc..081a7f4e 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/touchscreen.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TouchscreenState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py index 3962848d..95469947 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/trigger.py @@ -974,7 +974,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py index bcda0f96..84e7a9e5 100644 --- a/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py +++ b/src/tm_devices/commands/gen_e3e9uu_lpdmso/tstamptable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TstamptableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py index 82f3c9b6..0b37937a 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/afg.py @@ -53,7 +53,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AfgSquareDuty(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py index 1df7bc64..81bc43e0 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/autoset.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetVerticalOptimize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py index 9bfea675..e2a20eb9 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/calibrate.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibratePwrupstatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py index 1cc71a81..310f6968 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/connected.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConnectedUsageTrackStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py index a96e7731..62caa4a2 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/ethernet.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py index ee01fe0e..f52a6d6c 100644 --- a/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py +++ b/src/tm_devices/commands/gen_e3h2zs_lpdmso/usbdevice.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbdeviceConfigure(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e3pief_ss/beeper.py b/src/tm_devices/commands/gen_e3pief_ss/beeper.py index cc2edb43..9e4e9faa 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/beeper.py +++ b/src/tm_devices/commands/gen_e3pief_ss/beeper.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Beeper(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py index 357b232a..f56d3718 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/buffervar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/buffervar.py @@ -42,7 +42,7 @@ from ..helpers import BaseTSPCmd, DefaultDictDeviceCommunication, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-many-instance-attributes,too-many-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/channel.py b/src/tm_devices/commands/gen_e3pief_ss/channel.py index a1981322..fb4f97f7 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/channel.py +++ b/src/tm_devices/commands/gen_e3pief_ss/channel.py @@ -77,7 +77,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ChannelTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/comm.py b/src/tm_devices/commands/gen_e3pief_ss/comm.py index 7f406da3..463c144a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/comm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/comm.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class CommLanWeb(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/digio.py b/src/tm_devices/commands/gen_e3pief_ss/digio.py index d09e63c0..18abd254 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/digio.py +++ b/src/tm_devices/commands/gen_e3pief_ss/digio.py @@ -38,7 +38,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DigioTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/display.py b/src/tm_devices/commands/gen_e3pief_ss/display.py index ce46d9b6..c516754c 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/display.py +++ b/src/tm_devices/commands/gen_e3pief_ss/display.py @@ -35,7 +35,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/gen_e3pief_ss/dmm.py b/src/tm_devices/commands/gen_e3pief_ss/dmm.py index c7a38242..54471bf2 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/dmm.py +++ b/src/tm_devices/commands/gen_e3pief_ss/dmm.py @@ -94,7 +94,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class DmmRel(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py index f8fc11e4..0d217056 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/eventlog.py +++ b/src/tm_devices/commands/gen_e3pief_ss/eventlog.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Eventlog(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/format.py b/src/tm_devices/commands/gen_e3pief_ss/format.py index 9c41e08d..c00ceeab 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/format.py +++ b/src/tm_devices/commands/gen_e3pief_ss/format.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Format(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/lan.py b/src/tm_devices/commands/gen_e3pief_ss/lan.py index 502aab40..f2caae0e 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/lan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/lan.py @@ -63,7 +63,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class LanTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/localnode.py b/src/tm_devices/commands/gen_e3pief_ss/localnode.py index c79aa642..d9835b5f 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/localnode.py +++ b/src/tm_devices/commands/gen_e3pief_ss/localnode.py @@ -32,7 +32,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Localnode(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/memory.py b/src/tm_devices/commands/gen_e3pief_ss/memory.py index a24450ee..0594c37d 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/memory.py +++ b/src/tm_devices/commands/gen_e3pief_ss/memory.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Memory(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/os.py b/src/tm_devices/commands/gen_e3pief_ss/os.py index 61fad236..32cfe62a 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/os.py +++ b/src/tm_devices/commands/gen_e3pief_ss/os.py @@ -20,7 +20,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Os(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/ptp.py b/src/tm_devices/commands/gen_e3pief_ss/ptp.py index f2c293c8..6a6a8060 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/ptp.py +++ b/src/tm_devices/commands/gen_e3pief_ss/ptp.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class PtpDs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scan.py b/src/tm_devices/commands/gen_e3pief_ss/scan.py index 4d2701b9..6daead73 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scan.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scan.py @@ -49,7 +49,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScanTriggerSequence(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/schedule.py b/src/tm_devices/commands/gen_e3pief_ss/schedule.py index 0d183ecc..25693f61 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/schedule.py +++ b/src/tm_devices/commands/gen_e3pief_ss/schedule.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class ScheduleAlarmItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/script.py b/src/tm_devices/commands/gen_e3pief_ss/script.py index ffd854da..1ea8f5a4 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/script.py +++ b/src/tm_devices/commands/gen_e3pief_ss/script.py @@ -26,7 +26,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Script(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py index 4978a694..37e74451 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py +++ b/src/tm_devices/commands/gen_e3pief_ss/scriptvar.py @@ -25,7 +25,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Scriptvar(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py index a3378572..d9b9b455 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/setup_1.py +++ b/src/tm_devices/commands/gen_e3pief_ss/setup_1.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Setup(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/slot.py b/src/tm_devices/commands/gen_e3pief_ss/slot.py index 7add639c..125fefcb 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/slot.py +++ b/src/tm_devices/commands/gen_e3pief_ss/slot.py @@ -37,7 +37,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class SlotItemThermal(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/status.py b/src/tm_devices/commands/gen_e3pief_ss/status.py index 2f5eac34..c45303f5 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/status.py +++ b/src/tm_devices/commands/gen_e3pief_ss/status.py @@ -75,7 +75,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class StatusSystem5(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/trigger.py b/src/tm_devices/commands/gen_e3pief_ss/trigger.py index 7edc39cb..9f57fb04 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/trigger.py +++ b/src/tm_devices/commands/gen_e3pief_ss/trigger.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TriggerTimerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py index f5dc88ab..fd3089d9 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/tsplink.py +++ b/src/tm_devices/commands/gen_e3pief_ss/tsplink.py @@ -43,7 +43,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TsplinkTriggerItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py index 4b55fbde..b9858d88 100644 --- a/src/tm_devices/commands/gen_e3pief_ss/upgrade.py +++ b/src/tm_devices/commands/gen_e3pief_ss/upgrade.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Upgrade(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py index d9de8197..dc523a5b 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/data.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py index 6adc5ea3..0be8e81b 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/eyemask.py @@ -33,7 +33,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EyemaskMaskItemTestStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py index c3ad45ca..9e7760ad 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/matharbflt.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MatharbfltItemFilepath(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py index 23010d33..4f867353 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/peakstable.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PeakstableTableItemFresolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py index 79541514..5e047c0d 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/ref.py @@ -59,7 +59,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemDallLabelYpos(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py index 8affe511..879be7fa 100644 --- a/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py +++ b/src/tm_devices/commands/gen_e44yni_lpdmsotekscopepc/visual.py @@ -58,7 +58,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VisualShowequation(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py index a47ff865..34a4b8c4 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosavepitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Autosavepitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py index 61b2e699..46f43c4d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/autosaveuitimeout.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Autosaveuitimeout(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py index 9bb9e6c9..cb5ff2ec 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/bustable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BustableList(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py index c5d83335..6550e22d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/configuration.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationAnalogBandwidth(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py index 72e7774a..430472fd 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curve.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curve(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py index 446846f6..087f0052 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/curvestream.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvestream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py index 7ac3fa42..9204ab4c 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/customtable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CustomtableList(SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py index 74a08ccd..40f3d5de 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/date.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Date(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py index cabb7f3d..cf2af953 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/filesystem.py @@ -39,7 +39,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py index 88b73b0b..efa2f7f5 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/mainwindow.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MainwindowRrbdisplaystate(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py index 5ac5a88b..0bb083bf 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/meastable.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeastableDelete(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py index df24884f..ed2bfcc9 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py index 612eb6c8..aee5a5b7 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/socketserver.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SocketserverProtocol(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py index 50ec4108..4bd68394 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/time.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TimeZoneUtcdelta(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py index 2ca82d27..7caae09b 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/undo.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Undo(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py index 042b1ed0..54426e9a 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/vertical.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VerticalDeskewToSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py index 54ea7c51..fda6749d 100644 --- a/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py +++ b/src/tm_devices/commands/gen_e47rsg_lpdmsotekscopepc/wfmoutpre.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py index abc3a155..10d63128 100644 --- a/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py +++ b/src/tm_devices/commands/gen_e4de2d_lpdmsomdo/clear.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clear(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py index 86db5605..35f532c1 100644 --- a/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py +++ b/src/tm_devices/commands/gen_e6bmgw_lpdmsotekscopepcdpomdo/totaluptime.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Totaluptime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py index fd34b641..14a8b195 100644 --- a/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py +++ b/src/tm_devices/commands/gen_e6wozn_lpdmsotekscopepcmdodpo/pause.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pause(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py index c042abbf..14deec0c 100644 --- a/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py +++ b/src/tm_devices/commands/gen_e7aqno_smudaqss/node.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class NodeItem(ValidatedDynamicNumberCmd, BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py index d8b0cc65..cec91ac1 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/dataqueue.py @@ -24,7 +24,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Dataqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py index a3b17c40..900cf677 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/fs.py @@ -27,7 +27,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Fs(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py index b52fddbb..e620159e 100644 --- a/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py +++ b/src/tm_devices/commands/gen_eat5s3_smudaqdmmss/userstring.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Userstring(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py index b4db086d..82c795d1 100644 --- a/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py +++ b/src/tm_devices/commands/gen_ed9nkc_daqss/tspnet.py @@ -34,7 +34,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TspnetTsp(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/bit.py b/src/tm_devices/commands/gen_efap3f_smuss/bit.py index 631400d3..5cb43a82 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/bit.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/bit.py @@ -30,7 +30,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Bit(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py index 1916ccaf..34519620 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/errorqueue.py @@ -23,7 +23,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Errorqueue(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/io.py b/src/tm_devices/commands/gen_efap3f_smuss/io.py index f5ea6381..89d21b3c 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/io.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/io.py @@ -28,7 +28,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Io(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_efap3f_smuss/timer.py b/src/tm_devices/commands/gen_efap3f_smuss/timer.py index a8907ff5..477a2b49 100644 --- a/src/tm_devices/commands/gen_efap3f_smuss/timer.py +++ b/src/tm_devices/commands/gen_efap3f_smuss/timer.py @@ -22,7 +22,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class TimerMeasure(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py index 4a87ed2d..70bc4f9f 100644 --- a/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py +++ b/src/tm_devices/commands/gen_eg5ll2_smudaqdmmss/gpib.py @@ -21,7 +21,7 @@ from ..helpers import BaseTSPCmd, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl class Gpib(BaseTSPCmd): diff --git a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py index ca8a19b6..abcbeb79 100644 --- a/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py +++ b/src/tm_devices/commands/gen_ffz2xs_dpodsamso/bus.py @@ -212,7 +212,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusRefItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py index c8ac59a1..682587db 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/curve.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curve(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py index 6d034639..917de9d2 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/date.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Date(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py index f1a61dc4..a8be868a 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/mathvar.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathvarVarItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py index 43251836..b09abc11 100644 --- a/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py +++ b/src/tm_devices/commands/gen_fhrp27_msodpomdodsa/save_and_recall.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sav(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py index 9961ae8f..12c12fae 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/acquire.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireSyncsamples(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py index 652af86d..37cd6ff8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/allocate.py @@ -19,7 +19,7 @@ from ..helpers import DefaultDictPassKeyToFactory, SCPICmdRead, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AllocateWaveformRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py index bf1f0a67..1fa7f705 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/application.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ApplicationScopeappWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py index 846d05d3..d34beae3 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/autoset.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetPercent(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py index c55ae003..b541ed13 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxin.py @@ -63,7 +63,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py index 68680435..6e1ade14 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/auxout.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxoutSource(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py index 22c6784c..9702fcfb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/bell.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Bell(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py index eb7a4c78..3399a9cc 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/calibrate.py @@ -31,7 +31,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateResultsSpc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py index 9e24e95b..54e2fecd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ch.py @@ -113,7 +113,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelVtermDualB(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py index a3d3326a..82ada24f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/clear.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Clear(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py index 37186c65..54b5ba7e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cmdbatch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Cmdbatch(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py index 7b9d7f34..37c0823c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cq.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CqItemThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py index 4ebe4914..a8ec2732 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/cursor.py @@ -84,7 +84,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyYdelta(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py index 2dfbd457..b836e5dd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvenext.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvenext(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py index 6574e681..f1461aad 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/curvestream.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Curvestream(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py index d2cb909e..81dee9b9 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/custom.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CustomSelectGateItem(ValidatedDynamicNumberCmd, SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py index ad87faf2..90af00a8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/d.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py index 4d99a785..a7509869 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataSyncsources(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py index c6845715..441ed22d 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/delete.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeleteWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py index cf471dbe..a38f48cc 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/diag.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py index 3650a612..3b78d99b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/display.py @@ -120,7 +120,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py index cdd74876..6dff5525 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/email.py @@ -54,7 +54,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EmailWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py index 4eaeedcb..ab3bafcd 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/export.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ExportView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py index c2224977..dfabbfec 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/fastacq.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FastacqState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py index 2dc0328e..0596c998 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/filesystem.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py index b55d39b3..0c36283e 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/gpibusb.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py index 1f1f6f44..e2263abe 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hardcopy.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyView(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py index 41ca4781..20ff73d6 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/hdr.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Hdr(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py index a1cd4998..0a68ca11 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/histogram.py @@ -37,7 +37,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HistogramState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py index 0844858d..7a48afb4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/horizontal.py @@ -146,7 +146,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalTimestampRefItem(ValidatedDynamicNumberCmd, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py index 2799b1b5..8de8fb03 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/limit.py @@ -66,7 +66,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LimitTemplateToleranceVertical(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py index 907cfd5f..acefdfe5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mark.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py index faf6c463..5c0f152b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mask.py @@ -185,7 +185,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py index d42111c6..fa4f1ea7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/math.py @@ -71,7 +71,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MathItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py index d6f2cbb6..3f9e1470 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/matharbflt.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MatharbfltItemReadfile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py index fbcd5bfd..7d9745e8 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/mch.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MchItemMinamplitude(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py index d8993754..4efa9122 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/measurement.py @@ -139,7 +139,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py index 5167d18b..99c61547 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/multiscope.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MultiscopeStatus(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py index f923611c..caa4f386 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/opcextended.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Opcextended(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py index f34445f7..083acf60 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/pcenable.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pcenable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py index c65f0ad4..c9ba456b 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/recall.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py index dd85dd49..9d0eba81 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/ref.py @@ -33,7 +33,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py index 47af52d8..96122273 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformForcesamefilesize(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py index 92cc7b8f..e2af215f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/save_and_recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sds(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py index 4cb55a0d..081ce0ac 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/saveon.py @@ -46,7 +46,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveonWaveform(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py index ed7fa38e..17b17a3c 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/search.py @@ -726,7 +726,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchStop(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py index 8d013882..2b5f6a2f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/select.py @@ -42,7 +42,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py index fb3888ae..85f7d1a1 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/setup_1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SetupName(SCPICmdWrite, SCPICmdReadWithArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py index 05f0537b..80ca9d9f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/system.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SystemSetup(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py index 5cd63742..c6c4e0eb 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/teklink.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TeklinkRefclk(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py index aaa6ab3e..2f9cf138 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/test.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TestStop(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py index b3ba1c47..7893170f 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/trig.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TrigAPlockStandard(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py index d401dd4b..8458c617 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/usbtmc.py @@ -23,7 +23,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class UsbtmcVendoridHexadecimal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py index 42ba7469..c0df0597 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/visual.py @@ -60,7 +60,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class VisualFileSave(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py index 31e66806..1601bf97 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wavfrmstream.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wavfrmstream(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py index 62d6a4f5..ef4622a7 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfminpre.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py index e434dd2b..face5cd5 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmoutpre.py @@ -42,7 +42,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py index dd656cd9..b78ef3c0 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/wfmpre.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmpreNrFr(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py index ada564ee..a520a5f4 100644 --- a/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py +++ b/src/tm_devices/commands/gen_fk3z56_dpodsamso/zoom.py @@ -112,7 +112,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py index 51d3d628..ef4cc3c7 100644 --- a/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py +++ b/src/tm_devices/commands/gen_fkjfe8_msodpodsa/time.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Time(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py index 2053008c..34f3a2ef 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/errordetector.py @@ -175,7 +175,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ErrordetectorType(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py index 9d9460f6..0d5afd1d 100644 --- a/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_fn2qbf_msodpo/trigger.py @@ -994,7 +994,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py index e7ddab93..0ef40f35 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/counter.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CounterResultsValue(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py index 87aa664e..24b6eb0f 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/linktraining.py @@ -35,7 +35,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LinktrainingSetup(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py index 7942633c..a02eaaf1 100644 --- a/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py +++ b/src/tm_devices/commands/gen_fpx9s1_dpodsamso/rosc.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RoscTracking(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py index db7c300a..f85ad9e8 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/miscellaneous.py @@ -22,7 +22,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Tst(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py index a8c4e154..2fb2aafd 100644 --- a/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fsksdy_lpdmsotekscopepcdpomdoafgawgdsa/status_and_error.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wai(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py index 29eea6fc..513feb18 100644 --- a/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fst7sp_lpdmsotekscopepcmdodpoafgawgdsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Opt(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py index 7098cc87..56adf457 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Cal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py index b4303129..25958d78 100644 --- a/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Trg(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py index 465a0ce5..c33eeb8f 100644 --- a/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fu6dog_lpdmsotekscopepcdpomdoawgdsa/status_and_error.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Sre(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py index 4ee595d0..44d9154c 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/alias.py @@ -28,7 +28,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py index eddf31ad..07696b52 100644 --- a/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fuq1mi_lpdmsotekscopepcdpodsa/status_and_error.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Psc(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py index cf1c518e..abc9cc9b 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/miscellaneous.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Ddt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py index 500c644f..99b190f2 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/newpass.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Newpass(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py index 1130ef21..c1bd40a6 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/password.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Password(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py index 3a6c4441..106e254a 100644 --- a/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py +++ b/src/tm_devices/commands/gen_fx54ua_lpdmsodpomdodsa/teksecure.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Teksecure(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py index 5ebd3550..3596adf5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/allev.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Allev(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py index 07f4c473..55ca8931 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/busy.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Busy(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py index 0b021f90..9f71f865 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/dese.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Dese(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py index 771d1d37..cbac9c51 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/event.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Event(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py index 5dc02e41..6b8649e4 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evmsg.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Evmsg(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py index 494bffeb..5bc25ba8 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/evqty.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Evqty(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py index c66d40d7..2b6a4acb 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/factory.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Factory(SCPICmdWriteNoArguments): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py index daf588e4..886b70b2 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/header.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Header(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py index 1a821aa5..6c8331de 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/id.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Id(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py index 9a3e87ba..a72a327a 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/miscellaneous.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Lrn(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py index 4c63f555..fd8647f5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/rem.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Rem(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py index 6f0c5465..b7662cf5 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/set.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Set(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py index b4449c21..726eb451 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/status_and_error.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Pud(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py index 7fc3f7c0..2370cd59 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/verbose.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Verbose(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py index bee7ba34..bc6318d7 100644 --- a/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py +++ b/src/tm_devices/commands/gen_fxvtmy_lpdmsotekscopepcdpomdodsa/wavfrm.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Wavfrm(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py index aa5c6b44..aab23dd7 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/lock.py @@ -21,7 +21,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Lock(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py index 08549150..7f415a9b 100644 --- a/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py +++ b/src/tm_devices/commands/gen_fzn174_lpdmsodpomdodsa/unlock.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Unlock(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py index 7c83a9ec..5430a2f2 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/acquire.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/acquire.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/alias.py b/src/tm_devices/commands/gen_u301s_msodpo/alias.py index fd019082..9f4c705f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/alias.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/alias.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AliasState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py index 49c44546..ec504792 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/autoset.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/autoset.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AutosetEnable(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py index adfa4172..45638449 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/auxin.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/auxin.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AuxinProbeUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/bus.py b/src/tm_devices/commands/gen_u301s_msodpo/bus.py index 04ed6ea2..cacca683 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/bus.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/bus.py @@ -149,7 +149,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class BusUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py index a731e6b8..487e2a28 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/calibrate.py @@ -27,7 +27,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CalibrateTemperature(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ch.py b/src/tm_devices/commands/gen_u301s_msodpo/ch.py index 4ed9e4b3..ff49e08c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ch.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ch.py @@ -58,7 +58,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedChannel if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ChannelYunits(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py index 5f9be878..b7346ca1 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/cursor.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/cursor.py @@ -65,7 +65,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/d.py b/src/tm_devices/commands/gen_u301s_msodpo/d.py index a5f49db5..81a38a21 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/d.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/d.py @@ -24,7 +24,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DigitalBitThreshold(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/data.py b/src/tm_devices/commands/gen_u301s_msodpo/data.py index c1584a4d..43e74f77 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/data.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/data.py @@ -36,7 +36,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DataWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/diag.py b/src/tm_devices/commands/gen_u301s_msodpo/diag.py index 560d2842..0add4878 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/diag.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/diag.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DiagState(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/display.py b/src/tm_devices/commands/gen_u301s_msodpo/display.py index 3ce75600..8070f591 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/display.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/display.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayStyleDotsonly(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py index 49de2ec0..6fd64568 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ethernet.py @@ -38,7 +38,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class EthernetSubnetmask(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py index ea9a304c..5f626086 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filesystem.py @@ -30,7 +30,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FilesystemWritefile(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py index 15953fff..045ff2b8 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/filtervu.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FiltervuFrequencyAvailable(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py index abd81c6f..25775221 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/fpanel.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class FpanelTurn(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py index e48ca899..a4b3c9d2 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/gpibusb.py @@ -18,7 +18,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class GpibusbId(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py index 544f48aa..bab77a32 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/hardcopy.py @@ -29,7 +29,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HardcopyPrinterRename(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py index 3351fce3..20b61583 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/horizontal.py @@ -47,7 +47,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class HorizontalTriggerPosition(SCPICmdWriteNoArguments, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/mark.py b/src/tm_devices/commands/gen_u301s_msodpo/mark.py index b4036d32..8dcf9fbd 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/mark.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/mark.py @@ -31,7 +31,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MarkTotal(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/math1.py b/src/tm_devices/commands/gen_u301s_msodpo/math1.py index bfa873a3..00519d04 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/math1.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/math1.py @@ -43,7 +43,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Math1VerticalUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py index fb0b9670..44609b42 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/measurement.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/measurement.py @@ -104,7 +104,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py index cfd4a5c4..d7d25165 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/pictbridge.py @@ -26,7 +26,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class PictbridgePrintqual(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/recall.py b/src/tm_devices/commands/gen_u301s_msodpo/recall.py index 6dc215c9..06439f8b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/recall.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/recall.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/ref.py b/src/tm_devices/commands/gen_u301s_msodpo/ref.py index 4b77f86a..91d27e8b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/ref.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/ref.py @@ -34,7 +34,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RefItemVerticalScale(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/save.py b/src/tm_devices/commands/gen_u301s_msodpo/save.py index b3dbc66f..1953020b 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/save.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/save.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SaveWaveformSpreadsheetResolution(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/search.py b/src/tm_devices/commands/gen_u301s_msodpo/search.py index e6c137e4..16d10c0d 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/search.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/search.py @@ -260,7 +260,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_u301s_msodpo/select.py b/src/tm_devices/commands/gen_u301s_msodpo/select.py index 3b1f584b..ec21e9e9 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/select.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/select.py @@ -37,7 +37,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRefItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py index fc88ba30..a4cf9f4f 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/trigger.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/trigger.py @@ -303,7 +303,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py index f224c4bd..b866571c 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfminpre.py @@ -52,7 +52,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfminpreYzero(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py index 9eb8cf32..c7949716 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/wfmoutpre.py @@ -45,7 +45,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class WfmoutpreYzero(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py index c23b3fcd..8ee075ee 100644 --- a/src/tm_devices/commands/gen_u301s_msodpo/zoom.py +++ b/src/tm_devices/commands/gen_u301s_msodpo/zoom.py @@ -32,7 +32,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ZoomZoom1State(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py index 8b6eeba9..bef3a2f0 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/acquire.py @@ -40,7 +40,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class AcquireStopafter(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py index 27e4836a..fe34185f 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/configuration.py @@ -61,7 +61,7 @@ from ..helpers import SCPICmdRead if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class ConfigurationRosc(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py index 9c28ca2a..7587690b 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/cursor.py @@ -69,7 +69,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class CursorXyRectangularYUnits(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py index 5e112d3f..4f6a6018 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/deskew.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DeskewDisplay(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/display.py b/src/tm_devices/commands/gen_ujuvb_mdo/display.py index f93caad7..a5ca9d8b 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/display.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/display.py @@ -51,7 +51,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class DisplayXyWithyt(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py index 4a01c2cd..6440db0e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/lock.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/lock.py @@ -25,7 +25,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class LockTouchscreen(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py index a755ef9c..02f8a53e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/mask.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/mask.py @@ -115,7 +115,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MaskUserWidth(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py index 92440f8c..17c0133e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/measurement.py @@ -117,7 +117,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MeasurementStatisticsWeighting(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/message.py b/src/tm_devices/commands/gen_ujuvb_mdo/message.py index 4d4b1392..a93469d3 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/message.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/message.py @@ -39,7 +39,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class MessageState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py index f7f75a2e..b84170d6 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/recall.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/recall.py @@ -27,7 +27,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RecallWaveform(SCPICmdWrite): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py index 1fa32325..667f225a 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rf.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rf.py @@ -122,7 +122,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py index 27f02ae0..d13e9633 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/rrb.py @@ -19,7 +19,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RrbState(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/search.py b/src/tm_devices/commands/gen_ujuvb_mdo/search.py index 3611cf4c..74f5902e 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/search.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/search.py @@ -395,7 +395,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/select.py b/src/tm_devices/commands/gen_ujuvb_mdo/select.py index a1c0eafe..2582ce6f 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/select.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/select.py @@ -51,7 +51,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SelectRfNormal(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py index 83bd70c9..c0cb9317 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/setup1.py @@ -20,7 +20,7 @@ from ..helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class Setup1ItemTime(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py index 05af7416..55a22bc2 100644 --- a/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py +++ b/src/tm_devices/commands/gen_ujuvb_mdo/trigger.py @@ -446,7 +446,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/rf.py b/src/tm_devices/commands/gen_usaa3_mdo/rf.py index f9c1b896..d31b7337 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/rf.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/rf.py @@ -132,7 +132,7 @@ from ..helpers import SCPICmdRead, SCPICmdReadWithArguments, SCPICmdWrite, SCPICmdWriteNoArguments if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class RfWindow(SCPICmdWrite, SCPICmdRead): diff --git a/src/tm_devices/commands/gen_usaa3_mdo/search.py b/src/tm_devices/commands/gen_usaa3_mdo/search.py index a0463b74..e8d497a4 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/search.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/search.py @@ -405,7 +405,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class SearchSearchItemTriggerAUpperthresholdRefItem( diff --git a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py index 71936654..378a83e8 100644 --- a/src/tm_devices/commands/gen_usaa3_mdo/trigger.py +++ b/src/tm_devices/commands/gen_usaa3_mdo/trigger.py @@ -468,7 +468,7 @@ ) if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class TriggerState(SCPICmdRead): diff --git a/src/tm_devices/commands/helpers/scpi_commands.py b/src/tm_devices/commands/helpers/scpi_commands.py index d6012551..99c73a68 100644 --- a/src/tm_devices/commands/helpers/scpi_commands.py +++ b/src/tm_devices/commands/helpers/scpi_commands.py @@ -15,7 +15,7 @@ from .generic_commands import BaseCmd, END_OF_STRING_DIGITS, NoDeviceProvidedError if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl MAX_CHANNELS = 8 MAX_DIGITAL_BITS = 16 diff --git a/src/tm_devices/commands/helpers/tsp_commands.py b/src/tm_devices/commands/helpers/tsp_commands.py index 4941260a..75ef1a32 100644 --- a/src/tm_devices/commands/helpers/tsp_commands.py +++ b/src/tm_devices/commands/helpers/tsp_commands.py @@ -10,7 +10,7 @@ from .generic_commands import BaseCmd if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import TSPControl + from tm_devices.driver_mixins.device_control.tsp_control import TSPControl #################################################################################################### diff --git a/src/tm_devices/commands/lpd6_commands.py b/src/tm_devices/commands/lpd6_commands.py index 3d0a88ca..3c23da0b 100644 --- a/src/tm_devices/commands/lpd6_commands.py +++ b/src/tm_devices/commands/lpd6_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mdo3_commands.py b/src/tm_devices/commands/mdo3_commands.py index 12a217b0..2cc656f5 100644 --- a/src/tm_devices/commands/mdo3_commands.py +++ b/src/tm_devices/commands/mdo3_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1ltpwt_mdomsodpo.actonevent import Actonevent diff --git a/src/tm_devices/commands/mdo3k_commands.py b/src/tm_devices/commands/mdo3k_commands.py index 141f6392..536484d4 100644 --- a/src/tm_devices/commands/mdo3k_commands.py +++ b/src/tm_devices/commands/mdo3k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1l4fot_mdomso.cursor import Cursor diff --git a/src/tm_devices/commands/mdo4k_commands.py b/src/tm_devices/commands/mdo4k_commands.py index 913fb04b..0f64dba0 100644 --- a/src/tm_devices/commands/mdo4k_commands.py +++ b/src/tm_devices/commands/mdo4k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1kjd62_mdo.rf import Rf diff --git a/src/tm_devices/commands/mdo4kb_commands.py b/src/tm_devices/commands/mdo4kb_commands.py index 4424d16b..736d7076 100644 --- a/src/tm_devices/commands/mdo4kb_commands.py +++ b/src/tm_devices/commands/mdo4kb_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1jzp7o_mdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mdo4kc_commands.py b/src/tm_devices/commands/mdo4kc_commands.py index 16753c73..06d6750e 100644 --- a/src/tm_devices/commands/mdo4kc_commands.py +++ b/src/tm_devices/commands/mdo4kc_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1kdqwg_mdo.search import Search diff --git a/src/tm_devices/commands/mso2_commands.py b/src/tm_devices/commands/mso2_commands.py index b2124347..8d466ee5 100644 --- a/src/tm_devices/commands/mso2_commands.py +++ b/src/tm_devices/commands/mso2_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lwj1r_msomdodpo.rosc import Rosc diff --git a/src/tm_devices/commands/mso2k_commands.py b/src/tm_devices/commands/mso2k_commands.py index bf3dc0db..f8faa398 100644 --- a/src/tm_devices/commands/mso2k_commands.py +++ b/src/tm_devices/commands/mso2k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mso2kb_commands.py b/src/tm_devices/commands/mso2kb_commands.py index d6d530bf..cebfa02e 100644 --- a/src/tm_devices/commands/mso2kb_commands.py +++ b/src/tm_devices/commands/mso2kb_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1lcv3a_msodpomdo.message import Message diff --git a/src/tm_devices/commands/mso4_commands.py b/src/tm_devices/commands/mso4_commands.py index 3128a78b..92e33094 100644 --- a/src/tm_devices/commands/mso4_commands.py +++ b/src/tm_devices/commands/mso4_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso4b_commands.py b/src/tm_devices/commands/mso4b_commands.py index b8cdb00e..87ce3d77 100644 --- a/src/tm_devices/commands/mso4b_commands.py +++ b/src/tm_devices/commands/mso4b_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso4k_commands.py b/src/tm_devices/commands/mso4k_commands.py index 4f5224dd..5888294b 100644 --- a/src/tm_devices/commands/mso4k_commands.py +++ b/src/tm_devices/commands/mso4k_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1la1ym_msomdodpo.trigger import Trigger diff --git a/src/tm_devices/commands/mso4kb_commands.py b/src/tm_devices/commands/mso4kb_commands.py index 6e8e293f..276b77c4 100644 --- a/src/tm_devices/commands/mso4kb_commands.py +++ b/src/tm_devices/commands/mso4kb_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_1l4fot_mdomso.cursor import Cursor diff --git a/src/tm_devices/commands/mso5_commands.py b/src/tm_devices/commands/mso5_commands.py index f9e77ddb..66c7d84d 100644 --- a/src/tm_devices/commands/mso5_commands.py +++ b/src/tm_devices/commands/mso5_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso5b_commands.py b/src/tm_devices/commands/mso5b_commands.py index 3aabb825..f483d0ff 100644 --- a/src/tm_devices/commands/mso5b_commands.py +++ b/src/tm_devices/commands/mso5b_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso5k_commands.py b/src/tm_devices/commands/mso5k_commands.py index 5312441c..67b97d00 100644 --- a/src/tm_devices/commands/mso5k_commands.py +++ b/src/tm_devices/commands/mso5k_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ffz2xs_dpodsamso.bus import Bus diff --git a/src/tm_devices/commands/mso5kb_commands.py b/src/tm_devices/commands/mso5kb_commands.py index 3ff39a00..d4d30c96 100644 --- a/src/tm_devices/commands/mso5kb_commands.py +++ b/src/tm_devices/commands/mso5kb_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5ri0nj_dpomso.bus import Bus diff --git a/src/tm_devices/commands/mso5lp_commands.py b/src/tm_devices/commands/mso5lp_commands.py index 952f6c89..3fb3d37c 100644 --- a/src/tm_devices/commands/mso5lp_commands.py +++ b/src/tm_devices/commands/mso5lp_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso6_commands.py b/src/tm_devices/commands/mso6_commands.py index 4016c01e..d53c0bff 100644 --- a/src/tm_devices/commands/mso6_commands.py +++ b/src/tm_devices/commands/mso6_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso6b_commands.py b/src/tm_devices/commands/mso6b_commands.py index 3715e5ea..9ff4bdd9 100644 --- a/src/tm_devices/commands/mso6b_commands.py +++ b/src/tm_devices/commands/mso6b_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3e9uu_lpdmso.acquire import Acquire diff --git a/src/tm_devices/commands/mso70kc_commands.py b/src/tm_devices/commands/mso70kc_commands.py index 42413b38..57fa76f5 100644 --- a/src/tm_devices/commands/mso70kc_commands.py +++ b/src/tm_devices/commands/mso70kc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5ri0nj_dpomso.bus import Bus diff --git a/src/tm_devices/commands/mso70kdx_commands.py b/src/tm_devices/commands/mso70kdx_commands.py index 1049bff2..46bc8d3b 100644 --- a/src/tm_devices/commands/mso70kdx_commands.py +++ b/src/tm_devices/commands/mso70kdx_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_5xwdsk_dpodsamso.errordetector import Errordetector diff --git a/src/tm_devices/commands/smu2450_commands.py b/src/tm_devices/commands/smu2450_commands.py index 5c0f090d..8435868f 100644 --- a/src/tm_devices/commands/smu2450_commands.py +++ b/src/tm_devices/commands/smu2450_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6w7311_smu.trigger import Trigger diff --git a/src/tm_devices/commands/smu2460_commands.py b/src/tm_devices/commands/smu2460_commands.py index aa26796a..e55480eb 100644 --- a/src/tm_devices/commands/smu2460_commands.py +++ b/src/tm_devices/commands/smu2460_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6ocqvh_smu.buffer import Buffer diff --git a/src/tm_devices/commands/smu2461_commands.py b/src/tm_devices/commands/smu2461_commands.py index 4207451c..6da2369b 100644 --- a/src/tm_devices/commands/smu2461_commands.py +++ b/src/tm_devices/commands/smu2461_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6ocqvh_smu.buffer import Buffer diff --git a/src/tm_devices/commands/smu2470_commands.py b/src/tm_devices/commands/smu2470_commands.py index 5ed46915..eb99b076 100644 --- a/src/tm_devices/commands/smu2470_commands.py +++ b/src/tm_devices/commands/smu2470_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_6w7311_smu.trigger import Trigger diff --git a/src/tm_devices/commands/smu2601b_commands.py b/src/tm_devices/commands/smu2601b_commands.py index 712c1348..87a6e0a2 100644 --- a/src/tm_devices/commands/smu2601b_commands.py +++ b/src/tm_devices/commands/smu2601b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s6wr5_smu.status import Status diff --git a/src/tm_devices/commands/smu2601b_pulse_commands.py b/src/tm_devices/commands/smu2601b_pulse_commands.py index 578a81ed..e1dad801 100644 --- a/src/tm_devices/commands/smu2601b_pulse_commands.py +++ b/src/tm_devices/commands/smu2601b_pulse_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s2p1p_smu.beeper import Beeper diff --git a/src/tm_devices/commands/smu2602b_commands.py b/src/tm_devices/commands/smu2602b_commands.py index 7cf8cdd4..4d0a922f 100644 --- a/src/tm_devices/commands/smu2602b_commands.py +++ b/src/tm_devices/commands/smu2602b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7s43m8_smu.status import Status diff --git a/src/tm_devices/commands/smu2604b_commands.py b/src/tm_devices/commands/smu2604b_commands.py index 7bbd0e42..733f46bd 100644 --- a/src/tm_devices/commands/smu2604b_commands.py +++ b/src/tm_devices/commands/smu2604b_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_7ryhce_smu.status import Status diff --git a/src/tm_devices/commands/smu2606b_commands.py b/src/tm_devices/commands/smu2606b_commands.py index cd2a0db6..8dbc0f81 100644 --- a/src/tm_devices/commands/smu2606b_commands.py +++ b/src/tm_devices/commands/smu2606b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_8ojdkz_smu.display import Display diff --git a/src/tm_devices/commands/smu2611b_commands.py b/src/tm_devices/commands/smu2611b_commands.py index bfc70024..f17bfc78 100644 --- a/src/tm_devices/commands/smu2611b_commands.py +++ b/src/tm_devices/commands/smu2611b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2612b_commands.py b/src/tm_devices/commands/smu2612b_commands.py index 2ce9e64d..98b9eb39 100644 --- a/src/tm_devices/commands/smu2612b_commands.py +++ b/src/tm_devices/commands/smu2612b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2614b_commands.py b/src/tm_devices/commands/smu2614b_commands.py index e8e065d4..cbeb4476 100644 --- a/src/tm_devices/commands/smu2614b_commands.py +++ b/src/tm_devices/commands/smu2614b_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9kezla_smu.smux import SmuxItem diff --git a/src/tm_devices/commands/smu2634b_commands.py b/src/tm_devices/commands/smu2634b_commands.py index 9f4d7e06..9b156d8d 100644 --- a/src/tm_devices/commands/smu2634b_commands.py +++ b/src/tm_devices/commands/smu2634b_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9mzp2j_smu.digio import Digio diff --git a/src/tm_devices/commands/smu2635b_commands.py b/src/tm_devices/commands/smu2635b_commands.py index 1feb3238..7e39023a 100644 --- a/src/tm_devices/commands/smu2635b_commands.py +++ b/src/tm_devices/commands/smu2635b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_9ncc6e_smu.display import Display diff --git a/src/tm_devices/commands/smu2636b_commands.py b/src/tm_devices/commands/smu2636b_commands.py index a4f47830..eb745111 100644 --- a/src/tm_devices/commands/smu2636b_commands.py +++ b/src/tm_devices/commands/smu2636b_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper diff --git a/src/tm_devices/commands/smu2651a_commands.py b/src/tm_devices/commands/smu2651a_commands.py index 1b49c020..3456fe3b 100644 --- a/src/tm_devices/commands/smu2651a_commands.py +++ b/src/tm_devices/commands/smu2651a_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper diff --git a/src/tm_devices/commands/smu2657a_commands.py b/src/tm_devices/commands/smu2657a_commands.py index 7f042695..666cbdc0 100644 --- a/src/tm_devices/commands/smu2657a_commands.py +++ b/src/tm_devices/commands/smu2657a_commands.py @@ -9,7 +9,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_ahkybr_smu.beeper import Beeper diff --git a/src/tm_devices/commands/ss3706a_commands.py b/src/tm_devices/commands/ss3706a_commands.py index 723a8c1a..90174850 100644 --- a/src/tm_devices/commands/ss3706a_commands.py +++ b/src/tm_devices/commands/ss3706a_commands.py @@ -8,7 +8,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import TSPControl +from tm_devices.driver_mixins.device_control.tsp_control import TSPControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_e3pief_ss.beeper import Beeper diff --git a/src/tm_devices/commands/tekscopepc_commands.py b/src/tm_devices/commands/tekscopepc_commands.py index 731cbd01..9d2e47cc 100644 --- a/src/tm_devices/commands/tekscopepc_commands.py +++ b/src/tm_devices/commands/tekscopepc_commands.py @@ -7,7 +7,7 @@ from typing import Dict, Optional -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.helpers import ReadOnlyCachedProperty as cached_property # noqa: N813 from .gen_c3g61_tekscopepc.actonevent import Actonevent From 064ce8f10dda0a4bd062d6e7981d1d52f8029922 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 16:27:27 -0700 Subject: [PATCH 40/52] chore: Fixes from pull request review --- pyproject.toml | 1 + src/tm_devices/device_manager.py | 2 +- src/tm_devices/driver_mixins/device_control/tsp_control.py | 2 +- .../driver_mixins/shared_implementations/ieee488_2_commands.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e56d70a3..a2c3db44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,6 +112,7 @@ pre-commit = [ pylint = "3.2.7" pyright = "1.1.385" pyroma = "^4.2" +safety_schemas = "<=0.0.5" # TODO: Drop Python 3.8: once Python 3.8 support is dropped, this can be removed, v0.0.6 does not on Python 3.8 tox = "^4.0" tox-gh-actions = "^3.1.0" twine = "^5.0.0" diff --git a/src/tm_devices/device_manager.py b/src/tm_devices/device_manager.py index a4afd14a..c5fa1b4f 100644 --- a/src/tm_devices/device_manager.py +++ b/src/tm_devices/device_manager.py @@ -17,7 +17,7 @@ from typing_extensions import TypeVar from tm_devices.components import DMConfigParser -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.drivers._device_driver_mapping import ( _DEVICE_DRIVER_MODEL_STR_MAPPING, # pyright: ignore[reportPrivateUsage] ) diff --git a/src/tm_devices/driver_mixins/device_control/tsp_control.py b/src/tm_devices/driver_mixins/device_control/tsp_control.py index f0344291..6148a691 100644 --- a/src/tm_devices/driver_mixins/device_control/tsp_control.py +++ b/src/tm_devices/driver_mixins/device_control/tsp_control.py @@ -5,7 +5,7 @@ from abc import ABC from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union -from tm_devices.driver_mixins.device_control import PIControl +from tm_devices.driver_mixins.device_control.pi_control import PIControl from tm_devices.driver_mixins.shared_implementations.ieee488_2_commands import TSPIEEE4882Commands from tm_devices.helpers import verify_values diff --git a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py index 81fa618c..8031e067 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py +++ b/src/tm_devices/driver_mixins/shared_implementations/ieee488_2_commands.py @@ -3,7 +3,7 @@ from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: - from tm_devices.driver_mixins.device_control import PIControl + from tm_devices.driver_mixins.device_control.pi_control import PIControl class IEEE4882Commands: From ce752b2fcb1838d850200f2b78caf7cb3548cf11 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 21 Oct 2024 16:50:56 -0700 Subject: [PATCH 41/52] chore: Removed some unnecessary init methods --- src/tm_devices/drivers/awgs/awg5200.py | 11 ++--------- src/tm_devices/drivers/awgs/awg5k.py | 11 ++--------- src/tm_devices/drivers/awgs/awg70ka.py | 11 ++--------- src/tm_devices/drivers/awgs/awg7k.py | 14 +++----------- src/tm_devices/drivers/device.py | 3 --- 5 files changed, 9 insertions(+), 41 deletions(-) diff --git a/src/tm_devices/drivers/awgs/awg5200.py b/src/tm_devices/drivers/awgs/awg5200.py index 25b14160..b38c3d31 100644 --- a/src/tm_devices/drivers/awgs/awg5200.py +++ b/src/tm_devices/drivers/awgs/awg5200.py @@ -261,18 +261,11 @@ def _load_waveform_or_set( class AWG5200SourceChannel(AWGSourceChannel): """AWG5200 signal source channel composite.""" + _awg: AWG5200 + ################################################################################################ # Magic Methods ################################################################################################ - def __init__(self, awg: AWG5200, channel_name: str) -> None: - """Create an AWG5200 source channel. - - Args: - awg: An AWG. - channel_name: The channel name for the AWG source channel. - """ - super().__init__(awg=awg, channel_name=channel_name) - self._awg = awg ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/awgs/awg5k.py b/src/tm_devices/drivers/awgs/awg5k.py index 741a9b50..2f18314c 100644 --- a/src/tm_devices/drivers/awgs/awg5k.py +++ b/src/tm_devices/drivers/awgs/awg5k.py @@ -78,18 +78,11 @@ def _get_series_specific_constraints( class AWG5KSourceChannel(AWGSourceChannel): """AWG5K signal source channel composite.""" + _awg: AWG5K + ################################################################################################ # Magic Methods ################################################################################################ - def __init__(self, awg: "AWG5K", channel_name: str) -> None: - """Create an AWG5200 source channel. - - Args: - awg: An AWG. - channel_name: The channel name for the AWG source channel. - """ - super().__init__(awg=awg, channel_name=channel_name) - self._awg = awg ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/awgs/awg70ka.py b/src/tm_devices/drivers/awgs/awg70ka.py index 34e96bc1..ed84a7cd 100644 --- a/src/tm_devices/drivers/awgs/awg70ka.py +++ b/src/tm_devices/drivers/awgs/awg70ka.py @@ -207,18 +207,11 @@ def _load_waveform_or_set( class AWG70KASourceChannel(AWGSourceChannel): """AWG70KA signal source channel composite.""" + _awg: AWG70KA + ################################################################################################ # Magic Methods ################################################################################################ - def __init__(self, awg: AWG70KA, channel_name: str) -> None: - """Create an AWG5200 source channel. - - Args: - awg: An AWG. - channel_name: The channel name for the AWG source channel. - """ - super().__init__(awg=awg, channel_name=channel_name) - self._awg = awg ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/awgs/awg7k.py b/src/tm_devices/drivers/awgs/awg7k.py index 937b2440..13e42fb3 100644 --- a/src/tm_devices/drivers/awgs/awg7k.py +++ b/src/tm_devices/drivers/awgs/awg7k.py @@ -1,7 +1,7 @@ """AWG7K device driver module.""" from types import MappingProxyType -from typing import cast, Dict, Optional, Tuple +from typing import Dict, Optional, Tuple from tm_devices.commands import AWG7KMixin from tm_devices.drivers.awgs.awg import ( @@ -11,7 +11,6 @@ ParameterBounds, ) from tm_devices.drivers.awgs.awg5k import ( - AWG5K, AWG5KSourceChannel, ) from tm_devices.drivers.device import family_base_class @@ -83,18 +82,11 @@ def _get_series_specific_constraints( class AWG7KSourceChannel(AWG5KSourceChannel): """AWG7K signal source channel composite.""" + _awg: AWG7K # pyright: ignore[reportIncompatibleVariableOverride] + ################################################################################################ # Magic Methods ################################################################################################ - def __init__(self, awg: AWG7K, channel_name: str) -> None: - """Create an AWG5200 source channel. - - Args: - awg: An AWG. - channel_name: The channel name for the AWG source channel. - """ - super().__init__(awg=cast(AWG5K, awg), channel_name=channel_name) - self._awg = awg ################################################################################################ # Public Methods diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index 3ac917ac..20f9f326 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -75,10 +75,7 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: """ super().__init__(config_entry, verbose) self._is_open = True - self._verbose = verbose - self._config_entry = config_entry self._device_number: int = -1 # set after creation by DeviceManager - self._enable_verification = True self._reboot_quiet_period = 0 self._series = self.__class__.__name__ From 2e0315e04d060884dad2facb6b59ce2bdf5b7ee7 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 22 Oct 2024 07:31:53 -0700 Subject: [PATCH 42/52] chore(python-deps): Remove safety-schemas pinned version since the broken version was yanked from PyPI --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a2c3db44..e56d70a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,7 +112,6 @@ pre-commit = [ pylint = "3.2.7" pyright = "1.1.385" pyroma = "^4.2" -safety_schemas = "<=0.0.5" # TODO: Drop Python 3.8: once Python 3.8 support is dropped, this can be removed, v0.0.6 does not on Python 3.8 tox = "^4.0" tox-gh-actions = "^3.1.0" twine = "^5.0.0" From 5549a056ef985f08e5bbb8e1cd083100c4f95e5b Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 22 Oct 2024 10:59:05 -0700 Subject: [PATCH 43/52] docs: Add macro to docs for converting github flavored markdown alerts to admonitions --- docs/macros.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/macros.py b/docs/macros.py index 7bd43a8a..3470346f 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -54,11 +54,44 @@ "configuration.md", "basic_usage.md", } +CONVERSION_PATTERN = re.compile( + r"> \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION|DANGER)]\s*>\s*(.*?)(?=\n[^>]|$)", + re.IGNORECASE | re.DOTALL, +) #################################################################################################### # Helper functions #################################################################################################### +def convert_gfm_alerts_to_admonitions(content: str) -> str: + """Convert GitHub Flavored Markdown (GFM) alerts to MkDocs admonitions. + + Args: + content: The content to convert. + + Returns: + The updated content with GFM alerts converted to markdown admonitions. + """ + + def replace_match(match: "re.Match[str]") -> str: + """Replace the matched GFM alert with an admonition. + + Args: + match: The matched GFM alert. + + Returns: + The replacement text. + """ + alert_type = match.group(1).lower() + text = match.group(2).strip() + # Replace initial '>' from subsequent lines + text = text.replace("\n>", "\n") + # Replace with admonition format + return f"!!! {alert_type}\n " + text.replace("\n", "\n ") + + return re.sub(CONVERSION_PATTERN, replace_match, content) + + def import_object(objname: str) -> Any: """Import a python object by its qualified name. @@ -259,6 +292,8 @@ def on_post_page_macros(env: MacrosPlugin) -> None: # Check if all black format disable comments should be removed from the page if env.page.file.src_path in FILES_TO_REMOVE_BLACK_FORMATTER_DISABLE_COMMENT: env.markdown = env.markdown.replace("# fmt: off\n", "") + # Check if there are any admonitions to replace on the page + env.markdown = convert_gfm_alerts_to_admonitions(env.markdown) # Check if the title is correct if actual_title_match := HEADER_ONE_REGEX.search(env.markdown): actual_title = actual_title_match.group(1) From 42219f1b56db2dbc3017625bcf8c136d16bc8f2e Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 22 Oct 2024 11:39:19 -0700 Subject: [PATCH 44/52] docs: Made breaking change callout in changelog bold and italics --- CHANGELOG.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 641ab65c..b414161c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,26 +33,26 @@ very minor ways. The primary impact to the drivers was simply the removal of pre deprecated functionality. Almost all changes only impacted the internal workings of `tm_devices`. However, please read through all changes to be aware of what may potentially impact your code. -- minor breaking change: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). -- minor breaking change: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. +- _**minor breaking change**_: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). +- _**minor breaking change**_: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. -- minor breaking change: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. -- minor breaking change: Converted all family base classes to inherit from the device control mixins. -- BREAKING CHANGE: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. +- _**minor breaking change**_: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. +- _**minor breaking change**_: Converted all family base classes to inherit from the device control mixins. +- _**BREAKING CHANGE**_: Renamed the `get_eventlog_status()` method to `_get_errors()` and made it a required, abstract method for all devices to implement. - To get similar functionality to the previous `get_eventlog_status()` method, switch to using the new `get_errors()` method. -- BREAKING CHANGE: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. -- minor breaking change: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. +- _**BREAKING CHANGE**_: Changed the behavior of the `expect_esr()` method to expect an integer error code input and an optional tuple of error messages to compare against the actual error code and messages returned by the `_get_errors()` private method. +- _**minor breaking change**_: Converted the `device_type` property into an abstract, cached property to force all children of the `Device` class to specify what type of device they are. - Updated the auto-generated command mixin classes to no longer use an `__init__()` method to enable the driver API documentation to render in a more usable way. ### Removed -- BREAKING CHANGE: Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class -- BREAKING CHANGE: Removed previously deprecated `write_buffers()` from the `TSPControl` class. -- BREAKING CHANGE: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. -- BREAKING CHANGE: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. -- BREAKING CHANGE: Removed the `DEVICE_TYPE_CLASSES` constant and the `device_type_classes.py` module. -- BREAKING CHANGE: Removed many hacky implementations of `total_channels` and `all_channel_names_list` properties from drivers that don't need them anymore. -- BREAKING CHANGE: Removed the `verify_values()`, `raise_failure()`, and `raise_error()` methods from all device drivers. +- _**BREAKING CHANGE**_: Removed previously deprecated `TekScopeSW` alias to the `TekScopePC` class +- _**BREAKING CHANGE**_: Removed previously deprecated `write_buffers()` from the `TSPControl` class. +- _**BREAKING CHANGE**_: Removed Internal AFG methods from the `TekScopePC` driver, since they wouldn't have worked due to its lack of an IAFG. +- _**BREAKING CHANGE**_: Removed previously deprecated `DEVICE_DRIVER_MODEL_MAPPING` constant. +- _**BREAKING CHANGE**_: Removed the `DEVICE_TYPE_CLASSES` constant and the `device_type_classes.py` module. +- _**BREAKING CHANGE**_: Removed many hacky implementations of `total_channels` and `all_channel_names_list` properties from drivers that don't need them anymore. +- _**BREAKING CHANGE**_: Removed the `verify_values()`, `raise_failure()`, and `raise_error()` methods from all device drivers. - These methods have been converted to helper functions and can be imported from the `tm_devices.helpers` subpackage now. --- @@ -213,11 +213,11 @@ However, please read through all changes to be aware of what may potentially imp ### Changed -- BREAKING CHANGE. Changed the term "signal source" to "signal generator". +- _**BREAKING CHANGE**_. Changed the term "signal source" to "signal generator". - All uses of this term are changed. Import paths now use `signal_generator` instead of `signal_source`. -- BREAKING CHANGE. Changed the function name of `generate_waveform()` to `generate_function()`. +- _**BREAKING CHANGE**_. Changed the function name of `generate_waveform()` to `generate_function()`. - `generate_waveform()` only exists on AWGs now, however the functionality is entirely changed. -- BREAKING CHANGE. Changed the `generate_function()` function by removing burst functionality. +- _**BREAKING CHANGE**_. Changed the `generate_function()` function by removing burst functionality. - Any use of burst now must use `setup_burst()` and `generate_burst()` instead. - Updated AWGs such that the `family_base_class` is at the series level. From 493413c29f8118d966138e469a47186c50b750ed Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 23 Oct 2024 08:48:15 -0700 Subject: [PATCH 45/52] docs: Update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45a9afc0..1951f123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,8 @@ deprecated functionality. Almost all changes only impacted the internal workings However, please read through all changes to be aware of what may potentially impact your code. - _**minor breaking change**_: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). -- _**minor breaking change**_: Moved the `Device`, `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. +- _**minor breaking change**_: Renamed the `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes to `PIControl`, `TSPControl`, and `RESTAPIControl` respectively. +- _**minor breaking change**_: Moved the `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - _**minor breaking change**_: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. - _**minor breaking change**_: Converted all family base classes to inherit from the device control mixins. From c1f0dab202940a074b83b8bbfd0ea92cd0df4c7a Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 23 Oct 2024 08:52:00 -0700 Subject: [PATCH 46/52] docs: Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1951f123..c2901d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ However, please read through all changes to be aware of what may potentially imp - _**minor breaking change**_: Moved `SignalGenerator` class to the `driver_mixins` submodule and renamed it to `_TektronixPIAFGAWGMixin` (also made it a private mixin). - _**minor breaking change**_: Renamed the `PIDevice`, `TSPDevice`, and `RESTAPIDevice` classes to `PIControl`, `TSPControl`, and `RESTAPIControl` respectively. - _**minor breaking change**_: Moved the `PIControl`, `TSPControl`, and `RESTAPIControl` classes into a mixin folder so that they can be used as mixins rather than being part of the required inheritance structure. + - In order to use these control mixins, they must be inherited at the family base class level in the driver hierarchy, along with the device type class (or any class that inherits from the base `Device` class and defines a `device_type` property and the other required abstract property implementations). - Due to this change, it is recommended that the specific device driver (or at least the family base class) for the device being controlled is used for type hinting. - _**minor breaking change**_: Moved all device type subpackages (AWGs, AFGs, Scopes, SMUs, etc.) up to the top level of the `drivers` subpackage. - _**minor breaking change**_: Converted all family base classes to inherit from the device control mixins. From 112bffb0d18a9972f9ff1eae395a439c8dadd279 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 24 Oct 2024 09:20:58 -0700 Subject: [PATCH 47/52] docs: Switch to lawngreen for the inheritance tree color --- docs/advanced/architecture.md | 4 ++-- docs/known_words.txt | 2 +- docs/macros.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index b02723f2..3d01dc4e 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -95,7 +95,7 @@ drivers easy to create and update. This package supports many devices, zoom in to see them all! !!! note - - Family Base Classes are outlined in orange red. - - Device Drivers are highlighted in light green. + - Family Base Classes are outlined in **orange red**. + - Device Drivers are highlighted in **lawn green**. {{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers', highlight_family_base_classes=True, highlight_device_drivers=True, chart_direction='LR') }} diff --git a/docs/known_words.txt b/docs/known_words.txt index 36a2c365..583a3f61 100644 --- a/docs/known_words.txt +++ b/docs/known_words.txt @@ -48,8 +48,8 @@ https io js keithley +lawngreen licensor -lightgreen linter linters linting diff --git a/docs/macros.py b/docs/macros.py index 3470346f..8031460b 100644 --- a/docs/macros.py +++ b/docs/macros.py @@ -178,7 +178,7 @@ def class_diagram( # noqa: C901 # pylint: disable=too-many-locals "LR" (left to right), "RL" (right to left), "TB" (top to bottom), or "BT" (bottom to top). highlight_family_base_classes: Indicate to highlight the family base classes in cyan. - highlight_device_drivers: Indicate to highlight the device drivers in lightgreen. + highlight_device_drivers: Indicate to highlight the device drivers in lawngreen. Returns: The mermaid code block with complete syntax for the classDiagram. @@ -235,7 +235,7 @@ def get_tree_downwards(cls: Any) -> None: mermaid_code_block += f"\n style {family_base_class} stroke:orangered,stroke-width:4px" if highlight_device_drivers: for device_driver in sorted(device_drivers): - mermaid_code_block += f"\n style {device_driver} fill:lightgreen" + mermaid_code_block += f"\n style {device_driver} fill:lawngreen" mermaid_code_block += "\n```" return mermaid_code_block From 5442f36d843ccd097df3a267db85ca8e42a30c60 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 28 Oct 2024 09:25:05 -0700 Subject: [PATCH 48/52] refactor: Update code and comments after reviewing pull request --- .../common_pi_system_error_check_mixin.py | 2 +- src/tm_devices/drivers/afgs/afg.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py index 42686af2..cd153154 100644 --- a/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py +++ b/src/tm_devices/driver_mixins/shared_implementations/common_pi_system_error_check_mixin.py @@ -37,7 +37,7 @@ def _get_errors(self) -> Tuple[int, Tuple[str, ...]]: # return the errors if any returned_errors: List[str] = [] error = "" - while error != '0,"No error"': + while error != self._no_error_string: error = self.query("SYSTEM:ERROR?") returned_errors.append(error) diff --git a/src/tm_devices/drivers/afgs/afg.py b/src/tm_devices/drivers/afgs/afg.py index 18305fd6..7a2f4092 100644 --- a/src/tm_devices/drivers/afgs/afg.py +++ b/src/tm_devices/drivers/afgs/afg.py @@ -35,6 +35,11 @@ class AFGSourceDeviceConstants(SourceDeviceConstants): functions: Type[SignalGeneratorFunctionsAFG] = SignalGeneratorFunctionsAFG +# NOTE: Currently all AFGs are controlled via PI, hence the usage of the PIControl mixin here. If +# this changes in the future, the class inheritance structure may need to be modified and the +# control class inheritance responsibility moved to the newly created Family Base Classes. The other +# option would be to create two abstract AFG parent classes and two distinct AFGSourceChannel +# classes, with one set using the PIControl mixin and one set using another control mixin. @family_base_class class AFG(_TektronixPIAFGAWGMixin, PIControl, Device, ABC): """Base AFG device driver.""" From 5bbdd0c1155b5c8b56c7155101a01e2f910fa0b4 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Mon, 28 Oct 2024 09:34:32 -0700 Subject: [PATCH 49/52] ci: Update testing dependency to remove vulnerability --- tests/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/requirements.txt b/tests/requirements.txt index 116bb2be..44615e8e 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -48,5 +48,5 @@ tomli==2.0.2 ; python_version >= "3.8" and python_full_version <= "3.11.0a6" typepy==1.3.2 ; python_version >= "3.8" and python_version < "4.0" typepy[datetime]==1.3.2 ; python_version >= "3.8" and python_version < "4.0" urllib3==2.2.3 ; python_version >= "3.8" and python_version < "4.0" -werkzeug==3.0.4 ; python_version >= "3.8" and python_version < "4.0" +werkzeug==3.0.6 ; python_version >= "3.8" and python_version < "4.0" zipp==3.20.2 ; python_version >= "3.8" and python_version < "3.10" From 079bc4579d3368fc81521eb0e76a8926fed8a919 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 29 Oct 2024 07:22:40 -0700 Subject: [PATCH 50/52] fix: Fix example to use proper SCPI syntax --- examples/miscellaneous/adding_devices_with_env_var.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/miscellaneous/adding_devices_with_env_var.py b/examples/miscellaneous/adding_devices_with_env_var.py index 362469d3..38a01e7d 100644 --- a/examples/miscellaneous/adding_devices_with_env_var.py +++ b/examples/miscellaneous/adding_devices_with_env_var.py @@ -23,7 +23,7 @@ with DeviceManager(verbose=True) as dm: # Scope scope: MSO2 = dm.get_scope(1) - print(scope.query("IDN?")) + print(scope.query("*IDN?")) # Set horizontal scale and verify success scope.set_and_check(":HORIZONTAL:SCALE", 400e-9) From 66d1fd100f7277bdbf10295984fafc96a092779f Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 29 Oct 2024 07:31:12 -0700 Subject: [PATCH 51/52] docs: Change the note by the device inheritance tree to simply highlight in the lawngreen color to make the text easier to read --- docs/advanced/architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/architecture.md b/docs/advanced/architecture.md index 3d01dc4e..4c806f1d 100644 --- a/docs/advanced/architecture.md +++ b/docs/advanced/architecture.md @@ -96,6 +96,6 @@ This package supports many devices, zoom in to see them all! !!! note - Family Base Classes are outlined in **orange red**. - - Device Drivers are highlighted in **lawn green**. + - Device Drivers are highlighted in **lawn green**. {{ auto_class_diagram('tm_devices.drivers', full=True, namespace='tm_devices.drivers', highlight_family_base_classes=True, highlight_device_drivers=True, chart_direction='LR') }} From b1948bae11cdad8a38d54de28375507d226a9fff Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Wed, 30 Oct 2024 13:53:08 -0700 Subject: [PATCH 52/52] docs: Fix changelog after merge conflicts --- CHANGELOG.md | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c16a202..ee0da8b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,32 +18,8 @@ Valid subsections within a version are: Things to be included in the next release go here. ---- - -## v2.5.0 (2024-10-30) - -### Merged Pull Requests - -- TekScope2K - turn on HEADER and VERBOSE options to query available data sources correctly ([#327](https://github.com/tektronix/tm_devices/pull/327)) -- fix: line fix ([#339](https://github.com/tektronix/tm_devices/pull/339)) -- ci: Skip updating the mdformat repo during the dependency updater workflow ([#335](https://github.com/tektronix/tm_devices/pull/335)) -- gh-actions(deps): bump tektronix/python-package-ci-cd ([#320](https://github.com/tektronix/tm_devices/pull/320)) -- TSP environment cleanup ([#328](https://github.com/tektronix/tm_devices/pull/328)) -- feat: Added USB support for AFG31K and MDO3 models ([#331](https://github.com/tektronix/tm_devices/pull/331)) -- ci: Remove pre-commit hook that no longer works on Python 3.8 and replace with one that does ([#323](https://github.com/tektronix/tm_devices/pull/323)) -- python-deps(deps-dev): bump the python-dependencies group with 2 updates ([#311](https://github.com/tektronix/tm_devices/pull/311)) -- python-deps(deps): bump the python-dependencies group with 3 updates ([#318](https://github.com/tektronix/tm_devices/pull/318)) -- test: Ignore googletagmanager links during doctests ([#312](https://github.com/tektronix/tm_devices/pull/312)) -- ci: Enable testing for Python 3.13 ([#309](https://github.com/tektronix/tm_devices/pull/309)) - -### Fixed - -- fix: TekScope2K active channel query needs HEADER options enabled to function properly - ### Added -- `collectgarbage()` is now called during cleanup of `TSPControl` children. -- Added USBTMC Support for the AFG31K and MDO3 drivers. - Testing/linting on Python 3.13. - Added the `get_errors()` method to the `Device` class to enable easy access to the current error code and messages on any device. - Added more details to the Architectural Overview page of the documentation as well as highlighting to the device driver diagram on the page. @@ -82,6 +58,33 @@ However, please read through all changes to be aware of what may potentially imp --- +## v2.5.0 (2024-10-30) + +### Merged Pull Requests + +- TekScope2K - turn on HEADER and VERBOSE options to query available data sources correctly ([#327](https://github.com/tektronix/tm_devices/pull/327)) +- fix: line fix ([#339](https://github.com/tektronix/tm_devices/pull/339)) +- ci: Skip updating the mdformat repo during the dependency updater workflow ([#335](https://github.com/tektronix/tm_devices/pull/335)) +- gh-actions(deps): bump tektronix/python-package-ci-cd ([#320](https://github.com/tektronix/tm_devices/pull/320)) +- TSP environment cleanup ([#328](https://github.com/tektronix/tm_devices/pull/328)) +- feat: Added USB support for AFG31K and MDO3 models ([#331](https://github.com/tektronix/tm_devices/pull/331)) +- ci: Remove pre-commit hook that no longer works on Python 3.8 and replace with one that does ([#323](https://github.com/tektronix/tm_devices/pull/323)) +- python-deps(deps-dev): bump the python-dependencies group with 2 updates ([#311](https://github.com/tektronix/tm_devices/pull/311)) +- python-deps(deps): bump the python-dependencies group with 3 updates ([#318](https://github.com/tektronix/tm_devices/pull/318)) +- test: Ignore googletagmanager links during doctests ([#312](https://github.com/tektronix/tm_devices/pull/312)) +- ci: Enable testing for Python 3.13 ([#309](https://github.com/tektronix/tm_devices/pull/309)) + +### Fixed + +- fix: TekScope2K active channel query needs HEADER options enabled to function properly + +### Added + +- `collectgarbage()` is now called during cleanup of `TSPControl` children. +- Added USBTMC Support for the AFG31K and MDO3 drivers. + +--- + ## v2.4.0 (2024-09-19) ### Merged Pull Requests