Source code for RsSmw.Implementations.Source.Regenerator.Simulation.Level

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LevelCls:
	"""
	| Commands in total: 4
	| Subgroups: 3
	| Direct child commands: 1
	"""

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

	@property
	def apply(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_apply'):
			from .Apply import ApplyCls
			self._apply = ApplyCls(self._core, self._cmd_group)
		return self._apply

	@property
	def updated(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_updated'):
			from .Updated import UpdatedCls
			self._updated = UpdatedCls(self._core, self._cmd_group)
		return self._updated

	@property
	def valid(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_valid'):
			from .Valid import ValidCls
			self._valid = ValidCls(self._core, self._cmd_group)
		return self._valid

[docs] def get(self, level: float) -> float: """ ``[SOURce<HW>]:REGenerator:SIMulation:LEVel`` \n Snippet: ``value: float = driver.source.regenerator.simulation.level.get(level = 1.0)`` \n Queries the calculated level value. :param level: float Range: -541 to 591 :return: level: float Range: -541 to 591 """ param = Conversions.decimal_value_to_str(level) response = self._core.io.query_str(f'SOURce<HwInstance>:REGenerator:SIMulation:LEVel? {param}') return Conversions.str_to_float(response)
def clone(self) -> 'LevelCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = LevelCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group