from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SlicePyCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("slicePy", core, parent)
[docs]
def get(self, mask_test: str, mtestViolation=repcap.MtestViolation.Default) -> int:
"""
``MTESt:RESult:VIOLation<*>[:SLICe]`` \n
Snippet: ``value: int = driver.mtest.result.violation.slicePy.get(mask_test = 'abc', mtestViolation = repcap.MtestViolation.Default)`` \n
No help available
:param mtestViolation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Violation')
:return: slice_py: 0 to 4294967295
"""
param = Conversions.value_to_quoted_str(mask_test)
mtestViolation_cmd_val = self._cmd_group.get_repcap_cmd_value(mtestViolation, repcap.MtestViolation)
response = self._core.io.query_str_with_opc(f'MTESt:RESult:VIOLation{mtestViolation_cmd_val}:SLICe? {param}')
return Conversions.str_to_int(response)