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

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce]:IQ:DOHerty:MEASurement:[STATe]`` \n Snippet: ``value: bool = driver.source.iq.doherty.measurement.get_state()`` \n Query the calculation status of the PEP and Level values. :return: measure_validity: 1 | ON | 0| OFF 1 | ON PEP and Level output values are valid 0 | OFF PEP and Level output values are in calculation In the user interface, you recognize this state if '---.--' is indicated. """ response = self._core.io.query_str('SOURce:IQ:DOHerty:MEASurement:STATe?') return Conversions.str_to_bool(response)