popcast: Long-term forecasts for pathogen populations
See the methods of Huddleston et al. 2020 for more details or to cite this tool.
Install
For a full installation with the OpenCV package that's required for model fitting, specify the "full" package dependencies.
python -m pip install 'popcast[full]'
For a smaller installation that only supports forecasting with an existing model, omit the optional package dependency.
python -m pip install popcast
Usage
Download seasonal influenza A/H3N2 data for model fitting.
curl -LO "https://github.com/blab/flu-forecasting/raw/master/results/builds/natural/natural_sample_1_with_90_vpm_sliding/tip_attributes_with_weighted_distances.tsv"
Fit a model using default 6 year training windows and 12-month forecasts.
popcast fit \
--tip-attributes tip_attributes_with_weighted_distances.tsv \
--output lbi_model.json \
--predictors lbi
Development
Install locally
python -m pip install '.[full,test]'
Lint and run tests
Lint code.
flake8 . --count --show-source --statistics
Run tests.
cram --shell=/bin/bash tests/
Publish
Install or upgrade publishing tools.
python -m pip install --upgrade build twine
Build the distribution packages.
python -m build
Upload the distribution packages.
python -m twine upload dist/*
Metadata
Release files for popcast 2.0.0
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 |
|---|---|---|---|---|
| popcast-2.0.0.tar.gz | 21.2 kB | Without provenance | Details for popcast-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| popcast-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for popcast-2.0.0-py3-none-any.whl |
Total release size: 45.1 kB
Release files / popcast-2.0.0.tar.gz
| Download URL | popcast-2.0.0.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbb228e911728c33ba878658423d1f281eb1b8f18be3b515809eab2d7f05badb
|
|
BLAKE2b-256 checksum How to use checksums |
d603dabbd3f49d309e04190fde2c39d90289ef4af4c0759a384e809f23c4f34a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|
Release files / popcast-2.0.0-py3-none-any.whl
| Download URL | popcast-2.0.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4e90f349ab79b53dbd726e1e747b35f0a26ba9161507fc28f7014115f4ce9a5
|
|
BLAKE2b-256 checksum How to use checksums |
74d9cd9e4ea8777ebb3cb6d9b2bb3f47104ba75e10b9f36979b5801a1c19d5d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|
Security for popcast 2.0.0
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.