from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MemoryCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("memory", core, parent)
[docs]
def set(self, order: str) -> None:
"""
``CONFigure:MDPD:ORDer:MEMory`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.mdpd.order.memory.set(order = 'abc')`` \n
Sets the memory order for memory polynomial DPD as a string.
"""
param = Conversions.value_to_quoted_str(order)
self._core.io.write(f'CONFigure:MDPD:ORDer:MEMory {param}')
[docs]
def get(self) -> str:
"""
``CONFigure:MDPD:ORDer:MEMory`` \n
Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.mdpd.order.memory.get()`` \n
Sets the memory order for memory polynomial DPD as a string.
"""
response = self._core.io.query_str(f'CONFigure:MDPD:ORDer:MEMory?')
return trim_str_response(response)