Source code for rsrtx.Implementations.Mtest.Segment.Remove

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

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

[docs] def set(self, mask_test_name: str, msk_segm_idx: int) -> None: """ ``MTESt:SEGMent:REMove`` \n Snippet: ``driver.mtest.segment.remove.set(mask_test_name = 'abc', msk_segm_idx = 1)`` \n Removes the specified segment from the mask 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:REMove {param}'.rstrip())