Source code for rsrtx.Implementations.Mtest.EyeMask.MskLeft

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MskLeftCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, mask_test: str, copy_left: bool) -> None: """ ``MTESt:EYEMask:MSKLeft`` \n Snippet: ``driver.mtest.eyeMask.mskLeft.set(mask_test = 'abc', copy_left = False)`` \n Copies the eye shape to the right and left, respectively. The distance of the copy is defined using method ``RsRtx.mtest.eyeMask.hperiod.set()`` . :param mask_test: OFF | ON :param copy_left: String with the name of the mask test """ param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test', mask_test, DataType.String), ArgSingle('copy_left', copy_left, DataType.Boolean)) self._core.io.write_with_opc(f'MTESt:EYEMask:MSKLeft {param}'.rstrip())
[docs] def get(self, mask_test: str) -> bool: """ ``MTESt:EYEMask:MSKLeft`` \n Snippet: ``value: bool = driver.mtest.eyeMask.mskLeft.get(mask_test = 'abc')`` \n Copies the eye shape to the right and left, respectively. The distance of the copy is defined using method ``RsRtx.mtest.eyeMask.hperiod.set()`` . :param mask_test: OFF | ON """ param = Conversions.value_to_quoted_str(mask_test) response = self._core.io.query_str_with_opc(f'MTESt:EYEMask:MSKLeft? {param}') return Conversions.str_to_bool(response)