An earthkit-workflows interface to anemoi inference
Project description
earthkit-workflows-anemoi
[!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]'
This includes anemoi-inference and anemoi-datasets 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=51)
model_action
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 = 51)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file earthkit_workflows_anemoi-0.5.1.tar.gz.
File metadata
- Download URL: earthkit_workflows_anemoi-0.5.1.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3eca88aa33011c6ea6d70783fef71ad7843991485efed3b4f64c3233b0e985c
|
|
| MD5 |
dbb1ee3835d72c56ef8fb45070038234
|
|
| BLAKE2b-256 |
b91849df56d5f08cc56e7931b9821a8fd121f9e9c5ee87b406d7581f8d08c8aa
|
File details
Details for the file earthkit_workflows_anemoi-0.5.1-py3-none-any.whl.
File metadata
- Download URL: earthkit_workflows_anemoi-0.5.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c648e92a45b7f630f67aeeebb084c445d46260306d508af0842fe88a19e29714
|
|
| MD5 |
9670d841247a9ad86e64160f24b0b1d1
|
|
| BLAKE2b-256 |
624787516850b85c1aa5181eb51a76a30cea185917c0cc34946bcdabf43479cd
|