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 HperiodCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hperiod", core, parent)
[docs]
def set(self, mask_test: str, intpattlgth: float) -> None:
"""
``MTESt:EYEMask:HPERiod`` \n
Snippet: ``driver.mtest.eyeMask.hperiod.set(mask_test = 'abc', intpattlgth = 1.0)`` \n
Defines the time distance between the shape centers if method ``RsRtx.mtest.eyeMask.mskLeft.set()`` and/or method
``RsRtx.mtest.eyeMask.mskRight.set()`` are ON.
:param mask_test: 0 to 100
:param intpattlgth: String with the name of the mask test
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test', mask_test, DataType.String), ArgSingle('intpattlgth', intpattlgth, DataType.Float))
self._core.io.write_with_opc(f'MTESt:EYEMask:HPERiod {param}'.rstrip())
[docs]
def get(self, mask_test: str) -> float:
"""
``MTESt:EYEMask:HPERiod`` \n
Snippet: ``value: float = driver.mtest.eyeMask.hperiod.get(mask_test = 'abc')`` \n
Defines the time distance between the shape centers if method ``RsRtx.mtest.eyeMask.mskLeft.set()`` and/or method
``RsRtx.mtest.eyeMask.mskRight.set()`` are ON.
:param mask_test: 0 to 100
"""
param = Conversions.value_to_quoted_str(mask_test)
response = self._core.io.query_str_with_opc(f'MTESt:EYEMask:HPERiod? {param}')
return Conversions.str_to_float(response)