Skip to main content

dynamodels

DOI PyPI

Dynamical-system models with pre-allocated history tracking and pluggable time integrators — the modelling core split out of romda so it can be reused on its own. Torch-free; depends only on numpy, scipy, matplotlib, typeguard and multiprocess.

Tutorial: tutorial_dynamodels.ipynb | Interface documentation: model protocol

Install

pip install dynamodels

Quickstart

from dynamodels.physical import Lorenz63

model = Lorenz63(rho=28., dt=0.01)
psi, t = model.time_integrate(Nt=1000)   # (Nt, Nphi, m) states, (Nt,) times
model.update_history(psi, t)
y = model.get_observable_hist()          # (Nt, Nq, m) observables
model.visualize_history()
model.close()                            # release the integrator's pool

A model composes a HistoryTracker (state/time buffer behind hist, hist_t, update_history()) with an Integrator strategy; subclasses supply obs_labels plus either time_derivative(t, psi, **params) (continuous) or time_step(Nt) (discrete map). m-member ensembles are supported natively (init_ensemble). Included physical models (dynamodels.physical): Lorenz63, Lorenz96, VdP, Rijke, Annular, KS — the lorenz63, lorenz96 and rijke modules carry measured dominant-Lyapunov tables (module-level _LAM1_MEASURED; _LAM1_MEASURED_NX10 for Lorenz96) from which instances set t_lyap.

Ecosystem

  • ntsa — nonlinear time-series analysis for any dynamodels-style model (docs).
  • romda — bias-aware ensemble data assimilation built on top.

Development

pip install -e ".[dev]"
python -m pytest tests/
ruff check dynamodels/ tests/

Releases: bump version in pyproject.toml, then git tag vX.Y.Z && git push --tags (publishes to PyPI).

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynamodels-0.4.1.tar.gz (57.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynamodels-0.4.1-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file dynamodels-0.4.1.tar.gz.

File metadata

  • Download URL: dynamodels-0.4.1.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dynamodels-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cf55363f96a9e6bd6c3b4a745a73772d3decde2d0c023cf747b8ede1d80a2641
MD5 d98f9b8ae837e1e59196f0228afe5d00
BLAKE2b-256 d4311df0e8946ac25b33436a32e255884f4f7fd0829b280058377ef296f1794a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynamodels-0.4.1.tar.gz:

Publisher: release.yml on andreanovoa/dynamodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dynamodels-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dynamodels-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dynamodels-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db33db7e7831bd1b5aaf5e8ebed1a351446a1f9cbe72252d124256b00b37428c
MD5 b55e1ef26c524341f54e3672ab38cd53
BLAKE2b-256 70eafd7f2016c9942412ec7c93b0b35581a48a4b2f25f0a98bd932ce8d6af9b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynamodels-0.4.1-py3-none-any.whl:

Publisher: release.yml on andreanovoa/dynamodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.3.3

2 files

0.3.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

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