pyTAMS
Overview
Rare events algorithms are powerful techniques allowing to sample rare occurrences of a computational model at a much lower cost than brute force Monte-Carlo. However, running such algorithms on models featuring more than a handull of dimensions become cumbersome as both compute and memory requirements increase. pyTAMS is a modular implementation of the trajectory-adaptive multilevel splitting (TAMS) rare event method introduced by Lestang et al., aiming at alleviating the difficulty of performing rare event algorithms for to high-dimensional systems such as the ones encountered in geophysical or engineering applications.
Installation
To install pyTAMS from GitHub repository, do:
git clone git@github.com:nlesc-eTAOC/pyTAMS.git
cd pyTAMS
python -m pip install .
Note that the latest version of pyTAMS is available on PyPI here
and can be installed with pip install pytams, but built-in examples are not readily available using
the PyPI version.
To run the example cases shipped with pyTAMS, additional dependencies are required. To install the examples dependencies, run:
python -m pip install .[exec]
Quick start
To get started with pyTAMS, let's have a look at the classical double-well potential case. Although it is not a high-dimensional system, it provides a good overview of pyTAMS capabilities. A 2D version of the double-well is available in the examples folder. To run the case, simply do:
cd examples/DoubleWell2D
python tams_dw2dim.py
This minimal example runs TAMS 10 times in order to get an estimate of the transition probability as well as the corresponding relative error. For a more in-depth explanation about this case, setting up the model and running the simulations, have a look at the tutorial here.
Documentation
pyTAMS documentation is hosted on GitHub here
Contributing
If you want to contribute to the development of pyTAMS, have a look at the contribution guidelines.
Acknowledgements
The development of pyTAMS was supported by the Netherlands eScience Center in collaboration with the Institute for Marine and Atmospheric research Utrecht IMAU.
This package was created with Cookiecutter and the NLeSC/python-template.
Metadata
Release files for pytams 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytams-1.0.0.tar.gz | 56.9 kB | Without provenance | Details for pytams-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytams-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pytams-1.0.0-py3-none-any.whl |
Total release size: 106.4 kB
Release files / pytams-1.0.0.tar.gz
| Download URL | pytams-1.0.0.tar.gz |
|---|---|
| Size | 56.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4389ac056c56742785d3e070a817af2a2faefa3677a3db3f1f7c7193e57ccfd
|
|
BLAKE2b-256 checksum How to use checksums |
ae524944a6dcc47831759ecbff035828e78b5a9fdbd9b419bb98306b3184f98f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / pytams-1.0.0-py3-none-any.whl
| Download URL | pytams-1.0.0-py3-none-any.whl |
|---|---|
| Size | 49.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f566c23d4804a7b4880f7bcfa4fcaa5b9252407efa0814f5b1e3152b00fc8034
|
|
BLAKE2b-256 checksum How to use checksums |
a2d0723989cfc384beb32bb3904a4e80d2cd61569dda9273291bc3db79b15b8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for pytams 1.0.0
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.