Skip to main content

symbolic-compartmental-model

PyPI version fury.io Python version MIT license coverage report ReadTheDocs

A symbolic package based on SymPy for simulating and fitting Compartmental Models (CMs).

Overview

Symbolic Compartmental Model is a python package for constructing, simulating, and fitting compartmental models. It is based on the symbolic calculations package sympy but can also perform numerical calculations.

Current Features

  • Defining a CM based on the contributed turnovers (M-matrix) and observed pool sizes
  • Optionally include symbolic parameters and set their bounds for later fitting
  • Several fitting functions, including single/multiple pools and mass balance constraints (optional)
  • Both numerical and symbolic outputs for dynamic parameters: age, residence time, decay rate, etc.
  • Plotting of simulated data

Getting started

  • To fit a model without installing anything, use the browser app: Fit compartmental models online. It loads your data, fits it, and lets you download the results — everything runs locally in your browser and nothing is uploaded.
  • For installing the package in your current python environment, can simply pip install symbolic-compartmental-model.
  • The package documentation can be found on ReadTheDocs.

Metadata

Release files for symbolic-compartmental-model 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for symbolic-compartmental-model 0.3.0
File Size Uploaded
symbolic_compartmental_model-0.3.0.tar.gz 54.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for symbolic-compartmental-model 0.3.0
File Interpreter ABI Platform
symbolic_compartmental_model-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 117.4 kB

Release files / symbolic_compartmental_model-0.3.0.tar.gz

Download URL symbolic_compartmental_model-0.3.0.tar.gz
Size 54.3 kB
Tags Source
SHA-256 checksum
How to use checksums
390f8244ad3e1d0af6005d8ec8c91ae6f4e879ea2a60327de227acc4535c3bd5
BLAKE2b-256 checksum
How to use checksums
84f19b48f6d1e8e6573bf290ec3aa2dbcf291fd711500f93e711b8adcad0333a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / symbolic_compartmental_model-0.3.0-py3-none-any.whl

Download URL symbolic_compartmental_model-0.3.0-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
577f4983b1f3470db971a02cc5b09d3c5e76627c56177f3d245e9b6063dbb151
BLAKE2b-256 checksum
How to use checksums
2aa6efaf0cefb0dd1b84378573ec2d12414025548c0d175d95c0b671095c470d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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