from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AddCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("add", core, parent)
[docs]
def set(self, mask_test_name: str, msk_segm_idx: int) -> None:
"""
``MTESt:SEGMent:POINt:ADD`` \n
Snippet: ``driver.mtest.segment.point.add.set(mask_test_name = 'abc', msk_segm_idx = 1)`` \n
Adds a new point to the segment definition.
:param mask_test_name: String with the name of the mask test
:param msk_segm_idx: Number of the segment. Counting starts from 0.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test_name', mask_test_name, DataType.String), ArgSingle('msk_segm_idx', msk_segm_idx, DataType.Integer))
self._core.io.write_with_opc(f'MTESt:SEGMent:POINt:ADD {param}'.rstrip())