from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AutoScaleCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("autoScale", core, parent)
@property
def result(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_result'):
from .Result import ResultCls
self._result = ResultCls(self._core, self._cmd_group)
return self._result
[docs]
def get_enable(self) -> bool:
"""
``FRANalysis:AUToscale[:ENABle]`` \n
Snippet: ``value: bool = driver.franalysis.autoScale.get_enable()`` \n
Enables the auto scaling function for each measurement.
:return: auto_scale: OFF | ON
"""
response = self._core.io.query_str('FRANalysis:AUToscale:ENABle?')
return Conversions.str_to_bool(response)
[docs]
def set_enable(self, auto_scale: bool) -> None:
"""
``FRANalysis:AUToscale[:ENABle]`` \n
Snippet: ``driver.franalysis.autoScale.set_enable(auto_scale = False)`` \n
Enables the auto scaling function for each measurement.
:param auto_scale: OFF | ON
"""
param = Conversions.bool_to_str(auto_scale)
self._core.io.write(f'FRANalysis:AUToscale:ENABle {param}')
def clone(self) -> 'AutoScaleCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = AutoScaleCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group