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 StopCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("stop", core, parent)
[docs]
def set(self, histogram: str, stop: float) -> None:
"""
``LAYout:HISTogram:VERTical:ABSolute:STOP`` \n
Snippet: ``driver.layout.histogram.vertical.absolute.stop.set(histogram = 'abc', stop = 1.0)`` \n
Defines the vertical stop value of the histogram. For numerical values, the input of a unit is not supported for this
command.
:param stop: -100E+24 to 100E+24
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('histogram', histogram, DataType.String), ArgSingle('stop', stop, DataType.Float))
self._core.io.write_with_opc(f'LAYout:HISTogram:VERTical:ABSolute:STOP {param}'.rstrip())
[docs]
def get(self, histogram: str) -> float:
"""
``LAYout:HISTogram:VERTical:ABSolute:STOP`` \n
Snippet: ``value: float = driver.layout.histogram.vertical.absolute.stop.get(histogram = 'abc')`` \n
Defines the vertical stop value of the histogram. For numerical values, the input of a unit is not supported for this
command.
:return: stop: -100E+24 to 100E+24
"""
param = Conversions.value_to_quoted_str(histogram)
response = self._core.io.query_str_with_opc(f'LAYout:HISTogram:VERTical:ABSolute:STOP? {param}')
return Conversions.str_to_float(response)