Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 46 additions & 28 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Build and Deploy MkDocs

on:
Expand All @@ -7,72 +8,89 @@ on:
pull_request:
types: [opened, synchronize, reopened, closed]

permissions:
contents: write
pull-requests: write

concurrency:
group: gh-pages
cancel-in-progress: true
cancel-in-progress: false

jobs:
build:
if: github.event_name == 'push' || github.event.action != 'closed'
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/checkout@v4
with:
python-version: '3.9.x'
fetch-depth: 0

- name: Cache pip
uses: actions/cache@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
python-version: '3.11'
cache: pip
cache-dependency-path: docs/requirements.txt

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
python -m pip install -r docs/requirements.txt
python -m pip check

- name: Build MkDocs site
run: mkdocs build

# Deploy main site on push to main
- name: Deploy main site
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
force_orphan: true
keep_files: true

# Deploy PR preview on pull requests (except closed)
# Deploy PR preview
- name: Deploy PR preview
if: github.event_name == 'pull_request' && github.event.action != 'closed'
if: github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
destination_dir: pr-${{ github.event.pull_request.number }}
keep_files: true
force_orphan: true

# Comment PR with preview URL
- name: Comment PR with preview URL
if: github.event_name == 'pull_request' && github.event.action != 'closed'
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
message: "Preview your docs here: https://ManuelaRunge.github.io/MultiMalModPy/pr-${{ github.event.pull_request.number }}/"
message: |
Preview your docs here:
https://ManuelaRunge.github.io/MultiMalModPy/pr-${{ github.event.pull_request.number }}/

# Cleanup PR preview folder when PR is closed
- name: Remove PR preview on close
if: github.event_name == 'pull_request' && github.event.action == 'closed'
uses: peaceiris/actions-gh-pages@v4
# Remove preview after PR closes
cleanup:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest

steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site # dummy, required but will delete folder
destination_dir: pr-${{ github.event.pull_request.number }}
delete: true
ref: gh-pages
fetch-depth: 1

- name: Remove PR preview
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
git rm -r --ignore-unmatch "pr-${PR_NUMBER}"
if ! git diff --cached --quiet; then
git -c user.name="github-actions[bot]" \
-c user.email="41898282+github-actions[bot]@users.noreply.github.com" \
commit -m "Remove preview for PR #${PR_NUMBER}"
git push origin HEAD:gh-pages
fi
76 changes: 63 additions & 13 deletions docs/about/citation.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,63 @@
# Citation
Release in prep.

### Scientific publications
in prep.

### Conference presentations
- **Comparative Analysis of Individual-Based Malaria Models: Characterizing model behavior for enhanced confidence in model-informed decision making**
     _Poster at ASTMH annual meeting. 2024_
- **MultiMalModPy - A novel programmatic framework for running three individual-based malaria transmission models**
     _IDM symposium, EMOD user group side meeting. 2024._
- **Programmatic Framework For Running Three Individual-Based Malaria Models: EMOD, OpenMalaria, and malariasimulation.**
     _Poster at AMMnet annual meeting. 2023_

# Citation

## Citing MultiMalModPy

If you use MultiMalModPy in your research, please cite:

1. **Software:** MultiMalModPy, including the version used.
2. **Framework publication:** The accompanying manuscript describing the software architecture and implementation.

### Software citation

**MultiMalModPy: Multi-Malaria-Modeling Python Framework**

#### Suggested citation

Richter R., Cavelan A., Brewer T, Shattock A., Nekkab N., Winskill P., Penny M., Gerardin J., Runge M. (2026). *MultiMalModPy: Multi-Malaria-Modeling Python Framework* (Version 1.0.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23282932

#### BibTeX

```bibtex
@misc{multimalmodpy2026,
author = {Richter R., Cavelan A., Brewer T, Shattock A., Nekkab N., Winskill P., Penny M., Gerardin J., Runge M.},
title = {MultiMalModPy: Multi-Malaria-Modeling
Python Framework},
year = {2026},
version = {1.0.0},
publisher = {Zenodo},
doi = {10.5281/zenodo.23282932},
url = {https://doi.org/10.5281/zenodo.23282932},
note = {Computer software}
}
```

#### Software availability

- **Zenodo:** [10.5281/zenodo.23282932](https://doi.org/10.5281/zenodo.23282932)
- **GitHub:** [MultiMalModPy repository](https://github.com/ahadi-analytics/MultiMalModPy)
- **Documentation:** [MultiMalModPy Documentation](https://ahadi-analytics.github.io/MultiMalModPy/)

The Zenodo record provides an archived software release. The latest version, including updates and bug fixes, is available from the [GitHub repository](https://github.com/ahadi-analytics/MultiMalModPy/releases).
When citing MultiMalModPy, please specify the version used to support reproducibility.

## Scientific publications

The following manuscripts are in preparation:

1. **MultiMalModPy: A novel software framework for running three individual-based malaria transmission models.**
*Manuscript in preparation.*

2. **Harmonization and comparison of baseline behavior of three individual-based malaria models.**
*Manuscript in preparation.*

## Conference presentations

- **Comparative Analysis of Individual-Based Malaria Models: Characterizing Model Behavior for Enhanced Confidence in Model-Informed Decision Making**
*Poster presentation, American Society of Tropical Medicine and Hygiene (ASTMH) Annual Meeting, 2024.*

- **MultiMalModPy: A Novel Programmatic Framework for Running Three Individual-Based Malaria Transmission Models**
*Institute for Disease Modeling (IDM) Symposium, EMOD User Group Side Meeting, 2024.*

- **Programmatic Framework for Running Three Individual-Based Malaria Models: EMOD, OpenMalaria, and malariasimulation**
*Poster presentation, Applied Malaria Modeling Network (AMMnet) Annual Meeting, 2023.*
30 changes: 15 additions & 15 deletions docs/about/contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ For developers, how to update the online documentation is described in the [./do

## Developers

- **Tom Brewer** — *Imperial College London, UK*
- **Aurelien Cavelan** — *University of Basel, Switzerland*
- **Jaline Gerardin** — *Northwestern University & AHADI, Chicago, USA*
- **Melissa Penny** — *University of Western Australia & Kids Research Institute, Australia*
- **Ricky Richter** — *Northwestern University, Chicago, USA*
- **Manuela Runge** — *Northwestern University, Chicago, USA*
- **Peter Winskill** — *Imperial College London, UK*
- **Tom Brewer**
- **Aurelien Cavelan**
- **Jaline Gerardin**
- **Melissa Penny**
- **Ricky Richter**
- **Manuela Runge**
- **Peter Winskill**

## Contributors

- **Caitlin Bever** — *Institute for Disease Modeling, USA*
- **Scott Coughlin** — *Northwestern University, USA*
- **Matthew Gorby** — *Northwestern University, USA*
- **Tobias Holden** — *Northwestern University, USA*
- **Josephine Malinga** — *Swiss TPH, Switzerland*
- **Narimane Nekkab** — *Swiss TPH, Switzerland*
- **Andrew Shattock** — *University of Western Australia & Kids Research Institute, Australia*
- **Sophie van Genderen** — *Northwestern University, USA*
- **Caitlin Bever**
- **Scott Coughlin**
- **Matthew Gorby**
- **Tobias Holden**
- **Josephine Malinga**
- **Narimane Nekkab**
- **Andrew Shattock**
- **Sophie van Genderen**

<br>

Expand Down
54 changes: 29 additions & 25 deletions docs/developer/create_new_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ Each version represents a distinct state of the codebase, including core framewo

## Versioning

MultiMalModPy follows a scheme inspired by [Google's versioning guidelines](https://google.github.io/styleguide/versioning.html), using:
- **Semantic versioning** (`MAJOR.MINOR.PATCH`) for public releases
- A `-devN` suffix for development/pre-release versions
MultiMalModPy follows [Semantic Versioning](https://semver.org/) (`MAJOR.MINOR.PATCH`) for public releases with a `-devN` suffix used for development and pre-release versions.

There are two version types used in MultiMalModPy:
There are two version types used in MultiMalModPy:

### Stable (Public) Releases

Expand All @@ -28,7 +26,7 @@ These versions are:
- Uploaded to the [GitHub Releases](https://github.com/ahadi-analytics/MultiMalModPy/releases) page


### Development (Pre-)Releases
### Development Releases

Development versions use the same format as stable releases but include a `-devN` suffix: `MAJOR.MINOR.PATCH-devN`

Expand All @@ -52,32 +50,38 @@ A stable release should include:
- Documentation updates reflecting the changes
- Passing unit and integration tests

### Release workflow:
### Release workflow

Releases are made manually and not yet compiled and tested automatically by the Continuous Integration system and uploaded to the Github Releases page.
Releases are currently made manually and are not yet automatically built, tested, or uploaded to the GitHub Releases page by the Continuous Integration (CI) system.

1. **Tag the version in Git:**
```bash
git tag v1.12.0
git push origin v1.12.0
1. **Tag the version in Git:**

2. **Update version references:**
- In `docs/about/changelog.md`
- Push documentation `mkdocs gh-deploy`
```
git tag v1.12.0
git push origin v1.12.0
```

3. Create a GitHub Release:
- Add a summary of changes
- Attach release assets
2. **Update version references:**

- Update `docs/about/changelog.md`.
- Deploy the documentation:

## Tests
Testing is under active development and will be organized into:
- Unit Tests: For low-level logic (e.g., parameter calculation, configuration validation)
- Integration Tests: For full simulation workflows, platform integration, and CLI usage
```
mkdocs gh-deploy
```

3. **Create a GitHub Release:**

## Future Plans
- Add a summary of changes.
- Attach release assets.

- Automate version tagging, release creation, changelog creation, and tests, with GitHub Actions


## Tests

Testing is under active development and will be organized into:

- **Unit tests:** For low-level logic, such as parameter calculations and configuration validation.
- **Integration tests:** For full simulation workflows, platform integration, and CLI usage.

## Future plans

Automate version tagging, release creation, changelog generation, and testing using GitHub Actions.
2 changes: 1 addition & 1 deletion docs/developer/postprocessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if exp.openmalaria_survey_step == '1y':

### Annual analyzer

[survey-measures](https://github.com/SwissTPH/openmalaria/wiki/MonitoringOptions#survey-measures)
[survey-measures](https://github.com/OpenMalaria-Org/openmalaria/wiki/MonitoringOptions#survey-measures)
nHost: Total number of humans
nPatent: The number of human hosts whose total (blood-stage) parasite density is above the detection threshold
nUncomp: number of episodes (uncomplicated) [...detailed description on the Wiki]
Expand Down
2 changes: 1 addition & 1 deletion docs/developer/update_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ These instructions were adapted from the original setup notes by **Scott Coughli

```
cd /gpfs/projects/b1139/OpenMalaria/
wget https://github.com/SwissTPH/openmalaria/releases/download/schema-48.0/openMalaria-ubuntu-24.04.tar.gz
wget https://github.com/OpenMalaria-Org/openmalaria/releases/download/schema-48.0/openMalaria-ubuntu-24.04.tar.gz
tar -xvzf openMalaria-ubuntu-24.04.tar.gz
rm openMalaria-ubuntu-24.04.tar.gz
mv openMalaria-ubuntu-24.04 om_v48
Expand Down
Loading
Loading