from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SequenceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sequence", core, parent)
[docs]
def set(self, state: enums.DpdOrder) -> None:
"""
``CONFigure:MODeling:SEQuence`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.modeling.sequence.set(state = enums.DpdOrder.AMFirst)`` \n
This command selects the sequence in which the models are calculated.
:param state: AMFirst Calculates the 'AM/AM' model before calculating the 'AM/PM' model. PMFirst Calculates the 'AM/PM' model before calculating the 'AM/AM' model.
"""
param = Conversions.enum_scalar_to_str(state, enums.DpdOrder)
self._core.io.write(f'CONFigure:MODeling:SEQuence {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.DpdOrder:
"""
``CONFigure:MODeling:SEQuence`` \n
Snippet: ``value: enums.DpdOrder = driver.applications.k18AmplifierEt.configure.modeling.sequence.get()`` \n
This command selects the sequence in which the models are calculated.
:return: state: AMFirst Calculates the 'AM/AM' model before calculating the 'AM/PM' model. PMFirst Calculates the 'AM/PM' model before calculating the 'AM/AM' model.
"""
response = self._core.io.query_str(f'CONFigure:MODeling:SEQuence?')
return Conversions.str_to_scalar_enum(response, enums.DpdOrder)