Source code for rsrtx.Implementations.Power.DonRes.Result

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


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

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

[docs] def get_resistance(self) -> float: """ ``POWer:DONRes:RESult:RESistance`` \n Snippet: ``value: float = driver.power.donRes.result.get_resistance()`` \n Returns the dynamic on resistance value. :return: resistance: -100E+24 to 100E+24 """ response = self._core.io.query_str('POWer:DONRes:RESult:RESistance?') return Conversions.str_to_float(response)