Source code for RsSmw.Implementations.Source.Correction.Optimize

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


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

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

	@property
	def rf(self):
		"""
		| Commands in total: 10
		| Subgroups: 4
		| Direct child commands: 2
		"""
		if not hasattr(self, '_rf'):
			from .Rf import RfCls
			self._rf = RfCls(self._core, self._cmd_group)
		return self._rf

[docs] def get_evm(self) -> bool: """ ``[SOURce<HW>]:CORRection:OPTimize:EVM`` \n Snippet: ``value: bool = driver.source.correction.optimize.get_evm()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CORRection:OPTimize:EVM?') return Conversions.str_to_bool(response)
[docs] def set_evm(self, optimize_evm: bool) -> None: """ ``[SOURce<HW>]:CORRection:OPTimize:EVM`` \n Snippet: ``driver.source.correction.optimize.set_evm(optimize_evm = False)`` \n No help available """ param = Conversions.bool_to_str(optimize_evm) self._core.io.write(f'SOURce<HwInstance>:CORRection:OPTimize:EVM {param}')
def clone(self) -> 'OptimizeCls': """ 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 = OptimizeCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group