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 ModelCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("model", core, parent)
[docs]
def set(self, channel: str) -> None:
"""
``CONFigure:MDPD:APPLy:MODel`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.mdpd.apply.model.set(channel = 'abc')`` \n
Selects the waveform to which the model should be applied.
"""
param = Conversions.value_to_quoted_str(channel)
self._core.io.write(f'CONFigure:MDPD:APPLy:MODel {param}')
[docs]
def get(self) -> str:
"""
``CONFigure:MDPD:APPLy:MODel`` \n
Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.mdpd.apply.model.get()`` \n
Selects the waveform to which the model should be applied.
"""
response = self._core.io.query_str(f'CONFigure:MDPD:APPLy:MODel?')
return trim_str_response(response)