Source code for RsFsw.Implementations.Sense.Correction.Ploss.InputPy.Spath

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


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

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

[docs] def set(self, value: float) -> None: """ ``[SENSe]:CORRection:PLOSs:INPut:SPATh`` \n Snippet: ``driver.sense.correction.ploss.inputPy.spath.set(value = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(value) self._core.io.write(f'SENSe:CORRection:PLOSs:INPut:SPATh {param}')
[docs] def get(self) -> float: """ ``[SENSe]:CORRection:PLOSs:INPut:SPATh`` \n Snippet: ``value: float = driver.sense.correction.ploss.inputPy.spath.get()`` \n No help available """ response = self._core.io.query_str(f'SENSe:CORRection:PLOSs:INPut:SPATh?') return Conversions.str_to_float(response)