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

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 TbSymmetricCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, mask_test: str, top_btom_symetrie: bool) -> None: """ ``MTESt:EYEMask:TBSYmmetric`` \n Snippet: ``driver.mtest.eyeMask.tbSymmetric.set(mask_test = 'abc', top_btom_symetrie = False)`` \n Sets bottom and top offsets to the same value so that the outer regions are symmetric to the eye shape. :param mask_test: String with the name of the mask test :param top_btom_symetrie: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test', mask_test, DataType.String), ArgSingle('top_btom_symetrie', top_btom_symetrie, DataType.Boolean)) self._core.io.write_with_opc(f'MTESt:EYEMask:TBSYmmetric {param}'.rstrip())
[docs] def get(self, mask_test: str) -> bool: """ ``MTESt:EYEMask:TBSYmmetric`` \n Snippet: ``value: bool = driver.mtest.eyeMask.tbSymmetric.get(mask_test = 'abc')`` \n Sets bottom and top offsets to the same value so that the outer regions are symmetric to the eye shape. :param mask_test: String with the name of the mask test :return: top_btom_symetrie: OFF | ON """ param = Conversions.value_to_quoted_str(mask_test) response = self._core.io.query_str_with_opc(f'MTESt:EYEMask:TBSYmmetric? {param}') return Conversions.str_to_bool(response)