GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Documentation updates and testing by murrayrm · Pull Request #1038 · python-control/python-control Conversation
|
|
coverage: 94.693% (-0.001%) from 94.694% |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c9a07c1 to
4ef9dd6
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I plan to finish review tomorrow.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| .. deprecated:: 0.10.1 | ||
| This function will be removed in a future version of python-control. | ||
| Use `cplt.axes` to obtain axes for a control plot `cplt`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Use `cplt.axes` to obtain axes for a control plot `cplt`. | |
| Use `cplt.axes` to obtain axes for an instance of :class:`ControlPlot`. |
Even though get_plot_axes() is defined in the same module (ctrlplot) as ControlPlot, it is available at the top of the package as control.get_plot_axes(), so a user may not realize that cplt abbreviates the new class ControlPlot. E.g., observe how get_plot_axes() is shown at https://python-control.readthedocs.io/en/0.10.0/generated/control.get_plot_axes.html.
Therefore, I recommend to be explicit here when referring to the class ControlPlot.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Figure to use for creating subplots. | ||
| rcParams : dict | ||
| Override the default parameters used for generating plots. | ||
| Default is set up config.default['freqplot.rcParams']. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Default is set up config.default['freqplot.rcParams']. | |
| Default is set up config.default['ctrlplot.rcParams']. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Frequency label (defaults to "rad/sec" or "Hertz") | ||
| freq_label, magnitude_label, phase_label : str, optional | ||
| Labels to use for the frequency, magnitude, and phase axes. | ||
| Defaults are set by `config.defaults['freqplot.<keyword>']`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I like that descriptions of these parameter are combined, but in this case, magnitude_label and phase_label should be deleted below.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Set the title of the plot. Defaults to plot type and system name(s). | ||
| title_frame : str, optional | ||
| Set the frame of reference used to center the plot title. If set to | ||
| 'axes' (default), the horizontal position of the title will |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 'axes' (default), the horizontal position of the title will | |
| 'axes' (default), the horizontal position of the title will be |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| title_frame : str, optional | ||
| Set the frame of reference used to center the plot title. If set to | ||
| 'axes' (default), the horizontal position of the title will | ||
| centered relative to the axes. If set to `figure`, it will be |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| centered relative to the axes. If set to `figure`, it will be | |
| centered relative to the axes. If set to 'figure', it will be |
To be consistent with 'axes' and other strings in these parameter descriptions, this should be 'figure' rather than `figure`.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| title_frame : str, optional | ||
| Set the frame of reference used to center the plot title. If set to | ||
| 'axes' (default), the horizontal position of the title will | ||
| centered relative to the axes. If set to `figure`, it will be |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| centered relative to the axes. If set to `figure`, it will be | |
| centered relative to the axes. If set to 'figure', it will be |
To be consistent with 'axes' and other strings in these parameter descriptions, this should be 'figure' rather than figure.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Excellent work on the docstrings checker. It seems useful enough to be offered to the numpydoc repository or made into a ruff rule.
I added several more small comments. After considering those, this is ready to merge.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| inputs : int, list of str, or None | ||
| Description of the system inputs. This can be given as an integer | ||
| states : int, list of str, or None | ||
| Description of the system states. Same format as `inputs`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Description of the system states. Same format as `inputs`. | |
| Description of the system states. Same format as `outputs`. |
For inputs, we have "Same format as outputs." Best to just point from here to outputs (instead of inputs, which in turn points to outputs).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| """(legacy) Phase plot for 2D dynamical systems. | ||
|
|
||
| .. deprecated:: 0.10.1 | ||
| This function is deprecated; use `phase_plane_plot` instead. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| This function is deprecated; use `phase_plane_plot` instead. | |
| This function is deprecated; use :func:`phase_plane_plot` instead. |
Else, Sphinx/numpydoc will not create a link.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| """box_grid generate list of points on edge of box | ||
|
|
||
| .. deprecated:: 0.10.0 | ||
| Use :func:`phaseplot.boxgrid` instead. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Note that neither boxgrid() nor box_grid() appear in the generated user's manual, so this :func: link is not used anywhere that I observed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if f"*{argname}" not in docstring and verbose: | ||
| print(f" {name} has positional arguments; " | ||
| "check manually") | ||
| warnings.warn( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| if f"*{argname}" not in docstring and verbose: | |
| print(f" {name} has positional arguments; " | |
| "check manually") | |
| warnings.warn( | |
| if f"*{argname}" not in docstring: | |
| if verbose: | |
| print(f" {name} has positional arguments; " | |
| "check manually") | |
| warnings.warn( |
This warning message should be sent independently of verbose.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.