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 RecalculateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("recalculate", core, parent)
[docs]
def set(self, mask_test: str, mask_segment: int) -> None:
"""
``MTESt:SEGMent:RESCale:RECalculate`` \n
Snippet: ``driver.mtest.segment.rescale.recalculate.set(mask_test = 'abc', mask_segment = 1)`` \n
Multiplies and adds the given x- and y-factors and offsets to the coordinates of all points of the selected mask segment.
:param mask_test: String with the name of the mask test
:param mask_segment: Number of the segment. Counting starts from 0.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test', mask_test, DataType.String), ArgSingle('mask_segment', mask_segment, DataType.Integer))
self._core.io.write_with_opc(f'MTESt:SEGMent:RESCale:RECalculate {param}'.rstrip())