Source code for RsSmbv.Implementations.Source.Iq.Doherty.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:DOHerty:SHAPing:TABLe:INTerp`` \n Snippet: ``value: enums.Interpolation = driver.source.iq.doherty.shaping.table.get_interp()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty: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:DOHerty:SHAPing:TABLe:INTerp`` \n Snippet: ``driver.source.iq.doherty.shaping.table.set_interp(ipart_interpolation = enums.Interpolation.LINear)`` \n No help available """ param = Conversions.enum_scalar_to_str(ipart_interpolation, enums.Interpolation) self._core.io.write(f'SOURce<HwInstance>:IQ:DOHerty:SHAPing:TABLe:INTerp {param}')
[docs] def get_invert(self) -> bool: """ ``[SOURce<HW>]:IQ:DOHerty:SHAPing:[TABLe]:INVert`` \n Snippet: ``value: bool = driver.source.iq.doherty.shaping.table.get_invert()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty:SHAPing:TABLe:INVert?') return Conversions.str_to_bool(response)
[docs] def set_invert(self, ipart_invert_values: bool) -> None: """ ``[SOURce<HW>]:IQ:DOHerty:SHAPing:[TABLe]:INVert`` \n Snippet: ``driver.source.iq.doherty.shaping.table.set_invert(ipart_invert_values = False)`` \n No help available """ param = Conversions.bool_to_str(ipart_invert_values) self._core.io.write(f'SOURce<HwInstance>:IQ:DOHerty: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