from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PowerCls:
"""Power commands group definition. 24 total commands, 14 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("power", core, parent)
@property
def aperture(self):
"""aperture commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_aperture'):
from .Aperture import ApertureCls
self._aperture = ApertureCls(self._core, self._cmd_group)
return self._aperture
@property
def correction(self):
"""correction commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_correction'):
from .Correction import CorrectionCls
self._correction = CorrectionCls(self._core, self._cmd_group)
return self._correction
@property
def direct(self):
"""direct commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_direct'):
from .Direct import DirectCls
self._direct = DirectCls(self._core, self._cmd_group)
return self._direct
@property
def display(self):
"""display commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_display'):
from .Display import DisplayCls
self._display = DisplayCls(self._core, self._cmd_group)
return self._display
@property
def filterPy(self):
"""filterPy commands group. 4 Sub-classes, 0 commands."""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
@property
def frequency(self):
"""frequency commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_frequency'):
from .Frequency import FrequencyCls
self._frequency = FrequencyCls(self._core, self._cmd_group)
return self._frequency
@property
def logging(self):
"""logging commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_logging'):
from .Logging import LoggingCls
self._logging = LoggingCls(self._core, self._cmd_group)
return self._logging
@property
def offset(self):
"""offset commands group. 1 Sub-classes, 1 commands."""
if not hasattr(self, '_offset'):
from .Offset import OffsetCls
self._offset = OffsetCls(self._core, self._cmd_group)
return self._offset
@property
def snumber(self):
"""snumber commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_snumber'):
from .Snumber import SnumberCls
self._snumber = SnumberCls(self._core, self._cmd_group)
return self._snumber
@property
def source(self):
"""source commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_source'):
from .Source import SourceCls
self._source = SourceCls(self._core, self._cmd_group)
return self._source
@property
def status(self):
"""status commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_status'):
from .Status import StatusCls
self._status = StatusCls(self._core, self._cmd_group)
return self._status
@property
def sversion(self):
"""sversion commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_sversion'):
from .Sversion import SversionCls
self._sversion = SversionCls(self._core, self._cmd_group)
return self._sversion
@property
def typePy(self):
"""typePy commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_typePy'):
from .TypePy import TypePyCls
self._typePy = TypePyCls(self._core, self._cmd_group)
return self._typePy
@property
def zero(self):
"""zero commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_zero'):
from .Zero import ZeroCls
self._zero = ZeroCls(self._core, self._cmd_group)
return self._zero
def clone(self) -> 'PowerCls':
"""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 = PowerCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group