from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StartCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("start", core, parent)
[docs]
def set(self, diagram_group: str, zoom_diagram: str, start: float) -> None:
"""
``LAYout:ZOOM:VERTical:ABSolute:STARt`` \n
Snippet: ``driver.layout.zoom.vertical.absolute.start.set(diagram_group = 'abc', zoom_diagram = 'abc', start = 1.0)`` \n
Defines the lower limit of the zoom area on the y-axis. For numerical values, the input of a unit is not supported for
this command.
:param diagram_group: Name of the diagram on which the zoom area is based.
:param zoom_diagram: Name of the zoom diagram
:param start: -100E+24 to 100E+24
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('diagram_group', diagram_group, DataType.String), ArgSingle('zoom_diagram', zoom_diagram, DataType.String), ArgSingle('start', start, DataType.Float))
self._core.io.write_with_opc(f'LAYout:ZOOM:VERTical:ABSolute:STARt {param}'.rstrip())
[docs]
def get(self, diagram_group: str, zoom_diagram: str) -> float:
"""
``LAYout:ZOOM:VERTical:ABSolute:STARt`` \n
Snippet: ``value: float = driver.layout.zoom.vertical.absolute.start.get(diagram_group = 'abc', zoom_diagram = 'abc')`` \n
Defines the lower limit of the zoom area on the y-axis. For numerical values, the input of a unit is not supported for
this command.
:param diagram_group: Name of the diagram on which the zoom area is based.
:param zoom_diagram: Name of the zoom diagram
:return: start: -100E+24 to 100E+24
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('diagram_group', diagram_group, DataType.String), ArgSingle('zoom_diagram', zoom_diagram, DataType.String))
response = self._core.io.query_str_with_opc(f'LAYout:ZOOM:VERTical:ABSolute:STARt? {param}'.rstrip())
return Conversions.str_to_float(response)