Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Mdpd.Order.Polynomial

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 PolynomialCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("polynomial", core, parent)

[docs] def set(self, order: str) -> None: """ ``CONFigure:MDPD:ORDer:POLYnomial`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.mdpd.order.polynomial.set(order = 'abc')`` \n Sets the polynomial order for memory polynomial DPD as a string. """ param = Conversions.value_to_quoted_str(order) self._core.io.write(f'CONFigure:MDPD:ORDer:POLYnomial {param}')
[docs] def get(self) -> str: """ ``CONFigure:MDPD:ORDer:POLYnomial`` \n Snippet: ``value: str = driver.applications.k18AmplifierEt.configure.mdpd.order.polynomial.get()`` \n Sets the polynomial order for memory polynomial DPD as a string. """ response = self._core.io.query_str(f'CONFigure:MDPD:ORDer:POLYnomial?') return trim_str_response(response)