Source code for RsFsw.Implementations.Applications.K50_Spurious.Sense.Ssearch.Mspur

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


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

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

[docs] def set(self, type_py: enums.SpurType) -> None: """ ``[SENSe]:SSEarch:MSPur`` \n Snippet: ``driver.applications.k50Spurious.sense.ssearch.mspur.set(type_py = enums.SpurType.DMINimum)`` \n Defines the condition for matching the measured to the predicted spurs. :param type_py: DMINimum | PMAXimum DMINimum If multiple measured spurs are inside the tolerance range around a predicted spur, the measured spur closest to the predicted spur is identified as the predicted. PMAXimum If multiple measured spurs are inside the tolerance range around a predicted spur, the measured spur with the highest power will be identified as the predicted. """ param = Conversions.enum_scalar_to_str(type_py, enums.SpurType) self._core.io.write(f'SENSe:SSEarch:MSPur {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SpurType: """ ``[SENSe]:SSEarch:MSPur`` \n Snippet: ``value: enums.SpurType = driver.applications.k50Spurious.sense.ssearch.mspur.get()`` \n Defines the condition for matching the measured to the predicted spurs. :return: type_py: DMINimum | PMAXimum DMINimum If multiple measured spurs are inside the tolerance range around a predicted spur, the measured spur closest to the predicted spur is identified as the predicted. PMAXimum If multiple measured spurs are inside the tolerance range around a predicted spur, the measured spur with the highest power will be identified as the predicted. """ response = self._core.io.query_str(f'SENSe:SSEarch:MSPur?') return Conversions.str_to_scalar_enum(response, enums.SpurType)