Skip to content

Commit

Permalink
Merge pull request #185 from MetOffice/184_document_collapse
Browse files Browse the repository at this point in the history
Document collapse operator
  • Loading branch information
jfrost-mo authored Aug 4, 2023
2 parents 3c28481 + 1a7ff7b commit 2379a8f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ components.
:maxdepth: 2

cli
operators
recipe-format
operators
internal
36 changes: 36 additions & 0 deletions docs/source/reference/internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Internal Functions
==================

This page details various internal functions within CSET. Most people should
never have to worry about these, but they are documented here for the
convenience of those developing CSET.

CSET.operators
--------------

.. automodule:: CSET.operators
:members:

CSET.recipes
------------

.. automodule:: CSET.recipes
:members:

CSET.graph
----------

.. automodule:: CSET.graph
:members:

CSET._common
------------

.. note::

While no functions documented on this page are part of any API promise, the
functions inside _common are especially liable to change without any kind of
notice.

.. automodule:: CSET._common
:members:
6 changes: 6 additions & 0 deletions docs/source/reference/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ This page details the operators contained within CSET. It is automatically
generated from the code and its docstrings. Operators should be used via
:doc:`/usage/operator-recipes`.

CSET.operators.collapse
-----------------------

.. automodule:: CSET.operators.collapse
:members:

CSET.operators.constraints
--------------------------

Expand Down
3 changes: 1 addition & 2 deletions src/CSET/operators/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ def noop(x, **kwargs):
x: Any
Input to return.
Will silently accept any additional keyword arguments for testing purposes.
Returns
-------
x: Any
The input that was given.
"""

return x

0 comments on commit 2379a8f

Please sign in to comment.