from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class VdetailsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("vdetails", core, parent)
[docs]
def set(self, mask_test: str, detailed_ress: bool) -> None:
"""
``MTESt:RESult:VDETails`` \n
Snippet: ``driver.mtest.result.vdetails.set(mask_test = 'abc', detailed_ress = False)`` \n
No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test', mask_test, DataType.String), ArgSingle('detailed_ress', detailed_ress, DataType.Boolean))
self._core.io.write_with_opc(f'MTESt:RESult:VDETails {param}'.rstrip())
[docs]
def get(self, mask_test: str) -> bool:
"""
``MTESt:RESult:VDETails`` \n
Snippet: ``value: bool = driver.mtest.result.vdetails.get(mask_test = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(mask_test)
response = self._core.io.query_str_with_opc(f'MTESt:RESult:VDETails? {param}')
return Conversions.str_to_bool(response)