Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Sphinx documentation #3029

Merged
merged 3 commits into from
Jul 31, 2019
Merged

Cleanup Sphinx documentation #3029

merged 3 commits into from
Jul 31, 2019

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Jul 30, 2019

Clean up Sphinx documentation of files affected by #3026:

  • apply numpydoc style (indentation level of param descriptions, show allowed param values)
  • remove duplicated docstrings, add missing words
  • use LaTeX math to display equations of constraints
  • fix broken Sphinx syntax (typos, unparsed .. notes:: directives, missing links, etc.).

Apply numpydoc style (only one level of indentation for parameter
descriptions, no single quote around parameter names, allowed values
listed within curly braces), remove duplicated docstrings, use LaTeX
math to display equations of constraints, fix broken Sphinx syntax
(directives start with two dots, add missing links, etc.).
@jngrad jngrad added this to the Espresso 4.1 milestone Jul 30, 2019
@codecov
Copy link

codecov bot commented Jul 30, 2019

Codecov Report

Merging #3029 into python will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3029   +/-   ##
======================================
  Coverage      82%     82%           
======================================
  Files         527     527           
  Lines       26791   26791           
======================================
  Hits        22080   22080           
  Misses       4711    4711

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ddee80...d0462fb. Read the comment docs.

src/python/espressomd/collision_detection.pyx Outdated Show resolved Hide resolved
src/python/espressomd/constraints.py Show resolved Hide resolved
src/python/espressomd/interactions.pyx Show resolved Hide resolved
src/python/espressomd/pair_criteria.py Show resolved Hide resolved
src/python/espressomd/particle_data.pyx Show resolved Hide resolved
src/python/espressomd/particle_data.pyx Outdated Show resolved Hide resolved
@fweik fweik self-assigned this Jul 30, 2019
@fweik
Copy link
Contributor

fweik commented Jul 31, 2019

bors r+

bors bot added a commit that referenced this pull request Jul 31, 2019
3029: Cleanup Sphinx documentation r=fweik a=jngrad

Clean up Sphinx documentation of files affected by #3026:
- apply numpydoc style (indentation level of param descriptions, show allowed param values)
- remove duplicated docstrings, add missing words
- use LaTeX math to display equations of constraints
- fix broken Sphinx syntax (typos, unparsed `.. notes::` directives, missing links, etc.).

Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
@RudolfWeeber
Copy link
Contributor

RudolfWeeber commented Jul 31, 2019 via email

@bors
Copy link
Contributor

bors bot commented Jul 31, 2019

Build succeeded

@bors bors bot merged commit d0462fb into espressomd:python Jul 31, 2019
bors bot added a commit that referenced this pull request Aug 6, 2019
3043: Sphinx Doc: Replace `array_like` and 'list of' with `(N,) array_like of` where appropriate. r=jngrad a=pkreissl

Follow up on PR #3029.
As discussed offline this PR changes the code documentation such that the non-specific `array_like` inputs are replaced by n-tuples where appropriate.

Description of changes:
 - Array-like input parameters of a fixed expected length are documented as `<n>-tuple of :obj:<type>`. This style is used by numpy-doc for fixed-length inputs, see e.g. the `axis` parameter in [numpy.linalg.norm](https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.norm.html).
 - Array-like input parameters with variable length are kept as `array_like`.
 - Return arrays are usually of type `ndarray`. This is updated where appropriate.

Co-authored-by: Patrick Kreissl <patrick.kreissl@pa-le.de>
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
@jngrad jngrad deleted the fix-3016-docs branch January 18, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants