Source code for RsSmw.Implementations.Source.Bb.Gnss.AdGeneration.Almanac

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


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

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

[docs] def get_create(self) -> str: """ ``[SOURce<HW>]:BB:GNSS:ADGeneration:ALManac:CREate`` \n Snippet: ``value: str = driver.source.bb.gnss.adGeneration.almanac.get_create()`` \n Saves the current assistance data settings into the selected almanac file. Refer to 'MMEMory Subsystem' for general information on file handling in the default and in a specific directory. :return: filename: string Filename or complete file path The default extension is rs_al. It can be omitted in the filename. To save an almanac file as file with extension rs_yuma, specify it in the filename. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:ALManac:CREate?') return trim_str_response(response)
[docs] def set_create(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:GNSS:ADGeneration:ALManac:CREate`` \n Snippet: ``driver.source.bb.gnss.adGeneration.almanac.set_create(filename = 'abc')`` \n Saves the current assistance data settings into the selected almanac file. Refer to 'MMEMory Subsystem' for general information on file handling in the default and in a specific directory. :param filename: string Filename or complete file path The default extension is rs_al. It can be omitted in the filename. To save an almanac file as file with extension rs_yuma, specify it in the filename. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:ALManac:CREate {param}')