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.1

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.1
File Size Uploaded Provenance Actions
earthkit_workflows_anemoi-0.10.1.tar.gz 73.8 kB Without provenance Details for earthkit_workflows_anemoi-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 102.7 kB

Release files / earthkit_workflows_anemoi-0.10.1.tar.gz

Download URL earthkit_workflows_anemoi-0.10.1.tar.gz
Size 73.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e7c65da5b51065834c454737d9e22cf43bfa5065f1c5dc40b2d18271fe1390c6
BLAKE2b-256 checksum
How to use checksums
784253e944a39bdef258a7b2ffc036e3c9e5edd4736b60e185b54251aa8f5912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

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

Download URL earthkit_workflows_anemoi-0.10.1-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f36d76420a22440e96a2670d33f55cd2dea1cbe414a6dbcf545b13dd2bfacd8d
BLAKE2b-256 checksum
How to use checksums
fc897c11cbfc37cce66ea6c32181923da29580f0a9b93adde416c58c0edd0071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for earthkit-workflows-anemoi 0.10.1

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.1 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