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 conventionsFunction names are lower case, with underscores between words.
Functions that carry out an action on an object and return a new object (or set of values) are written in verb form. Examples: find_operating_point
, solve_ocp
.
Functions that generate plots should end in _plot
. Examples: bode_plot
, nyquist_plot
.
For commands that map to MATLAB commands, it is not necessary to replicate the MATLAB command name if it violates the guidelines above. Instead, use the standard naming conventions and then create a second function object with the shortened name (eg, bode = bode_plot
). You can also create an object in the matlab
module that users the same name and signature as the MATLAB command.
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:
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.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