from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AclrCls:
"""
| Commands in total: 5
| Subgroups: 4
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("aclr", core, parent)
@property
def utra(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_utra'):
from .Utra import UtraCls
self._utra = UtraCls(self._core, self._cmd_group)
return self._utra
@property
def nr(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_nr'):
from .Nr import NrCls
self._nr = NrCls(self._core, self._cmd_group)
return self._nr
@property
def ttolerance(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ttolerance'):
from .Ttolerance import TtoleranceCls
self._ttolerance = TtoleranceCls(self._core, self._cmd_group)
return self._ttolerance
@property
def caggregation(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_caggregation'):
from .Caggregation import CaggregationCls
self._caggregation = CaggregationCls(self._core, self._cmd_group)
return self._caggregation
[docs]
def get_endc(self) -> float | bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:ACLR:ENDC`` \n
Snippet: ``value: float | bool = driver.configure.nrSubMeas.multiEval.limit.aclr.get_endc()`` \n
Defines a relative limit for the ACLR measured in an adjacent channel in EN-DC mode.
:return: relative_level: (float or boolean) Relative lower ACLR limit without test tolerance
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:ACLR:ENDC?')
return Conversions.str_to_float_or_bool(response)
[docs]
def set_endc(self, relative_level: float | bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:ACLR:ENDC`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.limit.aclr.set_endc(relative_level = 1.0)`` \n
Defines a relative limit for the ACLR measured in an adjacent channel in EN-DC mode.
:param relative_level: (float or boolean) Relative lower ACLR limit without test tolerance
"""
param = Conversions.decimal_or_bool_value_to_str(relative_level)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:ACLR:ENDC {param}')
def clone(self) -> 'AclrCls':
"""
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 = AclrCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group