from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RemoveCls:
"""
| Commands in total: 3
| Subgroups: 2
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("remove", core, parent)
@property
def all(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_all'):
from .All import AllCls
self._all = AllCls(self._core, self._cmd_group)
return self._all
@property
def selected(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_selected'):
from .Selected import SelectedCls
self._selected = SelectedCls(self._core, self._cmd_group)
return self._selected
[docs]
def set(self, data_set: float) -> None:
"""
``HCOPy:TREPort:TEST:REMove`` \n
Snippet: ``driver.hardCopy.treport.test.remove.set(data_set = 1.0)`` \n
This command deletes one of the datasets that are currently part of a test report.
:param data_set: Index number of the dataset as shown in the 'Test Report Content Selection' dialog box. If the index number is greater than the number of available datasets, the command returns an error.
"""
param = Conversions.decimal_value_to_str(data_set)
self._core.io.write(f'HCOPy:TREPort:TEST:REMove {param}')
def clone(self) -> 'RemoveCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = RemoveCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group