Python package for residence time distribution analysis
Project description
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
Project details
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 rtdpy-0.6.1.tar.gz.
File metadata
- Download URL: rtdpy-0.6.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd959d6eb4f61a95c3ebb1f80161633ce2ba632dedf9d8288b6c52cf11f23666
|
|
| MD5 |
580747162680404700cb74cba28b7849
|
|
| BLAKE2b-256 |
e9a0452b27d5fc3c3e768925bf0d51e13a1c32b7d1e5d237aebd1a1002ff7117
|
Provenance
The following attestation bundles were made for rtdpy-0.6.1.tar.gz:
Publisher:
publish.yml on Merck/rtdpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rtdpy-0.6.1.tar.gz -
Subject digest:
dd959d6eb4f61a95c3ebb1f80161633ce2ba632dedf9d8288b6c52cf11f23666 - Sigstore transparency entry: 771681834
- Sigstore integration time:
-
Permalink:
Merck/rtdpy@aa3d75b817d3a7725c6a6b32eed222b6ed328c1e -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/Merck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa3d75b817d3a7725c6a6b32eed222b6ed328c1e -
Trigger Event:
release
-
Statement type:
File details
Details for the file rtdpy-0.6.1-py3-none-any.whl.
File metadata
- Download URL: rtdpy-0.6.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50721b47c6a4a2ac304fb87f94780272cd039e25a86c7df0277708cc25b060a6
|
|
| MD5 |
b3b508a7220d38050655e66ee8624bd6
|
|
| BLAKE2b-256 |
0dd70946e53141aeed94f1aff3350f9fdfb216769d4e149c56140d9b5f059b0b
|
Provenance
The following attestation bundles were made for rtdpy-0.6.1-py3-none-any.whl:
Publisher:
publish.yml on Merck/rtdpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rtdpy-0.6.1-py3-none-any.whl -
Subject digest:
50721b47c6a4a2ac304fb87f94780272cd039e25a86c7df0277708cc25b060a6 - Sigstore transparency entry: 771681838
- Sigstore integration time:
-
Permalink:
Merck/rtdpy@aa3d75b817d3a7725c6a6b32eed222b6ed328c1e -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/Merck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa3d75b817d3a7725c6a6b32eed222b6ed328c1e -
Trigger Event:
release
-
Statement type: