A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python-control/python-control/wiki/Coding-conventions below:

Coding conventions · python-control/python-control Wiki · GitHub

THIS PAGE IS OBSOLETE

Use https://python-control.readthedocs.io/en/stable/develop.html instead.

OLD CONTENTS:

This page contains guidelines for coding conventions in python-control.

You should also take a look at the testing conventions page.

Function naming conventions

We use numpydoc for docstrings, with the users manual generated by sphinx. In order for the readthedocs to render properly, the numpydoc conventions must be followed. Here's a short summary of the key conventions for standard functions:

  1. Short summary: one line summary (shows up in tables).
  2. Extended Summary: A few sentences giving an extended description.
  3. Parameters: Description of the function arguments, keywords and their respective types. Format should be
    parameter : type
        Short description
    
    The type should either be a Python type, a NumPy class, or a python-control class, ideally with a :class: prefix to generate a link to the appropriate class.
  4. Returns: Explanation of the returned values and their types.
  5. Other Parameters: An optional section used to describe infrequently used parameters.
  6. See Also: An optional section used to refer to related code.
  7. Notes: An optional section that provides additional information about the code, possibly including a discussion of the algorithm. This section may include mathematical equations, written in LaTeX format.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4