Skip to main content

Python package for residence time distribution analysis

Project description

rtdpy

Residence Time Distribution modeling in Python.

https://merck.github.io/rtdpy

DOI

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')

N-Cstr RTDs

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

rtdpy-0.6.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

rtdpy-0.6.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

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

Hashes for rtdpy-0.6.1.tar.gz
Algorithm Hash digest
SHA256 dd959d6eb4f61a95c3ebb1f80161633ce2ba632dedf9d8288b6c52cf11f23666
MD5 580747162680404700cb74cba28b7849
BLAKE2b-256 e9a0452b27d5fc3c3e768925bf0d51e13a1c32b7d1e5d237aebd1a1002ff7117

See more details on using hashes here.

Provenance

The following attestation bundles were made for rtdpy-0.6.1.tar.gz:

Publisher: publish.yml on Merck/rtdpy

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

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

Hashes for rtdpy-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50721b47c6a4a2ac304fb87f94780272cd039e25a86c7df0277708cc25b060a6
MD5 b3b508a7220d38050655e66ee8624bd6
BLAKE2b-256 0dd70946e53141aeed94f1aff3350f9fdfb216769d4e149c56140d9b5f059b0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rtdpy-0.6.1-py3-none-any.whl:

Publisher: publish.yml on Merck/rtdpy

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page