S-timator
ODE dynamical systems modelling in Python
Overview
S-timator is a Python module to analyse SODE-based models
These models are often found in many scientific fields, particularly in Physics, Chemistry, Biology and Engineering.
They are useful representations of the dynamics of systems.
Some of the features offered by S-timator are
- A mini language used to describe models: models can be input as plain text following a very simple and human-readable language.
- Numerical solution of SODE and parameter scanning.
- Parameter estimation and model selection: given experimental data in
the form of time series and constrains on model operating ranges, built-in numerical optimizers can optimize parameter values.
For a brief introduction check out the mini-tutorial in the documentation.
Installation
S-timator requires Python >= 3.12.
S-timator (module stimator) is a package on Python Package Index. As such, it can be installed in a working environment by using one of the following package managers:
- pip
python -m pip install stimator, preferably in avenvorcondaenvironment. - uv
uv add stimatorto add it to a uv managed project oruv pip install stimatorto add it to any virtual environment - pixi
pixi add --pypi stimatorto add it to a pixi managed project or workspace
Requirements
All the necessary requirements will be installed. These are
numpyscipymatplotlibsympypackagingdotmap
It is recommended to pre-install these requirements as conda packages, by using pixi or the Anaconda/Miniconda distribution
S-timator may take advantage of having other tools from the "Scientific Python ecossystem". For example, S-timator may be used form Jupyter or Marimo notebooks.
As another example, the solutions of ODE systems may be converted to popular DataFrame types, such as Pandas or Polars dataframes.
A warm-up example
The following example showcases the how the solution of an ODE system can be obtained:
import pandas as pd
import stimator as st
model = st.read_model("""
title A simple open chemical system
vin: -> A, rate = 0.5
r1: A -> B, rate = k1 * A
r2: B -> C, rate = k2 * B - k3 * C
vout: C ->, rate = 0.8 * C
k1 = 0.1
k2 = 2
k3 = 1
init: A = 0, B = 0, C = 0
""")
# compute the solution of the SODE up to time 80
solution = model.solve(tf=80)
# show the solution as a table
print(pd.DataFrame(solution.as_dict()).set_index("t"))
# Report the last point of the solution
print(f"""
Steady state:
{solution.last}
""")
A B C
t
0.000000 0.000000 0.000000 0.000000
0.160321 0.079521 0.000578 0.000059
0.320641 0.157778 0.002106 0.000409
0.480962 0.234789 0.004358 0.001207
0.641283 0.310576 0.007186 0.002519
... ... ... ...
79.358717 4.998212 0.562253 0.624709
79.519038 4.998240 0.562257 0.624714
79.679359 4.998268 0.562261 0.624718
79.839679 4.998296 0.562264 0.624723
80.000000 4.998323 0.562268 0.624727
[500 rows x 3 columns]
Steady state:
{'A': 4.998322658118175, 'B': 0.5622681719167945, 'C': 0.6247272619351981}
The solution could easily be plotted with
solution.plot(xlabel="time")
Metadata
Release files for stimator 1.0.1
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 |
|---|---|---|---|---|
| stimator-1.0.1.tar.gz | 68.7 kB | Without provenance | Details for stimator-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stimator-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for stimator-1.0.1-py3-none-any.whl |
Total release size: 151.0 kB
Release files / stimator-1.0.1.tar.gz
| Download URL | stimator-1.0.1.tar.gz |
|---|---|
| Size | 68.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6d48cbab1cdbe467e1c7f809cf1e8474a24cf0ab6806c34f3953d606b4a1d16
|
|
BLAKE2b-256 checksum How to use checksums |
7c4799f5204d954b068ea80b895566fb05152874e62f3b60d4f276f1a367941c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / stimator-1.0.1-py3-none-any.whl
| Download URL | stimator-1.0.1-py3-none-any.whl |
|---|---|
| Size | 82.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7f5f4d2bf4be6e43808c5903cfe61e4b619a6f931eaad67f0ec23cbab96aa38
|
|
BLAKE2b-256 checksum How to use checksums |
0e1cdcaf812387141d1f2cf3ebdb1694727ed6d8fa480a05ea805f5a38d13273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for stimator 1.0.1
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.