Source code for RsSmw.Implementations.Source.Iq.Doherty.Phase

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PhaseCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def get_offset(self) -> float: """ ``[SOURce<HW>]:IQ:DOHerty:PHASe:OFFSet`` \n Snippet: ``value: float = driver.source.iq.doherty.phase.get_offset()`` \n Adds a phase offset. :return: attenuation: float Range: -999.99 to 999.99 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DOHerty:PHASe:OFFSet?') return Conversions.str_to_float(response)
[docs] def set_offset(self, attenuation: float) -> None: """ ``[SOURce<HW>]:IQ:DOHerty:PHASe:OFFSet`` \n Snippet: ``driver.source.iq.doherty.phase.set_offset(attenuation = 1.0)`` \n Adds a phase offset. :param attenuation: float Range: -999.99 to 999.99 """ param = Conversions.decimal_value_to_str(attenuation) self._core.io.write(f'SOURce<HwInstance>:IQ:DOHerty:PHASe:OFFSet {param}')