Source code for RsSmbv.Implementations.Source.Iq.Doherty

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DohertyCls:
	"""
	| Commands in total: 31
	| Subgroups: 6
	| Direct child commands: 1
	"""

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

	@property
	def amam(self):
		"""
		| Commands in total: 3
		| 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: 3
		| 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

	@property
	def inputPy(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_inputPy'):
			from .InputPy import InputPyCls
			self._inputPy = InputPyCls(self._core, self._cmd_group)
		return self._inputPy

	@property
	def output(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_output'):
			from .Output import OutputCls
			self._output = OutputCls(self._core, self._cmd_group)
		return self._output

	@property
	def pin(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_pin'):
			from .Pin import PinCls
			self._pin = PinCls(self._core, self._cmd_group)
		return self._pin

	@property
	def shaping(self):
		"""
		| Commands in total: 18
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_shaping'):
			from .Shaping import ShapingCls
			self._shaping = ShapingCls(self._core, self._cmd_group)
		return self._shaping

	# noinspection PyTypeChecker
[docs] def get_scale(self) -> enums.IqOutEnvScale: """ ``[SOURce<HW>]:IQ:DOHerty:SCALe`` \n Snippet: ``value: enums.IqOutEnvScale = driver.source.iq.doherty.get_scale()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty:SCALe?') return Conversions.str_to_scalar_enum(response, enums.IqOutEnvScale)
[docs] def set_scale(self, scale: enums.IqOutEnvScale) -> None: """ ``[SOURce<HW>]:IQ:DOHerty:SCALe`` \n Snippet: ``driver.source.iq.doherty.set_scale(scale = enums.IqOutEnvScale.POWer)`` \n No help available """ param = Conversions.enum_scalar_to_str(scale, enums.IqOutEnvScale) self._core.io.write(f'SOURce<HwInstance>:IQ:DOHerty:SCALe {param}')
def clone(self) -> 'DohertyCls': """ 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 = DohertyCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group