Source code for RsSmw.Implementations.Source.Cemulation.BirthDeath.Hopping

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


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

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

[docs] def get_dwell(self) -> float: """ ``[SOURce<HW>]:CEMulation:BIRThdeath:HOPPing:DWELl`` \n Snippet: ``value: float = driver.source.cemulation.birthDeath.hopping.get_dwell()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:BIRThdeath:HOPPing:DWELl?') return Conversions.str_to_float(response)
[docs] def set_dwell(self, dwell: float) -> None: """ ``[SOURce<HW>]:CEMulation:BIRThdeath:HOPPing:DWELl`` \n Snippet: ``driver.source.cemulation.birthDeath.hopping.set_dwell(dwell = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(dwell) self._core.io.write(f'SOURce<HwInstance>:CEMulation:BIRThdeath:HOPPing:DWELl {param}')