diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20cfea30..47639428 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,23 +51,23 @@ repos: - --exit-non-zero-on-fix - --preview -- repo: https://github.com/thclark/pre-commit-sphinx - rev: 0.0.1 - hooks: - - id: build-docs - additional_dependencies: - - sphinx - - sphinx_rtd_theme - - nbsphinx - - pandoc - args: - - --cache-dir - - docs/_build/doctrees - - --html-dir - - docs/_build/html - - --source-dir - - docs - language_version: python3 +# - repo: https://github.com/thclark/pre-commit-sphinx +# rev: 0.0.1 +# hooks: +# - id: build-docs +# additional_dependencies: +# - sphinx +# - sphinx_rtd_theme +# - nbsphinx +# - pandoc +# args: +# - --cache-dir +# - docs/_build/doctrees +# - --html-dir +# - docs/_build/html +# - --source-dir +# - docs +# language_version: python3 - repo: https://github.com/sphinx-contrib/sphinx-lint rev: v0.9.1 diff --git a/anemoi/datasets/create/functions/actions/accumulations.py b/anemoi/datasets/create/functions/actions/accumulations.py index abb93e37..83910016 100644 --- a/anemoi/datasets/create/functions/actions/accumulations.py +++ b/anemoi/datasets/create/functions/actions/accumulations.py @@ -264,9 +264,6 @@ def compute_accumulations( if not isinstance(param, (list, tuple)): param = [param] - for p in param: - assert p in ["cp", "lsp", "tp", "sf", "lsf", "csf"], p - number = request.get("number", [0]) assert isinstance(number, (list, tuple)) diff --git a/docs/building/sources/perturbations.rst b/docs/building/sources/perturbations.rst index 291e2d0b..400b12ad 100644 --- a/docs/building/sources/perturbations.rst +++ b/docs/building/sources/perturbations.rst @@ -42,12 +42,14 @@ positive when using the `perturbations` function : It uses the following arguments: -ensembles +members A :ref:`reference <yaml-reference>` to the ensemble members. center A :ref:`reference <yaml-reference>` to the new center requested. +Examples + .. literalinclude:: yaml/perturbations.yaml :language: yaml diff --git a/docs/building/sources/yaml/perturbations.yaml b/docs/building/sources/yaml/perturbations.yaml index fe2da44c..5881ded9 100644 --- a/docs/building/sources/yaml/perturbations.yaml +++ b/docs/building/sources/yaml/perturbations.yaml @@ -1,24 +1,26 @@ data_sources: - members: - class: ea - expver: "0001" - grid: 20.0/20.0 - levtype: sfc - param: [10u, 10v, 2t] - type: an - stream: enda - number: [1, 2, 3, 4, 5, 6, 7, 8, 9] + members_source: + mars: + class: ea + expver: "0001" + grid: 20.0/20.0 + levtype: sfc + param: [10u, 10v, 2t] + type: an + stream: enda + number: [1, 2, 3, 4, 5, 6, 7, 8, 9] - center: - class: ea - expver: "0001" - grid: 20.0/20.0 - levtype: sfc - param: [10u, 10v, 2t] - type: an - stream: oper + center_source: + mars: + class: ea + expver: "0001" + grid: 20.0/20.0 + levtype: sfc + param: [10u, 10v, 2t] + type: an + stream: oper input: perturbations: - center: ${data_sources.center} - members: ${data_sources.members} + center: ${data_sources.center_source} + members: ${data_sources.members_source} diff --git a/docs/conf.py b/docs/conf.py index 30b10dfc..62a1f298 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -71,6 +71,26 @@ intersphinx_mapping = { "python": ("https://python.readthedocs.io/en/latest", None), + "anemoi-utils": ( + "https://anemoi-utils.readthedocs.io/en/latest/", + ("../../anemoi-utils/docs/_build/html/objects.inv", None), + ), + "anemoi-datasets": ( + "https://anemoi-datasets.readthedocs.io/en/latest/", + ("../../anemoi-datasets/docs/_build/html/objects.inv", None), + ), + "anemoi-models": ( + "https://anemoi-models.readthedocs.io/en/latest/", + ("../../anemoi-models/docs/_build/html/objects.inv", None), + ), + "anemoi-training": ( + "https://anemoi-training.readthedocs.io/en/latest/", + ("../../anemoi-training/docs/_build/html/objects.inv", None), + ), + "anemoi-inference": ( + "https://anemoi-inference.readthedocs.io/en/latest/", + ("../../anemoi-inference/docs/_build/html/objects.inv", None), + ), } diff --git a/docs/index.rst b/docs/index.rst index c6005ea7..ebe04b1c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,5 @@ +.. _index-page: + #################################### Welcome to Anemoi's documentation! #################################### @@ -107,6 +109,16 @@ datasets <building-introduction>`. cli/compare cli/copy +***************** + Anemoi packages +***************** + +- :ref:`anemoi-utils <anemoi-utils:index-page>` +- :ref:`anemoi-datasets <anemoi-datasets:index-page>` +- :ref:`anemoi-models <anemoi-models:index-page>` +- :ref:`anemoi-training <anemoi-training:index-page>` +- :ref:`anemoi-inference <anemoi-inference:index-page>` + ********* License *********