from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# 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 get(self) -> float:
"""
``FETCh:DPD:POLYnomial`` \n
Snippet: ``value: float = driver.applications.k18AmplifierEt.fetch.dpd.polynomial.get()`` \n
This command queries the polynomial factors of the correctional polynomial.
Prerequisites for this command \n
- Turn on polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.ddpd.state.set()`` ) .
- Run polynomial DPD (method ``RsFsw.applications.k18AmplifierEt.configure.dpd.file.generate.set()`` ) .
:return: values: List of numerical values. The number of values depends on the DPD configuration. The real and imaginary parts of the DPD coefficients are returned interleaved in the following order: real(a0) , imag(a0) , real(a1) , imag(a1) , ...
"""
response = self._core.io.query_str(f'FETCh:DPD:POLYnomial?')
return Conversions.str_to_float(response)