from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PhysicalCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("physical", core, parent)
[docs]
def set(self, horizontal_tol: float, maskTest=repcap.MaskTest.Default) -> None:
"""
``MTESt<*>:AUTomask:XTOLerance:PHYSical`` \n
Snippet: ``driver.mtest.automask.xtolerance.physical.set(horizontal_tol = 1.0, maskTest = repcap.MaskTest.Default)`` \n
Sets the width of the mask in horizontal direction in the unit of the horizontal axis, and sets method
``RsMxo.mtest.automask.xtUnit.set()`` to PHYSical.
:param horizontal_tol: Tolerance value in the physical unit of the x-axis. The overall mask width is twice the specified value.
:param maskTest: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mtest')
"""
param = Conversions.decimal_value_to_str(horizontal_tol)
maskTest_cmd_val = self._cmd_group.get_repcap_cmd_value(maskTest, repcap.MaskTest)
self._core.io.write(f'MTESt{maskTest_cmd_val}:AUTomask:XTOLerance:PHYSical {param}')
[docs]
def get(self, maskTest=repcap.MaskTest.Default) -> float:
"""
``MTESt<*>:AUTomask:XTOLerance:PHYSical`` \n
Snippet: ``value: float = driver.mtest.automask.xtolerance.physical.get(maskTest = repcap.MaskTest.Default)`` \n
Sets the width of the mask in horizontal direction in the unit of the horizontal axis, and sets method
``RsMxo.mtest.automask.xtUnit.set()`` to PHYSical.
:param maskTest: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mtest')
:return: horizontal_tol: Tolerance value in the physical unit of the x-axis. The overall mask width is twice the specified value.
"""
maskTest_cmd_val = self._cmd_group.get_repcap_cmd_value(maskTest, repcap.MaskTest)
response = self._core.io.query_str(f'MTESt{maskTest_cmd_val}:AUTomask:XTOLerance:PHYSical?')
return Conversions.str_to_float(response)