A verification pipeline for evaluating models and forecasts.
Project description
Veriflow
A reproducible verification pipeline for evaluating model outputs and forecasts.
- 📥 Fetching data
- 🧮 Computing scores
- 📝 Writing results
Key features
- ✅ Full control over the verification pipeline via configuration
- ✅ Native integration with Delft-FEWS
- ✅ Native integration with local and remote (S3) Zarr
- ✅ Builds on scores for computation of scores. This package has extensive functionality, and it's documentation is world-class.
- ✅ Extensible with your own (private) datasources, scores and datasinks
- ✅ Optimized internal datamodel for efficient computation
Installation
Install from PyPI:
pip install veriflow
Or using uv:
uv pip install veriflow
See CONTRIBUTING.md for development setup.
Running a verification pipeline with veriflow
The below example shows you the minimal code to run a verification pipeline.
from veriflow import run_pipeline
from pathlib import Path
# Create your config and point to the file
path_to_config = Path("./config.yml")
# Run your verification pipeline in just one line of code
run_pipeline((path_to_config, "yaml"))
If it's your wish to further analyze the input data and verification results in an interactive Python session, assign the returned OutputDataset from run_pipeline to a Python variable. For each each configured verification_pair*, the output_dataset contains an xarray.Dataset with the results. By default, the input data will be included in the output.
*a verification pair is definition of two datasources (e.g. observed and simulated) for one pysical variable (e.g. discharge or temperature)
# Alternatively, assign the returned `output_dataset` to a Python variable.
output_dataset = run_pipeline((path_to_config, "yaml"))
# List the verification_pairs in the output_dataset
verification_pairs = output_dataset.verification_pairs
# Retrieve the verification results for a verification_pair from the output_dataset
first_verification_pair = verification_pairs[0]
dataset = output_dataset.get(first_verification_pair) # An instance of xarray.Dataset
For more advanced documentation, please refer to our user guide.
👥 Who Is This For?
This project is aimed at anyone who's interested in assessing model and forecast quality in an easy and reproducible way, like:
- operational forecasters
- model developers
- researchers and data-scientists
Why this package?
Verification pipelines are complex: metrics require specialized computation, data volumes may exceed memory, and sources/destinations can vary widely. This package simplifies verification by handling the entire pipeline via a single configuration file. It's reliable (tested and versioned), transparent (fully documented), reproducible, and flexible—extensible with custom datasources, scores, and datasinks. Any pipeline created is immediately transferable to other users and systems.
So wether you're working on model development or operational forecasting: this tool can help you build robust and reproducible verification pipelines.
Technical features
Project details
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 veriflow-0.2.0.tar.gz.
File metadata
- Download URL: veriflow-0.2.0.tar.gz
- Upload date:
- Size: 65.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
814351d7406bc60cc278dda80a77348efd200295347d674626a7bf55aa6cbfff
|
|
| MD5 |
95f0867c5a27beebc05c49be76ed2409
|
|
| BLAKE2b-256 |
f0d1421e73398168c82877c7191683647fa43aa9523923ac1fc9e5efd8b8d648
|
Provenance
The following attestation bundles were made for veriflow-0.2.0.tar.gz:
Publisher:
publish.yml on Deltares/veriflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veriflow-0.2.0.tar.gz -
Subject digest:
814351d7406bc60cc278dda80a77348efd200295347d674626a7bf55aa6cbfff - Sigstore transparency entry: 1809453114
- Sigstore integration time:
-
Permalink:
Deltares/veriflow@555f4c5e1440c038ffa8f7fe45f332fe4bdf5b39 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Deltares
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@555f4c5e1440c038ffa8f7fe45f332fe4bdf5b39 -
Trigger Event:
release
-
Statement type:
File details
Details for the file veriflow-0.2.0-py3-none-any.whl.
File metadata
- Download URL: veriflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 69.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64e68543bc6fd6eeb10dca0b69d162dac1e0d700e2a10f290d246565d03c0350
|
|
| MD5 |
d56640781d9ea77fb7d5505f84584741
|
|
| BLAKE2b-256 |
dafee8acd42c753ec2ff3c9dc19415576e0e852f9ecdb0b33fd457b24a23edcd
|
Provenance
The following attestation bundles were made for veriflow-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on Deltares/veriflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veriflow-0.2.0-py3-none-any.whl -
Subject digest:
64e68543bc6fd6eeb10dca0b69d162dac1e0d700e2a10f290d246565d03c0350 - Sigstore transparency entry: 1809453131
- Sigstore integration time:
-
Permalink:
Deltares/veriflow@555f4c5e1440c038ffa8f7fe45f332fe4bdf5b39 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Deltares
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@555f4c5e1440c038ffa8f7fe45f332fe4bdf5b39 -
Trigger Event:
release
-
Statement type: