Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.MultiEval.ListPy.Segment.CarrierAggregation.Mcarrier

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import enums
from ......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class McarrierCls: """Mcarrier commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mcarrier", core, parent) @property def enhanced(self): """enhanced commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_enhanced'): from .Enhanced import EnhancedCls self._enhanced = EnhancedCls(self._core, self._cmd_group) return self._enhanced
[docs] def set(self, meas_carrier: enums.MeasCarrier, segment=repcap.Segment.Default) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:CAGGregation:MCARrier \n Snippet: driver.configure.lteMeas.multiEval.listPy.segment.carrierAggregation.mcarrier.set(meas_carrier = enums.MeasCarrier.PCC, segment = repcap.Segment.Default) \n No command help available \n :param meas_carrier: No help available :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') """ param = Conversions.enum_scalar_to_str(meas_carrier, enums.MeasCarrier) segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:CAGGregation:MCARrier {param}')
# noinspection PyTypeChecker
[docs] def get(self, segment=repcap.Segment.Default) -> enums.MeasCarrier: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:CAGGregation:MCARrier \n Snippet: value: enums.MeasCarrier = driver.configure.lteMeas.multiEval.listPy.segment.carrierAggregation.mcarrier.get(segment = repcap.Segment.Default) \n No command help available \n :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: meas_carrier: No help available""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) response = self._core.io.query_str(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:CAGGregation:MCARrier?') return Conversions.str_to_scalar_enum(response, enums.MeasCarrier)
def clone(self) -> 'McarrierCls': """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 = McarrierCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group