Source code for RsPulseSeq.Implementations.Scenario.Localized.Maps

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MapsCls: """Maps commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("maps", core, parent)
[docs] def get_enable(self) -> bool: """SCPI: SCENario:LOCalized:MAPS:ENABle \n Snippet: value: bool = driver.scenario.localized.maps.get_enable() \n Enable maps for the selected scenario. This operation cannot be undone. \n :return: enable: ON| OFF| 1| 0 """ response = self._core.io.query_str('SCENario:LOCalized:MAPS:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, enable: bool) -> None: """SCPI: SCENario:LOCalized:MAPS:ENABle \n Snippet: driver.scenario.localized.maps.set_enable(enable = False) \n Enable maps for the selected scenario. This operation cannot be undone. \n :param enable: ON| OFF| 1| 0 """ param = Conversions.bool_to_str(enable) self._core.io.write(f'SCENario:LOCalized:MAPS:ENABle {param}')
[docs] def load(self, load: List[str]) -> None: """SCPI: SCENario:LOCalized:MAPS:LOAD \n Snippet: driver.scenario.localized.maps.load(load = ['abc1', 'abc2', 'abc3']) \n This command loads a georeferenced map for the selected scenario. Supported formats: INTRO_CMD_HELP: Examples of special characters: \n - .tif - .tiff \n :param load: No help available """ param = Conversions.list_to_csv_quoted_str(load) self._core.io.write(f'SCENario:LOCalized:MAPS:LOAD {param}')