from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("state", core, parent)
[docs]
def set(self, type_py: enums.MdpdType) -> None:
"""
``CONFigure:MDPD[:STATe]`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.mdpd.state.set(type_py = enums.MdpdType.DDPD)`` \n
Select the GMP Type for memory polynomial.
:param type_py: OFF | FILE | MEAS | DDPD OFF Deactivates the GMP. FILE Activates the file mode. MEAS Enables the model generation based on a measurement. DDPD Enables the model generation based on direct DPD.
"""
param = Conversions.enum_scalar_to_str(type_py, enums.MdpdType)
self._core.io.write(f'CONFigure:MDPD:STATe {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.MdpdType:
"""
``CONFigure:MDPD[:STATe]`` \n
Snippet: ``value: enums.MdpdType = driver.applications.k18AmplifierEt.configure.mdpd.state.get()`` \n
Select the GMP Type for memory polynomial.
:return: type_py: OFF | FILE | MEAS | DDPD OFF Deactivates the GMP. FILE Activates the file mode. MEAS Enables the model generation based on a measurement. DDPD Enables the model generation based on direct DPD.
"""
response = self._core.io.query_str(f'CONFigure:MDPD:STATe?')
return Conversions.str_to_scalar_enum(response, enums.MdpdType)