Source code for RsSmw.Implementations.Source.Bb.Gnss.Atmospheric.Ionospheric

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


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

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

	@property
	def klobuchar(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_klobuchar'):
			from .Klobuchar import KlobucharCls
			self._klobuchar = KlobucharCls(self._core, self._cmd_group)
		return self._klobuchar

	@property
	def mops(self):
		"""
		| Commands in total: 11
		| Subgroups: 1
		| Direct child commands: 3
		"""
		if not hasattr(self, '_mops'):
			from .Mops import MopsCls
			self._mops = MopsCls(self._core, self._cmd_group)
		return self._mops

	@property
	def neQuick(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_neQuick'):
			from .NeQuick import NeQuickCls
			self._neQuick = NeQuickCls(self._core, self._cmd_group)
		return self._neQuick

	# noinspection PyTypeChecker
[docs] def get_model(self) -> enums.IonModel: """ ``[SOURce<HW>]:BB:GNSS:ATMospheric:IONospheric:MODel`` \n Snippet: ``value: enums.IonModel = driver.source.bb.gnss.atmospheric.ionospheric.get_model()`` \n Determines the applied ionospheric model. :return: model: NONE | KLOBuchar | MOPS | NEQuick """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ATMospheric:IONospheric:MODel?') return Conversions.str_to_scalar_enum(response, enums.IonModel)
[docs] def set_model(self, model: enums.IonModel) -> None: """ ``[SOURce<HW>]:BB:GNSS:ATMospheric:IONospheric:MODel`` \n Snippet: ``driver.source.bb.gnss.atmospheric.ionospheric.set_model(model = enums.IonModel.KLOBuchar)`` \n Determines the applied ionospheric model. :param model: NONE | KLOBuchar | MOPS | NEQuick """ param = Conversions.enum_scalar_to_str(model, enums.IonModel) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ATMospheric:IONospheric:MODel {param}')
def clone(self) -> 'IonosphericCls': """ 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 = IonosphericCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group