rtdpy
Residence Time Distribution modeling in Python.
A simple example
Create a family of tanks in series (N-CSTRs) and analyze them
import matplotlib.pyplot as plt
import rtdpy
for n in [1, 2, 5, 10, 100]:
a = rtdpy.Ncstr(tau=1, n=n, dt=.001, time_end=5)
plt.plot(a.time, a.exitage, label="n={}".format(n))
plt.legend()
plt.xlabel('Time')
plt.ylabel('Exit Age Function')
plt.title('Impulse Responses')
Installation
pip install rtdpy
Issues/Requests/Contributions
See CONTRIBUTING.md
Development and Testing
It is recommended to use a virtual environment for developing/testing.
git clone https://github.com/Merck/rtdpy.git # or use your forked repo
cd rtdpy
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e ".[dev]" # install package with dev dependencies
# run all tests with coverage
pytest
Tests are written using pytest and configuration is in pyproject.toml. See pytest documentation for more details.
Author: Matthew Flamm
Email: matthew.flamm@merck.com
Metadata
Release files for rtdpy 0.6.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 | |
|---|---|---|---|
| rtdpy-0.6.1.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rtdpy-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / rtdpy-0.6.1.tar.gz
| Download URL | rtdpy-0.6.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd959d6eb4f61a95c3ebb1f80161633ce2ba632dedf9d8288b6c52cf11f23666
|
|
BLAKE2b-256 checksum How to use checksums |
e9a0452b27d5fc3c3e768925bf0d51e13a1c32b7d1e5d237aebd1a1002ff7117
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 18, 2025.
Transparency logRelease files / rtdpy-0.6.1-py3-none-any.whl
| Download URL | rtdpy-0.6.1-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50721b47c6a4a2ac304fb87f94780272cd039e25a86c7df0277708cc25b060a6
|
|
BLAKE2b-256 checksum How to use checksums |
0dd70946e53141aeed94f1aff3350f9fdfb216769d4e149c56140d9b5f059b0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 18, 2025.
Transparency log