CHAP

Designed to be used by researchers and public health professionals to forecast and assess the impact of climate on health outcomes.
https://github.com/dhis2-chap/chap-core

Keywords from Contributors

bioinformatics

Last synced: 3 days ago
JSON representation

Acceptance Criteria

Repository metadata

The backend engine for the Chap Modeling Platform

README.md

Welcome to the Chap modelling platform!

CI
PyPI version
Python 3.13+
License: AGPL v3
Documentation

This is the main repository for the Chap modelling platform.

Read more about the Chap project here

Code documentation

The main documentation for the modelling platform is located at https://chap.dhis2.org/chap-modeling-platform/.

Development / contribution

Information about how to contribute to the Chap Modelling Platform: https://chap.dhis2.org/chap-modeling-platform/contributor/.

Issues/Bugs

If you find any bugs or issues when using this code base, we appreciate it if you file a bug report here: https://github.com/dhis2-chap/chap-core/issues/new

Launch development instance using Docker

cp .env.example .env
docker compose up

Rebuilding after a source change

docker compose up will reuse an existing chap-core-chap image if one is
already built — it does not automatically rebuild when you edit source. If
you see a stale chap_core.__version__ or a fix that clearly didn't land
inside the running container, use one of:

make restart       # down && up -d --build (preserves volumes incl. chap-db)
make force-restart # down -v && build --no-cache && up (WIPES VOLUMES)
make chap-version  # print the chap_core version running inside the container

make restart is the right hammer 90% of the time. make force-restart
also wipes the Postgres volume, so reach for it only when you need a clean
slate. make chap-version is also printed automatically at the end of
make restart so version drift is visible at a glance.

Running with chapkit model overlays

Chapkit-based models ship as opt-in compose overlays. Layer one onto
compose.yml (not compose.ghcr.yml — those two are alternatives, not
stackable) to run chap-core with the chapkit services already
self-registered.

The recommended overlay is compose.chapkit.yml, an umbrella file that
includes every chapkit-converted model. As more models are converted to
chapkit, they get added here so a single -f flag pulls them all in:

docker compose -f compose.yml -f compose.chapkit.yml up -d

If you only want the EWARS service, use the single-model overlay
compose.ewars.yml instead:

docker compose -f compose.yml -f compose.ewars.yml up -d

Deploy on Kubernetes

CHAP can be deployed on Kubernetes using our helm chart which can be found here.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 2,489
Total Committers: 40
Avg Commits per committer: 62.225
Development Distribution Score (DDS): 0.622

Commits in past year: 1,033
Committers in past year: 29
Avg Commits per committer in past year: 35.621
Development Distribution Score (DDS) in past year: 0.694

Name Email Commits
Knut Rand k****d@g****m 940
Ivar Grytten i****n@g****m 579
Morten Olav Hansen m****n@w****m 376
Herman Tretteteig h****t@u****o 149
Karim Bahgat k****a@u****o 55
geirksa g****a@i****o 42
Sveinung Gundersen s****u@g****m 38
BumpVersion Action b****n@g****s 37
Andreas Jensen a****s@d****g 37
dependabot[bot] 4****] 33
kanduric c****o@g****m 23
eirikhaugstulen e****n@g****m 22
mmamica m****m@u****o 20
Lilu Zhan l****z@L****l 19
ghadialhajj g****8@g****m 12
Jeanne Cheneby j****h@u****o 12
Herman Tretteteig h****t@e****o 12
Markus B Slyngstad 1****s 11
audunlas 6****s 11
Halvard Emil Sand-Larsen h****5@o****m 8
Charlotte-Wurtzen c****n@g****m 8
Boris Simovski b****i@g****m 8
Andre gregussen a****n@g****m 6
Jen Jones Arnesen j****r@d****g 5
Katalin Ferenc 3****a 4
dgold d****r@g****m 3
Abyot Asalefew Gizaw a****a@g****m 3
Lilu Zhan l****8@g****m 2
Lilu Zhan l****z@e****o 2
Lilu Zhan l****z@e****o 2
and 10 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 5 days ago

Total issues: 46
Total pull requests: 218
Average time to close issues: 4 months
Average time to close pull requests: 8 days
Total issue authors: 12
Total pull request authors: 23
Average comments per issue: 0.33
Average comments per pull request: 0.4
Merged pull request: 122
Bot issues: 0
Bot pull requests: 37

Past year issues: 15
Past year pull requests: 162
Past year average time to close issues: about 1 month
Past year average time to close pull requests: 6 days
Past year issue authors: 5
Past year pull request authors: 19
Past year average comments per issue: 0.6
Past year average comments per pull request: 0.43
Past year merged pull request: 78
Past year bot issues: 0
Past year bot pull requests: 33

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/dhis2-chap/chap-core

Top Issue Authors

  • ivargr (11)
  • knutdrand (10)
  • sandve (5)
  • karimbahgat (5)
  • eirikhaugstulen (5)
  • hermantretteteig (3)
  • turban (2)
  • NelioChume (1)
  • abyot (1)
  • mortenoh (1)
  • Nsarob (1)
  • iambodo (1)

Top Pull Request Authors

  • mortenoh (61)
  • dependabot[bot] (37)
  • knutdrand (36)
  • ivargr (22)
  • eirikhaugstulen (16)
  • zlilu (6)
  • bsmarkus (6)
  • borissim (6)
  • karimbahgat (4)
  • abyot (4)
  • tonsV2 (3)
  • behdadnikkhah25 (3)
  • KanduriC (2)
  • ferenckata (2)
  • hermantretteteig (2)

Top Issue Labels

  • enhancement (3)
  • modeling-app (1)
  • good first issue (1)

Top Pull Request Labels

  • dependencies (37)
  • python:uv (30)
  • github_actions (3)

Dependencies

external_models/epidemiar/epidemiar/DESCRIPTION cran
  • MASS * imports
  • dplyr >= 1.0.0 imports
  • glue >= 1.4.1 imports
  • lubridate >= 1.7.9 imports
  • magrittr >= 1.5 imports
  • methods * imports
  • mgcv >= 1.8 imports
  • parallel >= 4.0.0 imports
  • pracma >= 2.2.9 imports
  • readr >= 1.3.1 imports
  • rlang >= 0.4.6 imports
  • splines >= 4.0.0 imports
  • surveillance >= 1.18.0 imports
  • tibble >= 3.0.1 imports
  • tidyr >= 1.1.0 imports
  • zoo >= 1.8 imports
  • clusterapply * suggests
  • knitr * suggests
  • rmarkdown * suggests
Dockerfile docker
  • ghcr.io/astral-sh/uv 0.11-python3.13-trixie-slim build
external_models/docker_r_packages_test/Dockerfile docker
  • ivargr/r_inla latest build
.github/workflows/ci-publish-manuscript.yml.disabled actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • ad-m/github-push-action master composite
  • snakemake/snakemake-github-action v1 composite
.github/workflows/ci-test-python-install.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
external_models/Dockerfile docker
  • ivargr/r_inla latest build
.github/workflows/build_chap_worker_docker_image.yml.disabled actions
  • actions/attest-build-provenance v2 composite
  • actions/checkout v4 composite
  • docker/build-push-action f2a1d5e99d037542a71f64918e516c093c6f3fc4 composite
  • docker/login-action 65b78e6e13532edd9afa3aa52ac7964289d1a9c1 composite
  • docker/metadata-action 9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 composite
.github/workflows/ci-build-docker-images.yml actions
  • actions/attest-build-provenance v4 composite
  • actions/checkout v7 composite
  • docker/build-push-action v7 composite
  • docker/login-action v4 composite
  • docker/setup-buildx-action v4 composite
.github/workflows/ci-build-docs.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
  • peaceiris/actions-gh-pages v4 composite
.github/workflows/push-to-pypi.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/ci-eval-r-models.yml.disabled actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • conda-incubator/setup-miniconda v3 composite
.github/workflows/ci-lint-code-style.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
.github/workflows/ci-test-docs-slow.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
example_data/DESCRIPTION cran
  • dplyr * imports
  • tidyr * imports
  • ggplot2 * suggests
  • testthat * suggests
.github/workflows/ci-test-external-models.yml actions
  • actions/checkout v7 composite
  • astral-sh/setup-uv v9.0.0 composite
  • gabrielfalcao/pyenv-action v18 composite
  • valkey/valkey 8 docker
.github/workflows/release-chart.yaml actions
  • actions/checkout v7 composite
  • azure/setup-helm v5 composite
  • helm/chart-releaser-action v1.7.0 composite
.github/workflows/trigger-docs-deploy.yml actions
  • peter-evans/repository-dispatch v4 composite
external_models/docker_r_base/Dockerfile docker
  • rstudio/r-base 4.4-jammy build

Score: 7.473069088032197