Skip to content

Added documentation for the actions of the Reducer#68

Merged
spiani merged 1 commit into
mainfrom
actions_documentation
May 19, 2026
Merged

Added documentation for the actions of the Reducer#68
spiani merged 1 commit into
mainfrom
actions_documentation

Conversation

@spiani

@spiani spiani commented May 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@spiani spiani self-assigned this May 19, 2026
@spiani spiani requested review from Copilot and nakkari May 19, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive Google-style docstrings to the public functions and the Stats class in the medunda.actions subpackage, and introduces a new Sphinx documentation page that auto-renders these docstrings.

Changes:

  • Replaced short/missing docstrings with detailed ones across all action modules (describing semantics, args, returns, raises, and behavior for masked cells/edge cases).
  • Added docs/source/actions.md with autofunction / autoclass directives for each action.
  • Registered the new page in the documentation toctree (docs/source/index.md).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/medunda/actions/integration.py Added docstring for compute_integral.
src/medunda/actions/integrate_between_layers.py Expanded docstring for integrate_between_layers.
src/medunda/actions/extract_surface.py Added docstring for extract_surface.
src/medunda/actions/extract_layer.py Expanded docstring for extract_layer.
src/medunda/actions/extract_bottom.py Added docstring for extract_bottom.
src/medunda/actions/compute_average.py Expanded docstring for compute_average covering depth/space/time axes.
src/medunda/actions/climatology.py Added detailed docstring for climatology covering monthly/daily source cases.
src/medunda/actions/calculate_stats.py Added docstrings to Stats class, its methods, and the calculate_stats function.
src/medunda/actions/average_between_layers.py Expanded docstring for average_between_layers.
docs/source/actions.md New documentation page rendering action APIs via autodoc.
docs/source/index.md Added actions entry to the toctree.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spiani spiani merged commit 518647c into main May 19, 2026
8 checks passed
@spiani spiani deleted the actions_documentation branch May 19, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants