COMODELS
Models for COVID - 19
For documentation, see the docstrings! Much more to come. For help:
import comodels
help(comodels)
help(comodels.PennDeath)
help(comodels.Penn)
Penn Death model
# import the penn model
import matplotlib.pyplot as plt
from comodels import PennDeath
help(PennDeath)
tx = PennDeath(N = 28304596, I = 223, R = 0, D = 3, D_today = 2)
help(PennDeath.sir)
def plot_penn(Pdp: PennDeath, n_days: int) -> None:
# predict the coming storm and plot it
curve, admissions = Pdp.sir(n_days)
fig, ax = plt.subplots(1,3, figsize=(15,5))
for k, v in curve.items():
if k not in Pdp.rates.keys() :
ax[0].plot(v, label=k)
ax[0].legend()
else:
ax[1].plot(v, label=k)
ax[1].legend()
ax[1].set_title('Hospital Resource Usage')
ax[0].set_title('SIR curve')
for k, v in admissions.items():
ax[2].plot(v, label = k)
ax[2].legend()
ax[2].set_title('Additional Resource Usage by day')
fig.suptitle(f"No social distancing, total deaths = {int(max(curve['dead']))}")
plt.show()
plot_penn(tx, 120)
print(curve.keys())
print(occupancy.keys())
Metadata
Release files for covid-modeling 0.1.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 |
|---|---|---|---|---|
| covid-modeling-0.1.1.tar.gz | 253.3 kB | Without provenance | Details for covid-modeling-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| covid_modeling-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for covid_modeling-0.1.1-py3-none-any.whl |
Total release size: 260.2 kB
Release files / covid-modeling-0.1.1.tar.gz
| Download URL | covid-modeling-0.1.1.tar.gz |
|---|---|
| Size | 253.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d777dae28cac5fa1e7f4e972ea67e9c6aac3ecef76bcd7fec81a2f82292ecef
|
|
BLAKE2b-256 checksum How to use checksums |
0905d57ceb73289c029bb7892d3e8bf0830e4300fd981f099a1ec8593df5bc26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5
|
Release files / covid_modeling-0.1.1-py3-none-any.whl
| Download URL | covid_modeling-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95261ea84c25f4165b6681a3a05e8d4b32e92fc14b193a9bdd68c0f84f523e85
|
|
BLAKE2b-256 checksum How to use checksums |
52a7366ba71e6f50268c2a0bbcd975c99ef505488d6defce11a9590bf198a03c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5
|
Security for covid-modeling 0.1.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.