A great deal of code is currently documented in an unconventional fashion. To be more precise, there seems to be a tendency to use headings to describe attributes, parameters and returned values, as opposed using info field lists.
For instance consider the docstring for rcognita.controllers.ctrl_selector:
Main interface for various controllers.
Parameters
----------
mode : : string
Controller mode as acronym of the respective control method.
Returns
-------
action : : array of shape ``[dim_input, ]``.
Control action.
The conventional way to produce a docstring bearing such information would be:
Main interface for various controllers.
:param str mode: Controller mode as acronym of the respective control method.
:return: Control action
:rtype: array of shape ``[dim_input, ]``
A great deal of code is currently documented in an unconventional fashion. To be more precise, there seems to be a tendency to use headings to describe attributes, parameters and returned values, as opposed using info field lists.
For instance consider the docstring for
rcognita.controllers.ctrl_selector
:The conventional way to produce a docstring bearing such information would be: