Skip to content
Snippets Groups Projects
Commit d0f83e77 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

AT5-370: Updated documentation inside subelement_master.py.

Changes to docs configuraiton files.
parent 551ca77a
Branches
No related tags found
1 merge request!5Request to merge AT5-370 branch with master
Pipeline #11355 passed
...@@ -108,7 +108,9 @@ class CspSubElementMaster(SKAMaster): ...@@ -108,7 +108,9 @@ class CspSubElementMaster(SKAMaster):
dtype=AdminMode, dtype=AdminMode,
access=AttrWriteType.READ_WRITE, access=AttrWriteType.READ_WRITE,
memorized=True, memorized=True,
doc="The admin mode reported for this device. It may interpret the current device condition \nand condition of all managed devices to set this. Most possibly an aggregate attribute.", doc=("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."),
) )
onCommandProgress = attribute( onCommandProgress = attribute(
...@@ -117,7 +119,9 @@ class CspSubElementMaster(SKAMaster): ...@@ -117,7 +119,9 @@ class CspSubElementMaster(SKAMaster):
abs_change=10, abs_change=10,
max_value=100, max_value=100,
min_value=0, min_value=0,
doc="Percentage progress implemented for commands that result in state/mode transitions for a large \nnumber of components and/or are executed in stages (e.g power up, power down)", doc=("Percentage progress implemented for commands that result in state/mode"
" transitions for a large number of components and/or are executed in "
"stages (e.g power up, power down)"),
) )
offCommandProgress = attribute( offCommandProgress = attribute(
...@@ -126,7 +130,9 @@ class CspSubElementMaster(SKAMaster): ...@@ -126,7 +130,9 @@ class CspSubElementMaster(SKAMaster):
abs_change=10, abs_change=10,
max_value=100, max_value=100,
min_value=0, min_value=0,
doc="Percentage progress implemented for commands that result in state/mode transitions for a large \nnumber of components and/or are executed in stages (e.g power up, power down)", doc=("Percentage progress implemented for commands that result in state/mode transitions"
" for a large number of components and/or are executed in stages"
" (e.g power up, power down)"),
) )
standbyCommandProgress = attribute( standbyCommandProgress = attribute(
...@@ -135,7 +141,9 @@ class CspSubElementMaster(SKAMaster): ...@@ -135,7 +141,9 @@ class CspSubElementMaster(SKAMaster):
abs_change=10, abs_change=10,
max_value=100, max_value=100,
min_value=0, min_value=0,
doc="Percentage progress implemented for commands that result in state/mode transitions for a large \nnumber of components and/or are executed in stages (e.g power up, power down)", doc=("Percentage progress implemented for commands that result in state/mode"
" transitions for a large number of components and/or are executed in"
" stages (e.g power up, power down)"),
) )
onCmdDurationExpected = attribute( onCmdDurationExpected = attribute(
...@@ -513,14 +521,10 @@ class CspSubElementMaster(SKAMaster): ...@@ -513,14 +521,10 @@ class CspSubElementMaster(SKAMaster):
by some tango device drivers which actas as 'cache'. We call these devices by some tango device drivers which actas as 'cache'. We call these devices
'racks', even if they can contro a different phisical arrangement. 'racks', even if they can contro a different phisical arrangement.
:param argin: 'DevVarStringArray' :param argin: The list of sub-element components FQDNs: if the array length is 0 (empty input \
The list of sub-element components FQDNs to switch-on or an empty list to switch-on the whole list), the command applies to the whole CSP Sub-Element. If the array length is > 1, \
CSP Sub-element. each array element specifies the FQDN of the CSP SubElement component to switch ON.
:type: 'DevVarStringArray'
If the array length is 0, the command applies to the whole CSP Sub-Element. If the
array length is > 1, each array element specifies the FQDN of the
CSP SubElement component to switch ON.
:return: None :return: None
""" """
pass pass
...@@ -547,12 +551,11 @@ class CspSubElementMaster(SKAMaster): ...@@ -547,12 +551,11 @@ class CspSubElementMaster(SKAMaster):
'racks', even if they can contro a different phisical arrangement. 'racks', even if they can contro a different phisical arrangement.
:param argin: 'DevVarStringArray' :param argin: The list of sub-element components FQDNs: if the array length is 0 (no list \
If the array length is 0, the command applies to the whole specified), the command applies to the whole CSP sub-element. If the array length \
CSP Sub-element. is > 1, each array element specifies the FQDN of a CSP SubElement component to switch \
If the array length is > 1, each array element specifies the FQDN of the off.
CSP SubElement component to switch OFF. :type: 'DevVarStringArray'
:return: None :return: None
""" """
pass pass
...@@ -574,12 +577,11 @@ class CspSubElementMaster(SKAMaster): ...@@ -574,12 +577,11 @@ class CspSubElementMaster(SKAMaster):
Transit the CSP Sub-element or one or more CSP SubElement components from ON/OFF to Transit the CSP Sub-element or one or more CSP SubElement components from ON/OFF to
STANDBY. STANDBY.
:param argin: 'DevVarStringArray' :param argin: The list of sub-element components FQDNs: if the array length is 0 (no list \
If the array length is 0, the command applies to the whole specified), the command applies to the whole CSP sub-element. If the array length \
CSP sub-element. is > 1, each array element specifies the FQDN of a CSP SubElement component to put \
If the array length is > 1, each array element specifies the FQDN of the in STANDBY mode.
CSP SubElement icomponent to put in STANDBY mode. :type: 'DevVarStringArray'
:return: None :return: None
""" """
pass pass
...@@ -591,7 +593,6 @@ class CspSubElementMaster(SKAMaster): ...@@ -591,7 +593,6 @@ class CspSubElementMaster(SKAMaster):
def Upgrade(self): def Upgrade(self):
# PROTECTED REGION ID(CspSubElementMaster.Upgrade) ENABLED START # # PROTECTED REGION ID(CspSubElementMaster.Upgrade) ENABLED START #
""" """
:return: None :return: None
""" """
pass pass
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
# #
autodoc_mock_imports = ['PyTango', 'tango', 'tango.server','run', 'DeviceMeta', 'command', autodoc_mock_imports = ['PyTango', 'tango', 'tango.server','run', 'command',
'future', 'future.utils', 'logging', 'logging.handlers', 'ska', 'future', 'future.utils', 'logging', 'logging.handlers', 'ska',
'ska.base', 'SKAMaster', 'SKASubarray','numpy', 'ska.base', 'ska.base.control_model', 'SKAMaster', 'SKASubarray','numpy',
'csp_lmc_common' 'csp_lmc_common'
] ]
autodoc_member_order = 'bysource' autodoc_member_order = 'bysource'
...@@ -28,7 +28,6 @@ import os ...@@ -28,7 +28,6 @@ import os
import sys import sys
sys.path.insert(0, os.path.abspath('../../')) sys.path.insert(0, os.path.abspath('../../'))
import sphinx_rtd_theme import sphinx_rtd_theme
def setup(app): def setup(app):
app.add_stylesheet('css/custom.css') app.add_stylesheet('css/custom.css')
app.add_javascript('js/github.js') app.add_javascript('js/github.js')
...@@ -52,7 +51,8 @@ extensions = ['sphinx.ext.autodoc', ...@@ -52,7 +51,8 @@ extensions = ['sphinx.ext.autodoc',
'sphinx.ext.ifconfig', 'sphinx.ext.ifconfig',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'sphinx.ext.githubpages', 'sphinx.ext.githubpages',
'recommonmark'] 'recommonmark'
]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
...@@ -69,7 +69,7 @@ master_doc = 'index' ...@@ -69,7 +69,7 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = 'Csp:LMC Subelement Classes' project = 'Csp:LMC Subelement Classes'
copyright = '2020, INAF-SKA Organization' copyright = '2020, INAF-SKA Organization'
author = 'E.Giani' author = 'C.Baffa, E.Giani'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
...@@ -179,8 +179,8 @@ latex_elements = { ...@@ -179,8 +179,8 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, 'developerskatelescopeorg.tex', 'developer.skatelescope.org Documentation', (master_doc, 'CspLMCSubElement.tex', 'CSP.LMC Subelement TANGO Classes Documentation',
'Marco Bartolini', 'manual'), 'SKA Organization', 'manual'),
] ]
...@@ -189,7 +189,7 @@ latex_documents = [ ...@@ -189,7 +189,7 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
(master_doc, 'developerskatelescopeorg', 'developer.skatelescope.org Documentation', (master_doc, 'csplmc-subelement', 'CSP.LMC Subelement TANGO Classes Documentation',
[author], 1) [author], 1)
] ]
...@@ -200,8 +200,8 @@ man_pages = [ ...@@ -200,8 +200,8 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
(master_doc, 'developerskatelescopeorg', 'developer.skatelescope.org Documentation', (master_doc, 'CSP.LMC-SubElement', 'CSP.LMC Subelement TANGO Classes Documentation',
author, 'developerskatelescopeorg', 'One line description of project.', author, 'CSP.LMC-SubElement', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
:caption: Package name :caption: Csp.LMC SubElement TANGO Classes
:hidden: :hidden:
package/guide package/guide
......
...@@ -5,32 +5,20 @@ ...@@ -5,32 +5,20 @@
- write documentation for private and protected attributes and methods of - write documentation for private and protected attributes and methods of
the CSP.LMC Subelement classes. the CSP.LMC Subelement classes.
***************************************** ************************
CSP.LMC Subelement Classes documentation Public API documentation
***************************************** ************************
.. Automatic API Documentation section. Generating the API from the docstrings. Modify / change the directory structure as you like .. Automatic API Documentation section. Generating the API from the docstrings. Modify / change the directory structure as you like
Public API Documentation CspSubElementMaster TANGO Class
```````````````````````` --------------------------------
Functions
---------
.. automodule:: cspse.lmc.subelement_master .. automodule:: cspse.lmc.subelement_master
:members: :members:
:member-order:
CspSubElementMaster Class CspSubElementSubarray TANGO Class
------------------------- ---------------------------------
.. autoclass:: cspse.lmc.subelement_master.CspSubElementMaster .. todo::
:noindex: - write documentation for CSP.LMC SubElementSubarray Class
:members:
CspSubElementSubarray Class
---------------------------
.. autoclass:: cspse.lmc.subelement_master.CspSubElementMaster
:noindex:
:members:
CspSubElementSubarray Class
---------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment