Skip to main content

earthkit-workflows-anemoi

Static Badge Code Coverage License: Apache 2.0 Latest Release

[!IMPORTANT] This software is Sandbox and subject to ECMWF's guidelines on Software Maturity.

Earthkit-Workflows-Anemoi is a Python library for connecting anemoi-inference to earthkit-workflows. Allowing for the inference tasks to be run as part of a larger DAG. It provides an API to directly create a graph consisting of initial condition retrieval and model execution, or to run inference off other source nodes which themselves are the initial conditions.

Installation

The package has a split dependency structure to allow flexible installation:

For workflow creation (minimal)

To create workflows without running them locally:

pip install earthkit-workflows-anemoi

This installs only the core dependencies needed to define and serialize workflows.

For workflow execution (full runtime)

To both create and execute workflows locally:

pip install 'earthkit-workflows-anemoi[runtime-inference]'

This includes anemoi-inference, required for local execution.

For development

git clone https://github.com/ecmwf/earthkit-workflows-anemoi.git
cd earthkit-workflows-anemoi
pip install -e '.[dev]'

Additionally you may want to install pre-commit hooks:

pip install pre-commit
pre-commit install

Quick Start

To create a graph relying on anemoi-inference to get the initial conditions the following can be used:

from earthkit.workflows.plugins import anemoi as anemoi_workflows

CKPT = {'huggingface': 'ecmwf/aifs-single-1.0'}

model_action = anemoi_workflows.fluent.from_input(CKPT, 'mars', '2022-01-01T00:00', lead_time = '7D', ensemble_members=range(1, 52))
model_action

Note: For models with multiple datasets (supported since anemoi-inference 0.11.0), the resulting action includes a dataset dimension. Use .select({"dataset": "era5"}) to select a specific dataset if needed.

Given other nodes as the initial conditions:

from earthkit.workflows.plugins import anemoi as anemoi_workflows
from earthkit.workflows import fluent

SOURCE_NODES: fluent.Action
CKPT = {'huggingface': 'ecmwf/aifs-single-1.0'}

SOURCE_NODES.anemoi.infer(CKPT, lead_time = '7D', ensemble_members = range(1, 52))

Metadata

Release files for earthkit-workflows-anemoi 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for earthkit-workflows-anemoi 0.10.2
File Size Uploaded Provenance Actions
earthkit_workflows_anemoi-0.10.2.tar.gz 74.2 kB Without provenance Details for earthkit_workflows_anemoi-0.10.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for earthkit-workflows-anemoi 0.10.2
File Interpreter ABI Platform Actions
earthkit_workflows_anemoi-0.10.2-py3-none-any.whl Python 3 none any Details for earthkit_workflows_anemoi-0.10.2-py3-none-any.whl

Total release size: 103.4 kB

Release files / earthkit_workflows_anemoi-0.10.2.tar.gz

Download URL earthkit_workflows_anemoi-0.10.2.tar.gz
Size 74.2 kB
Tags Source
SHA-256 checksum
How to use checksums
95f009caefb7659050d86cf754cb97ad78c1b74a2c10b27e48abb4f16924f348
BLAKE2b-256 checksum
How to use checksums
1f83a95eb8008ba87f4a8280ae2bde18ee0fde0927f409c07096f0c4d67910fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / earthkit_workflows_anemoi-0.10.2-py3-none-any.whl

Download URL earthkit_workflows_anemoi-0.10.2-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19d8dfb659d44bdcc6aef00ada5d735f7fe53fbd57efcfc759ed333b5d0acc44
BLAKE2b-256 checksum
How to use checksums
2d03fe3bf668b9b8e3a7d6a7bc84a2021e0bd09ac90ded1476f160587a057680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for earthkit-workflows-anemoi 0.10.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page