from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TroposphericCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tropospheric", core, parent)
# noinspection PyTypeChecker
[docs]
def get_model(self) -> enums.TropModel:
"""
``[SOURce<HW>]:BB:GNSS:ATMospheric:TROPospheric:MODel`` \n
Snippet: ``value: enums.TropModel = driver.source.bb.gnss.atmospheric.tropospheric.get_model()`` \n
Determines the tropospheric model.
:return: model: NONE | STANag | MOPS
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ATMospheric:TROPospheric:MODel?')
return Conversions.str_to_scalar_enum(response, enums.TropModel)
[docs]
def set_model(self, model: enums.TropModel) -> None:
"""
``[SOURce<HW>]:BB:GNSS:ATMospheric:TROPospheric:MODel`` \n
Snippet: ``driver.source.bb.gnss.atmospheric.tropospheric.set_model(model = enums.TropModel.MOPS)`` \n
Determines the tropospheric model.
:param model: NONE | STANag | MOPS
"""
param = Conversions.enum_scalar_to_str(model, enums.TropModel)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ATMospheric:TROPospheric:MODel {param}')