Source code for RsSmw.Implementations.Source.Iq.Dpd.Shaping.Table

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TableCls:
	"""
	| Commands in total: 10
	| Subgroups: 2
	| Direct child commands: 2
	"""

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

	@property
	def amam(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_amam'):
			from .Amam import AmamCls
			self._amam = AmamCls(self._core, self._cmd_group)
		return self._amam

	@property
	def amPm(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_amPm'):
			from .AmPm import AmPmCls
			self._amPm = AmPmCls(self._core, self._cmd_group)
		return self._amPm

	# noinspection PyTypeChecker
[docs] def get_interp(self) -> enums.Interpolation: """ ``[SOURce<HW>]:IQ:DPD:SHAPing:TABLe:INTerp`` \n Snippet: ``value: enums.Interpolation = driver.source.iq.dpd.shaping.table.get_interp()`` \n Enables a linear (voltage or power) interpolation between the defined correction values. """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:SHAPing:TABLe:INTerp?') return Conversions.str_to_scalar_enum(response, enums.Interpolation)
[docs] def set_interp(self, ipart_interpolation: enums.Interpolation) -> None: """ ``[SOURce<HW>]:IQ:DPD:SHAPing:TABLe:INTerp`` \n Snippet: ``driver.source.iq.dpd.shaping.table.set_interp(ipart_interpolation = enums.Interpolation.LINear)`` \n Enables a linear (voltage or power) interpolation between the defined correction values. :param ipart_interpolation: OFF | POWer | LINear POWer Linear power interpolation LINear Linear voltage interpolation """ param = Conversions.enum_scalar_to_str(ipart_interpolation, enums.Interpolation) self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:SHAPing:TABLe:INTerp {param}')
[docs] def get_invert(self) -> bool: """ ``[SOURce<HW>]:IQ:DPD:SHAPing:[TABLe]:INVert`` \n Snippet: ``value: bool = driver.source.iq.dpd.shaping.table.get_invert()`` \n Inverts the defined correction values. """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:SHAPing:TABLe:INVert?') return Conversions.str_to_bool(response)
[docs] def set_invert(self, ipart_invert_values: bool) -> None: """ ``[SOURce<HW>]:IQ:DPD:SHAPing:[TABLe]:INVert`` \n Snippet: ``driver.source.iq.dpd.shaping.table.set_invert(ipart_invert_values = False)`` \n Inverts the defined correction values. :param ipart_invert_values: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(ipart_invert_values) self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:SHAPing:TABLe:INVert {param}')
def clone(self) -> 'TableCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = TableCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group