Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Update docs and changelog to 9.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Guifre Cuni authored and vxgmichel committed Sep 27, 2017
1 parent 6f6e419 commit 8f1718f
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 102 deletions.
4 changes: 2 additions & 2 deletions doc/howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ The PyTango version::

>>> import tango
>>> tango.__version__
'9.2.1'
'9.2.2'
>>> tango.__version_info__
(9, 2, 1)
(9, 2, 2)

and the Tango C++ library version that PyTango was compiled with::

Expand Down
205 changes: 123 additions & 82 deletions doc/revision.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ To test the installation, import ``tango`` and check ``tango.Release.version``:
.. sourcecode:: console

$ python -c "import tango; print(tango.Release.version)"
9.2.1
9.2.2

Next steps: Check out the :ref:`pytango-quick-tour`.
6 changes: 3 additions & 3 deletions doc/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Utilities API

.. currentmodule:: tango.utils

.. autoclass:: tango.utils.EventCallBack
.. autoclass:: tango.utils.EventCallback
:members:
:undoc-members:

Expand All @@ -22,7 +22,7 @@ The Utilities API
.. autofunction:: tango.utils.is_bool

.. autofunction:: tango.utils.is_scalar_type

.. autofunction:: tango.utils.is_array_type

.. autofunction:: tango.utils.is_numerical_type
Expand All @@ -33,7 +33,7 @@ The Utilities API

.. autofunction:: tango.utils.is_bool_type

.. autofunction:: tango.utils.is_bin_type
.. autofunction:: tango.utils.is_binary_type

.. autofunction:: tango.utils.is_str_type

Expand Down
19 changes: 14 additions & 5 deletions tango/device_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def __DeviceProxy__get_event_map(self):

def __DeviceProxy__subscribe_event(self, *args, **kwargs):
"""
subscribe_event(event_type, cb, stateless=False, green_mode=None) -> int
subscribe_event(event_type, cb, stateless=False, green_mode=None) -> int
The client call to subscribe for event reception in the push model.
The client implements a callback method which is triggered when the
Expand All @@ -1073,15 +1073,16 @@ def __DeviceProxy__subscribe_event(self, *args, **kwargs):
seconds to subscribe for the specified event. At every
subscription retry, a callback is executed which contains
the corresponding exception
- green_mode :
- green_mode : the corresponding green mode (default is GreenMode.Synchronous)
Return : An event id which has to be specified when unsubscribing
from this event.
Throws : EventSystemFailed
subscribe_event(self, attr_name, event, callback, filters=[], stateless=False, extract_as=Numpy, green_mode=None) -> int
subscribe_event(self, attr_name, event, callback, filters=[], stateless=False, extract_as=Numpy, green_mode=None) -> int
The client call to subscribe for event reception in the push model.
The client implements a callback method which is triggered when the
event is received. Filtering is done based on the reason specified and
Expand All @@ -1090,6 +1091,7 @@ def __DeviceProxy__subscribe_event(self, *args, **kwargs):
changes. Events consist of an attribute name and the event reason.
A standard set of reasons are implemented by the system, additional
device specific reasons can be implemented by device servers programmers.
Parameters :
- attr_name : (str) The device attribute name which will be sent
as an event e.g. "current".
Expand All @@ -1113,17 +1115,23 @@ def __DeviceProxy__subscribe_event(self, *args, **kwargs):
subscription retry, a callback is executed which contains
the corresponding exception
- extract_as : (ExtractAs)
- green_mode :
- green_mode : the corresponding green mode (default is GreenMode.Synchronous)
Return : An event id which has to be specified when unsubscribing
from this event.
Throws : EventSystemFailed
subscribe_event(self, attr_name, event, queuesize, filters=[], stateless=False, green_mode=None) -> int
subscribe_event(self, attr_name, event, queuesize, filters=[], stateless=False, green_mode=None) -> int
The client call to subscribe for event reception in the pull model.
Instead of a callback method the client has to specify the size of the
event reception buffer.
The event reception buffer is implemented as a round robin buffer. This
way the client can set-up different ways to receive events:
* Event reception buffer size = 1 : The client is interested only
in the value of the last event received. All other events that
have been received since the last reading are discarded.
Expand All @@ -1133,6 +1141,7 @@ def __DeviceProxy__subscribe_event(self, *args, **kwargs):
* Event reception buffer size = ALL_EVENTS : The client buffers all
received events. The buffer size is unlimited and only restricted
by the available memory for the client.
All other parameters are similar to the descriptions given in the
other subscribe_event() version.
"""
Expand Down
18 changes: 10 additions & 8 deletions tango/device_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def __DeviceImpl__add_attribute(self, attr, r_meth=None, w_meth=None, is_allo_me
Return : (Attr) the newly created attribute.
Throws : DevFailed"""
Throws : DevFailed
"""

attr_data = None
if isinstance(attr, AttrData):
Expand Down Expand Up @@ -363,8 +364,7 @@ def __DeviceImpl__add_attribute(self, attr, r_meth=None, w_meth=None, is_allo_me


def __DeviceImpl__remove_attribute(self, attr_name):
"""
remove_attribute(self, attr_name) -> None
"""remove_attribute(self, attr_name) -> None
Remove one attribute from the device attribute list.
Expand All @@ -373,7 +373,8 @@ def __DeviceImpl__remove_attribute(self, attr_name):
Return : None
Throws : DevFailed"""
Throws : DevFailed
"""
try:
# Call this method in a try/except in case remove_attribute
# is called during the DS shutdown sequence
Expand Down Expand Up @@ -416,16 +417,17 @@ def __DeviceImpl___remove_attr_meth(self, attr_name):


def __DeviceImpl__add_command(self, cmd, device_level=True):
"""
add_command(self, cmd, level=TANGO::OPERATOR) -> cmd
"""add_command(self, cmd, level=TANGO::OPERATOR) -> cmd
Add a new command to the device command list.
Parameters :
- cmd : the new command to be added to the list
- device_level : Set this flag to true if the command must be added
for only this device
Return : Command
Throws : DevFailed
"""
add_name_in_list = False # This flag is always False, what use is it?
Expand All @@ -449,7 +451,7 @@ def __DeviceImpl__add_command(self, cmd, device_level=True):

def __DeviceImpl__remove_command(self, cmd_name, free_it=False, clean_db=True):
"""
remove_command(self, attr_name) -> None
remove_command(self, attr_name) -> None
Remove one command from the device command list.
Expand All @@ -458,7 +460,7 @@ def __DeviceImpl__remove_command(self, cmd_name, free_it=False, clean_db=True):
- free_it : Boolean set to true if the command object must be freed.
- clean_db : Clean command related information (included polling info
if the command is polled) from database.
Return : None
Return : None
Throws : DevFailed
"""
Expand Down
2 changes: 1 addition & 1 deletion tango/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def voltage(self):
green_mode :obj:`~tango.GreenMode` None green mode for read and write. None means use server green mode.
read_green_mode :obj:`~tango.GreenMode` None green mode for read. None means use server green mode.
write_green_mode :obj:`~tango.GreenMode` None green mode for write. None means use server green mode.
forwarded :obj:'bool' False the attribute should be forwarded if True
forwarded :obj:`bool` False the attribute should be forwarded if True
===================== ================================ ======================================= =======================================================================================
.. note::
Expand Down

0 comments on commit 8f1718f

Please sign in to comment.