From 2d59b1df3c17dfc93215aec13933c25b57d40381 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl> Date: Mon, 18 May 2020 09:42:57 +0200 Subject: [PATCH] Remove code that has no relevance for LOFAR2.0 And thanks to Leon for pointing out the hidden GPL file. --- simple_device/PS.py | 152 ---------------- simple_device/PowerSupply.py | 152 ---------------- simple_device/PowerSupply.xmi | 80 --------- ska_device/MANIFEST.in | 9 - ska_device/README.rst | 25 --- ska_device/SKAPowerSupply.py | 175 ------------------ ska_device/SKAPowerSupply.xmi | 186 -------------------- ska_device/SKAPowerSupply/SKAPowerSupply.py | 156 ---------------- ska_device/SKAPowerSupply/__init__.py | 19 -- ska_device/SKAPowerSupply/__main__.py | 11 -- ska_device/SKAPowerSupply/release.py | 20 --- ska_device/setup.py | 42 ----- ska_device/test/SKAPowerSupply_test.py | 165 ----------------- ska_device/test/__init__.py | 0 14 files changed, 1192 deletions(-) delete mode 100644 simple_device/PS.py delete mode 100755 simple_device/PowerSupply.py delete mode 100755 simple_device/PowerSupply.xmi delete mode 100644 ska_device/MANIFEST.in delete mode 100644 ska_device/README.rst delete mode 100755 ska_device/SKAPowerSupply.py delete mode 100755 ska_device/SKAPowerSupply.xmi delete mode 100644 ska_device/SKAPowerSupply/SKAPowerSupply.py delete mode 100644 ska_device/SKAPowerSupply/__init__.py delete mode 100644 ska_device/SKAPowerSupply/__main__.py delete mode 100644 ska_device/SKAPowerSupply/release.py delete mode 100644 ska_device/setup.py delete mode 100644 ska_device/test/SKAPowerSupply_test.py delete mode 100644 ska_device/test/__init__.py diff --git a/simple_device/PS.py b/simple_device/PS.py deleted file mode 100644 index 33a891d22..000000000 --- a/simple_device/PS.py +++ /dev/null @@ -1,152 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the PowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -""" Training - -""" - -# PyTango imports -import PyTango -from PyTango import DebugIt -from PyTango.server import run -from PyTango.server import Device, DeviceMeta -from PyTango.server import attribute, command -from PyTango.server import device_property -from PyTango import AttrQuality, DispLevel, DevState -from PyTango import AttrWriteType, PipeWriteType -# Additional import -# PROTECTED REGION ID(PowerSupply.additionnal_import) ENABLED START # -# PROTECTED REGION END # // PowerSupply.additionnal_import - -__all__ = ["PowerSupply", "main"] - - -class PowerSupply(Device): - """ - """ - __metaclass__ = DeviceMeta - # PROTECTED REGION ID(PowerSupply.class_variable) ENABLED START # - # PROTECTED REGION END # // PowerSupply.class_variable - - # ----------------- - # Device Properties - # ----------------- - - LoadImpedance = device_property( - dtype='double', - mandatory=True - ) - - HWUpdateTime = device_property( - dtype='double', - mandatory=True - ) - - # ---------- - # Attributes - # ---------- - - Voltage = attribute( - dtype='double', - access=AttrWriteType.READ_WRITE, - label="PSV", - unit="V", - display_unit="V", - ) - - Current = attribute( - dtype='double', - label="PSC", - unit="A", - display_unit="A", - max_value=100, - min_value=0, - max_alarm=100, - min_alarm=90, - max_warning=90, - min_warning=80, - ) - - # --------------- - # General methods - # --------------- - - def init_device(self): - Device.init_device(self) - # PROTECTED REGION ID(PowerSupply.init_device) ENABLED START # - self.voltage = 0 - self.current = 0 - self.set_state(DevState.OFF) - # PROTECTED REGION END # // PowerSupply.init_device - - def always_executed_hook(self): - # PROTECTED REGION ID(PowerSupply.always_executed_hook) ENABLED START # - t = 'Voltage = %s, Current = %s' % (self.voltage, self.current) - self.set_status(t) - print(t) - # PROTECTED REGION END # // PowerSupply.always_executed_hook - - def delete_device(self): - # PROTECTED REGION ID(PowerSupply.delete_device) ENABLED START # - pass - # PROTECTED REGION END # // PowerSupply.delete_device - - # ------------------ - # Attributes methods - # ------------------ - - def read_Voltage(self): - # PROTECTED REGION ID(PowerSupply.Voltage_read) ENABLED START # - return self.voltage - # PROTECTED REGION END # // PowerSupply.Voltage_read - - def write_Voltage(self, value): - # PROTECTED REGION ID(PowerSupply.Voltage_write) ENABLED START # - self.voltage = value - self.current = self.voltage / self.LoadImpedance - # PROTECTED REGION END # // PowerSupply.Voltage_write - - def read_Current(self): - # PROTECTED REGION ID(PowerSupply.Current_read) ENABLED START # - return self.current - # PROTECTED REGION END # // PowerSupply.Current_read - - - # -------- - # Commands - # -------- - - @command( - ) - @DebugIt() - def On(self): - # PROTECTED REGION ID(PowerSupply.On) ENABLED START # - self.set_state(DevState.ON) - # PROTECTED REGION END # // PowerSupply.On - - @command( - ) - @DebugIt() - def Off(self): - # PROTECTED REGION ID(PowerSupply.Off) ENABLED START # - self.set_state(DevState.OFF) - # PROTECTED REGION END # // PowerSupply.Off - -# ---------- -# Run server -# ---------- - - -def main(args=None, **kwargs): - # PROTECTED REGION ID(PowerSupply.main) ENABLED START # - return run((PowerSupply,), args=args, **kwargs) - # PROTECTED REGION END # // PowerSupply.main - -if __name__ == '__main__': - main() diff --git a/simple_device/PowerSupply.py b/simple_device/PowerSupply.py deleted file mode 100755 index fc2027128..000000000 --- a/simple_device/PowerSupply.py +++ /dev/null @@ -1,152 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the PowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -""" Power Supply - -Dummy Power Supply for testing -""" - -# PyTango imports -import PyTango -from PyTango import DebugIt -from PyTango.server import run -from PyTango.server import Device, DeviceMeta -from PyTango.server import attribute, command -from PyTango.server import device_property -from PyTango import AttrQuality, DispLevel, DevState -from PyTango import AttrWriteType, PipeWriteType -# Additional import -# PROTECTED REGION ID(PowerSupply.additionnal_import) ENABLED START # -import time -# PROTECTED REGION END # // PowerSupply.additionnal_import - -__all__ = ["PowerSupply", "main"] - - -class PowerSupply(Device): - """ - Dummy Power Supply for testing - """ - __metaclass__ = DeviceMeta - # PROTECTED REGION ID(PowerSupply.class_variable) ENABLED START # - - # PROTECTED REGION END # // PowerSupply.class_variable - - # ----------------- - # Device Properties - # ----------------- - - LoadImpedance = device_property( - dtype='double', - mandatory=True - ) - - HWUpdatetime = device_property( - dtype='double', default_value=1 - ) - - # ---------- - # Attributes - # ---------- - - Voltage = attribute( - dtype='double', - access=AttrWriteType.READ_WRITE, - label="PSV", - unit="V", - max_value=100, - min_value=0, - max_alarm=50, - max_warning=30, - memorized=True, - ) - - Current = attribute( - dtype='double', - unit="A", - ) - - # --------------- - # General methods - # --------------- - - def init_device(self): - Device.init_device(self) - # PROTECTED REGION ID(PowerSupply.init_device) ENABLED START # - self.voltage = 0. - self.current = 0. - self.set_state(DevState.OFF) - # PROTECTED REGION END # // PowerSupply.init_device - - def always_executed_hook(self): - # PROTECTED REGION ID(PowerSupply.always_executed_hook) ENABLED START # - t = '%s state is %s\n' % (self.get_name(), self.get_state()) - t += 'Voltage = %s, Current = %s' % (self.voltage, self.current) - self.set_status(t) - print(t) - # PROTECTED REGION END # // PowerSupply.always_executed_hook - - def delete_device(self): - # PROTECTED REGION ID(PowerSupply.delete_device) ENABLED START # - self.set_state(DevState.UNKNOWN) - # PROTECTED REGION END # // PowerSupply.delete_device - - # ------------------ - # Attributes methods - # ------------------ - - def read_Voltage(self): - # PROTECTED REGION ID(PowerSupply.Voltage_read) ENABLED START # - return self.voltage - # PROTECTED REGION END # // PowerSupply.Voltage_read - - def write_Voltage(self, value): - # PROTECTED REGION ID(PowerSupply.Voltage_write) ENABLED START # - self.voltage = value - self.current = self.voltage / self.LoadImpedance - # PROTECTED REGION END # // PowerSupply.Voltage_write - - def read_Current(self): - # PROTECTED REGION ID(PowerSupply.Current_read) ENABLED START # - return self.current - # PROTECTED REGION END # // PowerSupply.Current_read - - - # -------- - # Commands - # -------- - - @command( - ) - @DebugIt() - def On(self): - # PROTECTED REGION ID(PowerSupply.On) ENABLED START # - self.set_state(DevState.ON) - # PROTECTED REGION END # // PowerSupply.On - - @command( - ) - @DebugIt() - def Off(self): - # PROTECTED REGION ID(PowerSupply.Off) ENABLED START # - self.set_state(DevState.OFF) - # PROTECTED REGION END # // PowerSupply.Off - -# ---------- -# Run server -# ---------- - - -def main(args=None, **kwargs): - # PROTECTED REGION ID(PowerSupply.main) ENABLED START # - return run((PowerSupply,), args=args, **kwargs) - # PROTECTED REGION END # // PowerSupply.main - -if __name__ == '__main__': - main() diff --git a/simple_device/PowerSupply.xmi b/simple_device/PowerSupply.xmi deleted file mode 100755 index c02e0f55d..000000000 --- a/simple_device/PowerSupply.xmi +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl"> - <classes name="PowerSupply" pogoRevision="9.6"> - <description description="Dummy Power Supply for testing" title="Power Supply" sourcePath="/hosthome" language="PythonHL" filestogenerate="XMI file,Code files,Protected Regions" license="GPL" copyright="" hasMandatoryProperty="true" hasConcreteProperty="true" hasAbstractCommand="false" hasAbstractAttribute="false"> - <inheritances classname="Device_Impl" sourcePath=""/> - <identification contact="at cells.es - srubio" author="srubio" emailDomain="cells.es" classFamily="PowerSupply" siteSpecific="" platform="All Platforms" bus="Not Applicable" manufacturer="none" reference=""/> - </description> - <deviceProperties name="LoadImpedance" mandatory="true" description="Impedance at the output"> - <type xsi:type="pogoDsl:DoubleType"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </deviceProperties> - <deviceProperties name="HWUpdatetime" description=""> - <type xsi:type="pogoDsl:DoubleType"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <DefaultPropValue>1</DefaultPropValue> - </deviceProperties> - <commands name="State" description="This command gets the device state (stored in its device_state data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0"> - <argin description="none"> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description="Device state"> - <type xsi:type="pogoDsl:StateType"/> - </argout> - <status abstract="true" inherited="true" concrete="true"/> - </commands> - <commands name="Status" description="This command gets the device status (stored in its device_status data member) and returns it to the caller." execMethod="dev_status" displayLevel="OPERATOR" polledPeriod="0"> - <argin description="none"> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description="Device status"> - <type xsi:type="pogoDsl:ConstStringType"/> - </argout> - <status abstract="true" inherited="true" concrete="true"/> - </commands> - <commands name="On" description="setting state to ON" execMethod="on" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argout> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </commands> - <commands name="Off" description="" execMethod="off" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argout> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </commands> - <attributes name="Voltage" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" memorized="true" allocReadMember="true" isDynamic="false"> - <dataType xsi:type="pogoDsl:DoubleType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <dataReadyEvent fire="false" libCheckCriteria="true"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <properties description="" label="PSV" unit="V" standardUnit="" displayUnit="" format="" maxValue="100" minValue="0" maxAlarm="50" minAlarm="" maxWarning="30" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="Current" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false"> - <dataType xsi:type="pogoDsl:DoubleType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <dataReadyEvent fire="false" libCheckCriteria="true"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <properties description="" label="" unit="A" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <states name="ON" description=""> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </states> - <states name="OFF" description=""> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </states> - <states name="RUNNING" description=""> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </states> - <preferences docHome="./doc_html" makefileHome="/usr/local/share/pogo/preferences"/> - </classes> -</pogoDsl:PogoSystem> diff --git a/ska_device/MANIFEST.in b/ska_device/MANIFEST.in deleted file mode 100644 index 2c94b0631..000000000 --- a/ska_device/MANIFEST.in +++ /dev/null @@ -1,9 +0,0 @@ -recursive-include SKAPowerSupply *.py -recursive-include test *.py -include *.rst -include SKAPowerSupply.xmi -include *.txt -graft docs - -global-exclude *.pyc -global-exclude *.pyo diff --git a/ska_device/README.rst b/ska_device/README.rst deleted file mode 100644 index ff0dae126..000000000 --- a/ska_device/README.rst +++ /dev/null @@ -1,25 +0,0 @@ -## Power Supply for SKA - - -## Requirement - -- PyTango >= 8.1.6 -- devicetest (for using tests) -- sphinx (for building sphinx documentation) - -## Installation - -Run python setup.py install - -If you want to build sphinx documentation, -run python setup.py build_sphinx - -If you want to pass the tests, -run python setup.py test - -## Usage - -Now you can start your device server in any -Terminal or console by calling it : - -SKAPowerSupply instance_name diff --git a/ska_device/SKAPowerSupply.py b/ska_device/SKAPowerSupply.py deleted file mode 100755 index 5eff79951..000000000 --- a/ska_device/SKAPowerSupply.py +++ /dev/null @@ -1,175 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -""" Power Supply for SKA - -""" - -# PyTango imports -import PyTango -from PyTango import DebugIt -from PyTango.server import run -from PyTango.server import Device, DeviceMeta -from PyTango.server import attribute, command -from PyTango.server import device_property -from PyTango import AttrQuality, DispLevel, DevState -from PyTango import AttrWriteType, PipeWriteType -#from SKABaseDevice import SKABaseDevice -# Additional import -# PROTECTED REGION ID(SKAPowerSupply.additionnal_import) ENABLED START # -import time -from skabase.SKABaseDevice import SKABaseDevice #<<< -# PROTECTED REGION END # // SKAPowerSupply.additionnal_import - -__all__ = ["SKAPowerSupply", "main"] - - -class SKAPowerSupply(SKABaseDevice): - """ - """ - __metaclass__ = DeviceMeta - # PROTECTED REGION ID(SKAPowerSupply.class_variable) ENABLED START # - - @command() - def Reset(self): - """ Reset command overloading SKABaseDevice.Reset """ - self.set_state(DevState.OFF) - - - # PROTECTED REGION END # // SKAPowerSupply.class_variable - - # ----------------- - # Device Properties - # ----------------- - - - - - - LoadImpedance = device_property( - dtype='double', default_value=2.7 - ) - - HWUpdateTime = device_property( - dtype='double', default_value=1 - ) - - # ---------- - # Attributes - # ---------- - - - - - - - - - - Voltage = attribute( - dtype='double', - access=AttrWriteType.READ_WRITE, - label="V", - unit="V", - max_value=100, - min_value=0, - max_alarm=70, - min_alarm=0, - max_warning=60, - min_warning=0, - ) - - Current = attribute( - dtype='double', - label="I", - unit="A", - ) - - - # --------------- - # General methods - # --------------- - - def init_device(self): - SKABaseDevice.init_device(self) - # PROTECTED REGION ID(SKAPowerSupply.init_device) ENABLED START # - self.voltage = 0.0 - self.current = 0.0 - self.set_state(DevState.OFF) - self.set_change_event('State', True, False) - self.set_change_event('Voltage', True, True) - self.set_change_event('Current', True, False) - # PROTECTED REGION END # // SKAPowerSupply.init_device - - def always_executed_hook(self): - # PROTECTED REGION ID(SKAPowerSupply.always_executed_hook) ENABLED START # - st = '%s is %s' % (self.get_name(), self.get_state()) - st += '\nVoltage = %s, Current = %s' % (self.voltage, self.current) - self.set_status(st) - self.logger.info(self.get_status()) - # PROTECTED REGION END # // SKAPowerSupply.always_executed_hook - - def delete_device(self): - # PROTECTED REGION ID(SKAPowerSupply.delete_device) ENABLED START # - self.set_state(DevState.UNKNOWN) - # PROTECTED REGION END # // SKAPowerSupply.delete_device - - # ------------------ - # Attributes methods - # ------------------ - - def read_Voltage(self): - # PROTECTED REGION ID(SKAPowerSupply.Voltage_read) ENABLED START # - return self.voltage - # PROTECTED REGION END # // SKAPowerSupply.Voltage_read - - def write_Voltage(self, value): - # PROTECTED REGION ID(SKAPowerSupply.Voltage_write) ENABLED START # - self.voltage = value - self.current = self.voltage / self.LoadImpedance - # PROTECTED REGION END # // SKAPowerSupply.Voltage_write - - def read_Current(self): - # PROTECTED REGION ID(SKAPowerSupply.Current_read) ENABLED START # - return self.current - # PROTECTED REGION END # // SKAPowerSupply.Current_read - - - # -------- - # Commands - # -------- - - @command( - ) - @DebugIt() - def On(self): - # PROTECTED REGION ID(SKAPowerSupply.On) ENABLED START # - self.set_state(DevState.ON) - # PROTECTED REGION END # // SKAPowerSupply.On - - @command( - ) - @DebugIt() - def Off(self): - # PROTECTED REGION ID(SKAPowerSupply.Off) ENABLED START # - self.set_state(DevState.OFF) - # PROTECTED REGION END # // SKAPowerSupply.Off - -# ---------- -# Run server -# ---------- - - -def main(args=None, **kwargs): - # PROTECTED REGION ID(SKAPowerSupply.main) ENABLED START # - return run((SKAPowerSupply,), args=args, **kwargs) - # PROTECTED REGION END # // SKAPowerSupply.main - -if __name__ == '__main__': - main() diff --git a/ska_device/SKAPowerSupply.xmi b/ska_device/SKAPowerSupply.xmi deleted file mode 100755 index 41185f56a..000000000 --- a/ska_device/SKAPowerSupply.xmi +++ /dev/null @@ -1,186 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl"> - <classes name="SKAPowerSupply" pogoRevision="9.6"> - <description description="" title="Power Supply for SKA" sourcePath="msnggit/tango-workshop/ska_device" language="PythonHL" filestogenerate="XMI file,Code files,Python Package,Protected Regions" license="GPL" copyright="" hasMandatoryProperty="false" hasConcreteProperty="true" hasAbstractCommand="false" hasAbstractAttribute="false"> - <inheritances classname="Device_Impl" sourcePath=""/> - <inheritances classname="SKABaseDevice" sourcePath="/hosthome/workspace.astron/extern/Tango/SKA/lmc-base-classes/pogo"/> - <identification contact="at cells.es - srubio" author="srubio" emailDomain="cells.es" classFamily="PowerSupply" siteSpecific="" platform="All Platforms" bus="Testing" manufacturer="none" reference=""/> - </description> - <deviceProperties name="SkaLevel" description="Indication of importance of the device in the SKA hierarchy 
to support drill-down navigation: 1..6, with 1 highest.
Default is 4, making provision for 
EltMaster, EltAlarms, EltTelState = 1
SubEltMaster = 2
Subarray, Capability = 2/3
Others = 4 (or 5 or 6)"> - <type xsi:type="pogoDsl:ShortType"/> - <status abstract="false" inherited="true" concrete="true"/> - <DefaultPropValue>4</DefaultPropValue> - </deviceProperties> - <deviceProperties name="GroupDefinitions" description="Each string in the list is a JSON serialised dict defining the ``group_name``,
``devices`` and ``subgroups`` in the group. A TANGO Group object is created
for each item in the list, according to the hierarchy defined. This provides
easy access to the managed devices in bulk, or individually.

The general format of the list is as follows, with optional ``devices`` and
``subgroups`` keys:
 [ {``group_name``: ``<name>``,
 ``devices``: [``<dev name>``, ...]},
 {``group_name``: ``<name>``,
 ``devices``: [``<dev name>``, ``<dev name>``, ...],
 ``subgroups`` : [{<nested group>},
 {<nested group>}, ...]},
 ...
 ]

For example, a hierarchy of racks, servers and switches:
 [ {``group_name``: ``servers``,
 ``devices``: [``elt/server/1``, ``elt/server/2``,
 ``elt/server/3``, ``elt/server/4``]},
 {``group_name``: ``switches``,
 ``devices``: [``elt/switch/A``, ``elt/switch/B``]},
 {``group_name``: ``pdus``,
 ``devices``: [``elt/pdu/rackA``, ``elt/pdu/rackB``]},
 {``group_name``: ``racks``,
 ``subgroups``: [
 {``group_name``: ``rackA``,
 ``devices``: [``elt/server/1``, ``elt/server/2``,
 ``elt/switch/A``, ``elt/pdu/rackA``]},
 {``group_name``: ``rackB``,
 ``devices``: [``elt/server/3``, ``elt/server/4``,
 ``elt/switch/B``, ``elt/pdu/rackB``],
 ``subgroups``: []}
 ]} ]"> - <type xsi:type="pogoDsl:StringVectorType"/> - <status abstract="false" inherited="true" concrete="true"/> - </deviceProperties> - <deviceProperties name="LoggingLevelDefault" description="Default logging level at device startup.
(0=OFF, 1=FATAL, 2=ERROR, 3=WARNING, 4=INFO, 5=DEBUG)"> - <type xsi:type="pogoDsl:UShortType"/> - <status abstract="false" inherited="true" concrete="true"/> - <DefaultPropValue>4</DefaultPropValue> - </deviceProperties> - <deviceProperties name="LoggingTargetsDefault" description="Default logging targets at device startup.
Each item has the format: target_type::target_name.
To log to stdout, use 'console::cout'.
To log to syslog, use 'syslog::<address>',
 where <address> is a file path,
 for example 'syslog::/var/run/rsyslog/dev/log'.
To log to a file, use 'file::<path>',
 where <path> is a file path,
 for example 'file::/tmp/my_dev.log'."> - <type xsi:type="pogoDsl:StringVectorType"/> - <status abstract="false" inherited="true" concrete="true"/> - </deviceProperties> - <deviceProperties name="LoadImpedance" description=""> - <type xsi:type="pogoDsl:DoubleType"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <DefaultPropValue>2.7</DefaultPropValue> - </deviceProperties> - <deviceProperties name="HWUpdateTime" description=""> - <type xsi:type="pogoDsl:DoubleType"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <DefaultPropValue>1</DefaultPropValue> - </deviceProperties> - <commands name="State" description="This command gets the device state (stored in its device_state data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="1000"> - <argin description="none"> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description="Device state"> - <type xsi:type="pogoDsl:StateType"/> - </argout> - <status abstract="true" inherited="true" concrete="true" concreteHere="false"/> - </commands> - <commands name="Status" description="This command gets the device status (stored in its device_status data member) and returns it to the caller." execMethod="dev_status" displayLevel="OPERATOR" polledPeriod="0"> - <argin description="none"> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description="Device status"> - <type xsi:type="pogoDsl:ConstStringType"/> - </argout> - <status abstract="true" inherited="true" concrete="true"/> - </commands> - <commands name="GetVersionInfo" description="Array of version strings of all entities modelled by this device. 
(One level down only)
Each string in the array lists the version info for one entity
managed by this device. 
The first entry is version info for this TANGO Device itself.
The entities may be TANGO devices, or hardware LRUs or 
anything else this devices manages/models.
The intention with this command is that it can provide more 
detailed information than can be captured in the versionId 
and buildState attributes, if necessary.
In the minimal case the GetVersionInfo will contain only the 
versionId and buildState attributes of the next lower level
entities." execMethod="get_version_info" displayLevel="OPERATOR" polledPeriod="0"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description="[ name: EltTelState ]"> - <type xsi:type="pogoDsl:StringArrayType"/> - </argout> - <status abstract="false" inherited="true" concrete="true"/> - </commands> - <commands name="Reset" description="Reset device to its default state" execMethod="reset" displayLevel="OPERATOR" polledPeriod="0"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argout> - <status abstract="false" inherited="true" concrete="true"/> - </commands> - <commands name="On" description="" execMethod="on" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argout> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </commands> - <commands name="Off" description="" execMethod="off" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false"> - <argin description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argin> - <argout description=""> - <type xsi:type="pogoDsl:VoidType"/> - </argout> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </commands> - <attributes name="buildState" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="60000" maxX="" maxY="" allocReadMember="true"> - <dataType xsi:type="pogoDsl:StringType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="Build state of this device" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="versionId" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="60000" maxX="" maxY="" allocReadMember="true"> - <dataType xsi:type="pogoDsl:StringType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="Version Id of this device" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="loggingLevel" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="Current logging level for this device - initialises to LoggingLevelDefault on startup" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="healthState" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="The health state reported for this device. It interprets the current device condition 
and condition of all managed devices to set this. Most possibly an aggregate attribute." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="adminMode" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" memorized="true" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="The admin mode reported for this device. It may interpret the current device condition 
and condition of all managed devices to set this. Most possibly an aggregate attribute." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="controlMode" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" memorized="true" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="The control mode of the device. REMOTE, LOCAL
TANGO Device accepts only from a ‘local’ client and ignores commands and queries received from TM
or any other ‘remote’ clients. The Local clients has to release LOCAL control before REMOTE clients
can take control again." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="simulationMode" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" memorized="true" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="Reports the simulation mode of the device. Some devices may implement both modes,
while others will have simulators that set simulationMode to True while the real
devices always set simulationMode to False." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="testMode" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="1000" maxX="" maxY="" memorized="true" allocReadMember="true"> - <dataType xsi:type="pogoDsl:EnumType"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="The test mode of the device. 
Either no test mode or an indication of the test mode." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="Voltage" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false"> - <dataType xsi:type="pogoDsl:DoubleType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <dataReadyEvent fire="false" libCheckCriteria="true"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <properties description="" label="V" unit="V" standardUnit="" displayUnit="" format="" maxValue="100" minValue="0" maxAlarm="70" minAlarm="0" maxWarning="60" minWarning="0" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="Current" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false"> - <dataType xsi:type="pogoDsl:DoubleType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <dataReadyEvent fire="false" libCheckCriteria="true"/> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - <properties description="" label="I" unit="A" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <attributes name="loggingTargets" attType="Spectrum" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="3" maxY="" allocReadMember="true"> - <dataType xsi:type="pogoDsl:StringType"/> - <changeEvent fire="false" libCheckCriteria="false"/> - <archiveEvent fire="false" libCheckCriteria="false"/> - <status abstract="false" inherited="true" concrete="true"/> - <properties description="Logging targets for this device, excluding ska_logging defaults - 
initialises to LoggingTargetsDefault on startup" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> - </attributes> - <states name="ON" description="This state could have been called OK or OPERATIONAL. It means that the device is in its operational state. (E.g. the power supply is giving its nominal current, th motor is ON and ready to move, the instrument is operating). This state is modified by the Attribute alarm checking of the DeviceImpl:dev_state method. i.e. if the State is ON and one attribute has its quality factor to ATTR_WARNING or ATTR_ALARM, then the State is modified to ALARM."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="OFF" description="The device is in normal condition but is not active. E.g. the power supply main circuit breaker is open; the RF transmitter has no power etc..."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="FAULT" description="The device has a major failure that prevents it to work. For instance, A power supply has stopped due to over temperature A motor cannot move because it has fault conditions. Usually we cannot get out from this state without an intervention on the hardware or a reset command."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="INIT" description="This state is reserved to the starting phase of the device server. It means that the software is not fully operational and that the user must wait"> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="ALARM" description="ALARM - The device is operating but
at least one of the attributes is out of range. It can be linked to alarm conditions set by attribute properties or a specific case. (E.g. temperature alarm on a stepper motor, end switch pressed on a stepper motor, up water level in a tank, etc....). In alarm, usually the device does its job, but the operator has to perform an action to avoid a bigger problem that may switch the state to FAULT."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="UNKNOWN" description="The device cannot retrieve its state. It is the case when there is a communication problem to the hardware (network cut, broken cable etc...) It could also represent an incoherent situation"> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="STANDBY" description="Equates to LOW-POWER mode. This is the initial transition from INIT if the device supports a low-power mode. The device is not fully active but is ready to operate."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="DISABLE" description="The device cannot be switched ON for an external reason. E.g. the power supply has its door open, the safety conditions are not satisfactory to allow the device to operate."> - <status abstract="false" inherited="true" concrete="true"/> - </states> - <states name="RUNNING" description=""> - <status abstract="false" inherited="false" concrete="true" concreteHere="true"/> - </states> - <preferences docHome="./doc_html" makefileHome="/usr/local/share/pogo/preferences"/> - <overlodedPollPeriodObject name="State" type="command" pollPeriod="1000"/> - </classes> -</pogoDsl:PogoSystem> diff --git a/ska_device/SKAPowerSupply/SKAPowerSupply.py b/ska_device/SKAPowerSupply/SKAPowerSupply.py deleted file mode 100644 index d80cd9ddc..000000000 --- a/ska_device/SKAPowerSupply/SKAPowerSupply.py +++ /dev/null @@ -1,156 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -""" Power Supply for SKA - -""" - -# PyTango imports -import PyTango -from PyTango import DebugIt -from PyTango.server import run -from PyTango.server import Device, DeviceMeta -from PyTango.server import attribute, command -from PyTango.server import device_property -from PyTango import AttrQuality, DispLevel, DevState -from PyTango import AttrWriteType, PipeWriteType -from SKABaseDevice import SKABaseDevice -# Additional import -# PROTECTED REGION ID(SKAPowerSupply.additionnal_import) ENABLED START # -# PROTECTED REGION END # // SKAPowerSupply.additionnal_import - -__all__ = ["SKAPowerSupply", "main"] - - -class SKAPowerSupply(SKABaseDevice): - """ - """ - __metaclass__ = DeviceMeta - # PROTECTED REGION ID(SKAPowerSupply.class_variable) ENABLED START # - # PROTECTED REGION END # // SKAPowerSupply.class_variable - - # ----------------- - # Device Properties - # ----------------- - - - - - - LoadImpedance = device_property( - dtype='double', default_value=2.7 - ) - - HWUpdateTime = device_property( - dtype='double', default_value=1 - ) - - # ---------- - # Attributes - # ---------- - - - - - - - - - - Voltage = attribute( - dtype='double', - access=AttrWriteType.READ_WRITE, - label="V", - unit="V", - max_value=100, - min_value=0, - max_alarm=70, - min_alarm=0, - max_warning=60, - min_warning=0, - ) - - Current = attribute( - dtype='double', - label="I", - unit="A", - ) - - - # --------------- - # General methods - # --------------- - - def init_device(self): - SKABaseDevice.init_device(self) - # PROTECTED REGION ID(SKAPowerSupply.init_device) ENABLED START # - # PROTECTED REGION END # // SKAPowerSupply.init_device - - def always_executed_hook(self): - # PROTECTED REGION ID(SKAPowerSupply.always_executed_hook) ENABLED START # - pass - # PROTECTED REGION END # // SKAPowerSupply.always_executed_hook - - def delete_device(self): - # PROTECTED REGION ID(SKAPowerSupply.delete_device) ENABLED START # - pass - # PROTECTED REGION END # // SKAPowerSupply.delete_device - - # ------------------ - # Attributes methods - # ------------------ - - def read_Voltage(self): - # PROTECTED REGION ID(SKAPowerSupply.Voltage_read) ENABLED START # - return 0.0 - # PROTECTED REGION END # // SKAPowerSupply.Voltage_read - - def write_Voltage(self, value): - # PROTECTED REGION ID(SKAPowerSupply.Voltage_write) ENABLED START # - pass - # PROTECTED REGION END # // SKAPowerSupply.Voltage_write - - def read_Current(self): - # PROTECTED REGION ID(SKAPowerSupply.Current_read) ENABLED START # - return 0.0 - # PROTECTED REGION END # // SKAPowerSupply.Current_read - - - # -------- - # Commands - # -------- - - @command( - ) - @DebugIt() - def On(self): - # PROTECTED REGION ID(SKAPowerSupply.On) ENABLED START # - pass - # PROTECTED REGION END # // SKAPowerSupply.On - - @command( - ) - @DebugIt() - def Off(self): - # PROTECTED REGION ID(SKAPowerSupply.Off) ENABLED START # - pass - # PROTECTED REGION END # // SKAPowerSupply.Off - -# ---------- -# Run server -# ---------- - - -def main(args=None, **kwargs): - # PROTECTED REGION ID(SKAPowerSupply.main) ENABLED START # - return run((SKAPowerSupply,), args=args, **kwargs) - # PROTECTED REGION END # // SKAPowerSupply.main - -if __name__ == '__main__': - main() diff --git a/ska_device/SKAPowerSupply/__init__.py b/ska_device/SKAPowerSupply/__init__.py deleted file mode 100644 index 4e688e54f..000000000 --- a/ska_device/SKAPowerSupply/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -"""Power Supply for SKA - -""" - -from . import release -from .SKAPowerSupply import SKAPowerSupply, main - -__version__ = release.version -__version_info__ = release.version_info -__author__ = release.author diff --git a/ska_device/SKAPowerSupply/__main__.py b/ska_device/SKAPowerSupply/__main__.py deleted file mode 100644 index ef47a07fb..000000000 --- a/ska_device/SKAPowerSupply/__main__.py +++ /dev/null @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -from SKAPowerSupply import main -main() diff --git a/ska_device/SKAPowerSupply/release.py b/ska_device/SKAPowerSupply/release.py deleted file mode 100644 index 730770600..000000000 --- a/ska_device/SKAPowerSupply/release.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -"""Release information for Python Package""" - -name = """tangods-skapowersupply""" -version = "1.0.0" -version_info = version.split(".") -description = """""" -author = "srubio" -author_email = "srubio at cells.es" -license = """GPL""" -url = """www.tango-controls.org""" -copyright = """""" diff --git a/ska_device/setup.py b/ska_device/setup.py deleted file mode 100644 index 0bd061dd0..000000000 --- a/ska_device/setup.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. - -import os -import sys -from setuptools import setup - -setup_dir = os.path.dirname(os.path.abspath(__file__)) - -# make sure we use latest info from local code -sys.path.insert(0, setup_dir) - -readme_filename = os.path.join(setup_dir, 'README.rst') -with open(readme_filename) as file: - long_description = file.read() - -release_filename = os.path.join(setup_dir, 'SKAPowerSupply', 'release.py') -exec(open(release_filename).read()) - -pack = ['SKAPowerSupply'] - -setup(name=name, - version=version, - description='', - packages=pack, - include_package_data=True, - test_suite="test", - entry_points={'console_scripts':['SKAPowerSupply = SKAPowerSupply:main']}, - author='srubio', - author_email='srubio at cells.es', - license='GPL', - long_description=long_description, - url='www.tango-controls.org', - platforms="All Platforms" - ) diff --git a/ska_device/test/SKAPowerSupply_test.py b/ska_device/test/SKAPowerSupply_test.py deleted file mode 100644 index 2ab358d1e..000000000 --- a/ska_device/test/SKAPowerSupply_test.py +++ /dev/null @@ -1,165 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# This file is part of the SKAPowerSupply project -# -# -# -# Distributed under the terms of the GPL license. -# See LICENSE.txt for more info. -"""Contain the tests for the Power Supply for SKA.""" - -# Path -import sys -import os -path = os.path.join(os.path.dirname(__file__), os.pardir) -sys.path.insert(0, os.path.abspath(path)) - -# Imports -from time import sleep -from mock import MagicMock -from PyTango import DevFailed, DevState -from devicetest import DeviceTestCase, main -from SKAPowerSupply import SKAPowerSupply - -# Note: -# -# Since the device uses an inner thread, it is necessary to -# wait during the tests in order the let the device update itself. -# Hence, the sleep calls have to be secured enough not to produce -# any inconsistent behavior. However, the unittests need to run fast. -# Here, we use a factor 3 between the read period and the sleep calls. -# -# Look at devicetest examples for more advanced testing - - -# Device test case -class SKAPowerSupplyDeviceTestCase(DeviceTestCase): - """Test case for packet generation.""" - # PROTECTED REGION ID(SKAPowerSupply.test_additionnal_import) ENABLED START # - # PROTECTED REGION END # // SKAPowerSupply.test_additionnal_import - device = SKAPowerSupply - properties = {'SkaLevel': '4', 'GroupDefinitions': '', 'LoggingLevelDefault': '4', 'LoggingTargetsDefault': '', 'LoadImpedance': '2.7', 'HWUpdateTime': '1', - } - empty = None # Should be [] - - @classmethod - def mocking(cls): - """Mock external libraries.""" - # Example : Mock numpy - # cls.numpy = SKAPowerSupply.numpy = MagicMock() - # PROTECTED REGION ID(SKAPowerSupply.test_mocking) ENABLED START # - # PROTECTED REGION END # // SKAPowerSupply.test_mocking - - def test_properties(self): - # test the properties - # PROTECTED REGION ID(SKAPowerSupply.test_properties) ENABLED START # - # PROTECTED REGION END # // SKAPowerSupply.test_properties - pass - - def test_State(self): - """Test for State""" - # PROTECTED REGION ID(SKAPowerSupply.test_State) ENABLED START # - self.device.State() - # PROTECTED REGION END # // SKAPowerSupply.test_State - - def test_Status(self): - """Test for Status""" - # PROTECTED REGION ID(SKAPowerSupply.test_Status) ENABLED START # - self.device.Status() - # PROTECTED REGION END # // SKAPowerSupply.test_Status - - def test_GetVersionInfo(self): - """Test for GetVersionInfo""" - # PROTECTED REGION ID(SKAPowerSupply.test_GetVersionInfo) ENABLED START # - self.device.GetVersionInfo() - # PROTECTED REGION END # // SKAPowerSupply.test_GetVersionInfo - - def test_Reset(self): - """Test for Reset""" - # PROTECTED REGION ID(SKAPowerSupply.test_Reset) ENABLED START # - self.device.Reset() - # PROTECTED REGION END # // SKAPowerSupply.test_Reset - - def test_On(self): - """Test for On""" - # PROTECTED REGION ID(SKAPowerSupply.test_On) ENABLED START # - self.device.On() - # PROTECTED REGION END # // SKAPowerSupply.test_On - - def test_Off(self): - """Test for Off""" - # PROTECTED REGION ID(SKAPowerSupply.test_Off) ENABLED START # - self.device.Off() - # PROTECTED REGION END # // SKAPowerSupply.test_Off - - def test_buildState(self): - """Test for buildState""" - # PROTECTED REGION ID(SKAPowerSupply.test_buildState) ENABLED START # - self.device.buildState - # PROTECTED REGION END # // SKAPowerSupply.test_buildState - - def test_versionId(self): - """Test for versionId""" - # PROTECTED REGION ID(SKAPowerSupply.test_versionId) ENABLED START # - self.device.versionId - # PROTECTED REGION END # // SKAPowerSupply.test_versionId - - def test_loggingLevel(self): - """Test for loggingLevel""" - # PROTECTED REGION ID(SKAPowerSupply.test_loggingLevel) ENABLED START # - self.device.loggingLevel - # PROTECTED REGION END # // SKAPowerSupply.test_loggingLevel - - def test_healthState(self): - """Test for healthState""" - # PROTECTED REGION ID(SKAPowerSupply.test_healthState) ENABLED START # - self.device.healthState - # PROTECTED REGION END # // SKAPowerSupply.test_healthState - - def test_adminMode(self): - """Test for adminMode""" - # PROTECTED REGION ID(SKAPowerSupply.test_adminMode) ENABLED START # - self.device.adminMode - # PROTECTED REGION END # // SKAPowerSupply.test_adminMode - - def test_controlMode(self): - """Test for controlMode""" - # PROTECTED REGION ID(SKAPowerSupply.test_controlMode) ENABLED START # - self.device.controlMode - # PROTECTED REGION END # // SKAPowerSupply.test_controlMode - - def test_simulationMode(self): - """Test for simulationMode""" - # PROTECTED REGION ID(SKAPowerSupply.test_simulationMode) ENABLED START # - self.device.simulationMode - # PROTECTED REGION END # // SKAPowerSupply.test_simulationMode - - def test_testMode(self): - """Test for testMode""" - # PROTECTED REGION ID(SKAPowerSupply.test_testMode) ENABLED START # - self.device.testMode - # PROTECTED REGION END # // SKAPowerSupply.test_testMode - - def test_Voltage(self): - """Test for Voltage""" - # PROTECTED REGION ID(SKAPowerSupply.test_Voltage) ENABLED START # - self.device.Voltage - # PROTECTED REGION END # // SKAPowerSupply.test_Voltage - - def test_Current(self): - """Test for Current""" - # PROTECTED REGION ID(SKAPowerSupply.test_Current) ENABLED START # - self.device.Current - # PROTECTED REGION END # // SKAPowerSupply.test_Current - - def test_loggingTargets(self): - """Test for loggingTargets""" - # PROTECTED REGION ID(SKAPowerSupply.test_loggingTargets) ENABLED START # - self.device.loggingTargets - # PROTECTED REGION END # // SKAPowerSupply.test_loggingTargets - - -# Main execution -if __name__ == "__main__": - main() diff --git a/ska_device/test/__init__.py b/ska_device/test/__init__.py deleted file mode 100644 index e69de29bb..000000000 -- GitLab