from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import repcap
# 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, index: int, deembedding=repcap.Deembedding.Default) -> None:
"""
``DEEMbedding<*>:REMove`` \n
Snippet: ``driver.deembedding.remove.set(index = 1, deembedding = repcap.Deembedding.Default)`` \n
Deletes the component with the indicated index from the measurement setup.
:param index: Defines the place of the component in the measurement path. The DUT is always the first component (index = 1) , the probe or input is the last component.
:param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding')
"""
param = Conversions.decimal_value_to_str(index)
deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding)
self._core.io.write_with_opc(f'DEEMbedding{deembedding_cmd_val}:REMove {param}')