Surrogate-assisted Bayesian calibration for hydrodynamic and morphodynamic models (Telemac, OpenFOAM).
Project description
HydroBayesCal
Surrogate-assisted Bayesian calibration for computationally expensive hydro- and morphodynamic models.
HydroBayesCal calibrates expensive numerical models without running them thousands of times. It trains a Gaussian Process Emulator (GPE) as a fast surrogate from a small set of strategically sampled simulations, then refines it with Bayesian Active Learning (BAL) — iteratively adding the training points that maximise the information gain (relative entropy) and Bayesian model evidence for the calibration. Single- and multi-output GPEs are supported.
The package couples to open-source modelling software through a common binding layer:
- TELEMAC (2D/3D) — fully supported
- OpenFOAM (interFoam) — binding under active development
Experimental design and parameter sampling are delegated to BayesValidRox; the GP emulators and the Bayesian active-learning logic are implemented in-tree.
Installation
HydroBayesCal requires Python ≥ 3.10 (tested on 3.10–3.12). It is developed and tested on Linux.
pip install hydroBayesCal
or, for a development/editable install from a clone:
git clone https://github.com/sschwindt/hydrobayescal.git
cd hydrobayescal
pip install -e ".[dev,docs,mesh]"
A calibration additionally requires a working installation of the numerical solver (e.g. TELEMAC) on the system. See the installation guide for the full environment setup, including coupling HydroBayesCal with TELEMAC.
Quick start
Configure a calibration in a Python config file and run the TELEMAC driver:
python bal_telemac.py --config config.py
See the documentation for the end-to-end workflow, the configuration parameters, the code architecture, and worked examples.
Development & releases
Contributions are welcome — see CONTRIBUTING.md for the development setup, coding conventions, and the documentation build.
For maintainers, a few essentials:
- Editable install:
pip install -e ".[dev,docs,mesh]"(Python ≥ 3.10, tested 3.10–3.12). - Versioning: Semantic Versioning /
PEP 440; the version lives only in
pyproject.toml(keepdocs/conf.pyin sync). PyPI versions are immutable — always bump for a new release. - Releases are automated: publishing a GitHub Release (tag
vX.Y.Z) triggers.github/workflows/publish.yml, which builds the distributions and uploads them to PyPI via Trusted Publishing (OIDC, no stored token). No manualtwine uploadis needed. Build locally to sanity-check withpython -m build && twine check dist/*.
Citing / scientific background
HydroBayesCal builds on the Bayesian active-learning framework of Oladyshkin et al. (2020) and on Gaussian-process regression (Rasmussen & Williams, 2006). Its application to reservoir sedimentation and 3D reservoir hydrodynamics is documented in Mouris et al. (2023) and Schwindt et al. (2023). Full references with DOIs are on the references page.
License
Distributed under the BSD 3-Clause License. See LICENSE.
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 hydrobayescal-0.1.1.tar.gz.
File metadata
- Download URL: hydrobayescal-0.1.1.tar.gz
- Upload date:
- Size: 146.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56a342ffe834c80d9837104af11a84e3f5e988d22ef5dd163e2f68c27894da9d
|
|
| MD5 |
f2ed8533b7d7b2269d9e68f58240231f
|
|
| BLAKE2b-256 |
0e290a3f324992ce5c3b5a7928d5c617920a8db0951222c1cee590e9b4f5162e
|
Provenance
The following attestation bundles were made for hydrobayescal-0.1.1.tar.gz:
Publisher:
publish.yml on Ecohydraulics/hydrobayescal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hydrobayescal-0.1.1.tar.gz -
Subject digest:
56a342ffe834c80d9837104af11a84e3f5e988d22ef5dd163e2f68c27894da9d - Sigstore transparency entry: 1708537006
- Sigstore integration time:
-
Permalink:
Ecohydraulics/hydrobayescal@4113fd93bc8a4596deb0c371e65f6106c455a64c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Ecohydraulics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4113fd93bc8a4596deb0c371e65f6106c455a64c -
Trigger Event:
release
-
Statement type:
File details
Details for the file hydrobayescal-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hydrobayescal-0.1.1-py3-none-any.whl
- Upload date:
- Size: 155.9 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 |
2ed910ae8acb0532166a6327f62321bc219bcde6bb68d1f751411ff92c3252b5
|
|
| MD5 |
60bffef85c91f2b4fb4810fa51b75966
|
|
| BLAKE2b-256 |
f614da7defaa4a7621cf50c295c97c726575dff77684ba9cbc5e2a40487e5074
|
Provenance
The following attestation bundles were made for hydrobayescal-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Ecohydraulics/hydrobayescal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hydrobayescal-0.1.1-py3-none-any.whl -
Subject digest:
2ed910ae8acb0532166a6327f62321bc219bcde6bb68d1f751411ff92c3252b5 - Sigstore transparency entry: 1708537019
- Sigstore integration time:
-
Permalink:
Ecohydraulics/hydrobayescal@4113fd93bc8a4596deb0c371e65f6106c455a64c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Ecohydraulics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4113fd93bc8a4596deb0c371e65f6106c455a64c -
Trigger Event:
release
-
Statement type: