Source code for RsFsw.Implementations.Sense.Correction.Ploss.InputPy

from typing import List

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class InputPyCls:
	"""
	| Commands in total: 3
	| Subgroups: 2
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("inputPy", core, parent)

	@property
	def spath(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_spath'):
			from .Spath import SpathCls
			self._spath = SpathCls(self._core, self._cmd_group)
		return self._spath

	@property
	def state(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_state'):
			from .State import StateCls
			self._state = StateCls(self._core, self._cmd_group)
		return self._state

[docs] def set(self, frequency: List[float], level: List[float]) -> None: """ ``[SENSe]:CORRection:PLOSs:INPut`` \n Snippet: ``driver.sense.correction.ploss.inputPy.set(frequency = [1.1, 2.2, 3.3], level = [1.1, 2.2, 3.3])`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle.as_open_list('frequency', frequency, DataType.FloatList, None), ArgSingle.as_open_list('level', level, DataType.FloatList, None)) self._core.io.write(f'SENSe:CORRection:PLOSs:INPut {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class InputPyStruct(StructBase): """ Response structure. Fields: \n - 1 Frequency: List[float]: No parameter help available - 2 Level: List[float]: No parameter help available """ __meta_args_list = [ ArgStruct('Frequency', DataType.FloatList, None, False, True, 1), ArgStruct('Level', DataType.FloatList, None, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Frequency: List[float] = None self.Level: List[float] = None
[docs] def get(self) -> InputPyStruct: """ ``[SENSe]:CORRection:PLOSs:INPut`` \n Snippet: ``value: InputPyStruct = driver.sense.correction.ploss.inputPy.get()`` \n No help available :return: structure: for return value, see the help for InputPyStruct structure arguments. """ return self._core.io.query_struct(f'SENSe:CORRection:PLOSs:INPut?', self.__class__.InputPyStruct())
def clone(self) -> 'InputPyCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = InputPyCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group